Hi,
I have a strange problem with using the follwoing..
<bean:page id="req" property="request"/>
<bean:define id="path" name="req" property="contextPath"/>
in a jsp page to get the contextpath. So that i can do this
<bean:write name="path"/>
It is working fine in tomcat3.2 but is giving the following exception in
REsin and in Tomcat4.0
javax.servlet.jsp.JspException: No getter method for property contextPath
of bean req
at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517)
at
org.apache.struts.taglib.bean.DefineTag.doStartTag(DefineTag.java:200)
at _index__jsp._jspService(/iPort/index.jsp:30)
etc....
Can anyone guide as to where the problem is. If it is still occuring I may
have to revert back to java scriplet
<%=request.getContextPath()%>
and make my jsp ugly !!
Merrill