Re: redirection - please help

2003-10-25 Thread Ruth, Brice
You'll want to issue a Location: URI to relocate to\n\n header to the response stream, that should do the trick. ajay brar wrote: hi! is it possible for me to redirect users to an external site from inside an action class. ie, say a user clicks /foo, this calls FooAction which does some

Re: redirection - please help

2003-10-25 Thread Max Cooper
You can use HttpServletResponse.sendRedirect(): http://tinyurl.com/sdgg Or, and I'm not sure if this works or not, you could have a forward in your action mapping like this: forward path=http://othersite.com/; redirect=true/ -Max - Original Message - From: ajay brar [EMAIL PROTECTED]

RE: redirection from an action/ refreshing page

2002-03-07 Thread Yu, Yanhui
more things in the request? Thanks for any help, Yanhui -Original Message- From: Mark Woon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 4:30 PM To: Struts Users Mailing List Subject: Re: redirection from an action/ refreshing page Use: forward name=success path

RE: redirection from an action/ refreshing page

2002-03-07 Thread Robert Nocera
PROTECTED]] Sent: Thursday, March 07, 2002 1:58 PM To: Struts Users Mailing List Subject: RE: redirection from an action/ refreshing page Hi, I am new to Struts, and so my question maybe too simple: Please help. I notice redirect is used often, does that mean I have to put things in session

RE: redirection from an action/ refreshing page

2002-03-05 Thread saval
addendum to question. I meant to write that we do return mapping.findForward(success); not return new ActionForward(mapping.findFoward(success)); that was a typo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:38 PM To: [EMAIL

Re: redirection from an action/ refreshing page

2002-03-05 Thread Mark Woon
Use: forward name=success path=/successpage.jsp redirect=true / [EMAIL PROTECTED] wrote: addendum to question. I meant to write that we do return mapping.findForward(success); not return new ActionForward(mapping.findFoward(success)); that was a typo -Original Message-

RE: Redirection

2001-12-18 Thread Ramesh Kannery
try urlconnection class -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 4:26 PM To: [EMAIL PROTECTED] Subject: Redirection Hi all This is not really related to Struts, but I would really appreciate some help on this .. I need to

RE: redirection

2001-10-31 Thread Tom Klaasen (TeleRelay)
Maybe you should show us some code ... Be honest: do you think anybody can answer this without more information? I'd be glad to help, but you'll have to put some effort in asking the question. tomK -Original Message- From: Andrew Kirkland [mailto:[EMAIL PROTECTED]] Sent: woensdag

RE: redirection

2001-10-31 Thread Andrew Kirkland
Whenever I write a struts application and try to do anything involving an action mapping, my browser is simply redirected to the corresponding *.do file! Can someone tell me whats wrong? Im using tomcat 3.3. This is the example I have been following :

Re: redirection

2001-10-31 Thread Gregor Rayman
Andrew Kirkland [EMAIL PROTECTED] wrote: Whenever I write a struts application and try to do anything involving an action mapping, my browser is simply redirected to the corresponding *.do file! Can someone tell me whats wrong? Im using tomcat 3.3. What is a *.do file? -- gR -- To

RE: redirection

2001-10-31 Thread Andrew Kirkland
exist! Andy -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 31, 2001 10:12 AM To: Struts Users Mailing List Subject: Re: redirection Andrew Kirkland [EMAIL PROTECTED] wrote: Whenever I write a struts application and try to do anything

RE: redirection

2001-10-31 Thread Andreas Mack
On Wed, 2001-10-31 at 11:08, Andrew Kirkland wrote: A .do file is the file extention that i have used for mapping purposes. I have this in my jsp : html:form action=lesson1/logon.do focus=user and then web.xml redirects it and it should then be processed by my java file etc. However I

Re: redirection

2001-10-31 Thread Scott Atwell
, October 31, 2001 10:08 AM Subject: RE: redirection A .do file is the file extention that i have used for mapping purposes. I have this in my jsp : html:form action=lesson1/logon.do focus=user and then web.xml redirects it and it should then be processed by my java file etc. However I am

RE: redirection

2001-10-31 Thread Lacerda, Wellington (AFIS)
/servlet-mapping (extracted from example application web.xml) Wellington L.S. da Silva UN/FAO -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 31, 2001 11:24 AM To: Struts Users Mailing List Subject: Re: redirection Have you configured

Re: redirection

2001-10-31 Thread Gregor Rayman
Andrew Kirkland [EMAIL PROTECTED] wrote: I have this in my jsp : html:form action=lesson1/logon.do focus=user and then web.xml redirects it and it should then be processed by my java file etc. However I am simply redirected in my browser to logon.do which doesnt exist! Andy OK, so there

RE: redirection

2001-10-31 Thread Tom Klaasen (TeleRelay)
oktober 2001 11:27 To: 'Struts Users Mailing List' Subject: RE: redirection Importance: High You configure that in the web.xml deployment descriptor file! You MAP the actions and actionForwards in the struts-config.xml, but you must map the path or extension modes in the web.xml file

Re: redirection

2001-10-31 Thread Ted Husted
The better syntax in your html:form would be html:form action=/lesson1/logon focus=user where there is something like this in your struts-config.xml action path=/lesson1/logon type=${whatever} name=${whatever} /action If this is in place, then there must be

RE: redirection

2001-10-31 Thread Lacerda, Wellington (AFIS)
Servlet indeed. Wellington L.S. da Silva UN/FAO -Original Message- From: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 31, 2001 11:33 AM To: Struts Users Mailing List Subject: RE: redirection That could be the problem indeed. From the jspinsider url

RE: redirection

2001-10-31 Thread Lacerda, Wellington (AFIS)
Sorry :-) I mean using THE web.xml FILE IN blank.war as the base... Wellington -Original Message- From: Lacerda, Wellington (AFIS) Sent: Wednesday, October 31, 2001 11:37 AM To: 'Struts Users Mailing List' Subject: RE: redirection Importance: High In JspInsider the web.xml file