|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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();" > <stripes ption value="I" selected="${stockReq.issueCode}">ISSUE</stripes ption><stripes ption value="B" selected="${stockReq.issueCode}">BASIC</stripes ption> </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. |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > HELP PLEASE - Cannot convert JSTL char value to populate actionBean |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|