• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP - Unable to solve error

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm very unexperient in JS and i'm getting an error that i can't solve.
I'm using netbeans to develop a application that already existis and it wasen't devloped by me.
The application server is glassfish.

The error is:
type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP

PWC6197: An error occurred at line: 18 in the jsp file: /jsp/consultaCQ/plano_acao.jsp
PWC6199: Generated servlet error:
cannot find symbol
symbol : method setValue(int)
location: class org.apache.struts.taglib.html.SelectTag

PWC6197: An error occurred at line: 38 in the jsp file: /jsp/consultaCQ/plano_acao.jsp
PWC6199: Generated servlet error:
cannot find symbol
symbol : method setValue(int)
location: class org.apache.struts.taglib.html.SelectTag

----

Can anyone help me?
Thanks in advanced.

Daniel
 
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like on lines 18 and 38 of your JSP you are trying to pass int values to the value attribute of your select tag. Try passing a string to these attributes instead. If this doesn't help try posting the tags that you are using.
 
Dany Mendez
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, thanks for your reply.

I've looked to the line countless times...
Thease are the lines

<bean efine id="planoTypes" name="selFilters" property="allPlanners" type="java.util.Collection" scope="request"/>
<bean efine id="pln" name="filterslistactionform" property="planner"/>
Line 18 -> <html:select property="planner" name="filterslistactionform" value="<%= pln %>">
<html ptions collection="planoTypes" labelProperty="label" property="value" />
</html:select>

if i replace =pln by null or fixed strin the application starts, but the combo box does not work.

regards,
Daniel
 
Tom Rispoli
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think pln needs to be a string, and from the error you got it looks like its an int. You'll need to convert it.
 
Dany Mendez
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are right. I made String.valueOf(pln) and it worked.
Thenks a million.

DAniel
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic