Hello,

That is an alternative for sure but isnt there a way to use wild card in the
struts config? Actually,the following link is helpful but is not working at
my end:

http://struts.apache.org/userGuide/building_controller.html#action_mapping_w
ildcards

The reason I want to use wildchar is because I want to generate the temp
part in the querystring randomly.... there are no fixed values:

<html:form  action="/edit/temp" 

This temp can be anything. But /edit will remain same...



Warm Regards,
Mili Aggarwal

----------------------------------------------------------------------------
-----------------------------DISCLAIMER-------------------------------------
----------------------------------------------------------------------------
---------

This message and any attachment(s) contained here are information that is
confidential, proprietary to HCL Technologies and its customers. Contents
may be privileged or otherwise protected by law. The information is solely
intended for the individual or the entity it is addressed to. If you are not
the intended recipient of this message, you are not authorized to read,
forward, print, retain, copy or disseminate this message or any part of it.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and delete it from your computer.




-----Original Message-----
From: Rajaneesh [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 9:57 AM
To: 'Struts Users Mailing List'
Subject: RE: Configuring action path

Use the same form "name" for both action mapping in the sturts config.  Hope
that helps.

<action path="/edit/temp1"
type="....."
name="edit"
scope="request"
validate="true"
input="xyz.jsp">
<forward ....blah blah.... />
</action>

<action path="/edit/temp2"
type="....."
name="edit"
scope="request"
validate="true"
input="xyz1.jsp">
<forward ....blah blah.... />
</action>

-----Original Message-----
From: Mili Aggarwal, Noida [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 22, 2005 9:50 AM
To: Struts Users Mailing List
Subject: Configuring action path


Hello All,
        I my module I have various jsp with action as
<html:form  action="/edit/temp1" ....
Another jsp with

<html:form  action="/edit/temp2" ....

Now I want all these jsp's be mapped to the same Action form -> edit.java

How should the corresponding mapping be done in Struts config?

When I use:
<action path="/edit/*" type="      .....

It throws an error that no mapping found...

Any ideas?

Awaiting a reply




Disclaimer:

This message and any attachment(s) contained here are information that is
confidential,proprietary to HCL Technologies and its customers, privileged
or otherwise protected by law.The information is solely intended for the
individual or the entity it is addressed to. If you are not the intended
recipient of this message, you are not authorized to read, forward,
print,retain, copy or disseminate this message or any part of it. If you
have received this e-mail in error, please notify the sender immediately by
return e-mail and delete it from your computer.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Disclaimer: 

This message and any attachment(s) contained here are information that is
confidential,proprietary to HCL Technologies and its customers, privileged
or otherwise protected by law.The information is solely intended for the
individual or the entity it is addressed to. If you are not the intended
recipient of this message, you are not authorized to read, forward,
print,retain, copy or disseminate this message or any part of it. If you
have received this e-mail in error, please notify the sender immediately by
return e-mail and delete it from your computer.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to