Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

JSTL <c:out value="${ -- defined as String but displaying boolean true  -- java 1.3 / 1.4 difference

Posted on 2005-03-28
3
Medium Priority
?
502 Views
Last Modified: 2013-11-24
Ok, I doubt I'll give enough information the first time.  I have a VO that is being returned that is a String -- "Y" and/or "N" (coming out of a database)  -- when I use the tag to display it

<c:out value="${vo.flagIWant}"/>  it displays on the screen as true or false based on whether it was Y or N out of the VO.

This is on weblogic by the way and this did not happen on WLS 7 jdk 1.3..but is on WLS 8 jdk 1.4.

any thoughts?  
0
Comment
Question by:greedy1
1 Comment
 
LVL 29

Accepted Solution

by:
bloodredsun earned 600 total points
ID: 13646585
I think that this is JSTL performing value coercion. One of the things that JSTL tries to do is to make the values you pass it weakly typed and then convert automatically into the correct java type (String, boolean, int etc).

You could try adding an empty string to the expression to try and prevent this.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question