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.
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.