Or you could do it with a link (can be outside of a html:form)

<bean:define id="myId"><%= request.getParmeter("whatever") %></bean:define>
<html:link action="myAction" paramId="myReport" 
paramName="myId">test</html:link>

This would generate:

<a href="/myAction.do?myReport=5">test</a>

Leon Rosenberg wrote:

1) yes, but then you can't use struts form-tags, otherwise no.

2) yes, if it's part of the action form.

regards
Leon


On Wed, 2005-08-03 at 06:01 -0700, EROL TEZCAN wrote:

It works fine. And two question :)
Can we add request parameters to url directly without using hidden tag?

Can we use <html:hidden> instead of <input type="hidden"> tag?

Thank you Leon.


Leon Rosenberg <[EMAIL PROTECTED]> wrote:
i thought you would make the last point alone...
[input] "/>

regards
leon


On Wed, 2005-08-03 at 05:30 -0700, EROL TEZCAN wrote:

myId="5" is dynamic. Its value can be changed.

It is not working.


Leon Rosenberg wrote:
[input] in your form.

On Wed, 2005-08-03 at 05:13 -0700, EROL TEZCAN wrote:

Hi ,

I have a simple question.

In a report page, I give a link on every record to show detail with this code: 
(for example)

"myAction.do?myId=5"

Detail page is shown without any problem. When I submit this form to same 
action, I cannot add myId parameter to myAction.do

Normally I can get myId parameter with jsp scriptlet like this.



Also I can get it with and show with How should I add, myId request parameter to action? It is not working this code ">

I dont want to set "myId" parameter to session object.

How can I add request parameters come from url to action?

Thanks,


Erol




---------------------------------
Start your day with Yahoo! - make it your home page



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


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com



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


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com




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


--
Gareth Evans

MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
Cheshire
CH65 3EN

--
Tel:    +44 (0)870 0100 704
Fax:    +44 (0)870 9010 705
E-Mail: [EMAIL PROTECTED]
Web:    www.msoft.co.uk

----------------------------------------------
Terms:
Please note that any prices quoted within this e-mail are subject to VAT.
All program details and code described in this e-mail are subject to
copyright © of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
----------------------------------------------
Disclaimer:
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for viruses,
so please scan attachments. Views expressed in this message do not
necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.


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

Reply via email to