This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Stripes redirect/session problems

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:


 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic