File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes html:hidden tag problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:hidden tag problem" Watch "html:hidden tag problem" New topic

html:hidden tag problem

Abdulla Mamuwala
Ranch Hand

Joined: Jan 09, 2004
Posts: 225
I am using a <html:hidden> tag in my jsp view,itis given below,
<b><html:hidden property="clientid" value="<%=client_iden%>"/></b>
the attribute <b>value</b> I obtain by using getParameter. But the property does not get set in the bean unless I use the following code,
<b><html:hidden property="clientid" />
<html:hidden property="clientid" value="<%=client_iden%>"/>

I just figured out the above code by trial and error. Why is it that I have to use <b><html:hidden property="clientid" /></b> for the setClientid()property to work.

I am confused please help.
I agree. Here's the link:
subject: html:hidden tag problem
Similar Threads
Javascript with Struts submit and iterate tags
Javascript Error
how to start an action from a link...
Error: According to TLD, tag html:hidden must be empty, but is not