Hi,
I am new to
Struts and I am a writing a small application for Online
Test in struts 2.0. I have got three queries:
1. After successfully login into the application, if the user presses the Close button (X) on the window and then the user starts the application again, will the previous session be retained. If so, what is way to invalidate the session after the Close button is pressed so that all the variables scoped at session level are set to their initial value.
2. In my test.jsp, I have got two buttons - prev and next. In my corresponding action class method, I want to identify which of the two buttons was pressed so that counter can either be decremented or incremented depending on the button pressed.
i wrote the following code but nextprev does not seem to retain the value of the button pressed. Result of this is null is passed to the action property nextprev.
3. How do we scope classes at various levels in struts 2.0 i.e Request, Session, Page, Application.
please help. thanks in advance.