Validation Problem

2007-12-07 Thread ginu
Hi all iam using struts2 iam getting a validation Problem All the fields get Validated while using the get method for a particular action while using the post method only two fields get validated Ginu - To unsubscribe, e-mail:

Re: struts.ValueStack not found - 2.1

2007-12-07 Thread Chon Tang
I've been able to track this down a little more, and the issue is pretty different from what I expected. The ActionContext is being changed from between the point my action is invoked, to the point the resulting JSP is serviced/rendered. My action is defined this way: /views/

Way to use Request scope for the following Questionnaire (using a DynaBean)?

2007-12-07 Thread Rick Reumann
Hopefully this won't sound too confusing. I'm leaving out a few details to try to get right to the heart of the issue...(Struts 1.3) I have an ActionForm that has a DynaBean that holds "answers." Imagine a case where you have various surveys (templates) at different points in time thus the questio

Re: [struts] params and staticParams

2007-12-07 Thread Dale Newfield
Jeromy Evans wrote: Wouldn't it be the case for most people that specify params in the action definition that they wouldn't want those overridden by request params? I don't know the history but I think you make a good point. It a couple more people agree I'll create a JIRA issue and post a pa

Re: struts 2.0.9 error /template/xhtml/tree.ftl not found.

2007-12-07 Thread akash agrawal
Hi Martin, Thanks for the reply. The form I am using is very simple. <%@ taglib prefix="s" uri="/struts-tags" %>

Re: params and staticParams

