I am using Struts2 and using hidden fields to pass a value from one jsp containing textfield to other action.
Implementation steps in brief :-
<textfield name="one"></textfield>
) on submit it goes to Action2 Issue:- on click of back I am not able to see the value in the textfield that i first set..
Scenario.
However if I do a F12 on the browser (to see the value in the developer mode) <textfield>
generates a tag of <input>
type and that has value="200".. But it is not getting displayed on the actual screen.
Fixed it. Found the issue. It was related to JScript used in the jsp file. This occured because JS written on the jsp was erasing input field value when page was getting re-loaded or accessed.. Lesson learnt, at times JS could be the culprit. :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.