File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with hidden field

 
rahul vasishta
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,


How to set the value of hidden field from Action class? I have JSP and Action class defined for the JSP Page. I havent defined the Form class for it.
Is it possible to set value for hidden filed and retrieve it on submit without having Form class defined for JSP Page?

-Rahul
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
without having Form class defined for JSP Page

This is a little confusing. In struts form classes are defined for Actions not JSP pages. There's a html:hidden tag which can be easily used for your requirement...

[After reading David's reply, I think I misunderstood the question , but I beat David by 10 seconds ]
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can always get values directly from the request, but... I'm not so sure that I would.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic