aspose file tools*
The moose likes JSP and the fly likes request can not be resolved. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "request can not be resolved." Watch "request can not be resolved." New topic
Author

request can not be resolved.

Nirvikalp Rao
Greenhorn

Joined: Feb 14, 2012
Posts: 27

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

Joined: Jan 10, 2002
Posts: 60082
    
  65

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

And, welcome to the Ranch!
Nirvikalp Rao
Greenhorn

Joined: Feb 14, 2012
Posts: 27

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

Joined: Jan 10, 2002
Posts: 60082
    
  65

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

Joined: Jan 10, 2002
Posts: 60082
    
  65

Also, I always recommend that newcomers to JSP read these articles:
  • The Secret Life of JSPs
  • The Front Man

  • Nirvikalp Rao
    Greenhorn

    Joined: Feb 14, 2012
    Posts: 27

    Thanks bear,I'll go through the articles.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: request can not be resolved.
     
    Similar Threads
    Another Newb failing at HF Servlets & JSP Beer Example
    calling jsp from servlet
    A Problem from HeadFirst Servlet & JSP(CHAP-3)
    Unable to compile class for JSP
    error HTTP Status 500 -