Re: Using the request object and EL

2004-04-12 Thread QM
On Mon, Apr 12, 2004 at 07:14:19AM -0400, John Trollinger wrote:
: 
: I have a jsp page that has the following code
: [snip]
:   request as EL: ${request.contextPath} br/
:   request using page context as EL:
: ${pageContext.request.contextPath} br/

You're using JSTL EL, but you're not closing those expressions in JSTL
tags.  That's the only way the page is going to know what you've
included is meant to be JSTL-style dynamic content.

btw, change request to requestScope inside JSTL EL.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using the request object and EL

2004-04-12 Thread John Trollinger
QM,

But the ${pageContext.request.contextPath} prints fine its only the
${request.contextPath} that does not display

And if I do a c:if ${empty request} it returns true but a c:if
${empty pageContext.request} returns false.

It is like I can get to the request through the page context just not
directly

john

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 9:44 AM
To: Tomcat Users List
Subject: Re: Using the request object and EL


On Mon, Apr 12, 2004 at 07:14:19AM -0400, John Trollinger wrote:
: 
: I have a jsp page that has the following code
: [snip]
:   request as EL: ${request.contextPath} br/
:   request using page context as EL:
: ${pageContext.request.contextPath} br/

You're using JSTL EL, but you're not closing those expressions in JSTL
tags.  That's the only way the page is going to know what you've
included is meant to be JSTL-style dynamic content.

btw, change request to requestScope inside JSTL EL.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using the request object and EL

2004-04-12 Thread QM
On Mon, Apr 12, 2004 at 10:03:09AM -0400, John Trollinger wrote:
: But the ${pageContext.request.contextPath} prints fine its only the
: ${request.contextPath} that does not display

Fair cup -- I can't tell you what you've seen; I can only tell you what
(I thought) shouldn't work ;)

You're using one of the new JSP 2.0 JSP file tags, I take it?


: And if I do a c:if ${empty request} it returns true but a c:if
: ${empty pageContext.request} returns false.

What about the other info I gave you? Changing request to
requestScope w/in JSTL EL?

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using the request object and EL

2004-04-12 Thread John Trollinger
Problem solved.  I was mixing up 2 parts of the spec and therefor made
the wrong assumption.

Thanks,

John

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 10:13 AM
To: Tomcat Users List
Subject: Re: Using the request object and EL


On Mon, Apr 12, 2004 at 10:03:09AM -0400, John Trollinger wrote:
: But the ${pageContext.request.contextPath} prints fine its only the
: ${request.contextPath} that does not display

Fair cup -- I can't tell you what you've seen; I can only tell you what
(I thought) shouldn't work ;)

You're using one of the new JSP 2.0 JSP file tags, I take it?


: And if I do a c:if ${empty request} it returns true but a c:if
: ${empty pageContext.request} returns false.

What about the other info I gave you? Changing request to
requestScope w/in JSTL EL?

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]