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.
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
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
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
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
&
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
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
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
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
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
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
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
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 {
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
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
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
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
/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
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.
-
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/
-
/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]
>
>
>
>
>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
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,
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:
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
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
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
--- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.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
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
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
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
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
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
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
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]
50 matches
Mail list logo