Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJWCD
Search Coderanch
Advance search
Google search
Register / Login
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
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
Web Component Certification (OCEJWCD)
jsp init parameters
Sharma Anjali
Ranch Hand
Posts: 63
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i am trying to retreive init paramters in my
jsp
.
Here's the DD
<
servlet
>
<servlet-name>T</servlet-name>
<jsp-file>/A.jsp</jsp-file>
<init-param>
<param-name>email</param-name>
<param-value>
abc@zyz.com
</param-value>
</init-param>
</servlet>
and this is in the jsp page
<%= config.getInitParameter("email") %>
But this returns null.
Plz tell me where am I doing it wrong?
srinath anand
Ranch Hand
Posts: 30
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Anjali,
You need this in your web.xml also:
<servlet-mapping>
<servlet-name>T</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
SCJP2,SCWCD 1.4
I didn't say it. I'm just telling you what this tiny ad said.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to get jsp init params
init parameter from jsp
Why this code to get Init Param in JSP not work?
servlet initialization in JSP
Initializing JSP.
More...