This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes setProperty question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "setProperty question" Watch "setProperty question" New topic
Author

setProperty question

Harsha Jay
Ranch Hand

Joined: Jul 23, 2001
Posts: 177
How do you pass HTML form element as a value to the setProperty directive.
The value must a form element

<jsp:setProperty name="" value=""/>

Thanks
H
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

Please clarify. I have no idea what you are asking.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Harsha Jay
Ranch Hand

Joined: Jul 23, 2001
Posts: 177
Thanks for the reply

I am trying to stick in the document.form[0].somename.value to the value attribute in the jsp:setProperty directive
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

One is client-side and one is server-side. Or are you talking about after form submission?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: setProperty question