• Post Reply Bookmark Topic Watch Topic
  • New Topic

URL writing in JSP

 
Neha Sharma
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I'm facing fifficulty in URL writing. What should I write at the end of the string to say it is continuing. Because in the following string it works fine if I give it as it is but if I do the one below it it says string not properly concluded. Can somebody write me URL writing concepts.
out.println("<A HREF=ABCServlet?SCREENFROM=SUMMARY&JOBREQUESTED=EST_KEY&" +
estnmr + "=" +
rs[i].getString(db.estnmr) + ">" +
rs[i].getString(db.estnmr) + "</A>");

if I write this I get error
out.println("<A HREF=ABCServlet?SCRFROM=SUMMARY&"+
JOBREQUESTED=EST_KEY&" +
estnmr + "=" +
rs[i].getString(db.estnmr) + ">" +
rs[i].getString(db.estnmr) + "</A>");
 
shilpa kulkarni
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Neha Sharma:

if I write this I get error
out.println("<A HREF=ABCServlet?SCRFROM=SUMMARY&"+
JOBREQUESTED=EST_KEY&" +
estnmr + "=" +
rs[i].getString(db.estnmr) + ">" +
rs[i].getString(db.estnmr) + "</A>");


use a double quote before JOBREQUESTED as in :
out.println("<A HREF=ABCServlet?SCRFROM=SUMMARY&"+
"JOBREQUESTED=EST_KEY&" +
 
Neha Sharma
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Shilpa
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!