Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old May 9th, 2008, 08:40 AM
savoym savoym is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 18 savoym User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 35 m 32 sec
Reputation Power: 0
HELP PLEASE - Cannot convert JSTL char value to populate actionBean

I found the answer to my problem below is to create a convenience method of a boolean type such as isIssue() that determines true and false and then JSTL conversion knows what to do.

Hope that helps someone else. Thanks.



I have a CHAR type value in my JSP page that is getting populated in the JSP page just fine. When I try to pull the value for my actionBean value in my java code I'm getting a blank.

Any suggestions or direction or work around would be greatly appreciated. Thank you.

Here is my JSP code:

<td><label>U/M:</label></td>
<td><stripes:select size="1" name="stockReq.issueCode" id="issueCode" onchange="formChanged();" >
<stripesption value="I" selected="${stockReq.issueCode}">ISSUE</stripesption>
<stripesption value="B" selected="${stockReq.issueCode}">BASIC</stripesption>
</stripes:select></td>

Here is my java code:

char value = stockReq.getIssueCode();

As you can see from the JSP code above this value should be an 'I' or 'B' but I'm getting a blank not a null.

Last edited by savoym : May 9th, 2008 at 09:28 AM. Reason: I found the answer to my problem.

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > HELP PLEASE - Cannot convert JSTL char value to populate actionBean


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway