Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    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>

    </hbj:form>

    </hbj:page>

    </hbj:content>

    Add comment
    10|10000 characters needed characters exceeded