How to get ServletContext from Interceptor.init

2008-01-05 Thread Néstor Boscán
Hi Is there a way to get the ServletContext from Interceptor.init. I tried using the ActionContext but it returns null. Regards, Néstor Boscán

How to set multiple cookies to access them using bean:cookie multiple="yes" tag.

2008-01-05 Thread sai reddy
I'm a newbie to struts. I wanted to practice tag's 'multiple' attribute. But the problem is i don't know how to set multiple cookies. Please help me. I tried this code to set multiple cookies...but only the last cookie gets added...i mean the first one gets replaced by the second cookie

Re: [S2] Action-specific interceptor config sanity check needed.

2008-01-05 Thread Dave Newton
Never mind :( (Apparently actually reading the stack trace can be handy sometimes.) Don't like it, though, and if nobody has any strenuous objections, I'd like to fix it. --- Dave Newton <[EMAIL PROTECTED]> wrote: > Howdy, > > > > #{'cool': 'map'} > > ... etc ... > > > Generates

[S2] Action-specific interceptor config sanity check needed.

2008-01-05 Thread Dave Newton
Howdy, #{'cool': 'map'} ... etc ... Generates an NPE on startup. If I switch to: #{'cool' : 'map'} alias1_input it works as expected. Note that if I use "defaultStack" instead of "basicStack" in the second example it breaks, but at runtime w/ an OGNL exception. I'm

Re: RE: S2: chart result type not recognized

2008-01-05 Thread John . C . Cartwright
Thanks for your offer to help Martin! Listed below is the struts.xml, web.xml, and source for the Action class (taken straight from the docs). I'm testing it by simply typing the URL into the browser: http://localhost:8000/viewer-commons-2.0/chart/ViewModeration.action I notice that if I embe

RE: S2: chart result type not recognized

2008-01-05 Thread Martin Gainty
Johncan you post the code you are implementingjspsActionServlet as well as the configuration filesweb.xmlany struts*.xml Thanks/Martin __Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business o

[S2] logic:redirect substitute

2008-01-05 Thread Marcin Pietraszek
Hi, as in subject. Is there in Struts2 tag which have the same behavior as from Struts1? If no, how I can achive simillar effect with S2 tags? -- greetings! kbl/Cinek/greengoo marcin.pietraszek.pl - To unsubscribe, e-mail: [EM

Re: S2: chart result type not recognized

2008-01-05 Thread John . C . Cartwright
Hi Ian, thanks for your reply. For testing purposes, I'm simply calling it via URL: http://localhost:8080/viewer-commons-2.0/chart/serverIronLoadChart.action Strangely, I was able to get the chart example from the docs to run in new context, I just can't seem to be able to integrate it into a m

Re: [S2] Adding a new interceptor to every package.

2008-01-05 Thread stanlick
Hey GF -- Your package declaration can extend multiple packages by using the comma! Scott On Jan 4, 2008 10:36 AM, GF <[EMAIL PROTECTED]> wrote: > Hi everyone. > I have many packages that extends extends="tiles-default". > I would like to add an interceptor to all of them. > > Now I'm doing t

Re: [S2] Adding a new interceptor to every package.

2008-01-05 Thread GF
Really I have still some issues. my struts.xml is built in this way: In every included xml i define a different package for a different section of the, i.e. in struts1.xml I define the package name="one" If I put the package name="default" inside struts1.xml I can extend package "one" from

XHTML Form validation problems... for ever!

2008-01-05 Thread Manos Batsis
I'm using commons-validator 1.3.1 with Struts 1.3.8 and 1.3.9. In short, the jcv_retrieveFormName function returns nothing, so other functions that try to use it end up with errors looking up for variables (well functions) like "_required" when they should look for formnameOrId_required. I'v

Re: [S2] Adding a new interceptor to every package.

2008-01-05 Thread GF
thank you very much! > > Sure: define the stack once, then reference it from each of your packages: > > > > > > > > > > > > > > > > ...actions... > >

The file cannot be validated as the host "struts.apache.org" is currently unreachable.

2008-01-05 Thread Subhash_K
Hi, I am new to struts. For learning I am using Struts 2.0.11 and Eclipse 3.3.1 Europa. After Importing Struts-blank.war file in eclipse I get these wornings for struts.xml and exmple.xml as well as Login-validation.xml warnings are as follows :- The file cannot be validated as the host "struts

RE: wrong request parameters sent

2008-01-05 Thread ravi_eze
yaa i am presetting the checkbox. any how i got the solution, may b a workaround one:i wrote a reset interceptor which would always reset the checkbox vairable of the action class when the jsp page is submitted. now if the checkbox is not selected the value remains reset. mgainty wrote: > >

Re: Struts 2 + Spring 2 + JPA + AJAX tutorial

2008-01-05 Thread Alvaro Sanchez-Mariscal
Quoting: "1. Create a folder named "META-INF" under the "src" folder. 2. Create a file named "persistence.xml" under the "META-INF" folder and set its content to..." Content within src should be compiled into WEB-INF/classes. Doing the maven way, this file should be in src/main/resources Alvaro