Sorry about a small change in the code. My code is as below:

protected void doView(RenderRequest request, RenderResponse response)
  |                     throws PortletException, IOException, 
UnavailableException {
  |             PrintWriter pw = response.getWriter();
  |             ResourceURL rurl = response.createResourceURL();
  |             
  |             rurl.setCacheability(ResourceURL.FULL);
  |             rurl.setParameter("name", "abc");
  |             pw.println("<BR><A HREF=\"" + rurl.toString() + "\">Serve 
Resource</A><BR>");
  |             pw.close();
  |     }
  |     
  |     @Override
  |     public void serveResource(ResourceRequest request, ResourceResponse 
response)
  |                     throws PortletException, IOException {
  |             PrintWriter pw = response.getWriter();
  |             pw.println("<BR>Inside Serve Resource<BR>");
  |             pw.println("<BR>Param Value = " + request.getParameter("name"));
  |             pw.println("<BR>Cacheability = " + request.getCacheability());
  |             pw.println("<BR>PortletMode = " + request.getPortletMode());
  |             pw.println("<BR>Window State = " + request.getWindowState());
  |             pw.close();
  |     }

And this actually throws a runtime exception

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240906
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to