Re: Override form action URL

2004-06-09 Thread Niall Pemberton
Its context relative...from the user guide...

"action - Use the value of this attribute as the name of a Action to be
looked up, and use the module-relative or context-relative URI found there.
"

http://jakarta.apache.org/struts/userGuide/struts-html.html#link

Niall

- Original Message - 
From: "Eric Jain" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 3:20 PM
Subject: Re: Override form action URL


> > If so you can define a dummy action to which your form points. In the
> > dummy just forward to your actual action. In the rendered jsp/html page
> > you will see the dummy action.
>
> Thanks, unfortunately the example I gave was somewhat simplified. I'd
> rather avoid having to configure dozens of dummy actions. Furthermore,
> Struts will insist that actions mapped to nested paths be put in their
> own subapplications. And finally, the following mapping would not be
> possible:
>
>/test/a/ -> /test/search?dataset=a
>/test/a/1 -> /test/retrieve?id=1
>
> In the end, as far as I can see, all I need is a way to override the URL
> that is generated by the html:form tag. I just opened a feature request,
> see http://issues.apache.org/bugzilla/show_bug.cgi?id=29363.
>
> -
> 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]



Re: Override form action URL

2004-06-09 Thread Niall Pemberton
Assuming you could do this, how then does struts know when you submit to
"/test/a/" what action to run and for what reason "would like to avoid
exposing the action URL"?

Niall

- Original Message - 
From: "Eric Jain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 11:25 AM
Subject: Override form action URL


> I have:
>
> 
>
>
> 
>
> which generates:
>
> 
>
>
> 
>
> This works, but I would like to avoid exposing the action URL and return
> this instead:
>
> 
>
> 
>
> There is a servlet filter that will internally forward '/test/a/' to
> '/test/search?dataset=a'.
>
> An obvious solution would be:
>
> 
>
> 
>
> Unfortunately this does not work as the html:text tag looks for a scoped
> attribute that is set by the html:form tag.
>
> Is there an alternative to html:form, that sets the same attributes,
> but does not print anything?
>
> 
>
>  
>
> 
>
> Or could the generated action URL be overridden somehow?
>
> 
>
> 
>
> There must be a way...
>
>
>
> -
> 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]



Re: Override form action URL

2004-06-03 Thread Eric Jain
If so you can define a dummy action to which your form points. In the 
dummy just forward to your actual action. In the rendered jsp/html page 
you will see the dummy action.
Thanks, unfortunately the example I gave was somewhat simplified. I'd 
rather avoid having to configure dozens of dummy actions. Furthermore, 
Struts will insist that actions mapped to nested paths be put in their 
own subapplications. And finally, the following mapping would not be 
possible:

  /test/a/ -> /test/search?dataset=a
  /test/a/1 -> /test/retrieve?id=1
In the end, as far as I can see, all I need is a way to override the URL 
that is generated by the html:form tag. I just opened a feature request, 
see http://issues.apache.org/bugzilla/show_bug.cgi?id=29363.

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


Re: Override form action URL

2004-06-03 Thread brati . sankarghosh

I donot know whether I have understood
this properly but are you trying to mask your actual action mapping?
If so you can define a dummy action
to which your form points. In the dummy just forward to your actual action.
In the rendered jsp/html page you will see the dummy action.

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





Eric Jain <[EMAIL PROTECTED]>

06/03/2004 03:55 PM




Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
[EMAIL PROTECTED]


cc



Subject
Override form action URL








I have:


   
   


which generates:


   
   


This works, but I would like to avoid exposing the action URL and return
this instead:


   


There is a servlet filter that will internally forward '/test/a/' to
'/test/search?dataset=a'.

An obvious solution would be:


   


Unfortunately this does not work as the html:text tag looks for a scoped
attribute that is set by the html:form tag.

Is there an alternative to html:form, that sets the same attributes,
but does not print anything?


   
     
   


Or could the generated action URL be overridden somehow?


   


There must be a way...



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


ForwardSourceID:NTA926
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

Override form action URL

2004-06-03 Thread Eric Jain
I have:

  
  

which generates:

  
  

This works, but I would like to avoid exposing the action URL and return
this instead:

  

There is a servlet filter that will internally forward '/test/a/' to
'/test/search?dataset=a'.
An obvious solution would be:

  

Unfortunately this does not work as the html:text tag looks for a scoped
attribute that is set by the html:form tag.
Is there an alternative to html:form, that sets the same attributes,
but does not print anything?

  

  

Or could the generated action URL be overridden somehow?

  

There must be a way...

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