I do something like this in my ActionBean:
private static final String VIEW = "/WEB-INF/jsp/some_form.jsp";
@DefaultHandler
@DontValidate
public Resolution view() {
return new ForwardResolution(VIEW);
}
Maybe your jsp file is in a folder under WEB-INF?
Joaquin
On Jan 5, 2013, at 5:14 AM, corina rus wrote:
> I tried, but that wouldn't work. I tried accessing the same jsp from another
> action bean, and from there works perfectly. Could it be a problem that I
> have 7 action beans?
>
> From: Marcus Kraßmann <m...@syn-online.de>
> To: corina rus <corina...@yahoo.com>; Stripes Users List
> <stripes-users@lists.sourceforge.net>
> Sent: Saturday, January 5, 2013 2:43 PM
> Subject: Re: [Stripes-users] Stripes Problem
>
> Hello,
>
> try adding a "/" in front of "WEB-INF/..." so the path to the JSP looks like
> this:
> return new ForwardResolution("/WEB-INF/displayUserOrderDetails.jsp");
> Kind regards,
> Marcus
>
>
> Am 05.01.2013 13:23, schrieb corina rus:
>> Hello, I have recently started using Stripes for a project in school, and I
>> came across a problem which occurs many times. I get errors of the following
>> type:
>>
>> type Status report
>> message
>> descriptionThe requested resource () is not available. (in browser)
>>
>>
>> SEVERE: PWC6117: File "C:\Program Files
>> (x86)\glassfish-3.1.2.2\glassfish\domains\domain1\docroot\StoreOnlineWEB-INF\createUserOrder.jsp"
>> not found (in glassfish tab in netbeans)
>>
>> This particular error occured on the piece of code:
>>
>> public Resolution displayDetails() {
>> getContext().getRequest().getSession().setAttribute("orderid",
>> orderid);
>> OrderMethods orderAction = new OrderMethods();
>> String usr = orderAction.findByUsername(username, orderid);
>> if(usr.equals("Yes"))
>> return new ForwardResolution("WEB-INF/displayUserOrderDetails.jsp");
>> else
>> {
>> errors = "The selected order id does not belong to you. Please
>> select a valid id.";
>> return new ForwardResolution("WEB-INF/seeUserOrdersDetails.jsp");
>> }
>>
>> //getContext().getRequest().getSession().setAttribute("orderid",
>> orderid);
>> //return new
>> ForwardResolution("WEB-INF/displayUserOrderDetails.jsp");
>> }
>>
>> Here I try to see if a user tries to view an order which is his or an order
>> which belongs to someone else. The problem appears when entering
>> the else branch, at the return forward resolution. How can I fix this?
>>
>>
>> ------------------------------------------------------------------------------
>> Master Visual Studio, SharePoint, SQL,
>> ASP.NET
>> , C# 2012, HTML5, CSS,
>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> MVPs and experts. SALE $99.99 this month only -- learn more at:
>> http://p.sf.net/sfu/learnmore_122912
>>
>>
>>
>> _______________________________________________
>> Stripes-users mailing list
>>
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122912_______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users