File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request can not be resolved.

 
Nirvikalp Rao
Greenhorn
Posts: 27
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a simple jsp page "view.jsp" which goes here:

and a servlet is dispatching request and response objects to "view.jsp".But i am getting the "request can not be resolvoed" error(shown below,along with the stack trace):

Please help.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Step 1: Remove the Java scriptlet and replace it with JSTL and EL. Problem solved.

Java code in a JSP is a bad practice that's been out of style for 10 years now. Do you not think that it's time to catch up with the times?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And, welcome to the Ranch!
 
Nirvikalp Rao
Greenhorn
Posts: 27
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually i am coding jsp for the first time(a layman),can you please show me how...in the code posted by me?? Thanks a lot for reply.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are a newcomer to JSP it is doubly important that you start out on the right foot and do not learn bad practices and habits at the outset. Why use old technology that's considered a bad practice?

It's sort of like saying "I want to learn how to design TVs -- teach me all about vacuum tubes."

Get yourself an up-to-date JSP reference that focuses on the JSTL and EL, and not on outdated Java scriptlets.

Eventually you may have to learn something about scriptlets in order to work on old legacy code, but they should not be what you set out learning first (if at all).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, I always recommend that newcomers to JSP read these articles:
  • The Secret Life of JSPs
  • The Front Man

  •  
    Nirvikalp Rao
    Greenhorn
    Posts: 27
    Java
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks bear,I'll go through the articles.
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic