Grokbase
Topics Posts Groups | in
x
[ help ]

mosho (roshini.b...@gmail.com)

Profile | Posts (27)

User Information

Display Name:mosho
Partial Email Address:roshini.b...@gmail.com
Posts:
27 total
27 in Struts

5 Most Recent

All Posts
1) mosho Re: Question about session time-out using Listener
| +1 vote
do you have any example to do this? Thanks. ...
Struts
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
do you have any example to do this?
Thanks.


Li-3 wrote:
>
> you can create a taghandler, much simpler and flexible
>
> On 9/25/06, mosho <roshini.bhalla@gmail.com> wrote:
>>
>>
>>
>> Hi All,
>>
>> When session times out I want to forward a request to another page.Is it
>> possible to do it with HttpSessionListener?
>> How can I get response object so that I can redirect to another page?
>>
>> Thanks for your  help!
>> --
>> View this message in context:
>> http://www.nabble.com/Question-about-session-time-out-using-Listener-tf2329396.html#a6480246
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected: user-unsubs...@struts.apache.org]
>> For additional commands, e-mail: [email protected: user...@struts.apache.org]
>>
>>
>
>
> --
> When we invent time, we invent death.
>
>

--
View this message in context: http://www.nabble.com/Question-about-session-time-out-using-Listener-tf2329396.html#a6480446
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: user-unsubs...@struts.apache.org]
For additional commands, e-mail: user-help@struts.apache.org
2) mosho Question about session time-out using Listener
| +1 vote
Hi All, When session times out I want to forward a request to another page.Is it possible to do it...
Struts
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi All,

When session times out I want to forward a request to another page.Is it
possible to do it with HttpSessionListener?
How can I get response object so that I can redirect to another page?

Thanks for your  help!
--
View this message in context: http://www.nabble.com/Question-about-session-time-out-using-Listener-tf2329396.html#a6480246
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: user-unsubs...@struts.apache.org]
For additional commands, e-mail: user-help@struts.apache.org
3) mosho Re: Question about Lookup dispatch action
| +1 vote
Hey Scott FINALLY! It works !!! Including xml tag in my javascript is the solution for me. THANKS ! ...
Struts
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hey Scott

FINALLY! It works !!!
Including xml tag in my javascript is the solution for me.

THANKS !



Scott Van Wart-2 wrote:
>
> mosho wrote:
>> Hi Scott,
>>
>> I added a unspecified() method in my action class and it works now.
>> I am not able to understand though how it is working, unspecified() is
>> called when parameter name doesn;t exist, right?
>> I have a parameter name= navigation and its value is shown as
>> {submitText}.
>> But it calls unspecified method, for that value as it would have done if
>> value is null.
>> I am assuming it is calling unspecified() because it is not able to find
>> the key name {submitText}
>>   
> I hope I read your reply correctly.....
>
> You should NEVER EVER see "{submitText}" when you're stepping through
> Java, or in the log window, or in an exception stack trace!!! The ONLY
> place it should appear is in your JSP. In ALL OTHER PLACES, you should
> see the text that you put in your MessageResources.properties. If
> you're seeing "{submitText}" verbatim, then your JSP compiler is
> ignoring EL, or it's not written correctly. For this line in your JSP,
>
>   hiddenField.value = "${submitText}";
>
> Go ahead and request your page in your browser, then go to view source.
> Scroll down to where this line should appear in the HTML, and make sure
> it says something like,
>
>   hiddenField.value = "Next";
>
> instead.
>
> Now there might be a workaround... I gave you the EL method because I
> find it much cleaner than embedding XML-like tags in JavaScript, but the
> following may also work in your JSP:
>
> hiddenField.value = '<bean:message key="button.next" />';
>
> This might work... I don't LIKE it, because it's an XML (tag library,
> whatever) tag inside JavaScript inside HTML in a JSP... but oh well.
> Note the quotes -- the outermost are single quotes, the innermost are
> double quotes. Double check them even if you copied/pasted them just to
> get into the habit.
>
> If you were using {submitText} in your post as a placeholder for the
> actual text that should appear to the browser, my apologies, though I
> hope you understand what I was getting at :).
>
> If this WAS the case, since you're not using EL, feel free to remove the
> lines I gave you in an earlier post,
>
>   <c:set var="submitText">
>     <bean:message key="button.submit" />
>   </c:set>
>
> As you don't need them.
>
> - Scott
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected: user-unsubs...@struts.apache.org]
> For additional commands, e-mail: [email protected: user...@struts.apache.org]
>
>
>

--
View this message in context: http://www.nabble.com/Question-about-Lookup-dispatch-action-tf2124092.html#a5953411
Sent from the Struts - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: user-unsubs...@struts.apache.org]
For additional commands, e-mail: user-help@struts.apache.org
4) mosho Re: Question about Lookup dispatch action
| +1 vote
Hi Scott, I added a unspecified() method in my action class and it works now. I am not able to...
Struts
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi Scott,

I  added a unspecified() method in my action class and it works now.
I am not able to understand though how it is working, unspecified() is
called when parameter name doesn;t exist, right?
I have a parameter name= navigation and its value is shown as {submitText}.
But it calls unspecified  method, for that value as it would have done if
value is null.
I am assuming it is calling unspecified() because  it is not able to find
the key name {submitText}

Any idea?

Thanks, you have been very helpful.



Scott Van Wart-2 wrote:
>
> mosho wrote:
>> Yes, that's exactly the way it works.
>> My navigation with lookupDispatchAction works perfectly. The problem
>> arises
>> when I have another to link instead of button to submit the form, how do
>> I
>> pass navigation parameter value then?
>> The javascript with hidden field doesn't solve the problem.
>>   
> Is the hidden field within the <html:form...> (here) </html:form> tags?
>
> - Scott
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected: user-unsubs...@struts.apache.org]
> For additional commands, e-mail: [email protected: user...@struts.apache.org]
>
>
>

--
View this message in context: http://www.nabble.com/Question-about-Lookup-dispatch-action-tf2124092.html#a5951171
Sent from the Struts - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: user-unsubs...@struts.apache.org]
For additional commands, e-mail: user-help@struts.apache.org
5) mosho Re: Question about Lookup dispatch action
| +1 vote
Yes, that's exactly the way it works. My navigation with lookupDispatchAction works perfectly. The...
Struts
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Yes, that's exactly the way it works.
My navigation with lookupDispatchAction works perfectly. The problem arises
when I have another to link instead of button to submit the form, how do I
pass navigation parameter value then?
The javascript with hidden field doesn't solve the problem.

Thanks!



Scott Van Wart-2 wrote:
>
> mosho wrote:
>> Request[/planName] does not contain handler parameter named navigation
>>   
>
> In your struts-config.xml, are you including 'parameter="navigation"' in
> your action mapping?  A la:
>
> <action path="/planName" type="my.pkg.PlanNameAction"
> name="planNameForm" parameter="navigation">
>      ...
>   </action>
>
> The parameter gives you a place to pass additional data to your action.
> In the case of LookupDispatchAction, it uses it to find out which
> request parameter (in this case, "navigation") it should look at to
> determine which method to call in your subclass. So your form will
> submit, and be stuff like:
>
>   navigation=Next%20Record
>
> It looks messy, but that's OK. The framework takes it and translates it
> back into "Next Record". Now in your subclass, you override
> getKeyMethodMap() right? And somewhere in there, you have something like,
>
>   map.put( "navigation.next.record", "next" );
>
> Where "next" corresponds to the public ActionForward next(
> ActionMapping.......) method you have defined in your subclass.
>
> And in your MessageResources.properties (or whatever the file's called
> in your web app), you have:
>
>   navigation.next.record=Next Record
>
> See how everything links together? Now the button text you choose is
> likely different, but this flexibility is the reason you NEVER refer to
> the button by its text. Let Struts do that internally, only your users
> should see it. Just thought I'd give you a little background so you
> know what you're getting into; anyone correct me if I'm wrong :)
>
> Oh one last thing. Make sure you're NOT overriding execute() in your
> subclass. It's fine for regular Action-derived classes, but you're
> using LookupDispatchAction, which needs to run its own implementation of
> execute().
>
> - Scott
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected: user-unsubs...@struts.apache.org]
> For additional commands, e-mail: [email protected: user...@struts.apache.org]
>
>
>

--
View this message in context: http://www.nabble.com/Question-about-Lookup-dispatch-action-tf2124092.html#a5945508
Sent from the Struts - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: user-unsubs...@struts.apache.org]
For additional commands, e-mail: user-help@struts.apache.org

spacer
Profile | Posts (27)
Home > People > mosho