• 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

request can not be resolved.

 
Greenhorn
Posts: 27
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And, welcome to the Ranch!
 
Nirvikalp Rao
Greenhorn
Posts: 27
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thanks bear,I'll go through the articles.
     
    Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
    a bit of art, as a gift, the permaculture playing cards
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic