Bean named .. must be type of ...

2010-05-24 Thread Sam Wun
Dear everyone, I know this may not be the problem of struts, but you guys may knows the answer. I am using Liferay portal 5.2.3 and I want to overwrite a method in a liferay source class. Therefore I have created my own Wrapper class and I want it to be used. I realised I need to separate the bean

Re: Struts 2 and Spring 3??

2010-05-24 Thread Robert Taylor
Currently I'm using the struts2-spring-plugin-2.1.8.1.jar spring-security-x-3.0.2.RELEASE.jars org.springframework.x-3.0.1.RELEASE-A.jars This seems to work for me for integrating Spring Security(3.x) with Struts2 using Spring 3.x core files. /robert - Original Message - Fro

Re: Struts 2 and Spring 3??

2010-05-24 Thread Burton Rhodes
Musachy - I see your name all over that Struts-Spring plugin! What will it take to get a Struts-Spring 3.x plug-in out of you? 6-pack of beer? :) Serously though - any plans Spring 3.0 integration for Struts soon? On Mon, May 24, 2010 at 2:22 PM, Burton Rhodes wrote: > Hantsy - > It appears

Re: Struts 2 and Spring 3??

2010-05-24 Thread Burton Rhodes
Hantsy - It appears that AppFuse 2.1 uses Spring 2.5.6 and Spring Security 2.0.4 (as far as I can tell from the pom file). Not sure this is a fit. Robert - Are you using the Struts-Spring-Plugin as well? Currently I am using Struts 2.1.8 with Spring-Plug-in for injection (Spring 2.5.6). I want

Re: struts2 + javascript doubt

2010-05-24 Thread sandeep kotha
One more simple thing just replace * with ' it will work On 24 May 2010 23:40, lucas owen wrote: > Hi: > > > is it possible to pass a dynamic parameter to a javascript function??? > > I'm trying this: > > > > > > > > > > javascript function: > > fPrimerNivel(id){ alert(id); } > > yields [ob

Re: struts2 + javascript doubt

2010-05-24 Thread Cimballi
Yes you can but instead of using you can use directly JSP EL like {myBean.propertyName}. Cimballi On Mon, May 24, 2010 at 1:10 PM, lucas owen wrote: > Hi: > > > is it possible to pass a dynamic parameter to a javascript function??? > > I'm trying this: > > > > > > > > > > javascript function

struts2 + javascript doubt

2010-05-24 Thread lucas owen
Hi: is it possible to pass a dynamic parameter to a javascript function??? I'm trying this: javascript function: fPrimerNivel(id){ alert(id); } yields [object] If I try the same, but with javascript:fPrimerNivel(this.id), I get [undefined] I dont know if this is possible, any he

RE: XML file reloading in JSP (Caching issue)

2010-05-24 Thread Martin Gainty
//instead of creating a whole new page would'nt it be easier to populate the changed items //and use an ajax control to dynamically populate a div tag on the jsp page? /tags/ui/treeExampleAjaxDynamic.ftl package org.apache.struts2.showcase; import org.apache.st

Re: Linking page

2010-05-24 Thread Paweł Wielgus
Hi All, i prefer it with !input added to action name, it will call input method on action which is kind of what You really want, that way submitting form will simply call execute method. But generally it's just the question of taste. Best greetings, Paweł Wielgus. 2010/5/21 Stephen Turner : > On

RE: XML file reloading in JSP (Caching issue)

2010-05-24 Thread XML User
I just did. No luck. :-( Thanks for the idea. sandeep.furia wrote: > > how about if you change the location of the xml file, take it out of > web-inf and put it under the context root? > > SDF/ > -Original Message- > From: XML User [mailto:patelsame...@yahoo.com] > Sent: Monday, Ma

RE: XML file reloading in JSP (Caching issue)

2010-05-24 Thread sandeep.furia
how about if you change the location of the xml file, take it out of web-inf and put it under the context root? SDF/ -Original Message- From: XML User [mailto:patelsame...@yahoo.com] Sent: Monday, May 24, 2010 11:16 AM To: user@struts.apache.org Subject: Re: XML file reloading in JSP (Ca

Re: XML file reloading in JSP (Caching issue)

2010-05-24 Thread XML User
Thanks for quick reply Brian.! I tried adding new timestamp as parameters which generates new number everytime I visit the page. Even added those headers setting for no cache... Still it is not getting updated. Brian Thompson-5 wrote: > > What extra parameters have you added to the reques

Re: XML file reloading in JSP (Caching issue)

2010-05-24 Thread Brian Thompson
What extra parameters have you added to the request? AFAIK the standard solution to this type of "improper caching" problem is to simply append a random number or a timestamp to the request URL. It's an ugly hack, but it does work even when the headers don't seem to do the trick. Of course, the

XML file reloading in JSP (Caching issue)

2010-05-24 Thread XML User
Hi, I am running into an issue of caching. I have a jsp which generates the tree view from an XML file. This XML file are loaded when the jsp is loaded. So whenever I add new child to the tree view the xml file is updated by action class and the request reloads the jsp page which in turns reloa

Struts 1: Extending within struts configuration XML

2010-05-24 Thread Andrew Feller
QUESTION: Is there any way to prevent access to base configuration extended by another within the struts configuration? CONTEXT: I am looking to setup a template configuration to be used by several actions, however the only way to reference the template is via the "path" attribute. The big