• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Get value form struts.xml in a jsp

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi at all,
I don't know if it's the best aproach.
I need to get a variable( number version project's) to include in a jsp. I'm thinking about to put this var as a constant in struts.xml. But, How I do to get the value of this variable directly from jsp...

It's possible do this?


There's another alternative, without coding too much( touching the actions). The project is running, but we need to perform upgrade to put the number version at js name.



Many thanks, for your time.

PD: I'm using struts2
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just put it into the application context via web.xml--there's no need to do anything Struts-specific.
 
reply
    Bookmark Topic Watch Topic
  • New Topic