Re: [S2] actions responding only to POST/GET methods

2008-10-29 Thread Paweł Wielgus
Hi Hernán, > Of course, you should never use GET when submitting a password, but that's a > privacy concern you (developer) just deal when writing your jsp. could You elaborate more about the reason why? Best greetings, Paweł Wielgus.

Re: @Result annotation - params field

2008-10-29 Thread Paweł Wielgus
Hi, @Result (type=ServletActionRedirectResult.class, value = "show", params = {"namespace", "/wsp/boss/target", "month", "${month}", "year", "${year}"}) You need to add getMonth() and getYear() in action that is calling this result. Best greetings, Paweł Wielgus. 2008/10/28 col_chappy <[EMAIL

Re: SPAM WARNING!: RE: Struts2 : Calling AJAX function on button click(ONLY)

2008-10-29 Thread Steven Yang
Hi on thing i noticed is that you have a notifyTopics attribute on you submit tag which i dont think is necessary and used wrong. i havent used dojo for a long time, so i am not sure if they changed any api or settings. but just a reminder you might need to take a look. you dont have to specify hr

Re: Problem publishing/subcribing events with dojo and struts

2008-10-29 Thread Sergio Sánchez González
Thanks in advance for the feedback. It's changed but doesn't work. This is the url tag and the link in the ExpedientList.jsp View All Messages And this is the div which receives the data in the Expedient.jsp:

selection of data from tag to right side through javascript event handling

2008-10-29 Thread Naaag
Hi All, I am a new buddy to java development. I have been assigned one task that is, i have fileds in my UI one is 1 --select group---this is dropdown mwnu 2--- optiontransferselect box i have list of values in left side after prepare method is c

Re: selection of data from tag to right side through javascript event handling

2008-10-29 Thread Sébastien Domergue
hi, the optiontransfertselect tag is build to display two select box where you can move items from one to other. In your example, your left box does not contain the data to add in your right box (am i right?). So i think that you can't use a tag out of the box. In my mind, you could use a sele

Re: How to putt objects on the valuestack from INSIDE an action?

2008-10-29 Thread Alexander Baetz
I guess i should add explanation. i want to save an object permanently on the value stack. In my case this object holds many informations that configure my pages (loginuserid...). It is created inside my loginAction. I can get it from an action with a get-Method, but this object is permanen

Custom Exception Interceptor

2008-10-29 Thread Gundersen, Richard
Hi I'm trying to override the default global exception handler, because I need to remove a certain session attribute when an exception occurs. I think I've done most of what's needed, it's just not being executed. This is my struts.xml (I need my 'exception' to replace the one in the default stac

Re: Freemarker (old version that struts2 uses) disappearing pages

2008-10-29 Thread Badgerman
You've probably fixed this now, but for the reference of future googlers, the pom fix needs a slight change: org.apache.struts struts2-core 2.0.11.2 freemarker freemarker

Re: Struts2 : Calling AJAX function on button click(ONLY)

2008-10-29 Thread Roger
On Tuesday 28 October 2008 20:01:41 Kanade, Sayali wrote: > Thanks for your reply, but not sure it answers my question. > > My question is: How can I prevent a div from refreshing its contents on > page load? The div should only be refreshed on button click. > > My problem is that, my div loads on

RE: Custom Exception Interceptor

2008-10-29 Thread Gundersen, Richard
Got it: redefine the whole stack with my custom interceptor

How to recover the action's name executed

2008-10-29 Thread Juanjo Cuadrado
Hi, I need to know how to recover (from the validation method) the name of de action that has been invoked. I want to know the name of the method that will be executed for this action (in the struts.xml I have put diferents methods for the same action class). Thanks.

Re: [S2] actions responding only to POST/GET methods

2008-10-29 Thread Wes Wannemacher
On a get request, the password would be present in the URL - http://localhost:8080/yourApp/Login.action?username=username&password=yourpassword This is probably not a *huge* deal, but there are places where requests might be logged... Proxy servers, etc. -Wes 2008/10/29 Paweł Wielgus <[EMAIL PR

Re: Struts Factory

2008-10-29 Thread Adam Hardy
And you could automate that for all your actions by writing an interceptor for it. (assumption: googlecode EJB plugin doesn't contain one already). esemba on 28/10/08 12:33, wrote: DI by default doesn't work, because POJOs (S2 actions) are not container-managed resources. You may use JNDI look

[S2]Multiple Form Submission

2008-10-29 Thread Jishnu Viswanath
Hi, Does any have any idea how to disable multiple form submission? I can not use disabling each button, just because of sheer number; I am looking for something like an interceptor. Does any one have any idea? I am using struts 2, I found some similar articles on struts 1 on base of token

Re: Problem publishing/subcribing events with dojo and struts

2008-10-29 Thread Musachy Barroso
Overall it is not a good idea to link an anchor and a div and make it both "ajax"-enabled. You can either publish a topic on the anchor and listen to it on the div (without targets in the anchor), or make the div plain, and use targets in the anchor. musachy On Wed, Oct 29, 2008 at 5:45 AM, Sergi

RE: Struts2 : Calling AJAX function on button click(ONLY)

2008-10-29 Thread Kanade, Sayali
Thanks for all your help! I tried changing the href of the div on button click but that doesn't work. How I finally managed to do this was by passing a hidden form field to action. The action only executes when the form field has a set value. So on page load the Action doesn't get this value and th

Re: [S2]Multiple Form Submission

2008-10-29 Thread hernan gonzalez
http://struts.apache.org/2.0.11.2/docs/token-interceptor.html http://struts.apache.org/2.0.11.2/docs/token-session-interceptor.html http://www.planetstruts.org/struts2-showcase/token/index.jsp Hernán J. González http://hjg.com.ar/ -

Re: How to recover the action's name executed

2008-10-29 Thread hernan gonzalez
If you need to execute different validation for each method, would'n it be more pertinent to validate programatically, invoking the corresponding validation method from each action method ? On Wed, Oct 29, 2008 at 10:55 AM, Juanjo Cuadrado <[EMAIL PROTECTED]> wrote: > Hi, > > I need to know how

Re: [S2] actions responding only to POST/GET methods

2008-10-29 Thread Paweł Wielgus
Hi Wes, thanks for the response, i've been wondering myself where would be any difference, but couldn't find any, from the server point of view. Still the proxies logs are a real threat. If some one else is reading it, don't think that POST is secure, one can sniff anything from post. Best greetin

Re: How to recover the action's name executed

2008-10-29 Thread Juanjo Cuadrado
uuummm... yes... but.. how? have you documentation this? 2008/10/29 hernan gonzalez <[EMAIL PROTECTED]> > If you need to execute different validation for each method, would'n > it be more > pertinent to validate programatically, invoking the corresponding > validation method > from each action

Re: [S2] actions responding only to POST/GET methods

2008-10-29 Thread Wes Wannemacher
I guess I assumed that any Login (or any sensitive information) action would be secured with SSL. If you have an SSL connection between you and your server, any packets sniffed would at least be encrypted. The URL would probably still show up in a log somewhere, which makes GET requests over SSL so

Query String limitation

2008-10-29 Thread Amir Jamak
Hello everyone, I am using Struts 1.2.9, and this is my first post to this list. I was trying to find solution elsewhere without any success. This is the problem, in the action form I have some sort of a collections which can grow in size.  I have observed that all of the items are listed in the

Query String limitation

2008-10-29 Thread Amir Jamak
Hello everyone, I am using Struts 1.2.9, and this is my first post to this list. I was trying to find solution elsewhere without any success. This is the problem, in the action form I have some sort of a collections which can grow in size.  I have observed that all of the items are listed in the

java.lang.NullPointerException: Module 'null' not found.

2008-10-29 Thread HarleyGuy
Forgive me for posting a topic that seems to be answered already in this forum. I am not able to correct this fault using the information provided in this form and FAQ sections. This is a basic tutorial example of a struts project I have created. It consist of one jsp, one Form and Action class.

Re: Query String limitation

2008-10-29 Thread Paweł Wielgus
Hi Amir, i have completly no idea what Your problem is, but maybe this will help: use instead of ... on the jsp where this action is triggered, also pay attention to not to add method="get" inside form tag. If You would provide more details about what You want to do it would be simpler to answ

Re: How to putt objects on the valuestack from INSIDE an action?

2008-10-29 Thread hernan gonzalez
A suggestion, which might or not be adequate for your case: If every action/jsp of your webapplication share that behaviour, and if your actions presently just extend ActionSupport, you might want to change that so that they extend instead a MySiteAction class (which extends ActionSupport and impl

Re: Query String limitation

2008-10-29 Thread Amir Jamak
Thanks a lot Paweł I think you have solved my problem. In fact I didn't know how to change from get to post. :-) Thanks again. Amir --- On Wed, 10/29/08, Paweł Wielgus <[EMAIL PROTECTED]> wrote: From: Paweł Wielgus <[EMAIL PROTECTED]> Subject: Re: Query String limitation To: "Struts Users Mailin

Which is Best book for Struts 1.2.9??

2008-10-29 Thread Casinova
I am using net beans 6.1 and they have provided strut 1.2.9 . so i m searching a good book for 1.2.9 . Please suggest me book and link where can i download? Thanks in advance -- View this message in context: http://www.nabble.com/Which-is-Best-book-for-Struts-1.2.9---tp20229400p20229400.html

Re: How to recover the action's name executed

2008-10-29 Thread hernan gonzalez
I wrote "validate programatically", it's rather trivial, though perhaps does not mix well with declarative validation, if you are using it. For example public class MyAction extends ActionSupport implements Validateable { public String method1() throws Exception { validate1();

java black belt ANNOUNCEMENTS

2008-10-29 Thread SAKHO Meissa (EXT)
Hi all, The java black belt community is proud to ANNOUNCE the release of the struts2 exam. You can take a beta exam (needs free registration), vote or add contribution questions. The struts2 exam is accessible here: http://www.javablackbelt.com/QuestionnaireDefDisplay.wwa?questPublicId=1 617

RE: Which is Best book for Struts 1.2.9??

2008-10-29 Thread Gundersen, Richard
If you're starting from scratch, why not use Struts 2 instead? I used 'Practical Struts 2: Web 2.0 Projects' by Ian Roughly (who wrote a lot of Struts 2 I think??) to get to grips with the basics. It's easy to read and flows nicely, building an app step by step (as opposed to the Spring docs whic

struts 2.0.14

2008-10-29 Thread David Harland
Hi, Is there any chance of getting a 2.0.14 build please. Thanks Dave. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to recover the action's name executed [SOLVED]

2008-10-29 Thread Juanjo Cuadrado
It works!!! Thanks. 2008/10/29 hernan gonzalez <[EMAIL PROTECTED]> > I wrote "validate programatically", it's rather trivial, though > perhaps does not mix well with > declarative validation, if you are using it. For example > > > public class MyAction extends ActionSupport implements Validatea

RE: [S2]Multiple Form Submission

2008-10-29 Thread Jishnu Viswanath
Hi, Thanks for the reply but I tried it out but got this error. In my stack I added I have a list of interceptors stacks, I added to them HTTP ERROR: 404 No result defined for action com.neolivz.sandbox.action.IndexAction and result invalid.token Requ

Re: [S2]Multiple Form Submission

2008-10-29 Thread hernan gonzalez
Take a look at the documentation. The message is quite clear: "No result defined for action com.neolivz.sandbox.action.IndexAction and result invalid.token" The Tokeninterceptor throw a special result "invalid.token" when the token is invalid (what usually means a double submit). Hence, you sh

RE: [S2]Multiple Form Submission

2008-10-29 Thread Jishnu Viswanath
Hi, I read that part, First thing I used token session interceptor, it says "it will block subsequent requests until the first request is complete, and then instead of returning the invalid.token code" Second there was no double post, none of my pages are loading when I

Re: struts 2.0.14

2008-10-29 Thread Rene Gielen
David, the latest problem with conversion errors not being copied to the safe stack is fixed in xwork svn, and we need it to be released before we could promote a 2.0.14 build. For now, you could check out the current xwork 2.0.x branch and build a jar which you could use as a drop in replac

Re: [S2]Multiple Form Submission

2008-10-29 Thread Wes Wannemacher
Can you copy/paste some of your action/jsp/configuration code. Are you using the tag in your form? -Wes On Wed, Oct 29, 2008 at 2:09 PM, Jishnu Viswanath <[EMAIL PROTECTED]> wrote: > Hi, >I read that part, >First thing I used token session interceptor, it says "it will block >

RE: [S2]Multiple Form Submission

2008-10-29 Thread Jishnu Viswanath
Hi Wes, I was not using But after your mail I just added that, and tried I have an empty jsp <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib prefix="t" uri="/test" %> Index This jsp is mapped in index.action In struts.xml I have the action mapped which refers

Re: [S2]Multiple Form Submission

2008-10-29 Thread hernan gonzalez
The should be in the jsp that creates the form that is submitted to the action (not in the result jsp!), so that the action can check for its existence. And the stack with the token interceptor should be applied only to that action/method. Hernán J. González http://hjg.com.ar/ On Wed, Oct 29, 2

RE: [S2]Multiple Form Submission

2008-10-29 Thread Jishnu Viswanath
Hi, :) Thanks Henan, At least something came up, It was my mistake I was doing it in all interceptor, now I have to extend that interceptor to ignore the values if the session does not exist. It ok :) And they call getters every time also, that also I have to worry, any way than

Struts 2 + Tiles 2

2008-10-29 Thread Carlos Curotto
Hi everyone, I am trying to configure Struts 2 version 2.0.12 and Tiles 2. When i call an action that uses tiles, i am getting this exception: javax.servlet.ServletException: Error including path '/WEB-INF/layout/common.jsp'. org/apache/tiles/ListAttribute org.apache.struts2.dispatcher.Dispatch

RE: [S2]Multiple Form Submission

2008-10-29 Thread Jishnu Viswanath
Hey Henan, In some case I am getting Map session = ActionContext.getContext().getSession(); And the session contains a key called org.apache.struts2.util.InvocationSessionStore.invocationMap and the value is Another SessionMap, whose key value is correct struts.token and value is the SESS

Blank Application struts2-blank-2.0.12. /example/HelloWorld.action - is not doing internationalization

2008-10-29 Thread Ambar Méndez
Hi ... I got struts2-blank-2.0.12.war from download of Struts homepage and probed it on apache-tomcat-6.0.16. It only displays in Spanish but when I'm testing this same example on http://struts.apache.org/2.x/docs/tutorials.html in Examples' section, it works fine. I tried to add localization to

Re: Struts 2 + Tiles 2

2008-10-29 Thread Márcio Gurgel
Hi Carlos, I guess that you forgot to put a tiles result type in your struts.xml. Check if adding this (in your struts.xml) works: *To return a tiles result use this sintax:* default.pedidoPesquisa *My tiles.xml* http://tiles.apache.

Struts 2.0.12 - XML Validation with Websphere 6.1

2008-10-29 Thread Struts Developer
There was a know issue with struts 2.0.11.2 that the integrated XWork 2.0.5 jar may cause problems when used in a combination of WebSphere 6.1 runtime environments with validation configuration via XML file. Is this fixed with struts 2.0.12?. I do not see any information on the apache website.

RE: [S2]Multiple Form Submission

2008-10-29 Thread Jishnu Viswanath
OOPS!!! I made a little mistake in last explanation, I just found out When ever Struts execute a valid token they actually call InvocationSessionStore.storeInvocation(key, token, invocation); Which intern crates a map and adds the map to session with the key org.apache.struts2.util.InvocationSess

RE: Struts 2.0.12 - XML Validation with Websphere 6.1

2008-10-29 Thread Jishnu Viswanath
Does this help? https://issues.apache.org/struts/browse/WW-2653 Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Struts Developer [mai

RE: [S2]Multiple Form Submission

2008-10-29 Thread Jishnu Viswanath
HI, Did any one worked with mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 3:36 AM To: Struts Users Mailing List Subject: RE: [S2]Multiple Form Submission Hey Henan, In some case I am getting Map session = ActionContext.getContext().getSession(); And the session contai

Re: Struts 2.1.2 client side validation doesn't get generated

2008-10-29 Thread Adam Ruggles
Anyone? The server side validation works fine, when I post the form it comes back with the correct validation but the client side is not being generated because the performValidation is being set to false. The obvious work around is to edit the form-close-validate.ftl and remove (parameters.perf

Re: Struts 2.1.2 client side validation doesn't get generated

2008-10-29 Thread Adam Ruggles
It looks like this is a Google Guice issue. When I swapped the guice plugin for the spring plugin everything worked as expected. -- View this message in context: http://www.nabble.com/Struts-2.1.2-client-side-validation-doesn%27t-get-generated-tp20221161p20240986.html Sent from the Struts - Use

Re: Struts 2.0.12 - XML Validation with Websphere 6.1

2008-10-29 Thread Rene Gielen
The release notes at http://cwiki.apache.org/confluence/display/WW/Release+Notes+2.0.12 point to the closed issues for that release: https://issues.apache.org/struts/secure/ReleaseNote.jspa?projectId=10030&styleName=Html&version=21870 The issue you are looking for is https://issues.apache.org/str