File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes how good it is to use html:hidden Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how good it is to use html:hidden" Watch "how good it is to use html:hidden" New topic

how good it is to use html:hidden

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

May I know how good it is to use html:hidden to use very often in order to show the entered data in the privious pages as after clicking the my own back button implemented using struts.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
There's nothing wrong with using this technique to transfer information from one page to the next as long as you remember the following:
  • Never use it for sensitive information such as a credit card number or a price. It can be read by anyone who knows how to use the "view source" function and it can also be "spoofed", meaning someone could create a copy-cat HTML page and substitue the correct data with incorrect data.
  • Putting a huge amount of data in hidden fields is going to slow down the response time as all that data has to go back and forth over the network.

  • Merrill
    Consultant, Sima Solutions
    I agree. Here's the link:
    subject: how good it is to use html:hidden
    jQuery in Action, 3rd edition