In the jsp, have a hidden tag as strOperation...i set the value "Search" for this. In the formbean, have appropriate get/set methods. There are 2 action classes. In the 1st action, i use the getStrOperation method to read the value... then i again set a new value for this variable to "List". Then pass call the 2nd action class. Itz working fine, but in the 2nd action class if i do a getStrOperation(), the value that was set in the JSP (Search)is only read rather than reading the value that was set in 1st action class(List) I dont have a clue as to why itz happening, can anyone throw light on this...Itz slightly urgent, depending upon this i need to alter my code.
Thanks, Sangeeta
Alexandru Popescu
Ranch Hand
Joined: Jul 12, 2004
Posts: 995
posted
0
Check the bean context: is it set for page, session or application. In case it is for page you're not gonna see the changes.
I havent specified any context for the form bean. what do i do?
Vicky Mohan
Ranch Hand
Joined: Oct 14, 2004
Posts: 130
posted
0
i guess you are using struts. All you have to do is set the scope to be session. If you dont provide any value for this attribute, still it defaults to session. I am guessing you might be having the attribute set to request in your configuration file.