aspose file tools*
The moose likes JSP and the fly likes How to read the value of a nested tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to read the value of a nested tag" Watch "How to read the value of a nested tag" New topic
Author

How to read the value of a nested tag

Roshan Khandelwal
Ranch Hand

Joined: Apr 16, 2009
Posts: 35
Say like i have one textbox name="textbox1" and inside it i have another textbox... name="textbox2".. How can i read the value of the textbox2 in my servlet..?
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 298
Please, use real code, what do you really have?

What kind of tag? is a SimpleTag, a BodyTag, a .tag?

In any case you have to evaluate the body, depends on what you are using you will do it in one way or another.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

If by "textbox" you mean an <input> element of type "text", then it is not valid HTML to nest them.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to read the value of a nested tag