i want to make a textbox to a session one as i want to use it in all my web app. here there are 2 textboxs named Allocation and tgt1. once i click a button the value in first textbox gets copied to the second textbox(which is going fine) and i want to use this textbox in session as the next page is taking its reference to update the database. the code that i tried so far is as below.
the jsp used to move the values is
the textboxes are
the code to retrieve data used in another jsp to display data is
<input type="text" name="Comp_Text" id="Comp_Text" value="<%=session.getAttribute("abc")%>"/>//this is displaying null
at the time of setting value into session, print the value. i.e,
It's common illusion to a developer to think scriptlet executes after the html code processing.
Joined: Jul 16, 2012