2007-12-07 Thread Jeromy Evans
Dale Newfield wrote: Using the staticParams interceptor that should be straightforward. Except that in the default stacks, an instance of "params" follows "staticParams", which would allow these action definitions to be overridden (which I don't want). I will change the order in my own stack

Re: Struts 2 File upload to store the filedata

2007-12-07 Thread Jeromy Evans
Johnson nickel wrote: Hi Evans, I digged in google examples in StreamResult. But, i can't understand. I want to display the images in browser Using StremResult. Instead of ServletOutputStream out= response.getOutputStream(); How can i use StreamResult. Can u gi

struts.ValueStack not found - 2.1

2007-12-07 Thread Chon Tang
Hi there, I'm in the process of attempting an upgrade from a working 2.0.9 application to 2.1. For some reason, what I thought would be a very simple upgrade has gotten very messy... none of my jsp files are rendering correctly, because it seems like the valueStack is not being inserted into the

params and staticParams

2007-12-07 Thread Dale Newfield
I'm about to change the order of these two interceptors in my application, and I thought I'd ask about this use case, and find out why the order is as it is right now in struts-default.xml. I've got a fairly generic "get a piece of a list of " action, and I think I've settled on creating a

Re: Problem showing ExpressionValidator message

2007-12-07 Thread Laurie Harper
romanws wrote: I have the following code for validation: @Validations( expressions = { @ExpressionValidator ( key = "error.general",

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Rodrigo Pereira
Thanks it is working now! I also needed commons-collection. Why does not Struts come with those jars? :) Thanks, Rodrigo Pereira On Dec 7, 2007 6:20 PM, Mike Jennings <[EMAIL PROTECTED]> wrote: > Looks like you don't have apache commons-digester in your classpath > > > Rodrigo Pereira wrote: > >

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Martin Gainty
did you check to see commons-digester.jar is on /WEB-INF/lib ? and which version ? M- - Original Message - From: "Rodrigo Pereira" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, December 07, 2007 3:17 PM Subject: Re: Struts 2.0.11 + Tiles > I got more information. > >

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Mike Jennings
Looks like you don't have apache commons-digester in your classpath Rodrigo Pereira wrote: I got more information. 07/12/2007 18:15:55 org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.apache.struts2.tile

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Rodrigo Pereira
I got more information. 07/12/2007 18:15:55 org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule

Re: bypass validation

2007-12-07 Thread j alex
Have the "Add Address" button submit to a different method - say, addAddress() on personSave action itself. ie For suppressing validation for this method alone, but allowing for other methods on the action, use the wildcard action mappings -- see earlier posts for the same. Thanks, Joseph On

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Rodrigo Pereira
That's all it is printed... Thanks, Rodrigo Pereira On Dec 7, 2007 5:38 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>: > > Hi, > > after I updated to 2.0.5 I got errors during startup > > > > org.apache.tiles.impl.BasiTilesContainer init > > INFO

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Antonio Petrelli
2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>: > Hi, > after I updated to 2.0.5 I got errors during startup > > org.apache.tiles.impl.BasiTilesContainer init > INFO: Initializing Tiles2 container > org.apache.catalina.core.StandardContext start > SEVERE:startup failed due to previous errors > org.

Re: Required validator dosen't work

2007-12-07 Thread Arpan Debroy
The "symptom" of the problem is that "required" validator does not work at all. What a "required" validator should do? If I don't put any value in the text box, it should throw an error message. The "required" validator doesn't work for any type of value. Can anybody use this validator successfully

Re: struts2-portlet in maven repository - war instead of jar

2007-12-07 Thread Aleksander Adamowski
On 12/7/07, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote: > Hi! > > The struts2-portlet is a sample portlet application. You should not > need to have any dependency on it, as it is just for demonstration > purposes. If you're using Struts 2.0.x, all portlet classes are > included in the core.

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Rodrigo Pereira
Hi, after I updated to 2.0.5 I got errors during startup org.apache.tiles.impl.BasiTilesContainer init INFO: Initializing Tiles2 container org.apache.catalina.core.StandardContext start SEVERE:startup failed due to previous errors org.apache.tiles.access.TilesAccess setContainer INFO: Removing Til

Re: Required validator dosen't work

2007-12-07 Thread Gary Affonso
Thanks for the code. Still nothing obvious (at least to me). What exactly is the *symptom* of the problem? What behavior are you seeing but not expecting? - Gary xniit2003 wrote: Here's my code :- in struts.xml file :- name="input">/channels/channel_gro

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Antonio Petrelli
2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>: > > No, only a message from tomcat saying the resource is not available. > Well, my index.html page automatically redirects to an action. Mmm... at this point I suggest to update to Tiles 2.0.5. http://tiles.apache.org/download.html Probably you wi

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Rodrigo Pereira
No, only a message from tomcat saying the resource is not available. Well, my index.html page automatically redirects to an action. Thanks, Rodrigo Pereira On Dec 7, 2007 1:40 PM, LEONARD Julien (Consulting for ACCOR Hotels) <[EMAIL PROTECTED]> wrote: > And if you put the strutslistener you haven

RE: Struts 2.0.11 + Tiles

2007-12-07 Thread LEONARD Julien (Consulting for ACCOR Hotels)
And if you put the strutslistener you haven't any exception in you server log? No exception on startup ? No exception when you try to access to your application? -Message d'origine- De : Rodrigo Pereira [mailto:[EMAIL PROTECTED] Envoyé : vendredi 7 décembre 2007 16:27 À : Struts Users Ma

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Rodrigo Pereira
Yes, I only get the exception if I remove it, if not I get "The requested resource (/myApp/) is not available." and it seems like all my actions stop working. Thanks, Rodrigo Pereira On Dec 7, 2007 1:10 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Antonio Petrelli
2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>: > > Hi, > no exception during startup. > Btw, is it correct of not having StrutsTilesListener in web.xml? Yes, it *is* correct. Why are you asking, did you remove it? That listener is necessary for Tiles (inside Struts) to work. Antonio

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Rodrigo Pereira
Hi, no exception during startup. Btw, is it correct of not having StrutsTilesListener in web.xml? Thanks, Rodrigo Pereira On Dec 7, 2007 12:46 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>: > > > > java.lang.NullPointerException > > org.a

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Alberto A. Flores
Have you try replacing this: tilesDefinitions /WEB-INF/tiles.xml with this org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /WEB-INF/tiles.xml Antonio Petrelli wrote: 2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>: java.lang.NullPointerException org.apache.

Re: Bug: getModel called twice - Status?

2007-12-07 Thread Wes Wannemacher
On 12/7/07, Gary Affonso <[EMAIL PROTECTED]> wrote: > Wes Wannemacher wrote: > > In the past, the solution was to do the "work" using the prepareable > > interface then just returning the reference to your model. I could be > > remembering incorrectly, but I would avoid doing any work in a getter.

RE: struts 1.2.9 and cancel button

2007-12-07 Thread Garner, Shawn
Our tooling/app server vender along with our company has identified 1.2.9 as needed for the security fixes. I suppose if we went further they wouldn't support it or on the App Server or in our IDE (GUI drag and drop, fancy struts config GUI view) which are tightly coupled. So I'm restricted to th

Re: struts 1.2.9 and cancel button

2007-12-07 Thread Alberto A. Flores
By the way, have you considered using Struts 1.3.8? I have code (currently) that works just fine and that does what you need (forward to a *.do on cancel). Clearly, you don't need to upgrade right now (you can handle your use case in your method controller), however it's worth considering sinc

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Antonio Petrelli
2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>: > > java.lang.NullPointerException > org.apache.struts2.views.tiles.TilesResult.doExecute( > TilesResult.java:104) Ok this is symptom that the Tiles container has not been loaded (there is an issue that addresses the problem of the NPE, jus

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Rodrigo Pereira
I noticed before I sent the note that I only get this exception if I took off StrutsTilesListener from web.xml, not sure if this is correct. java.lang.NullPointerException org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104) org.apache.struts2.dispatcher.Str

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Antonio Petrelli
Ok I give up :-( Seriously Rodrigo, we need the stack trace of the exception that you told that you have found. Otherwise, you are really too vague. Antonio 2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>: > > I got that error: "The requested resource (/myApp/) is not available." > > web.xml: > >

Re: Struts 2 File upload to store the filedata

2007-12-07 Thread Martin Gainty
a static inner class example is located at org.apache.struts2.util.StrutsUtil called static class ResponseWrapper notice the sout = new ServletOutputStreamWrapper(strout); assignment Difficult to determine what your needs are without more information M-- - Original Message - From: "Johnson

Re: Required validator dosen't work

2007-12-07 Thread xniit2003
Here's my code :- in struts.xml file :- /channels/channel_group_profile.jsp /channels/channel_group_profile.jsp in jsp :- in validation xml :- app id should not be null Here "channelGroupTO" is a tr

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Rodrigo Pereira
I got that error: "The requested resource (/myApp/) is not available." web.xml: tilesDefinitions /WEB-INF/tiles.xml struts org.apache.struts2.dispatcher.FilterDispatcher struts /*

Re: Struts 2 File upload to store the filedata

2007-12-07 Thread Johnson nickel
Hi Evans, I digged in google examples in StreamResult. But, i can't understand. I want to display the images in browser Using StremResult. Instead of ServletOutputStream out= response.getOutputStream(); How can i use StreamResult. Can u give some examples pgm??

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Antonio Petrelli
Rodrigo Please post the exception stack trace here, otherwise we cannot help you! Antonio 2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>: > > Struts actions stop working and it is not recognize by tomcat. > > I have the following jars: > > struts2-tiles-plugin-2.0.11.jar > tiles-api-2.0.4.jar > t

bypass validation

2007-12-07 Thread Jeancarlo
Hello, I'm new on struts 2, and I'm using just struts 2 right now (no ajax), and the system I'm developing have a client and address, and I want to do something like the folowing: What I want to do is something like a partial form submission: above is the first v

Re: Struts 2 File upload to store the filedata

2007-12-07 Thread Jeromy Evans
Don't use ServletOutputStream within Struts2. Use a StreamResult instead: http://struts.apache.org/2.0.11/docs/stream-result.html In the example provided in the above link, inputName references a property in your action that's an InputStream you need to create from your data. InputStream ge

Re: Struts 2 File upload to store the filedata

2007-12-07 Thread Johnson nickel
Hi Evans, I want to display the images in browser from the database. I have added my code.It throws null pointer Exception. In my action, i have implements ServletRequestAware,ServletResponseAware interface. I want to know if ServletOutputStream

Re: Struts 2.0.11 + Tiles

2007-12-07 Thread Rodrigo Pereira
Struts actions stop working and it is not recognize by tomcat. I have the following jars: struts2-tiles-plugin-2.0.11.jar tiles-api-2.0.4.jar tiles-core-2.0.4.jar tiles-jsp-2.0.4.jar Thanks, Rodrigo Pereira On 12/6/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Rodrigo Pereira <[EMAIL PROTE

RE: struts 1.2.9 and cancel button

2007-12-07 Thread Garner, Shawn
Yeah, we have preprocessing to do. I've hardly ever went right to a JSP page and this seems to be pretty common from the Struts Apps I've seen. I'd say after the action has been processed it would be a good idea to clear it from the request like you said. Shawn -Original Message- From: [

Re: [S2] Webapps with different action extension

2007-12-07 Thread Ted Husted
First, it's important to note that regardless of how many frameworks, servlets, filters, or anything else we use, if it's under the same application-root, and shares the same web.xml, then it's all one web app. If we like, we can run Tapestry, Wicket, and Struts all in the same web application. All

[S2] Webapps with different action extension

2007-12-07 Thread Alexis Pigeon
Hi all, I'm facing a problem, surely due to an error in my configuration, but can't find out a solution for it... I would like two webapps, both built upon Struts 2 (2.0.11), to have different action extensions: - webapp-A will have *.do - webapp-B will have *.action Both webapps have the same w

Re: Automatic form submission using javascript in struts2

2007-12-07 Thread Ted Husted
There doesn't appear to be anything wrong with the script. You might try it from another workstation. As to the underlying use case, it appears that we would like to open a PHP page form a Struts Action. Another way to do that in Struts 2 would be to redirect with parameters. Something like this

Re: jsp pages cahces on struts

2007-12-07 Thread sneakerX
Hi, I'm facing the same problem as Odelya did, but: I can delete the .java AND the .class from the work directory but they get generated as they have been before. I can even delete the corresponding .jsp file, but ... they get generated! I'm using tomcat 5.0.30 unfortunatly this only happens on

Re: struts2-portlet in maven repository - war instead of jar

2007-12-07 Thread Nils-Helge Garli Hegvik
Hi! The struts2-portlet is a sample portlet application. You should not need to have any dependency on it, as it is just for demonstration purposes. If you're using Struts 2.0.x, all portlet classes are included in the core. Nils-H On Dec 7, 2007 12:33 AM, Aleksander Adamowski <[EMAIL PROTECTED]