Or you can use use EL version

<h1>${applicationScope.param-one}<h1>

On Jul 13, 8:11 pm, Karlo <jkhernan...@gmail.com> wrote:
> Hello,
>
> I guess this is what are you looking for ...
>
> web.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app id="WebApp_ID" version="2.4"
>     xmlns="http://java.sun.com/xml/ns/j2ee";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
>
>         <display-name>web-test</display-name>
>
>         <context-param>
>                 <param-name>param-one</param-name>
>                 <param-value>param-one value</param-value>
>         </context-param>
>
>         <welcome-file-list>
>                 <welcome-file>index.jsp</welcome-file>
>         </welcome-file-list>
>
> </web-app>
>
> jsp retrieving the context parameter
>
> <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
>     pageEncoding="ISO-8859-1"%>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
> "http://www.w3.org/TR/html4/loose.dtd";>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1">
> <title>Testing</title>
> </head>
> <body>
>         <h1> param-one </h1>
>         <h2><%= application.getInitParameter("param-one") %></h2>
> </body>
> </html>
>
> I hope this can be useful.
>
> Regards
> Karlo
>
> On 9 jul, 23:37, "Nelson Rodrigo - LHQ"
>
>
>
> <nelson.rodr...@loadstarlk.com> wrote:
> > Dear Friends
>
> > Can you please give me some clue or samples for read web.xml  parameters
> > from jsp file
>
> > Nelson Rodrigo
> > Staff Officer - Software Development
> > LOADSTAR (PRIVATE) LIMITED
> > Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> > 6556
>
> > P SAVE PAPER  - Please consider our environment before printing *

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to