Re: Need to lookup additional data to append to redirection to outside web site

2011-06-21 Thread Maurizio Cucchiara
The servlet dispatcher can only forward to local servlets and jsps, so it's not really an option. Anyway, usually it's not a good idea flowing unsecure parameters from http to https, you could try to pass via javascript (through jquery [1]), but it's always a security risk. [1] http://api.jquery.

Re: Need to lookup additional data to append to redirection to outside web site

2011-06-21 Thread Roger Varley
On Mon, 2011-06-20 at 20:44 -0500, John Himpel wrote: > Good evening, > > I have an S2 application the needs to: > 1) Verify some input parameters (I know how to do this) > 2) Retrieve some additional data based upon the input parameters (I > know > how to do this). > 3) Then format a "post" type

Re: Need to lookup additional data to append to redirection to outside web site

2011-06-20 Thread Kushan Jayathilake
Hi, Set the attributes in the request (request.setAttribute(name, value);) then dispatch the request. RequestDispatcher dispatcher = getServletContext() .getRequestDispatcher(URL of the page); dispatcher.forward(request, response); On Tue, Jun 21, 2011 at 7:14 AM, Jo

Need to lookup additional data to append to redirection to outside web site

2011-06-20 Thread John Himpel
Good evening, I have an S2 application the needs to: 1) Verify some input parameters (I know how to do this) 2) Retrieve some additional data based upon the input parameters (I know how to do this). 3) Then format a "post" type http request with hidden fields containing data from #1 and #2 above t

Re: Login redirection

2010-04-29 Thread Paweł Wielgus
Mailing List > Date: Thu, 29 Apr 2010 08:44:29 -0500 > To: Struts Users Mailing List > Subject: Re: Login redirection > > Hi Mark, > i don't know the details, but in general when You was redirecting to > L1 or Ln You had the knowlegde about requested page P, so just &

Re: Login redirection

2010-04-29 Thread Mark Hansen
forward -> L1 --- forward --> C --- forward --> P From: Paweł Wielgus Reply-To: Struts Users Mailing List Date: Thu, 29 Apr 2010 08:44:29 -0500 To: Struts Users Mailing List Subject: Re: Login redirection Hi Mark, i don't know the details, but i

Re: Login redirection

2010-04-29 Thread Paweł Wielgus
Hi Mark, i don't know the details, but in general when You was redirecting to L1 or Ln You had the knowlegde about requested page P, so just redirect to this centralized solution but store two things, what was requested (page P and maybe also parameters) and some identificator of a user (session or

Re: Login redirection

2010-04-27 Thread Denis Cabasson
Hi Mark, To implement security across multiples applications (Struts or non Struts), you will have to rely on the container. The container is really the best way to go if you want to implement a cross applications sign-on. Now, about your specific question, I guess we are missing some specifi

Login redirection

2010-04-27 Thread Mark Hansen
I am working on a Struts 1.x application that has a number of login pages L1, L2, L3, ... If a non-authenticated user requests a page - P - that requires authentication, the user will be redirected to one of these login pages L1, L2, L3, ... - depending on the context. Once authenticated, he p

Re: interceptor redirection problem

2009-01-31 Thread Dave Newton
Martin Gainty wrote: the problem is you are relying on your own ServletFilter It's a Struts 2 interceptor. this is possibly a configuration problem please display hibernate.xml,hibernate.properties The issue is with the interceptor and not knowing that the result is executed within the inv

RE: interceptor redirection problem

2009-01-31 Thread Martin Gainty
necessarily endorse content contained within this transmission. > Date: Sat, 31 Jan 2009 04:30:44 -0800 > From: rouxe...@yahoo.com > Subject: interceptor redirection problem > To: user@struts.apache.org > > Hi, > > here's my code. > I want to show an err

Re: interceptor redirection problem

2009-01-31 Thread Dave Newton
Please start new threads for new issues. François Rouxel wrote: I want to show an error message if it's impossible to commit. > But it seems my action still display the 'success' result. public String intercept(ActionInvocation invocation) throws Exception { String retour = Actio

interceptor redirection problem

