<html:link problem in struts>

Hi guys

Now I am creating a jsp page, form page and action class.

What i am facing the problem,

<html:text property="Address" />

<html:link action="/JspPages/info">

<bean:message key="Change"/></html:link>

When i click this link action i want to get that text box value.

Will you please tell me how to get that text box value when i click <html:link tag.

Please anyone help me.

Awaiting for your reply eagerly

Regards

Pooja>

[530 byte] By [sherin_poojaa] at [2007-11-27 2:05:41]
# 1
Have u mapped ur action "JspPages/info" to an action class?
mshanua at 2007-7-12 1:51:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi Shanu

I am creating Everything Properly.

Struts-config.xml

<action

name="InfoForm"

path="/JspPages/Info"

type="com.SysAction"

scope="session"

validate="false" >

<forward name="success" path="/JspPages/settRec.jsp"/>

</action>

And I am creating form and Action class everything i am creating properly.

When i click link action at that time i will get a textbox value. Pls this is urgent.

Note : Before I was creating <html:submit> button all the data's populated properly.

Regards

Pooja

sherin_poojaa at 2007-7-12 1:51:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
pooji ji..u have to submit the form to get the form values in ur action class..u can do one thing..<html:link action="javascript:document.yourFormName.submit()">Link Test</html:link>Try this..Message was edited by: mshanu
mshanua at 2007-7-12 1:51:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Excuse me Shanu

Struts-config.xml

<action

name="InfoForm"

path="/JspPages/Info"

type="com.action.InfoAction"

scope="session"

validate="false" >

<forward name="success"

path="/JspPages/setRec.jsp"/>

</action>

My Jsp Page

<html:form action="/JspPages/Info">

<html:text property="changeAddress"/>

<html:link action="javascript:document.InfoForm.submit()">

<bean:message key="ILMSysChange"/>

</html:link>

Please tell me, When i click this link button i want to get the text box value and it will come same jsp page.

Note : I am not creating the <html:form name like

><html:form action="/JspPages/Info" name = "setOne"> //Error Shows.

Please i was confused

Anyone help me pls

Regards

Pooja

sherin_poojaa at 2007-7-12 1:51:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

areee bosss..........

<html:form action="/JspPages/Info">

<html:text property="changeAddress"/>

<html:link action="javascript:document.InfoForm.submit()">

<bean:message key="ILMSysChange"/>

</html:link>

use this jsp and let me know what error are u getting when clicking the link?

mshanua at 2007-7-12 1:51:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...