This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Stripes redirect/session problems

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have recently been requested in school to create a Stripes project. I don't know very much about the framework, and I got stuck at one particular part and I don't know how to continue from here. I have an action bean, called UserOrdersAction, which is used for performing operations in createUserOrder.jsp. What I want to do in createUserOrder.jsp is to add products to an existing order, which was created when redirecting to this page (createUserOrder.jsp). For adding products to an existing order, I have a Resolution method in UserOrdersAction called addProduct, which takes the orderid previously stored in context, and inserts a product in the database, then forwards the resolution back to createUserOrder.jsp. The problem appears when trying to add the first product. The orderid is passed correctly, the product is inserted correctly in the database, but insted of going back to createUserOrder.jsp it gives me the following error:

The requested resource () is not available.

and in netbeans, glassfish tab:

SEVERE: PWC6117: File "C:\Program Files (x86)\glassfish-3.1.2.2\glassfish\domains\domain1\docroot\StoreOnlineWEB-INF\createUserOrder.jsp" not found

Can anyone please help me with this?

Here is the code to my UserOrdersAction class:


 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!