2009-01-31 Thread François Rouxel
Hi, here's my code. I want to show an error message if it's impossible to commit. But it seems my action still display the 'success' result. can anybody help me? public String intercept(ActionInvocation invocation) throws Exception { String retour = Action.ERROR; try {

json action redirection in struts2

2009-01-08 Thread ravindra
Hi guys, I have two action configured in struts.xml like below.My interceptor stack noValidationLoginStack will check for session is timed out or not. If the session is timeout returns "login" so the page goes to login.jsp.It is working fine in first package but from json Packages and act

json action redirection in struts2

2009-01-07 Thread ravindra
Hi guys, I have two action configured in struts.xml like below.My interceptor stack noValidationLoginStack will check for session is timed out or not. If the session is timeout returns "login" so the page goes to login.jsp.It is working fine in first package but from json Packages and actio

Re: redirection problem with name is input

2008-12-12 Thread Andy Sykes
I could be wrong, but I thought you could only pass the FieldErrors back to a JSP using a dispatcher result, not a redirect-action. Andy. On 12 Dec 2008, at 12:34, Seshagiri V wrote: Hi All, Mapping with redirection type and name is "input" and value is null but I am n

redirection problem with name is input

2008-12-12 Thread Seshagiri V
Hi All, Mapping with redirection type and name is "input" and value is null but I am not able to validations errors in jsp. Please follow code. viewPoPIndex.action

Re: [s2] Problem with redirection - [resolved]

2008-07-02 Thread Milan Milanovic
/2.0.11.2/docs/interceptors.html > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this mess

Re: [s2] Problem with redirection

2008-07-02 Thread Milan Milanovic
ds, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-s2--Problem-with-redirection-tp18220420p18234487.html Sent from the Struts - User mailing list archive at Nabble.com. -

Re: [s2] Problem with redirection

2008-07-01 Thread Lukasz Lenart
Hi, > does paramsPrepareParamsStack by default exist ? Upsss once again, paramsPrepareParamsStack exist and already contain staticParams interceptor You can also use defaultStack. Regards -- Lukasz http://www.lenart.org.pl/ -

Re: [s2] Problem with redirection

2008-07-01 Thread Milan Milanovic
/2.0.11.2/docs/interceptors.html > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >

Re: [s2] Problem with redirection

2008-07-01 Thread Lukasz Lenart
> > > >showChanges >/second > > Add staticParamIntreceptor [1] or use paramsPrepareParamsStack [2] and define result like that second /secondparam> true ${id} [1] http://struts.apache.org/2.0.11.2

[s2] Problem with redirection

2008-07-01 Thread Milan Milanovic
Hi, I have one problem with redirection. In my .jsp page which is backed by MyFirstAction class I have following link: // here is iterator Change and this "change" action is defined for another action class in struts.xml,

Re: redirection problem

2008-03-15 Thread Martin Gainty
ide //some dojo javascript to test client functionality.. var headers=http.getAllResponseHeaders(); var ret={}; ret.toString=function() { return headers; }; var key_value=headers.split(/[\r\n]+/g); for(var i=0;i To: "Struts Users Mailing List" Sent: Saturday, March 15, 2008 5:50 AM Subject:

Re: redirection problem

2008-03-15 Thread Jeromy Evans
k on a or a tag, my interceptor catches the request, sees that I am not logged in anymore, and does the redirection towards the login page ... inside the div specified as a target ! I understand very well this matter, and it's all too logical. Nevertheless, I've been turning this issue

redirection problem

2008-03-14 Thread matthieu martin
anchor tags to do that. Those tags use the "targets" parameter to know which part of the page is to be refreshed. And here is my problem : I click on a or a tag, my interceptor catches the request, sees that I am not logged in anymore, and does the redirection towards the login page

Differentiate Redirection of page if validator fails and action property setter fails.

2008-02-19 Thread neha bhatt
teger variable 'page' in my UserAction file. I use- form 'Get' method for page selection. now if user change from http://localhost:8080/Isp/User?page=1 to http://localhost:8080/Isp/User?page=anyNonNumeric it redirects to 'UserDetail' page. as it setPage() fails. I wa

RE: action redirection

2007-05-28 Thread Dave Newton
--- Ashuin Sharma Chamorro wrote: > Im in struts 1.2.9 . Oh. What Oguz said then :) d. Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out

Re: action redirection

2007-05-28 Thread Oguz Kologlu
D] Sent: Monday, May 28, 2007 5:33 PM To: Struts Users Mailing List Subject: Re: action redirection http://struts.apache.org/2.x/docs/redirect-result.html --- Ashuin Sharma Chamorro <[EMAIL PROTECTED]> wrote: Is it possible to redirect the application to another context from the struts-conf

RE: action redirection

2007-05-28 Thread Ashuin Sharma Chamorro
Im in struts 1.2.9 . -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 5:33 PM To: Struts Users Mailing List Subject: Re: action redirection http://struts.apache.org/2.x/docs/redirect-result.html --- Ashuin Sharma Chamorro <[EMAIL PROTEC

Re: action redirection

2007-05-28 Thread Dave Newton
http://struts.apache.org/2.x/docs/redirect-result.html --- Ashuin Sharma Chamorro <[EMAIL PROTECTED]> wrote: > Is it possible to redirect the application to > another context from the > struts-config.xml > > > > > > I have tried this and it doesent work, it says path > need to start with

action redirection

2007-05-28 Thread Ashuin Sharma Chamorro
Is it possible to redirect the application to another context from the struts-config.xml I have tried this and it doesent work, it says path need to start with /. How can I do this? Is there a workaround? Please help. Ashuin Sharm

Re: [S2] JAAS & redirection

2007-03-30 Thread James Mitchell
page that doesn't have any Struts tags in it. Not sure what else to tell you. -- James Mitchell http://jamesmitchell.us On Mar 29, 2007, at 10:43 AM, Pascal Lalonde wrote: This looks logic, but it's tomcat that handles the redirection to the JSP right ? So how control that it will g

Re: [S2] JAAS & redirection

