please help in jsp

please help in jsp

i have two Jsp's pages.
on main.jsp have some list of schools. from there i can go home page of any school. home.jsp represents a school home page.
in home.jsp have some links like message, vision, addmission etc.
when i click on any of these link then i get some information in a table area in a home page of that school (which is Home.jsp).
it show information when i click on these links otherwise table area in home.jsp show blank.

when i go from main.jsp to home.jsp, table area of home.jsp show blank. if i fill this table area by static data in Home.jsp. after that when
i click to message link, then message will show after static data.

my problem is when i go from main.jsp to home.jsp, table area of home.jsp show blank.
how i fill this table area by condtion so that when i move from main.jsp to Home.jsp, it can show some data.

here some data of Jsp's.

main.jsp
<html>
<body> <table width="200" border="1" >
<tr>
<td width="200" height="182" valign="top"><table width="200"
border="1">
<tr>
<th valign="top" height="34" bgcolor="#FFCC66"><div
align="left"><a href="Home.jsp?school=adrash"><FONT COLOR="#990000"
size="4"><span class="style5"> Adrash School </span>
</FONT></a></div></th>
</tr>
<tr>
<th valign="top" height="34" bgcolor="#FFCC66"><div
align="left"><a href="Home.jsp?school=dps"><FONT COLOR="#990000"
size="4"> Delhi Public School </FONT></a></div></th>
</tr>
</table>
</body>
</html>

Home.jsp
<html>
<body>
<td>
<table width="200" border="1" >
<tr>
<th valign="top" height="34" bgcolor="#FFCC66"><div
align="left"><a href="Home.jsp?value=message&&school=<%=school%>"
<FONT COLOR="#990000" size="4">Message</div></th>
message related information
</tr>
<tr>
<th valign="top" height="34" bgcolor="#FFCC66"><div
align="left"><a
href="Home.jsp?value=visionary&&school=<%=school%>"<FONT
COLOR="#990000" size="4">Visionary </FONT></a></div></th>
vision related information
</tr>
<tr>
<th valign="top" height="34" bgcolor="#FFCC66"><span
class="style2"><div align="left"><a
href="Home.jsp?value=addmission&&school=<%=school%>"<FONT
COLOR="#990000" size="4">Addmission </FONT></a></div></span></th>
addmission related information
</tr>
</table></td>
<td width="730" valign="top">
<table width="730" height="700" border="0">
<tr>
<td valign="top">
<%
String value=request.getParameter("value");

if((school.equals("adrash"))||(school.equals("dps")))
{
if(value!=null && (value.equals("message")))
{
%>
<p></p>
<font size="+1">Message</font>
<%
}}
%>

<%
if((school.equals("adrash"))||(school.equals("dps")))
{
if(value!=null && (value.equals("visionary")))
{
%>
<p></p>
<font size="+1">visionary</font>
<%
}}
%>
<%
if((school.equals("adrash"))||(school.equals("dps")))
{
if(value!=null && (value.equals("addmission")))
{
%>
<p></p>
<font size="+1">addmission</font>
<%
}}
%>
</td>
</tr></table>
</body>
</html>
please help.
View Answers

April 14, 2010 at 3:28 PM

Hi Friend,

Try the following:

Home.jsp:

<%String school=request.getParameter("school");%>
<html>
<body>
<td>
<table width="200" border="1" >
<tr>
<th valign="top" height="34" bgcolor="#FFCC66"><div
align="left"><a href="Home.jsp?value=message&&school=<%=school%>"
<FONT COLOR="#990000" size="4">Message</div></th>
message related information
</tr>
<tr>
<th valign="top" height="34" bgcolor="#FFCC66"><div
align="left"><a
href="Home.jsp?value=visionary&&school=<%=school%>"<FONT
COLOR="#990000" size="4">Visionary </FONT></a></div></th>
vision related information
</tr>
<tr>
<th valign="top" height="34" bgcolor="#FFCC66"><span
class="style2"><div align="left"><a
href="Home.jsp?value=addmission&&school=<%=school%>"<FONT
COLOR="#990000" size="4">Addmission </FONT></a></div></span></th>
addmission related information
</tr>
</table>
<table border="0">
<tr><td>This is reputed institution. </td></tr>
<tr>
<td >
<%
String value=request.getParameter("value");
if((school.equals("adrash"))||(school.equals("dps"))){
if(value!=null && (value.equals("message"))){
%>
<p></p>
<font size="+1">Message</font>
<%
}}
%>
<%
if((school.equals("adrash"))||(school.equals("dps"))){
if(value!=null && (value.equals("visionary"))){
%>
<p></p>
<font size="+1">visionary</font>
<%
}}
%>
<%
if((school.equals("adrash"))||(school.equals("dps"))){
if(value!=null && (value.equals("addmission"))){
%>
<p></p>
<font size="+1">addmission</font>
<%
}}
%>


