File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes HELP jsp:forward page = Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "HELP jsp:forward page = """ Watch "HELP jsp:forward page = """ New topic
Author

HELP jsp:forward page = ""

Sanz Joanne
Greenhorn

Joined: Feb 24, 2003
Posts: 8
Just wondering i deveoping a shopping cart which uses a java bean. When the user goes to the Basket each item is fetched and displayed. The user can then delete each item. What i want is if there are no items left in the basket a message be displayed in the same page saying that the basket is empty. I've tried using
<jsp:forward page = "EmptyShoppingBasket.html"/>
instead so that it looks like that they are on the same page with the message displayed to them. But when i put this code in when the basket is empty i just get a completly blank page. I'd really appreciate if anyone could help me out with this problem.
Thanks a mill in advance,
Sanz
ramu av
Greenhorn

Joined: Feb 25, 2003
Posts: 28
try using include instead of forward. u will know where the error is then rectify it then u can use forward.
Sanz Joanne
Greenhorn

Joined: Feb 24, 2003
Posts: 8
Thanks a mill that solved my problem
You're a star
 
 
subject: HELP jsp:forward page = ""
 
Threads others viewed
Please Help - Remove only the duplicated ITEM and NOT the original item that was duplicated.
Inconsistent results with sql:param
Session info getting lost between servlets.
messages in HTML pages
Sessions... confused
Two Laptop Bag