Re: Cannot find bean: sendJsp in any scope

2010-03-17 Thread tesla
thanks for reply but it still doesn't work.I am looking the tutorials on the google and it must be like this but its not working .I cant understand why it is?if you have an example with arrays and logic iterate i will be thankful if you share it with me Andrew Sharpe-2 wrote: I think you

RE: [S2] Error running under Weblogic 10.3.2.0

2010-03-17 Thread Gustavo Felisberto
I did some more testing and this is getting really strange. I'm using eclipse and when I export the project as a WAR file and place it inside the autodeploy directory of a running weblogic domain it works fine. It just gives this error when using the publish feature of eclipse. Any ideas?

Re: [S2] Error running under Weblogic 10.3.2.0

2010-03-17 Thread Lukasz Lenart
2010/3/17 Gustavo Felisberto gustavo.felisbe...@wit-software.com: I did some more testing and this is getting really strange. I'm using eclipse and when I export the project as a WAR file and place it inside the autodeploy directory of a running weblogic domain it works fine. It just gives

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

2010-03-17 Thread Hoying, Ken
Try: SecurityContextHolder.getContext().getAuthentication().getPrincipal() -Original Message- From: Lance Hill [mailto:la...@baldhead.com] Sent: Tuesday, March 16, 2010 5:15 PM To: 'Struts Users Mailing List' Subject: Getting the authenticated user from Spring Security for use in an

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

2010-03-17 Thread Lance Hill
I tried using that, but SecurityContextHolder.getContext() returns a null value. Any thoughts on how to fix that? -Original Message- From: Hoying, Ken [mailto:ken_hoy...@premierinc.com] Sent: Wednesday, March 17, 2010 7:36 AM To: Struts Users Mailing List Subject: RE: Getting the

Re: Cannot find bean: sendJsp in any scope

2010-03-17 Thread Andrew Sharpe
Along with the change I suggested, you also need to add a public getName() method to your Book object. Try that, and also make sure you can get a simple String property to display to ensure you have Struts configured properly. If you still have trouble let me know and I ll come up with a

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-17 Thread jonathan doklovic
Thanks, Are the artifacts in a snapshot repo somewhere, or do i have to manually install them into local? - J Lukasz Lenart wrote: 2010/3/16 jonathan doklovic list-rea...@sysbliss.com: I was able to resolve the issue simply by using the snapshot jar listed on this blog post:

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-17 Thread Lukasz Lenart
2010/3/17 jonathan doklovic list-rea...@sysbliss.com: Are the artifacts in a snapshot repo somewhere, or do i have to manually install them into local? Not yet, I'm working on that ;-) Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl

SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Lance Hill
I am trying to get access to the currently logged in user, but when I call SecurityContextHolder.getContext().getAuthentication(), the Authentication returned is null. I am assuming the user is logged in since they have access to the secure page I am testing, but I don't know how to tell for sure

Re: Cannot find bean: sendJsp in any scope

2010-03-17 Thread tesla
I already had public getName() method.i wrote all getters and setters to my application just didn't post them to the forum.i created a new arraylist and added String property but cant show them always the same error.I'm losing my mind i have a problem with listing array elements.I really be

Re: SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Lukasz Lenart
2010/3/17 Lance Hill la...@baldhead.com: Any hints about why SecurityContextHolder.getContext().getAuthentication() would return a null? Spring version? Configuration? Did you try the simplest possible setup? Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010

RE: SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Lance Hill
I'm using Spring 3/Spring Security 3. I tried using security:authentication property=principal.username/ on the protected page and the username actually appears when I go directly to http://localhost/jsp/hello.jsp. If I go to http://localhost/hello.action, the security:authentication

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

2010-03-17 Thread adam pinder
Store the data entered in an object and have it in the session, making the get/set for the object do a get/put into the session. they can change to their hearts content. Date: Wed, 17 Mar 2010 02:52:50 +0530 Subject: Can we some how persist form

RE: SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Hoying, Ken
Check your filter order. I cannot recall if it is the filters are chained by the filter declaration order of the filter mapping order. -Original Message- From: Lance Hill [mailto:la...@baldhead.com] Sent: Wednesday, March 17, 2010 12:08 PM To: 'Struts Users Mailing List';

Re: Setter in action triggers twice. Bug?

2010-03-17 Thread Francisco José Aquino García
Nice, that 'merge' parameter. I'm still using Struts2 2.1.6 and had already stumbled on this. Worked around it using params.excludeParams on the statically-parameterized actions to filter out the static params. Browsing the latest distribution I've noticed that it bundles xwork-core-2.1.6.jar but

Admin defined (not configured in XML) URL recognizing

2010-03-17 Thread Marek Dudek
Hello I cannot find any information about my problem on the web, may be You could help me. I'm developing application with Struts 2 (2.1.8) that requires an ability to create URL-s in administrative panel, aside from those declared in struts.xml and web.xml. Ie. I want to have a form accepting

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

2010-03-17 Thread sandeep kotha
Hi Scott Got you !! Thank you very much. On 17 March 2010 04:30, stanl...@gmail.com wrote: Hi Sandeep -- One clean way you can do this is by using the ScopedModelDrivenInterceptor http://struts.apache.org/2.x/docs/scoped-model-driven-interceptor.html . Peace, Scott On Tue, Mar 16,

Re: Setter in action triggers twice. Bug?

2010-03-17 Thread Lukasz Lenart
2010/3/17 Francisco José Aquino García fj.aqu...@gmail.com: Browsing the latest distribution I've noticed that it bundles xwork-core-2.1.6.jar but the latest version listed on the XWork home page is 2.1.5... has Struts2 forked xwork-core-2.1.6 from the official XWork? Yap, XWork is part of

Re: Admin defined (not configured in XML) URL recognizing

2010-03-17 Thread Lukasz Lenart
2010/3/17 Marek Dudek marek.du...@gmail.com: Is that possible and how to do it? I'm not sure what you want to achieve, but maybe writing a custom ActionMapper could help. http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/ActionMapper.html Regards -- Łukasz

Re: Cannot find bean: sendJsp in any scope

2010-03-17 Thread Andrew Sharpe
I found a full example for you here: http://www.java2s.com/Code/Java/J2EE/StrutsFrameworkASampleStrutsApplication.htm You'll notice that the name property of the logic:iterate tag is set to the form name as used in struts-config (in your case, BookForm). Assuming data.jsp forwards to

Re: Can a collection property have its changes saved back to the ActionForm?

2010-03-17 Thread Andrew Sharpe
For the archives, the solution I'm going with is to have the javascript add html:hidden elements to the document corresponding to the new values in the select. The names of the hidden elements will be indexed. Something like this: Action Form: public ListString getOldList() public String