File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes setting HTML element value using JSP scriptlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

setting HTML element value using JSP scriptlet

Abhishekshri Shrivastava
Ranch Hand

Joined: Jan 13, 2011
Posts: 31

using JAVA SCRIPTLETS on reload of the JSP page, i wann to set the value for various html elements present on the JSP page.
i don't wann to USE java scripts or expression tags.

I have element names and their values. (i have all the values in session variable).
please give me a sample program.You can take a hardcoded value.

:abhishek shrivastava

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63552

Please do not post the same question more than once.

[Asking smart questions] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: setting HTML element value using JSP scriptlet
It's not a secret anymore!