Re: JSp dynamic include in tomcat 8.0.15

2015-01-26 Thread Terence M. Bandoian

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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JSp dynamic include in tomcat 8.0.15

2015-01-25 Thread Christopher Schultz
-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
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUxWztAAoJEBzwKT+lPKRYFWMP/1zd5tzdCmDXEc6nPHuAL8s0
d2726rQNGrCKuPVjWrZ9/2TJWhwLrP5ZYspH5STgL0wf4ja/Z0M4CFt4uw8nNNjT
btadOioVkNykElTAtEDQiL+ZNHh8pushE+CIh5twEzQoVRny1WNvN8IeKe/Sg/BZ
sa0qbQP1UhZ4Tcp+UO3esrxyLoyTLRx+/ZSGQlr7+7qpQCIR80z986f2QkALXVff
rgxzV3tcz+U4b05Vs41bE/BCSdcF5LqiUrGjaR61A53VkICpFpyrb1xU0kupKxNW
mq2Vvo7X2hyCNNbdSA/mCTovwKrx84q+uKcOVXzTPAu7S1+nSV6Q9eT8+sDlejro
zGdMZ6JZLdggPq2Cm5ecnhEOKIBgsYDAe/S34qmJLAjOCCysShvIW121Hvj01hb0
6c4l0hHRMErWcLgFIKvt7Wr4LYOVkMJ9dJV7UqUPILRoLPd3OYnnMAfTxV9sTuRF
mUga+V1SnuGiT9rDEndMDAwBSfLOg98pYWxDMSCuRGhSR5uMvSROWerEK51NQbTz
OanOU4ktfwXlA7LVJmlBi/1lMQ11Rb32SlX0Ev0StHRLj3LQOtFNC4kc3HYVMOt0
viXsa1sx0eOjtJ+e1Jv5mAaMvixB1N8hbS8r1NSo63XKaxoHQDZ4Aodpf+d7q+pr
ipZSRTiV3s25QPXOv8qb
=jE7/
-END PGP SIGNATURE-

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



JSp dynamic include in tomcat 8.0.15

2015-01-23 Thread Srikanth Hugar
When i include
jsp:include page=/WEB-INF//countries.jsp /


It does not work in tomcat 8.0.15.

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?