Skip to Content
author's profile photo Former Member
Former Member

Does portal JSP pages support Sun's JSP spec. ?

This is with reference to EP60 SP2 portal implementation.

I read from the documentation that portal JSP pages

support 4 scopes to store beans or objects. i.e.,

Application, Session, Request, and Page. Also these scopes

differ from the J2EE standards.

About the JSP page implicit objects like request, response

session, application, config etc are also available with

little or no differences compared to JSP spec. of J2EE.

I may be wrong in understanding these above topics.

When I try to access the HttpServletConfig, HttpServletContext

I am getting the exception saying it can't resolve the

symbol, the symbol being the implicit JSP objects.

What about JSTL ? Our Client's design standards clearly

discourage using scriplets in JSP infavor of JSTL. But I

don't see any discussion about that in the portal documentation.

If EP60 SP2 supports J2EE v.1.3, theoritically JSTL should

have been supported.

If any one has ideas about these things ?

Thank you so much for your reply.

Prasad Nutalapati

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 14, 2004 at 03:13 PM

    Regarding access of the ServletContext and HttpServletRequest objects:

    The "request" object is automatically provided via the "componentRequest" variable. It is of type IPortalComponentRequest. It has a method getServletRequest() that returns the HttpServletRequest object.

    You can obtain this by using the following code:


    HttpServletRequest srvReq = componentRequest.getServletRequest();

    ServletConfig srvConf = componentRequest.getServletConfig();

    String sName = srvConf.getServletName();

    String remAddr = srvReq.getRemoteAddr();

    String uri = srvReq.getRequestURI();


    <hbj:content id="myContext" >

    <hbj:page title="PageTitle">

    <hbj:form id="myFormId" >

    <h1>JSP Test</h1>

    ServletName: <%=sName%><br>

    Remote Addr: <%=remAddr%><br>

    URI: <%=uri%><br>




    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.