| Author |
Getting error when tryin to code Beer example from Head first Java Servlets
|
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 970
|
|
result.jsp
Create Model,view,controller as suggested in the book when i compile and run it runs fine but when i select amber or any other option it throws an error
|
http://www.lifesbizzare.blogspot.com || OCJP:81%
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
You will need tom import the classes you are using in your JSP just as you would a normal Java class. Something like:
should get you up and running.
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 970
|
|
found : java.lang.Object
required: java.util.List
List styles=request.getAttribute("styles");
^
1 error
|
 |
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 970
|
|
Yay it ran atlast thanks Paul just did some typecasting and worked
|
 |
 |
|
|
subject: Getting error when tryin to code Beer example from Head first Java Servlets
|
|
|