You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/04/01 01:05:35 UTC
DO NOT REPLY [Bug 44721] New: jsp expression not returning proper
value for null pointer
https://issues.apache.org/bugzilla/show_bug.cgi?id=44721
Summary: jsp expression not returning proper value for null
pointer
Product: Tomcat 6
Version: 6.0.13
Platform: PC
OS/Version: Windows Server 2003
Status: NEW
Severity: regression
Priority: P2
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: bruce.carson@nc4.us
I have a jsp that has following code:
....
<%
String CTOrigUrl = request.getPrameter("CT_ORIG_URL");
if(CTOrigUrl == null)
CTOrigUrl = request.getParameter("ct_orig_url");
...
%>
...
<input type="hidden" name="orig_url" value="<%=CTOrigURL%>">
This results in the value orig_url=null being sent instead of
value= empty string.
Should JSTL return an empty srring ???
<eg <c:out ${param.ctOrigURL} /> ???
Tomcat 5.x jdk compiler didnot exhibit this behavior
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 44721] jsp expression not returning proper value
for null pointer
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44721
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Mark Thomas <ma...@apache.org> 2008-04-01 16:43:55 PST ---
<%=CTOrigURL%> when CTOrigURL is null has always, correctly, resulted in "null"
rather than "". This is true for TC5 and TC6.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org