Re: the include action - is this possible

2001-10-27 Thread Gaurav Khanna

Then how come this is working?


a
href=/domains/registration/support/fetch.asp?displang=%=session.getAttribu
te(displayLanguage)%file=whybuy.jspWhy Buy?/a

Thanks
Gaurav
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 23, 2001 11:09 AM
Subject: Re: the include action - is this possible




 On Tue, 23 Oct 2001, Gaurav Khanna wrote:

  Date: Tue, 23 Oct 2001 10:21:43 -0700
  From: Gaurav Khanna [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: the include action - is this possible
 
 
   Hi,
   I believe the following does not work. The include action cannot have
   runtime access of variables i.e. session.getAttribute(baseUri) ).

 That is actually not the problem.  See below.

  I
  want
   to confirm whether this is the case:
   jsp:include
   page=%=session.getAttribute(baseUri)%include/stylepicker.jsp
   flush=true /

 When you use a runtime expression, it must replace the *entire* attribute
 value, not just part of it.  Try this instead:

 jsp:include page='%= session.getAttribute(baseUri) +
  include/stylepicker.jsp %' flush=true/

 Note that I used single quotes around the entire expression to avoid
 confusion with the double quotes inside the expression.

 Craig





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




Re: the include action - is this possible

2001-10-27 Thread Craig R. McClanahan



On Sat, 27 Oct 2001, Gaurav Khanna wrote:

 Date: Sat, 27 Oct 2001 20:45:57 -0700
 From: Gaurav Khanna [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: the include action - is this possible

 Then how come this is working?


 a
 href=/domains/registration/support/fetch.asp?displang=%=session.getAttribu
 te(displayLanguage)%file=whybuy.jspWhy Buy?/a


Why shouldn't this work?  It has nothing to do with include actions.


 Thanks
 Gaurav


Craig


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




Re: the include action - is this possible

2001-10-23 Thread Nikola Milutinovic

 Hi,
 I believe the following does not work. The include action cannot have
 runtime access of variables i.e. session.getAttribute(baseUri) ). I want
 to confirm whether this is the case:
 jsp:include
 page=%=session.getAttribute(baseUri)%include/stylepicker.jsp
 flush=true /
 
 I get the following exception:
 org.apache.jasper.compiler.ParseException:
 /domain/checknames/english_form.jsp(6,51) Attribute baseUri has no value

The problem, it seams, is not with the jsp:include ..., but with 
session.getAttribute( baseUri ) - as it reports. Are you inside a session?

Nix.

 smime.p7s


Re: the include action - is this possible

2001-10-23 Thread Craig R. McClanahan



On Tue, 23 Oct 2001, Gaurav Khanna wrote:

 Date: Tue, 23 Oct 2001 10:21:43 -0700
 From: Gaurav Khanna [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: the include action - is this possible


  Hi,
  I believe the following does not work. The include action cannot have
  runtime access of variables i.e. session.getAttribute(baseUri) ).

That is actually not the problem.  See below.

 I
 want
  to confirm whether this is the case:
  jsp:include
  page=%=session.getAttribute(baseUri)%include/stylepicker.jsp
  flush=true /

When you use a runtime expression, it must replace the *entire* attribute
value, not just part of it.  Try this instead:

jsp:include page='%= session.getAttribute(baseUri) +
 include/stylepicker.jsp %' flush=true/

Note that I used single quotes around the entire expression to avoid
confusion with the double quotes inside the expression.

Craig






Re: the include action - is this possible

2001-10-22 Thread Gaurav Khanna

Hi,
I believe the following does not work. The include action cannot have
runtime access of variables i.e. session.getAttribute(baseUri) ). I want
to confirm whether this is the case:
jsp:include
page=%=session.getAttribute(baseUri)%include/stylepicker.jsp
flush=true /

I get the following exception:
org.apache.jasper.compiler.ParseException:
/domain/checknames/english_form.jsp(6,51) Attribute baseUri has no value

Thanks