Using <html:link action="/MyAction">my action link</html:link> is probably better. This way you wont' have to worry about the context path of your application. <a href="MyAction.do"> might not work since the action is preceded by the context path. You would have to do something like:

<a href="${pageContext.request.contextPath}MyAction.do"> to achieve this.

Using <html:link> takes care of that.

Zarar Siddiqi


----- Original Message ----- From: "Nitesh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 16, 2005 1:20 AM
Subject: Re: another newbie


Map the action class in the struts config and have the link point to the
action
i.e. <a href="/MyAction.do"...

Nitesh
----- Original Message ----- From: "Anand Vijay" <[EMAIL PROTECTED]>
To: "Nitesh" <[EMAIL PROTECTED]>
Sent: Thursday, June 16, 2005 10:34 AM
Subject: Re: another newbie


Hi

Thanks for the help ...

How to invoke an action class if it is a link ?


Nitesh said the following on 16/06/2005 10:33 AM:

You could populate the combo independently using a logic:iterate tag in
the
JSP
Use a bean/helper to get the values as a collection and pass the same to
the
iterator.

alternate method is to have an action class before the control comes to
the
JSP where in you could get the collection. (Here also you need to use the
logic:iterate tag in the JSP)

HTH

Regards

Nitesh

----- Original Message ----- From: "Anand Vijay" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Wednesday, June 15, 2005 4:00 PM
Subject: another newbie


Hi All

I have a link in my application for user registration form . Form has
combo box that needs to be populated from database. How to achieve this?
Where do we write our bean to fetch the data?

Thanks in advance

Regards
Vijay

---------------------------------------------------------------------
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]





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

Reply via email to