Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JRun 3.0 Config Object  RSS feed

 
Erik Pragt
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I have a simple question, I think, but unfortunately I don't know the answer. I want to read some variables using a JSP page from the config object using config.getInitParameters(). Now my question is:
How do I set them, in which file???
Thanks in Advance,
Erik
 
Kalaiselvan Selvamani
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii,
U Just add these code ur Web.XML which is in /WEB-INF/ directroy.
<context-param>
<param-name>uploadexceldir</param-name>
<param-value>uploadexcel/</param-value>
<description>Upload Excel Directory</description>
</context-param>
in ur jsp, us just call
getServletContext().getInitParameter("uploadexceldir") this return String.
If u are using JRUN3.1
getServletInfo().getServletContext().getInitParameter("uploadexceldir")
Regards
Kalaiselvan.S
 
Erik Pragt
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! This is what I needed!
Erik
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!