[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    Re: JSp dynamic include in tomcat 8.0.15
From:       "Terence M. Bandoian" <terence () tmbsw ! com>
Date:       2015-01-26 20:03:00
Message-ID: 54C69D74.1070509 () tmbsw ! com
[Download RAW message or body]

On 1/25/2015 4:23 PM, Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Srikanth,
>
> On 1/24/15 12:03 AM, Srikanth Hugar wrote:
>> When i include <jsp:include page="/WEB-INF/......../countries.jsp"
>> />
>>
>> It does not work in tomcat 8.0.15.
> I think there are too many dots in there. It that just an example?
>
> What do you mean "it does not work"?
>
>> and my included jsp file contents are something like :
>>
>> <div class="txt"> <form:select path="country"> <form:option
>> value="US" label="US - UNITED STATES OF AMERICA" />
>> ...............................................................................
>>
>>
> </form:select>
>> </div>
>>
>>
>> What could be the problem?
> That depends on what happens when you try the above.
>
> I'm not a JSP expert, but you might need to use "<%@ include" instead
> of <jsp:include> if you want to include files from within /WEB-INF/.
>
> - -chris


 From the JavaServer Pages Specification:

The <%@ include file=... %> directive is processed at translation time.  
The included content is parsed by the JSP container.  Only static 
content may be included.  The file attribute is interpreted relative to 
the current JSP file.

The <jsp:include page=... /> action is processed at request time.  The 
included content is not parsed.  Static and dynamic content may be 
included.  The page attribute is interpreted relative to the current JSP 
page.

-Terence Bandoian


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic