I have JBoss Portal 2.0 release installed from "JBoss Portal + JBoss AS 4.0.2" 
bundle.

I modified JBoss HelloWorld portlet to look like:


  |     public void doView(RenderRequest request, RenderResponse response) {
  |         response.setContentType("text/html");
  |         
  |         request.setAttribute("hello", "world");
  |         try {
  | 
  |             PortletContext context = getPortletContext();
  |             PortletRequestDispatcher rd = context
  |                     .getRequestDispatcher("/hello.jsp");
  |             rd.include(request, response);
  |         } catch (Exception e) {
  |             e.printStackTrace();
  |         }
  |     }
  |  
  | 

I am include this JSP file: 


  | <h3>Hello World from JSP file!</h3>
  | 1+1 = ${1+1}
  | <br/>
  | Hello attribute value: <b>${hello}</b>
  | <br/>
  | 


Output looks like this:
---
        
Hello World from JSP file!

1+1 = ${1+1}

Hello attribute value: ${hello}

ContextPath: ${pageContext.request.contextPath}

---

As you see EL expressions aren't evaluated. Is it only me who has this problem?

Same file accessed from plain web application produces expected result.


Thanks,
   Konstantin
   
 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899905#3899905

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3899905


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to