</td>
</tr></table>
</body>
</html>

Thanks









Related Tutorials/Questions & Answers:
please help - JSP-Servlet
To Year "> please help...please help   i am making a program by this i can find out... with others combox values. Here is JSP's files: display.jsp
Please Help - JSP-Servlet
Please Help  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your response.. You told me that its difficult to handle the problem.. Ok,Let me try my hands on it.. The help i need is can u please tell me
Advertisements
please help in jsp - JSP-Servlet
please help in jsp  i have two Jsp's pages. on main.jsp have some..._TO_REPLACE_1 addmission please help.  Hi Friend... data. here some data of Jsp's. main.jsp
Display JSP selected listbox and checkbox in xml-please help me
Display JSP selected listbox and checkbox in xml-please help me  Hi, I have three Listbox on my jsp page. I want to do following:ADS_TO_REPLACE_1... selected listbox as well as selected multiple checked checkboxes. Please help
please help me how to set up Netbeans for JSP
please help me how to set up Netbeans for JSP   Hi roseindian.net, the following page is what i have seen when i run jsp project.What I can do,please help me.We are ready to do INDUSTRIAL PROJECT by JSP. Thank you. ERROR
please help//
please help//  Number square cube 1 1 1 3 9 27 5 25 125 7 49 343 9 81 729 total 165 1225 â?? this is the ouput..;;; i
please help//
please help//  Number square cube 1 1 1 3 9 27 5 25 125 7 49 343 9 81 729 total 165 1225 â?? this is the ouput..;;; i
please help//
please help//  Number square cube 1 1 1 3 9 27 5 25 125 7 49 343 9 81 729 total 165 1225 â?? this is the ouput..;;; i
please help
please help  please send me the code of dynamic stack in java without using the built in functions
help please?
help please?  Define a class named Circle with the following properties: â?¢ An integer data field named radius with protected access modifier, and a String data field named colour with private access modifier. Both data fields
help please?
help please?  Define a class named Circle with the following properties: List item â?¢ An integer data field named radius with protected access modifier, and a String data field named colour with private access modifier. Both
help please?
help please?  Define a class named Circle with the following properties: List item An integer data field named radius with protected access modifier, and a String data field named colour with private access modifier. Both
help please?
help please?  Define a class named Circle with the following properties: List item An integer data field named radius with protected access modifier, and a String data field named colour with private access modifier. Both
help please?
help please?  Define a class named Circle with the following properties: List item An integer data field named radius with protected access modifier, and a String data field named colour with private access modifier. Both
Please Help
Please Help  How do I create an attribute that represents the following: A grayscale 'color' value, that is, an integer between 0 and 255 inclusive, where 0 corresponds to the darkest black and 255 to the brightest white
Please Help
Please Help  How do I create an attribute that represents the following: A grayscale â??colorâ?? value, that is, an integer between 0 and 255 inclusive, where 0 corresponds to the darkest black and 255 to the brightest white
Please help
Please help  Problem: Write a program that does addition, subtraction, multiplication and division operation on real numbers. The operation started with a user entered 2 numbers and click one of the operation buttons
java please please help
java please please help  Dear Friends plz help me to complete this program import java.util.*; public class StringDemo { static...[] to HashMap so that i can seperate key and value using Map.Entry.Please help me!  
help please?
help please?  Define a class named Circle with the following properties: ? An integer data field named radius with protected access modifier, and a String data field named colour with private access modifier. Both data fields
Please help
Please help  Problem: Write a program that does addition, subtraction, multiplication and division operation on real numbers. The operation started with a user entered 2 numbers and click one of the operation buttons
help please
help please  hi i am done with register application using jsps servlets htmls. But i couldnt imp one thing that.. Wen u login to ur account browser... file.. Or atleast help me with code here.. I tried checking session alive
please help
please help  public class AllContact extends javax.swing.JFrame { /** Creates new form AllContact */ public AllContact() { initComponents(); try{ Connection1 con =new Connection1(); Connection conobj
please help me.
please help me.  How to move the edits.jsp in below link? http://www.roseindia.net/answers/viewqa/JSP-Servlet/9584-JSP-Servlet-Search-and-Edit.html
please help me.
please help me.  Please send me the validation of this below link. the link is http://www.roseindia.net/answers/viewqa/JSP-Servlet/9584-JSP-Servlet-Search-and-Edit.html Thanks Trinath
please help me.
please help me.  I have a jsp page under that i add a list box under i get the countries through my database. so how can i do
Please help me.
Please help me.  Hi i am trinath in below there is a url.In that url there is a code of edit a jsp page.I understand that code but only one thing i...://www.roseindia.net/answers/viewqa/JSP-Servlet/9584-JSP-Servlet-Search
urgent...pleAse help me.....please!
urgent...pleAse help me.....please!  please help me urgent! how can i do dictionary with the use of array code in java, where i will type the word then the corresponding meaning for that word will appear...thanks
please help me
please help me  Dear sir, I have a problem. How to write JSP coding... before. This name list should get from the database. Please help me. By the way, I'm using access database and jsp code. Thank you
need help please
enter a page second time. Please help me. By the way I'm using Access database and JSP coding Thank you...need help please  Dear sir, my name is logeswaran. I have a big
please help me.
please help me.  Please send me a code of template in opencms and its procedure.so i can implement the code. Thanks trinath
please help me.
please help me.  How to read a properties file in java with a suitable example. Please send me. Thanks Trinath   Please visit the following link: Java read properties file
Confusion on Functions. Help Please?!
Confusion on Functions. Help Please?!  Write a program which has a number of functions for getting the area i.e. area of circle, area of square, area... not getting anywhere with it really :( Some help please
Please Help Now
Please Help Now  i want to put this map in ajax oriented codeigniter website thanks in advance plz help me now plz very urgent
Please help me
Please help me  program for when a user enter his card number, it has to create default security pin in the database
PLEASE HELP WITH MY JAVA
PLEASE HELP WITH MY JAVA  Hey my name is Gavin and im a student... please help!!!!!!!! it is a for-loop question: Display the first 5 multiples... and average If u can please help...   
help me please
help me please   Hello I want helping for this question , Please Write a program that reads some friendsââ?¬â?¢ names, stores them in an array, and then prints out on the screen all friends who start by a particular letter
please help me
please help me  interface Test1 { String toString(); } public class Test { public static void main(String[] args) { System.out.println(new Test1() { public String toString() { return "test
need help...................please
on this area. Please help me. By the way, I'm using access Database and JSP coding...need help...................please  I have a problem in my JSP Coding...("GET",url,true) xmlHttp.send(null) } else{ alert("Please Select Employee Id
help please!!! T_T
help please!!! T_T  what is wrong in this?: import java.io.*; class...("please enter your name:"); name1= input.readline(); System.out.println("please... { String name1; String name2; System.out.println("please enter
please help me.
please help me.  I have three table in mysql,and i hava create a excel sheet and add this sheet.but my question is in every sheet i can display one one table result.how can i do
please help me...
please help me...  write an application that print number in the following order using a FOR-Loop 1 2 3 4 5 2 4 6 8 10 3 6 9 1215 4 8 121620 5 10152025
please help me
please help me  how to use two browse buttons, one browse button for displaying the first image and second for the second image along with its file path and also to display text file along with its path using layouts or panels
please help me
please help me  how to use two browse buttons, one browse button for displaying the first image and second for the second image along with its file path and also to display text file along with its path using layouts or panels
please help me in these prog
please help me in these prog   create 2 jdbc programs including awt create 2 jdbc programs including swing create 2 jdbc programs including command line argument create 2 jdbc programs including io class 4 jdbc prog using
New to Java Please help
New to Java Please help  Hi I need help, can some one help me with this. I am currently doing a project. drop me an email to my email address. Thanks!   If you are new in java, then you need to learn core java
please help me to this problem..
please help me to this problem..  i wrote a program like keyboard and i used [JTextFiled] means that just you can write inside the program (i.e inside the JTextField) but i want to make this program to let me write where i
C Program....PLEASE HELP
, and pointers. I am lost and need a little help starting please *int fillArray...C Program....PLEASE HELP  For this assignment, you are to write a program that calculates points along a rhodonea curve, a.k.a. a mathematical rose
PLEASE HELP CAPTCHA PROBLEM
PLEASE HELP CAPTCHA PROBLEM  how can i make the captcha refresh autometically ???? please help this is <%@ Page Language="C#" %> <%@ Import Namespace="System.Drawing"%> <%@ Import Namespace
Java Help Please
Java Help Please  I can't seem to figure out how to make this program, can some one help me please? It is due soon!! 4) Write a program that will take an input (Date object will contain fields for the month, day, and year - all
Please help me urgent...........
Please help me urgent...........  For what kind of a problem would use a Tree Set and not a Tree Map For what kind of a problem would use a Tree Map and not a Tree Set   Hello Friend,ADS_TO_REPLACE_1 If you want

Ads