2007-03-30 Thread Pascal Lalonde
londe wrote: This looks logic, but it's tomcat that handles the redirection to the JSP right ? So how control that it will get through the Filter ? James Mitchell wrote: Right. That's what I meant when referring to the mailreader welcome page. That page only uses the text, url, and

Re: [S2] JAAS & redirection

2007-03-29 Thread James Mitchell
at handles the redirection to the JSP right ? So how control that it will get through the Filter ? James Mitchell wrote: Right. That's what I meant when referring to the mailreader welcome page. That page only uses the text, url, and anchor (a) tags, so it should not care that the

Re: [S2] JAAS & redirection

2007-03-29 Thread Pascal Lalonde
This looks logic, but it's tomcat that handles the redirection to the JSP right ? So how control that it will get through the Filter ? James Mitchell wrote: Right. That's what I meant when referring to the mailreader welcome page. That page only uses the text, url, and anchor (a) t

Re: [S2] JAAS & redirection

2007-03-29 Thread James Mitchell
Right. That's what I meant when referring to the mailreader welcome page. That page only uses the text, url, and anchor (a) tags, so it should not care that there was no stack available (not having gone through an action first). I suppose the answer to all of this is simply to make sure t

Re: [S2] JAAS & redirection

2007-03-29 Thread Pascal Lalonde
Us we have only elements. Prviously, with webwork, those tags were not problematic and we were also applying the decorator manually. James Mitchell wrote: I was getting the same error when trying to use a form () in a jsp without first going through an action in my app. ActuallyI just

Re: [S2] JAAS & redirection

2007-03-28 Thread James Mitchell
I was getting the same error when trying to use a form (>) in a jsp without first going through an action in my app. ActuallyI just fired up tomcat with the mailreader deployed. Going directly to the welcome jsp: http://localhost:8080/struts2-mailreader/Welcome.jsp java.lang.NullPoin

[S2] JAAS & redirection

2007-03-28 Thread Pascal Lalonde
Hi, We are currently trying to update from webwork to struts 2.0.6, everything looks fine except one thing. The application is deployed into JBoss 4.0.4 and JAAS is enabled into our web.xml configuration file. So when trying to access the secure namespace, it does its check and finds out

Re: [URGEN] Validation in Action and using redirection to view result page :(

2006-04-14 Thread 王曾wang_zeng
You worry too much! You can use forward. Even if the user refresh the page when the url dosen't corresponds to the current page, no big problem will occur. the IE will resend the data that is collected from the previous page to the server. The only thing will happen is the error-messages showing pa

Re: [URGEN] Validation in Action and using redirection to view result page :(

2006-04-13 Thread Pham Anh Tuan
oh, thank you for your help, I will try to use it, again, thank you :) - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, April 12, 2006 7:03 PM Subject: Re: [URGEN] Validation in Action and using r

Re: [URGEN] Validation in Action and using redirection to view result page :(

2006-04-12 Thread Michael Jouravlev
.ProcessRegistration" scope="request" >validate="false"> > > > > > > as you saw, whether or not this registration process is successfull, I want > the use back to the info page (/rw/gotoInfoPage.do), if there's any er

Re: [URGEN] Validation in Action and using redirection to view result page :(

2006-04-12 Thread Adam Hardy
ll be showed in the info page. I read Struts document, and it said that, when I use redirection in forward tag, it means all values which I saved in request scope will be empty, but ... If I don't use redirection in forward tag (to forward to the info page - "/rw/gotoInfoPage"), us

[URGEN] Validation in Action and using redirection to view result page :(

2006-04-11 Thread Pham Anh Tuan
e. I read Struts document, and it said that, when I use redirection in forward tag, it means all values which I saved in request scope will be empty, but ... If I don't use redirection in forward tag (to forward to the info page - "/rw/gotoInfoPage"), user will see url: /rw/process

Re: Redirection

2006-01-07 Thread Niall Pemberton
nd "location" header. Currently you would have to create your own custom RequestProcessor to achieve this and override the processForwardConfig() method to do this. Not sure about "isPermanent" - looks like there are a number of "redirection" status codes according to the

Re: Redirection

2006-01-07 Thread Dakota Jack
Hi, Eric, I think you have to go back through the code and find out where the status codes are handled. I have to admit that I don't know. If someone else does, this would be great information to have. This is an interesting problem and one that I always put on the back burner. Maybe now is th

Re: Redirection

2006-01-07 Thread Eric Jain
Mark Lowe wrote: Not sure if i've understood what you're after, but you can just write to the reponse (as you would in a normal servlet) and return null for you action forward. Your webapp configuration will do the rest from there like with any webapp. Yes, that's a solution. On the other hand

Re: Redirection

2006-01-07 Thread Mark Lowe
Not sure if i've understood what you're after, but you can just write to the reponse (as you would in a normal servlet) and return null for you action forward. Your webapp configuration will do the rest from there like with any webapp. On 1/7/06, Eric Jain <[EMAIL PROTECTED]> wrote: > Is there any

Redirection

2006-01-07 Thread Eric Jain
Is there any way I could get an ActionForward to do permanent (301) rather than temporary (302) redirects? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]