This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android 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: 63053

Please do not post the same question more than once.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: setting HTML element value using JSP scriptlet
It's not a secret anymore!