[ http://issues.apache.org/struts/browse/STR-2805?page=all ]
Don Brown resolved STR-2805:
----------------------------
Fix Version: 1.3.3
Resolution: Fixed
Assign To: Don Brown (was: Struts Developer Mailing List)
> java.lang.NullPointerException
> ------------------------------
>
> Key: STR-2805
> URL: http://issues.apache.org/struts/browse/STR-2805
> Project: Struts Action 1
> Type: Bug
> Components: Taglibs
> Versions: Unknown
> Environment: Operating System: Windows NT
> Platform: Other
> Reporter: Shailesh
> Assignee: Don Brown
> Fix For: 1.3.3
>
> I m using Struts-1.2.0 and Tomcat 4.1.30.
> I have a link in my "index.jsp" that uses 'forward' attribute of <html:link>
> to
> transfer to a page called "xyz.jsp".
> For your reference the code snippet is as below:
> ---------------------------------------------
> In index.jsp ->
> <html:link forward="xyzForward"> XYZ Form </html:link>
>
> In struts-config.xml ->
> <global-forwards>
> <forward name="xyzForward"
> path="/xyz.jsp"/>
> </global-forwards>
> ---------------------------------------
> And i get the HTTP Status 500 Internal Server Error: The root cause is as
> follows: (only the initial 4 lines is listed)
> java.lang.NullPointerException
> at org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding
> (TagUtils.java:487)
> at org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding
> (TagUtils.java:370)
> at org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:514)
> at org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:374)
> "
> --------------------------------------
> Note : With "href" and "action" attributes of <html:link> the index.jsp is
> getting displayed but exception occurs while using "forward" and "page"
> attributes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]