I think you are asking two different questions. My answer of using
wildcards -
http://struts.apache.org/userGuide/building_controller.html#action_mapping_wildcards
- allows you to embed information into the URL itself. Your
viewReport/* would allow that action mapping to match viewReport/temp
for example. The {1} notation tells Struts to replace the {1} with
the first wildcard-matched value, "temp", in this example. You would
access this value by calling mapping.getParameter() within your
Action.
Don
On Tue, 22 Mar 2005 09:38:27 +0530, Mili Aggarwal, Noida
<[EMAIL PROTECTED]> wrote:
>
>
> Hello All,
>
> I would like to ask the same question :
>
> If in my JSP I have :
>
> <html:form action="/viewReport.do?param=temp" method="GET" target="_blank"
> >
>
> Can you tell me how to pass this parameters in form using a querystring in
> Struts?
>
> What will be corresponding mapping in struts confog.xml?
>
> Presently,I have it:
> <action path="/viewReport/*" parameter="{1}" <--- What does this {1} stand
> for???????/
>
> Awaiting reply :-)
>
> Warm Regards,
> Mili Aggarwal
>
>
> -----Original Message-----
> From: Don Brown [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 22, 2005 3:19 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: Rewrite with Struts?
>
> Use wildcards:
>
> <action path="action/*" parameter="{1}" />
>
> Then, use a prefix mapping in your web.xml rather than the .do suffix.
>
> Don
>
> On Mon, 21 Mar 2005 21:23:51 +0100, Bernd Schiffer
> <[EMAIL PROTECTED]> wrote:
> > Hi.
> >
> > I have a Struts webapp which can be called by
> > DOMAIN/action.do?param=value . Is there a way to call it by
> > DOMAIN/action/value ? I know how to do with httpd's mod_rewrite, but I'm
> > looking for doing the same within my webapp.
> >
> > Bernd
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]