Re: Cannot find bean: "sendJsp" in any scope

2010-03-16 Thread Andrew Sharpe
I think you want: See the docs on logic:iterate for more info: http://struts.apache.org/1.0.2/struts-logic.html#iterate If this still doesn't work I would recommend trying to first output a String property to verify you have everything setup properly. - Original Message Fro

Re: Can we some how persist form values in Struts2 the way we do in struts1.x

2010-03-16 Thread stanlick
Hi Sandeep -- One clean way you can do this is by using the ScopedModelDrivenInterceptor . Peace, Scott On Tue, Mar 16, 2010 at 4:22 PM, sandeep kotha wrote: > Hi All, > > We are migrating our application from Struts1.x to

RE: Getting the authenticated user from Spring Security for use in an Action

2010-03-16 Thread Lance Hill
I used the same method to obtain the Authentication, but it returns as null. The user is logged in since it gets to the protected page I am accessing. Any thoughts on how to get the properly populated SecurityContext? -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sen

Re: Getting the authenticated user from Spring Security for use in an Action

2010-03-16 Thread Wes Wannemacher
I use - SecurityContextHolder.getContext().getAuthentication() I assume that if the object returned is null, then the user isn't logged in. I am using spring-security 2.0.4. -Wes On Tue, Mar 16, 2010 at 5:42 PM, Lance Hill wrote: > I have Spring Security set up to use CasAutheticationProvider

RE: Getting the authenticated user from Spring Security for use in an Action

2010-03-16 Thread Lance Hill
I have Spring Security set up to use CasAutheticationProvider to provide a UserDetails object. I did find an example that uses the SecurityContext to obtain an Authentication object and grab the UserDetails from there. I am not sure how to get access to the populated SecurityContext since Securit

Can we some how persist form values in Struts2 the way we do in struts1.x

2010-03-16 Thread sandeep kotha
Hi All, We are migrating our application from Struts1.x to Struts2. Let me say we have some 5 pages on each page user enters different data on 5th page we have submit button. Clicking on submit button we insert data entered in all 5 pages to DB. User can navigate to previous pages to change data

Re: Getting the authenticated user from Spring Security for use in an Action

2010-03-16 Thread Wes Wannemacher
What mechanism are you using to handle authentication/authorization? -Wes On Tue, Mar 16, 2010 at 5:14 PM, Lance Hill wrote: > I need to access information about the currently logged in user. I don't > think putting the user into the session during login is how it is supposed > to be done, but I

Getting the authenticated user from Spring Security for use in an Action

2010-03-16 Thread Lance Hill
I need to access information about the currently logged in user. I don't think putting the user into the session during login is how it is supposed to be done, but I have not found examples of how to get access to the current user from Spring/Spring Security. Can someone please provide a link or br

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-16 Thread Lukasz Lenart
2010/3/16 jonathan doklovic : > I was able to resolve the issue simply by using the snapshot jar listed on > this blog post: http://www.stonescape.net/roller/xtian/date/20091021 > > My web.xml was correct, just needed the updated sitemesh plugin. Here you have the whole build http://hudson.zones.a

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-16 Thread jonathan doklovic
I was able to resolve the issue simply by using the snapshot jar listed on this blog post: http://www.stonescape.net/roller/xtian/date/20091021 My web.xml was correct, just needed the updated sitemesh plugin. jonathan doklovic wrote: It seems that the patch mentioned in WW-3296 would fix my pr

Re: Cannot find bean: "sendJsp" in any scope

2010-03-16 Thread tesla
When i add logic present tag to data.jsp i am not getting an error but my page is still empty i think my arraylist is null but why? i'm waiting your advices tesla wrote: > > Hi > I wanna show my arrayList on the screen by using logic:iterate tag but > when i run my application i am gettig this e

property and expressions

2010-03-16 Thread CRANFORD, CHRIS
In Struts 2.1.6 I was able to write something like: I was able to even include the attribute value's value in a s:checkbox onclick attribute and it rendered just fine; however after upgrading to Struts 2.1.8.1, these statements no longer work as they had prior. Is there a more accepted way to w

[S2] Error running under Weblogic 10.3.2.0

2010-03-16 Thread Gustavo Felisberto
I am trying to run a Struts 2 application (basically the blank app). And I get an error. Can someone give me a hand? <16/Mar/2010 10H52m GMT> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1268736734488> <16/Mar/2010 10H52m GMT> <[

Cannot find bean: "sendJsp" in any scope

2010-03-16 Thread tesla
Hi I wanna show my arrayList on the screen by using logic:iterate tag but when i run my application i am gettig this error.I'm working on this application for two days and still i cant see my arraylist elements on the browser. Thanks in advice. data.jsp Book.java public class Book {