Calling an action's input() method is a "shortcut" to render the page pointed by the "input" result.
If you need to do some processing before displaying the page, just implement a regular action. 2008/7/14 ravi_eze <[EMAIL PROTECTED]>: > > hi, > > i didnt get you. I have a page for which i need to do some preprocessing to > display it. After the page is done by user it has to be processed. Can you > please elaborate on the soln given? > > ravi > > > Gabriel Belingueres-2 wrote: >> >> Sorry it seems I entered the conversation later and didn't saw that email. >> >> The problem you want to solve is very common (skipping form validation >> the first time you call an action) and, as Dave wrote, it is commonly >> solved by invoking the action with the input() method [1]. This method >> will do nothing and will return INPUT as the result, thus forwarding >> the response to the page with the form. >> >> [1] >> http://struts.apache.org/2.1.2/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html#input() >> >> 2008/7/12 Andreas Mähler <[EMAIL PROTECTED]>: >>> Hello again, >>> >>> Gabriel Belingueres schrieb: >>>> >>>> Without knowing what are you actually trying to accomplish with this >>>> interceptor, I would warn that when an interceptor messes up with the >>>> parameters, you need to carefully think where in the interceptor chain >>>> this interceptor will execute. >>> >>> I explain what I am trying to do in my first post[1]. >>> >>> What do you mean by messing up with the parameters? The Interceptor only >>> checks for the presence of at least one of the specified parameters. It >>> does >>> not change anything. Are there any interceptors that actually change the >>> parameter map? As I said, I am a S2 newbie and haven't heard of many >>> things, >>> but I would consider it as bad style. >>> >>> Greetings, >>> ~Andreas >>> >>> >>> [1] http://article.gmane.org/gmane.comp.jakarta.struts.user/158395 >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/-S2--Recipe-for-Action-and-View-tp18381617p18438070.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]