• Post Reply Bookmark Topic Watch Topic
  • New Topic

${base} value from xml in jsp

 
praveen sharma
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a xml file inside that xml there are few elements
<code>
<var base="Image"/>
<elem>${base}/abc</elem>
</code>


i wanted to knew how can i access the base value as image in jsp is it expression tag .
This thing is also present in validation.xml in struts.

Your feedback will be highly appreciated

Praveen Sharma
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parse the XML with a class that is called by your servlet. Return the base value to the servlet. Attach the result in a request attribute and display it to the user. Is that what you are looking for ?
 
praveen sharma
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying .

but what i wanted is i want to make a configuration xml file
where user can set his setting and then i want to convert
those setting into a simple javascript file.

So as per your reply you are saying that first i
have to parse the XML file and then convert
those $(base) with its respected value.

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This doesn't seem to have much to do with JSP. You aren't planning on putting this processing in a JSP, are you?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!