You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2003/02/06 19:33:02 UTC
forwarding request parameters to jsp
Hi,
I have this kind of setup,
myjsp -- > MyAction--> newjsp
in my jsp i have some code like this
I want to open my newjsp in popup window, so i dont
want myjs to be submitted.
MyAction.do?param=input1¶m=input2
in my Action class i do some logic and on success
forward the request to newjsp
I want to forward the input parameters to newjsp
so how can i do it,
just put them in request or do some thing else
so i need anything extra to setup in struts-config
=====
A$HI$H
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: forwarding request parameters to jsp
Posted by Ashish Kulkarni <ku...@yahoo.com>.
hi, i was able to get around that
thanx for the help
Ashish
--- James Mitchell <jm...@apache.org> wrote:
> Ok, well, the request will live from myjsp through
> your action and into
> newjsp (unless redirect="true").
>
> So, it sounds like you need help getting the
> parameters passed. Is this
> correct?
>
>
> --
> James Mitchell
>
>
>
>
>
> ----- Original Message -----
> From: "Ashish Kulkarni" <ku...@yahoo.com>
> To: "Struts Users Mailing List"
> <st...@jakarta.apache.org>
> Sent: Thursday, February 06, 2003 3:17 PM
> Subject: Re: forwarding request parameters to jsp
>
>
> > Hi,
> > There is one button on myjsp, when the user clicks
> > this button, i want to submit request to MyAction,
> > with some parameters, this MyAction will then open
> a
> > new jsp, i want to forward the parameters send by
> > myjsp to newjsp via MyAction
> >
> > Ashish
> > --- James Mitchell <jm...@apache.org> wrote:
> > > Please explain this further, I'm reading about 3
> > > different interpretations
> > > from this.
> > >
> > > Which is it?
> > >
> > > 1. User fills out myjsp and clicks a link, which
> > > opens a popup to
> > > MyAction (which eventually ends with newjsp)?
> > >
> > > 2. When user submits myjsp to MyAction, I want
> to
> > > display newjsp in
> > > a popup
> > >
> > > 3. User submits myjsp to a popup
> > >
> > >
> > > --
> > > James Mitchell
> > >
> > >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Ashish Kulkarni"
> <ku...@yahoo.com>
> > > To: <st...@jakarta.apache.org>
> > > Sent: Thursday, February 06, 2003 1:33 PM
> > > Subject: forwarding request parameters to jsp
> > >
> > >
> > > > Hi,
> > > > I have this kind of setup,
> > > > myjsp -- > MyAction--> newjsp
> > > >
> > > > in my jsp i have some code like this
> > > > I want to open my newjsp in popup window, so i
> > > dont
> > > > want myjs to be submitted.
> > > >
> > > > MyAction.do?param=input1¶m=input2
> > > >
> > > > in my Action class i do some logic and on
> success
> > > > forward the request to newjsp
> > > > I want to forward the input parameters to
> newjsp
> > > > so how can i do it,
> > > > just put them in request or do some thing else
> > > > so i need anything extra to setup in
> struts-config
> > > >
> > > >
> > > >
> > > > =====
> > > > A$HI$H
> > > >
> > > >
> __________________________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! Mail Plus - Powerful. Affordable. Sign
> up
> > > now.
> > > > http://mailplus.yahoo.com
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > struts-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > struts-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > struts-user-help@jakarta.apache.org
> > >
> >
> >
> > =====
> > A$HI$H
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> > http://mailplus.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> >
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
=====
A$HI$H
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: forwarding request parameters to jsp
Posted by James Mitchell <jm...@apache.org>.
Ok, well, the request will live from myjsp through your action and into
newjsp (unless redirect="true").
So, it sounds like you need help getting the parameters passed. Is this
correct?
--
James Mitchell
----- Original Message -----
From: "Ashish Kulkarni" <ku...@yahoo.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, February 06, 2003 3:17 PM
Subject: Re: forwarding request parameters to jsp
> Hi,
> There is one button on myjsp, when the user clicks
> this button, i want to submit request to MyAction,
> with some parameters, this MyAction will then open a
> new jsp, i want to forward the parameters send by
> myjsp to newjsp via MyAction
>
> Ashish
> --- James Mitchell <jm...@apache.org> wrote:
> > Please explain this further, I'm reading about 3
> > different interpretations
> > from this.
> >
> > Which is it?
> >
> > 1. User fills out myjsp and clicks a link, which
> > opens a popup to
> > MyAction (which eventually ends with newjsp)?
> >
> > 2. When user submits myjsp to MyAction, I want to
> > display newjsp in
> > a popup
> >
> > 3. User submits myjsp to a popup
> >
> >
> > --
> > James Mitchell
> >
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "Ashish Kulkarni" <ku...@yahoo.com>
> > To: <st...@jakarta.apache.org>
> > Sent: Thursday, February 06, 2003 1:33 PM
> > Subject: forwarding request parameters to jsp
> >
> >
> > > Hi,
> > > I have this kind of setup,
> > > myjsp -- > MyAction--> newjsp
> > >
> > > in my jsp i have some code like this
> > > I want to open my newjsp in popup window, so i
> > dont
> > > want myjs to be submitted.
> > >
> > > MyAction.do?param=input1¶m=input2
> > >
> > > in my Action class i do some logic and on success
> > > forward the request to newjsp
> > > I want to forward the input parameters to newjsp
> > > so how can i do it,
> > > just put them in request or do some thing else
> > > so i need anything extra to setup in struts-config
> > >
> > >
> > >
> > > =====
> > > A$HI$H
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > > http://mailplus.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > struts-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > struts-user-help@jakarta.apache.org
> >
>
>
> =====
> A$HI$H
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: forwarding request parameters to jsp
Posted by Ashish Kulkarni <ku...@yahoo.com>.
Hi,
There is one button on myjsp, when the user clicks
this button, i want to submit request to MyAction,
with some parameters, this MyAction will then open a
new jsp, i want to forward the parameters send by
myjsp to newjsp via MyAction
Ashish
--- James Mitchell <jm...@apache.org> wrote:
> Please explain this further, I'm reading about 3
> different interpretations
> from this.
>
> Which is it?
>
> 1. User fills out myjsp and clicks a link, which
> opens a popup to
> MyAction (which eventually ends with newjsp)?
>
> 2. When user submits myjsp to MyAction, I want to
> display newjsp in
> a popup
>
> 3. User submits myjsp to a popup
>
>
> --
> James Mitchell
>
>
>
>
>
> ----- Original Message -----
> From: "Ashish Kulkarni" <ku...@yahoo.com>
> To: <st...@jakarta.apache.org>
> Sent: Thursday, February 06, 2003 1:33 PM
> Subject: forwarding request parameters to jsp
>
>
> > Hi,
> > I have this kind of setup,
> > myjsp -- > MyAction--> newjsp
> >
> > in my jsp i have some code like this
> > I want to open my newjsp in popup window, so i
> dont
> > want myjs to be submitted.
> >
> > MyAction.do?param=input1¶m=input2
> >
> > in my Action class i do some logic and on success
> > forward the request to newjsp
> > I want to forward the input parameters to newjsp
> > so how can i do it,
> > just put them in request or do some thing else
> > so i need anything extra to setup in struts-config
> >
> >
> >
> > =====
> > A$HI$H
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> > http://mailplus.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> >
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
=====
A$HI$H
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: forwarding request parameters to jsp
Posted by James Mitchell <jm...@apache.org>.
Please explain this further, I'm reading about 3 different interpretations
from this.
Which is it?
1. User fills out myjsp and clicks a link, which opens a popup to
MyAction (which eventually ends with newjsp)?
2. When user submits myjsp to MyAction, I want to display newjsp in
a popup
3. User submits myjsp to a popup
--
James Mitchell
----- Original Message -----
From: "Ashish Kulkarni" <ku...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Thursday, February 06, 2003 1:33 PM
Subject: forwarding request parameters to jsp
> Hi,
> I have this kind of setup,
> myjsp -- > MyAction--> newjsp
>
> in my jsp i have some code like this
> I want to open my newjsp in popup window, so i dont
> want myjs to be submitted.
>
> MyAction.do?param=input1¶m=input2
>
> in my Action class i do some logic and on success
> forward the request to newjsp
> I want to forward the input parameters to newjsp
> so how can i do it,
> just put them in request or do some thing else
> so i need anything extra to setup in struts-config
>
>
>
> =====
> A$HI$H
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RES: Sub-Application action mappring
Posted by Julio Cesar C Neto <ju...@softsite.com.br>.
Hi,
I think i´ve figured out: override the processMapping in the
requestProcessor, and do the search. Right? (yes!....)
Thank you,
Julio Cesar
-----Mensagem original-----
De: Julio Cesar C Neto [mailto:julio@softsite.com.br]
Enviada em: quinta-feira, 6 de fevereiro de 2003 16:07
Para: 'Struts Users Mailing List'
Assunto: Sub-Application action mappring
Hi,
I have an application /x and a sub-application /x/y. Supposing i´m in
the /x/y application, is there anyway to struts search in the
struts-config.xml of the /x application if he doesn´t find the action
mapping in the /x/y?
For example: I´m in the sub-application /x/y and i´m looking for a
action mapping called "something.do", but this mapping does not exist in
the action mapping of the sub-application /x/y, just in the action
mapping of application /x. Can struts search in other action mapping
(application /x, for example), if he did not find the mapping in the
current sub-application(sub-application /x/y)?
Thank you,
Julio Cesar
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Sub-Application action mappring
Posted by Julio Cesar C Neto <ju...@softsite.com.br>.
Hi,
I have an application /x and a sub-application /x/y. Supposing i´m in
the /x/y application, is there anyway to struts search in the
struts-config.xml of the /x application if he doesn´t find the action
mapping in the /x/y?
For example: I´m in the sub-application /x/y and i´m looking for a
action mapping called "something.do", but this mapping does not exist in
the action mapping of the sub-application /x/y, just in the action
mapping of application /x. Can struts search in other action mapping
(application /x, for example), if he did not find the mapping in the
current sub-application(sub-application /x/y)?
Thank you,
Julio Cesar
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org