I have a form, 1st page called first.jsp. in this form I have multiple fields. once user enters the first field, I call to the second.jsp to process by using 'onchange="location.href='second.jsp?first_field='+this.value"'

in second.jsp, it will get the value for 2nd field and return to first.jsp. I manage to get the value returned to first.jsp but not able to display in the second field textbox.

how do I do it

onChange event shud cal a JSP page where u get the data to be displayed in the secont text field cal the JSP page and check for a condition ..True part to set that value to the session Attribute while comming back to the page .and if condtion shud check whether the attribute is null, if not get the value from the session and print it in a text field like this
<input type="text" name="second" value="<%=gotfromsession%>" disabled>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.