Re: struts2 There is a bug in FileUploadInterceptor (FileContentType).

2011-07-18 Thread Dave Newton
Use a file type sniffer library. Dave On Jul 18, 2011 10:06 PM, "mohan rao" wrote: > I'm trying to rescrit a file being Upload based on FileContentType. I'm > facing browser compatability issue. Suppose if i have to allow only jar > files (application/java-archive) but i'm getting different cont

Re: Doubt on Struts 2 Architechture

2011-07-18 Thread Dave Newton
Interceptors wrap actions, like servlet filters do (more or less). If they didn't get control back you couldn't do things like an open-session-in-view. Dave On Jul 18, 2011 10:06 PM, "mohan rao" wrote: > Interceptors stack will be triggered before action class is executed and > after the result.

struts2 There is a bug in FileUploadInterceptor (FileContentType).

2011-07-18 Thread mohan rao
I'm trying to rescrit a file being Upload based on FileContentType. I'm facing browser compatability issue. Suppose if i have to allow only jar files (application/java-archive) but i'm getting different contentTypes for different browsers. Like x-zip compressed, application-octstream for the jar fi

Re: Doubt on Struts 2 Architechture

2011-07-18 Thread mohan rao
I was already posted my question http://www.coderanch.com/t/542088/Struts/struts-Architechture got zero response. -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4601242.html Sent from the Struts - User mailing list archive at Nabble.

Doubt on Struts 2 Architechture

2011-07-18 Thread mohan rao
Interceptors stack will be triggered before action class is executed and after the result. Why it's need to execute interceptors stack once again after result. I used all the interceptors before triggering an action and what's the purpose of calling these interceptors once again after action withou

Re: "jstl.jar vs. jstl-api.jar" for struts2.2.3

2011-07-18 Thread Emi Lu
Hi Dave, One's an implementation, one's the api (I assume). http://jstl.java.net/ provides two jars: . jstl-api.jar . jstl-implementation.jar I thought jstl-api is the newer version of jstl.jar, no? Neither is related to Struts 2. Some app servers provide JSTL out-of-the-box, some you'll nee

Re: "jstl.jar vs. jstl-api.jar" for struts2.2.3

2011-07-18 Thread Dave Newton
One's an implementation, one's the api (I assume). Neither is related to Struts 2. Some app servers provide JSTL out-of-the-box, some you'll need to deploy, you shouldn't need to deploy the API jar, just the implementation. (There's also standard.jar, but I can never remember which impl that's for.

"jstl.jar vs. jstl-api.jar" for struts2.2.3

2011-07-18 Thread Emi Lu
Hello, Could someone tell me the differences between "jstl.jar vs. jstl-api.jar"? It seems that "jstl-api.jar" cannot find: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %> But from "http://jstl.java.net/";, there is only "jstl-api.jar". Can someone tell which jar should

Re: JUnit in Struts

2011-07-18 Thread Mano Pájaro
Thanks Baubak, I will give it a try! 2011/7/18 Baubak Gandomi > Hello Uday, > > Why don't you check : > http://struts.apache.org/2.x/docs/testing-actions.html > > It is a bit short, but it worked just fine for me. > > Best regards, > > Baubak > > -- Manolo Pájaro Santander Ingeniero de Sistemas

RE: Conditional fire on validation()

2011-07-18 Thread Baubak Gandomi
Hello Eric, Another way of doing this would be using aliases. In other words the validation.xml file follows the action name not the class. If you send save action "foo-save" and method "save" pages/foo.jsp You create one declarative validation file per call So you add a validation fi

RE: JUnit in Struts

2011-07-18 Thread Baubak Gandomi
Sorry this reply was for Mano not Uday... -Original Message- From: Baubak Gandomi [mailto:b.gand...@castsoftware.com] Sent: lundi 18 juillet 2011 17:27 To: Struts Users Mailing List Subject: RE: JUnit in Struts Hello Uday, Why don't you check : http://struts.apache.org/2.x/docs/testing-

RE: JUnit in Struts

2011-07-18 Thread Baubak Gandomi
Hello Uday, Why don't you check : http://struts.apache.org/2.x/docs/testing-actions.html It is a bit short, but it worked just fine for me. Best regards, Baubak -Original Message- From: Mano Pájaro [mailto:mano0...@gmail.com] Sent: vendredi 15 juillet 2011 07:39 To: Struts Users Maili

Re: Conditional fire on validation()

2011-07-18 Thread Eric Lentz
> I'm not sure it's exactly what you're looking for, but IIRC there should be > a convention for the validate method, such that you can call, for example, a > method validateSave, expecting that it's fired contextually with the save > action > > Maurizio Cucchiara Oh yeah! I remember coming ac

Re: Conditional fire on validation()

2011-07-18 Thread Maurizio Cucchiara
I'm not sure it's exactly what you're looking for, but IIRC there should be a convention for the validate method, such that you can call, for example, a method validateSave, expecting that it's fired contextually with the save action Maurizio Cucchiara Il giorno 18/lug/2011 14.03, "Eric Lentz" h

Conditional fire on validation()

2011-07-18 Thread Eric Lentz
I'm using the wildcard method in my configuration pages/foo.jsp ... and I want validation to fire only upon the call to the method that performs the save/update. No problem with the XML file as the name takes care of that (e.g., assuming "save" is the method name: FooAction-foo-save

Wanted to use popup across frames.

2011-07-18 Thread manolion
Wanted to use popup across frames. Tiles defination:

Wanted to use popup across frames.

2011-07-18 Thread manolion
Wanted to use popup across frames. Tiles defination: