FIRST.JSP
----------


<jsp:useBean id="Bean" scope="session" class="Bean.Student_Enrollment_Bean" />
<jsp:setProperty name="Bean" property="*"/>

<tr>
<td >Student First Name</td>
<td><% if( (Bean.getStudent_first_name()==null) || (Bean.getStudent_first_name().trim().length()==0) || Bean.getStudent_first_name().equals("null")) { %>
<input type="text" name="student_first_name" >
<% } else { %>
<input type="text" name="student_first_name" value="<%=Bean.getStudent_first_name()%>">
<% } %>
</td>
</tr>


SECOND.JSP
-------------

<jsp:useBean id="Bean" scope="session" class="Bean.Student_Enrollment_Bean" />
<jsp:setProperty name="Bean" property="*"/>

<tr>
<td >SSLC Name</td>
<td>
<% if( (Bean.getName_sslc()==null) || (Bean.getName_sslc().trim().length()==0) || Bean.getName_sslc().equals("null")) { %>
<input type="text" name="name_sslc">
<% } else { %>
<input type="text" name="name_sslc" value="<%=Bean.getName_sslc()%>">
<% } %>
</td>

JAVABEAN.JAVA
----------------

public class Student_Enrollment_Bean
{

private String student_first_name="";
private String name_sslc;


public String getStudent_first_name() {
return student_first_name;
}

public void setStudent_first_name(String student_first_name) {
this.student_first_name = student_first_name;
}


public String getName_sslc() {
return name_sslc;
}

public void setName_sslc(String name_sslc) {
this.name_sslc = name_sslc;
}

}

Hi all above is my code.....i have problem with jsp session scope.....In first page i enter name as "first name" then i am going to second page, in this page i
enter school name as "school name"....now i am going back to first page, in this(first) page the value("first name") is there in the text box what i typed...now i delete the value and i left that
text field as blank and i am going to second page and then return to first page...here now i want the blank text field only....but it showing the value("first name") what i typed at first time.
Pls Let me know what and where is the problem behind that code.

I dont want the logic by setting as a hidden variables or session.setAttribute. Pls Suggests me any other solution. Why the bean didnot get the value of empty string....?


Thanks in Advance....