Hi
I'm using Jboss Portal 2.4 bundled version.
Portal page has two portlets say A and B.
There are several links in portlet A (I'm using index.jsp for displaying links in
portlet A).
When I click on link_One in portlet A, the view_1.jsp is displayed in portlet B and when
I click on link_two in portlet A, the view_2.jsp is displayed in portlet B.
I want to set the title for portlet B dynamically i.e., when portlet B loads the
view_1.jsp it should set the portlet B title as "FIRST LINK" and when portlet B
loads view_2.jsp, it should set the portlet B title as "SECOND LINK"
Currently in both view_1 and view_2 jsp's I have set the title with the syntax as
mentioned below:
<%@ taglib
uri="http://java.sun.com/portlet" prefix="portlet"
%>
<portlet:defineObjects/>
<%=renderResponse.setTitle("FIRST LINK")%>
<h3>Welcome to J2EE Services Site</h3>
But I'm getting the below error:
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 3 in the jsp file: /WEB-INF/jsp/view_1.jsp
Generated servlet error:
The method print(boolean) in the type JspWriter is not applicable for the argume
nts (void)
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErro
rHandler.java:84)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher
.java:328)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java
:414)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:303)
... 260 more
Please help me in resolving this issue.
Jboss portal 2.4 version supports the setTitle()? If not, let me know.
Thanks in advance!
thanks,
sirishy
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991607#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...