jsp:setProperty doesn't work with short properties

Hi,
          Setting bean properties doesn't work with properties that are of type short.
          Any ideas what's going on? I'm using WLS 6.1SP1 on W2K.
          --John
          <jsp:useBean id="test" scope="session" class="test.Test" />
          <jsp:setProperty name="test" property="*" />
          -- Test.java
          package test;
          * @author john
          public class Test {
          /** Creates new Test */
          public Test() {
          public short getShort() {
          return 0;
          public void setShort(short val) {
          Produces the following error while attempting to compile the jsp:
          Compilation of
          'C:\bea\wlserver6.1\config\cleanoffer\applications\.wlnotdelete\WEB-INF\_tmp
          warCleanOffer Server_CleanOffer Server_test\jsp_servlet\__test.java'
          failed:
          C:\bea\wlserver6.1\config\cleanoffer\applications\.wlnotdelete\WEB-INF\_tmp_
          war_CleanOffer Server_CleanOffer Server_test\jsp_servlet\__test.java:104:
          setShort(short) in test.Test cannot be applied to ()
          probably occurred due to an error in /test.jsp line 7:
          <jsp:setProperty name="test" property="*" />
          C:\bea\wlserver6.1\config\cleanoffer\applications\.wlnotdelete\WEB-INF\_tmp_
          war_CleanOffer Server_CleanOffer Server_test\jsp_servlet\__test.java uses or
          overrides a deprecated API.
          Full compiler error(s):
          C:\bea\wlserver6.1\config\cleanoffer\applications\.wlnotdelete\WEB-INF\_tmp_
          war_CleanOffer Server_CleanOffer Server_test\jsp_servlet\__test.java:104:
          setShort(short) in test.Test cannot be applied to (<null>)
          test.setShort(null); //[ /test.jsp; Line: 7]
          ^
          Note:
          C:\bea\wlserver6.1\config\cleanoffer\applications\.wlnotdelete\WEB-INF\_tmp_
          war_CleanOffer Server_CleanOffer Server_test\jsp_servlet\__test.java uses or
          overrides a deprecated API.
          Note: Recompile with -deprecation for details.
          1 error
          Fri Nov 09 00:24:58 PST 2001
          [test.war]
          

It looks like a bug in JSP generator. If you look and the .java
          created by 6.1 it doesn't make any sence:
          String _propertyValue = request.getParameter("short");
          if (_propertyValue != null && !_propertyValue.equals(""))
          test.setShort(null);
          (needless to say that this works correctly in Resin).
          John Hampton <[email protected]> wrote:
          > Thanks for reply,
          > Changing getShort and setShort to getId and setId makes no difference. I
          > still get the error described below:
          > C:\bea\wlserver6.1\config\cleanoffer\applications\.wlnotdelete\WEB-INF\_tmp_
          > war_CleanOffer Server_CleanOffer Server_test\jsp_servlet\__test.java:104:
          > setId(short) in test.Test cannot be applied to (<null>)
          > test.setId(null); //[ /test.jsp; Line: 7]
          > John
          > "Jignesh" <[email protected]> wrote in message
          > news:[email protected]...
          >>
          >> hi,
          >> i think you have not given the property name properly.
          >> give some other name than short becuase short is the keyword (data-type)in
          > java.
          >> bye,
          >> Jignesh
          >>
          >>
          >> "John Hampton" <[email protected]> wrote:
          >> >Hi,
          >> >
          >> >Setting bean properties doesn't work with properties that are of type
          >> >short.
          >> >Any ideas what's going on? I'm using WLS 6.1SP1 on W2K.
          >> >
          >> >--John
          >> >
          >> ><jsp:useBean id="test" scope="session" class="test.Test" />
          >> ><jsp:setProperty name="test" property="*" />
          >> >
          >> >-- Test.java
          >> >package test;
          >> >
          >> >/**
          >> > *
          >> > * @author john
          >> > */
          >> >public class Test {
          >> >
          >> > /** Creates new Test */
          >> > public Test() {
          >> > }
          >> >
          >> > public short getShort() {
          >> > return 0;
          >> > }
          >> >
          >> > public void setShort(short val) {
          >> > }
          >> >}
          >> >
          >> >Produces the following error while attempting to compile the jsp:
          >> >
          >> >Compilation of
          >>
          >>'C:\bea\wlserver6.1\config\cleanoffer\applications\.wlnotdelete\WEB-INF\_tm
          > p
          >> >warCleanOffer Server_CleanOffer Server_test\jsp_servlet\__test.java'
          >> >failed:
          >>
          >>---------------------------------------------------------------------------
          > -
          >> >----
          >>
          >>C:\bea\wlserver6.1\config\cleanoffer\applications\.wlnotdelete\WEB-INF\_tmp
          > _
          >> >war_CleanOffer Server_CleanOffer Server_test\jsp_servlet\__test.java:104:
          >> >setShort(short) in test.Test cannot be applied to ()
          >> >probably occurred due to an error in /test.jsp line 7:
          >> ><jsp:setProperty name="test" property="*" />
          >> >
          >>
          >>C:\bea\wlserver6.1\config\cleanoffer\applications\.wlnotdelete\WEB-INF\_tmp
          > _
          >> >war_CleanOffer Server_CleanOffer Server_test\jsp_servlet\__test.java
          >> >uses or
          >> >overrides a deprecated API.
          >> >
          >>
          >>---------------------------------------------------------------------------
          > -
          >> >----
          >> >Full compiler error(s):
          >>
          >>C:\bea\wlserver6.1\config\cleanoffer\applications\.wlnotdelete\WEB-INF\_tmp
          > _
          >> >war_CleanOffer Server_CleanOffer Server_test\jsp_servlet\__test.java:104:
          >> >setShort(short) in test.Test cannot be applied to (<null>)
          >> > test.setShort(null); //[ /test.jsp; Line: 7]
          >> > ^
          >> >Note:
          >>
          >>C:\bea\wlserver6.1\config\cleanoffer\applications\.wlnotdelete\WEB-INF\_tmp
          > _
          >> >war_CleanOffer Server_CleanOffer Server_test\jsp_servlet\__test.java
          >> >uses or
          >> >overrides a deprecated API.
          >> >Note: Recompile with -deprecation for details.
          >> >1 error
          >> >
          >> >
          >>
          >>---------------------------------------------------------------------------
          > -
          >> >----
          >> >Fri Nov 09 00:24:58 PST 2001
          >> >
          >> >
          >> >
          >> >
          >> >begin 666 test.war
          >> >M4$L#!!0`" `(`,@`:2L````````````````4``0`345402U)3D8O34%.249%
          >> >M4U0N34;^R@``X^4"`%!+!PBLA:(4! ````(```!02P,$% `(``@`R !I*P``
          >> >M``````````````\```!714(M24Y&+W=E8BYX;6RE4DMOVS ,/L^ _P/GTP9,
          >> >M4NH=M@YIBC3I@ )M&G3IAIX*1V9B!;)D6'0>WY2GDT6# /FD&1WX,4V]?+
          >> >M4L,<:Z>LN4HN>"L!--+FRDRODN?1=_8UN>[$4?L]8W$$)]^/QL"P&6LEX5Y)
          >> >M- YA8,G_Q5$<C0H$:0VA(0=V`E0H!Q.E$;(:P37C&4H"LKZ 9Y3BZ.<F%?A0
          >> >M\"$T)=M2\I'#BVV@S%9@+$'C?0_JN)18$2@31]*6E5:9D0@+1<7:::O!H>O3
          >> >M5:M-LCT,7B6;9TIGXQ"4XJ@@JKX)L5@LN&L,]Y)B-]UCK:;*9!IZ-E\S!T@W
          >> >MF!G'(93OC"+EJWV<H[85UCNO'2^.=L0P_H.2M74K1UBZ3YXL.0QM37X#SAM4
          >> >M*T\J""XN+[^PM-5J!4X<G2%UM8:GT.O@"1W6<\QY'#'6";'#2_8?>Z.7X2TL
          >> >M<,RRJMH\Z_#YYOZN!PD3XGP8(?JC/OS",70KOU29A620\E2(VT&R$4FVRYKY
          >> >M%>ZW-4L114ZY$UO#U_0UY1Y(UHG:6[2SD6@[=.'5F3^=B9IV#D>WKY JT3;4
          >> >M.;['SZTWK>)\[P$_4O<1M$^*+-P/T\J%_G='Z(F9,CDN^<Q5;SU/^O]!H*!2
          >> >M_[?"7P3^!'?3M<5A[;\!4$L'"/]33>'A`0``! 0``%!+`P04``@`" #(`&DK
          >> >M````````````````" ```'1E<W0N:G-P-4X[#L(P#-US"A.I"P/>D1LAQ,14
          >> >MB5X@M!84M4E4&XG>GJ:!R<_OIT?5*?D'0Q>#<M!V25Q;Y8_B4Z?15LY0!OFP
          >> >M[QWIH".[ZZV!9HT1EI]P4PW=8[\X8^@EZ?@6/K,/,/2Y4=2"=#'7"XL,,5CH
          >> >M1B]2Q$.[.="5K+ V\VJ>=8'@)_XW0/JQM=T7=W+F$@/O=H9PQ81E`F&9_050
          >> >M2P<(E)0WZYL```#@````4$L#!!0`" `(`,@`:2L````````````````?````
          >> >M5T5"+4E.1B]C;&%S<V5S+W1E<W0O5&5S="YC;&%S<TV/OT[#,!#&OTO2IDT+
          >> >M_4.I6-D*`C(@)A +$E,$0ZKN3K!:5R&1$K=/Q<*$Q, #\%"(LQ-%]7!W_MU]
          >> >MW]F_?]\_<'&-><#IQ,?,QRFA^Z!RI1\)[N)B1?">BC=)&$4JER^[]T262Y%D
          >> >M3*91D8IL)4IE[@WT]$95A$&D9:7#)8=[0F\M=;PI2FT]8P95"[Q%;+:X>Y$1
          >> >MB'M!7.S*5#XK8]<W#C=;L1=#>.@P:'T)8\/#3.3K\#79RE3C' [_Q!P79 0<
          >> >MNWR[Y4R<.Y=?H$\N'/@<`\[ F <GZ'$UK(?0YPZX'EAB#*X:`\?]:-5=2V8'
          >> >M2J=5'N&X4=Y9CL.UM?#,"N=ULQ&::L0/,LLF=G[Z#U!+!PA>>AD-#@$``*4!
          >> >M``!02P$"% `4``@`" #(`&DKK(6B% 0````"````% `$````````````````
          >> >M````345402U)3D8O34%.249%4U0N34;^R@``4$L!`A0`% `(``@`R !I*_]3
          >> >M3>'A`0``! 0```\`````````````````2@```%=%0BU)3D8O=V5B+GAM;%!+
          >> >M`0(4`!0`" `(`,@`:2N4E#?KFP```. ````(`````````````````&@"``!T
          >> >M97-T+FIS<%!+`0(4`!0`" `(`,@`:2M>>AD-#@$``*4!```?````````````
          >> >M`````#D#``!714(M24Y&+V-L87-S97,O=&5S="]497-T+F-L87-S4$L%!@``
          >> >0```$``0`!@$``)0$````````
          >> >`
          >> >end
          >> >
          >>
          Dimitri
          

Similar Messages

  • Jsp:include doesn't work with Tomcat & IIS

    Hi, Guys,
    I installed IIS4.0 and Tomcat in my windows NT system. http://localhost/examples/jsp/index.html works fine.
    When I load http://localhost:8080/about.jsp, it's also working fine. But when I load http://localhost/about.jsp, it will ignore the part which the line is display as
    <%String topName = "/servlet/topServlet";%>
    <jsp:include page="<%=topName%>" flush="true"/>
    The other part will work just as a html file. And I didn't get any error message.
    Would can tell me how to figure out this problem. Thank in advanced very much!

    Oh, God, why not tell me earlier!!!!!! I do use tomcat 3.1 and it just support servlet. I have no way out but modify all my jsp:include to encoding into a servlet page. I almost re-do all my work. But anyway, thank you! Next time I will know.

  • Why EL doesn't work with custom tags ?!

    I don't know why expression lang. doesn't work with me.
    here's an example, and please tell me why :
    --- the jsp page with EL ==> doesn't work :
    <%-- In the name of ALLAH most gacious most merciful --%>
    <%@ page language="java" %>
    <%@ taglib uri="/cartlib" prefix="cart" %>
    <html>
    <jsp:useBean id="product" class="ch16.cart.ProductCatalog" scope="application" />
    <cart:showCatalog productCatalog="${product}" addToShoppingCartUri="<%= response.encodeURL("AddToShoppingCart.jsp") %>" />
    </html>
    when using expressions instead, the page works .
    the new page is :
    <%-- In the name of ALLAH most gacious most merciful --%>
    <%@ page language="java" %>
    <%@ taglib uri="/cartlib" prefix="cart" %>
    <html>
    <jsp:useBean id="product" class="ch16.cart.ProductCatalog" scope="application" />
    <cart:showCatalog productCatalog="<%= product %>"
    addToShoppingCartUri="<%=
    response.encodeURL("AddToShoppingCart.jsp") %>" />
    </html>
    The error was :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: jsp.error.beans.property.conversion
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper
    .java:512)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: jsp.error.beans.property.conversion
    org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(Js
    pRuntimeLibrary.java:885)
    org.apache.jsp.ShowProductCatalog_jsp._jspService(ShowProductCatalog_jsp.java:77
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.

    Regarding setup, see this post reply #6
    http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0
    Other potential things to check: make sure you are getting the right value passed in
    productCatalog="${applicationScope.product}"
    ${product} by preference would take a pageContext, request or session attribute before the application level one (it uses pageContext.findAttribute).
    What do you get if you just print out ${product} on the screen?
    It should call a toString() on it for rendering purposes.

  • My MSI KT3-ULTRA2 doesn't work with my CPU cooler!!

    My MSI KT3-ULTRA2 doesn't work with my CPU cooler!!              
    I've got an MSI KT3-ULTRA2 mainbord, and I have a NEOLEC VENEZIA TB Cooler. But when I attach my NEOLEC cooler and I start the machine, the machine shuts down within a couple of seconds, and I get nothing to see on my screen. The weird thing is when I turn the PC on, the cooler starts rotating so it can't be broke, but then the pc shuts down i a couple of secs. So pleezze anybody help me!!
    The weird thing is that I also have a coolermaster cooler, and that one works fine. But the problem is that this coolermaster is designed for AMD XP 1900+, and I ahve an AMD XP 2200+ that's why I bought the Neolec Venezia TB cooler.
    Grtzz
    skeleton

    one easy thing to watch for... see if the heatsink or fan is in contact with any part of the motherboard, like... if it is too big and touches something that normally wouldn't be in contact with a fan or heatsink.  If so, it could be shorting it.

  • ITeufel Radio v2 doesn't work with iOS 5.0.1

    My iTeufel Radio v2 doesn't work with iOS 5.0.1.
    It does not charge (just a short "beep" when connecting, but then it does not charge) and the audio function also doesn't work.
    I already tried to reset the phone, but this didn't help.
    Any ideas? Thank you.

    I got Wi-Fi to reconnect by restarting my router and re-entering the wireless password. I wonder if the wireless account passwords were lost in the update process? I wonder if I would have just had the phone “forget” the wireless account and reconnect if that would have worked.
    On an interesting side note, the exchange server connected after I got Wi-Fi back working! I am wondering if there is a issue with 3G and the new IOS 5.01? I could not get any exchange connectivity after the update on 3G.

  • Trying to load illustrator 6cs onto new mac and the old activation code for my ill cs doesn't work with it

    Trying to load a downloaded version of illustrator 6cs onto new mac and the old activation code for my illustrator cs doesn't work with it.  Do I need a new code or am I missing something?  Same goes for my Photoshop cs.

    you need your serial number.
    if you purchased from or registered with adobe check your account, https://www.adobe.com/account.html

  • Cinema Display (clear) with DVI/ADC box doesn't work with MacBook Pro

    Cinema Display (clear) with DVI/ADC box doesn't work with MacBook Pro when plugged in with a dvi to mini dvi cable. Any ideas what to do to make it work? I lugged the 23" 2500 miles into the wilderness and I need help

    Okay, here's an update: the DVI to ADC adapter does work with the Apple displays that I have tried, but it won't work with the Formac. I have tried multiple time to contact them, but to no avail... they don't even respond to threats of posting my opinion of them, which is this:
    DON'T BUY ANYTHING FROM FORMAC! They make quality products, but their customer service is a big time joke! They won't take care of you.

  • HT201210 hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • TS1253 I have a printer epson TX210, but it doesn't work with my time-capsule. What need to do?

    I have a printer epson TX210, but it doesn't work with my time-capsule. What need to do?

    What have you tried?
    You are going to get nowhere quick with the 6.1 utility in Mountain Lion if this is the only OS you have available.
    Look up how to install 5.6 utility under ML. At least then you can see printers. That is assuming you are trying to use USB.
    Has this worked ever on Mountain Lion? Did you download the drivers for that printer for ML?
    Plug it into a computer directly.. does it work? If it doesn't work locally it sure will not work via the network.

  • My i pod nano first generation doesn't work with windows 8

    My i pod nano first generation doesn't work with windows 8

    Howdy yvesmd,
    Thanks for using the Apple Support Communities.
    If your iPod nano is not being recognized in iTunes on your Windows computer, then I'd like you to please follow the directions in the link below.
    Apple - Support - iPod - iPod nano Troubleshooting
    Cheers,
    Alex H.

  • Quicklook doesn't work with .avi files

    Hello, i've got a little problem right here on my mac. The thing is that I used to have Snow Leopard as a OS and quicklook used to work great, it opened all the extensions I used to work with. The thing change when I format my HDD and installed a clean copy of Lion OS. Now quicklook works fine as it used to but not any more with .avi files. I remember that this feature was working great on my previous OS, and it's really important for me to find a solution because quicklook is an absolutely amazing feature of our Macs.
    I've tryed to download plugins, restoring permissions or even trying it with a guest user, but no success.
    Please help me. If you need more info about specs or something i'll be glad to give them to you.
    Thank you!!!

    Also doesn't work with Grapher (.gcx) documents (an Apple format).

  • The Bluetooth on my 2012 Lexus doesn't work with my iPhone 5.  My old android phone worked perfectly with my car.  Even the tech guy at Lexus couldn't get it to work.  What is apple doing to fix this.

    The Bluetooth on my 2012 Lexus doesn't work with my iPhone 5.  My old android worked perfectly with my car.  Even the tech specialist at Lexus couldn't get it to work.  Lexus said that other iPhone 5s were having the same problem.  What is apple doing to fix this?

    Going to the local Apple store this morning...
    My problem is not uncommon as the board is showing signs of this happening to many others as well. That is where I found the restore and reboot information to try to solve the issue of crashing apps.
    I understand that Apple will not "give away the cow", but letting iPhone users know that the problems they are having are being addressed by Apple is a little more comforting than nothing at all. Other wise, all the apps in world are useless and even more importantly worthless, if a person has to reset/reboot/reload just to get them to work.
    IF Apple can not address the basic problems with todays iPhone apps, why should one believe that the iPhone 3.0 OS is any better? Using a PC comparison, which is better, XP or Vista. If the current iPhone OS of 2.2. what ever is not working that well (as related to down loaded apps and iTunes), will OS 3.0 be any better?
    The waste of time I refer to is in going to the apps store and downloading the apps... Again why by apps if the free version does not work?

  • Satellite M40-129: PCMCIA Card doesn't work with Linux

    I have D-Link DWL-G650 with Atheros Chipset which is good supported under linux (madwifi). But if I boot Linux the card is not found. I tested the card with an Fujitsu Siemens Notebook and it worked out of the box!
    Any idea why it doesn't work with my M40-129 ?

    Hi
    Like you know Toshiba doesnt support the Linux and there are no Toshiba drivers for the Linux OS but I was able to find this useful Toshiba page about the notebook configuration with Linux:
    http://newsletter.toshiba-tro.de/main/
    You should check the OS machine compatibility and the other areas.
    Im sure you will find many useful tips.
    Good luck

  • HT5706 I am trying to set up Apple TV with my Uverse WiFi, but I get errors when entering my password.  One site said that Apple TV doesn't work with WPA which Uverse uses.  Is there anyway around this or will Uverse and Apple TV just not work together.

    Trying to set up Apple TV with ATT Uverse.  I get errors when trying to enter my WiFi password.  One site says that Apple TV doesn't work with Uverse because it uses WPA for encryption.  If true, does that mean Uverse subscribers cannot use Apple TV?

    Spurs63 wrote:
    does that mean Uverse subscribers cannot use Apple TV?
    No, that's a rather silly conclusion.
    There are two options:
    stop using the crappy router provided by the ISP.
    Physically connect the ATV to the router via Ethernet.

  • My cellcom line doesn't work with my iPhone here in Israel, why? Is there any way I can solve this issue?

    My cellcom line doesn't work with my iPhone here in Israel, why? Is there any way I can solve this issue?

    Please explain.
    What does "cellcom line doesn't work with my iPhone" mean?
    What are you trying?  What is happening?
    Where did you buy the iphone?
    Any info abnout your issue at all?

Maybe you are looking for

  • Issues with data usage Samsung S5

    Over the past few months I have been paying outrageous bills due to one of my lines eating all my data when there is no one even touching the phone. I have 3 phones and a tablet on my plan and I am paying 288.00 a month and last month they charged me

  • MDM scenario query

    Hi All,         I wanted to understand how a MDM repository designed for the following scenario: I have  4  remote systems, A,B,C and D. For example ,lets take a customer Master data. I have 30 fields for the custmer,out of  which the field "payment

  • Delta upgrade of ST-SER_700 2008_1

    Dear all, I am trying to import component ST-SER_700 2008_1 in our Solution Manager. I had an error "OCS package SAPKITLOIB does not match the current software vendor". This was because I had already imported ST-PI 2008_1_700 in solution manager. I a

  • Inserting to BLOB from Forms 6i

    I need to take one of the following file types from a client machine and insert it into a BLOB column on the database: Word, Excel, PDF, MS Project, GIF or JPG I am using oracle forms 6i, the database is Oracle 9.2. To get the file into the form, I b

  • InDesign and Illustrator

    I'm uncertain about the best way to setup a packaging project. The packaging is a box that houses 3 CD-ROMs. A lot of the elements used on the packaging are vectors and can be edited in illustrator. I initially thought my best bet would be to set up