Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

plz, need y'r help  RSS feed

 
richa patel
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ,
i m having following error while compiling the servlet could anybody can tell me where is the problem bcoz i am sure that i have entered all the settings correctly .
i m using linux 9 , tomcat 4.1,jsdk1.4 ,JDBC2.0 .
javac netBankLoginServlet.java
netBankLoginServlet.java:51: cannot resolve symbol
symbol : method setAttribute (java.lang.String,test.richa.welcomeDetailViewBean)
location: interface javax.servlet.http.HttpServletRequest
request.setAttribute("welViewBean",welViewBean);
^
netBankLoginServlet.java:58: cannot resolve symbol
symbol : method setAttribute (java.lang.String,java.lang.String)
location: interface javax.servlet.http.HttpServletRequest
request.setAttribute("errormessage","Error ..... ");
^
netBankLoginServlet.java:87: cannot resolve symbol
symbol : method getRequestDispatcher (java.lang.String)
location: interface javax.servlet.http.HttpServletRequest
rd=request.getRequestDispatcher(nextPage);
^
3 errors
thanks.
 
Harsha Huddar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code seems to be fine. You need to download servlet.jar and put it in ur classpath.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Translation:
plz = please
y'r = your
bcoz = because
i m = I'm
ur = your, or sometimes you're
Please don't be lazy. The Ranch gets visitors from all around the world and for many English is not their first language. Combine this with typing errors and occasional poor grammar and it makes an awful mess. Please try to write your posts to make communication easier, not harder.
Thanks,
Dave.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!