Hi all,

there are a few pre-instantiated variables that you can access inside of a
JavaServer Page (JSP). According to SUN
(http://java.sun.com/products/jsp/pdf/card11a.pdf) these are
  request 
  response 
  pageContext
  session 
  application 
  out 
  config 

Once you are doing some implementation using JSP pages you certainly need
more than those variables mentioned above. My way to make variables
accessible within JSP pages is the following one. This is an example with
the variable "rundata".

step 1: Inside of the Java class:
          httpReqest.setAttribute( "rundata", data );
step 2: Inside of the JSP page:
        JetspeedRunData theRunData = (JetspeedRunData)request.getAttribute(
"rundata" );


Now my questions:
Is this the correct way?
Are there some further pre-instantiated variables which I can make use of?

When I make a call to a JSP page (like
http://localhost/jetspeed/portal/template/mytemplate.jsp?aaa=bbb) I can't
access this attribute named "aaa" through the request object. I access it
through rundata.getParameters(). What is wrong?



I am much obliged to your response.

Matthias Wimmer

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

Reply via email to