[S2] alternate tag layouts?

2007-05-09 Thread אלחנן מעין
hi.. i saw that all you do in struts tag is place them inside a form tag, and it automatically renders them as a 2 columns table, but if i want a diffeent layout? what if i want to have several controls in one group ,and several controls in another group next to them (like in frames) ? ___

RE: Struts 1.3.8 and URL Validation

2007-05-09 Thread pushkar . p
Ok. Thanks a lot. -Pushkar > -Original Message- > From: Tomas Kramar [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 09, 2007 10:51 PM > To: Struts Users Mailing List > Subject: Re: Struts 1.3.8 and URL Validation > > > It works on a server side - this means that you have to > sub

RE: Good idea of installing a file on host machine

2007-05-09 Thread Kapil Sharma
Thanks, But i heard of a new trechnology called web start. I think i can generate a new jnlp file at runtime. Pass it certain parameters from my browser, and that installer will also run the exe from my client PC using something called Persistent Service I need to study more Thanks and Regard

Re: Good idea of installing a file on host machine

2007-05-09 Thread Laurie Harper
Vijay Prajapati wrote: can we user HIDEFOCUS attribute in tag in Struts2.0.6? According to the reference documentation for that tag [1] no, there is no such attribute. L. ObWhine: please don't post unrelated questions to an existing thread. Be sure to start a new thread (with an appropria

Re: Select Tag - Odd Behavior

2007-05-09 Thread Brian Trzupek
Laurie, Yeah - Walking through code now. I will post back if I can resolve this one. b- On May 9, 2007, at 9:56 PM, Laurie Harper wrote: The only thing I can think of is that the collection is of a type s:select doesn't support, or that the individual elements in the collection are not

Re: (S2) submit question

2007-05-09 Thread Laurie Harper
Ray Clough wrote: I'm obviously missing something. Am I understanding this scenario correctly: I have 2 methods in my Action class: 'init' and 'save'. The 'init' method instantiates an instance variable 'myList', which is available to the jsp page thru a 'getList' method. The page is loaded

Re: [OT] Good idea of installing a file on host machine

2007-05-09 Thread Laurie Harper
Kapil Sharma wrote: Hello, I know it is not a struts based query but still i would like to have your idea, Can i install a file on the client host of the pc e.g. a text file whenever a user presses some action in my jsp. If yes can i run that file if it is exe. I am thinking of some parallel a

Re: Select Tag - Odd Behavior

2007-05-09 Thread Laurie Harper
The only thing I can think of is that the collection is of a type s:select doesn't support, or that the individual elements in the collection are not what you think they are. I can't see anything from the details you've posted that looks wrong. Maybe it would help to grab a copy of the Struts

Re: [S1] Struts JavaScript Validation staticJavascript generates too much code

2007-05-09 Thread Niall Pemberton
On 5/9/07, Antony Stubbs <[EMAIL PROTECTED]> wrote: Having staticJavascript=true generates *all* the validation functions specificed in struts-validators.xml (?) even if the form it's generating for only uses the REQUIRED validator. Is there a way to minimise the javascript generated? Commons

Re: How to forward to an unknown view in Struts 2?

2007-05-09 Thread Dave Newton
--- Caine Lai <[EMAIL PROTECTED]> wrote: > @Result(name=Action.SUCCESS, > value="/resources/${resource}.ftl", > type=FreemarkerResult.class) > Am I missing something? Did you try using OGNL syntax, like %{resource}.ftl? d. __ Do Y

Re: How to forward to an unknown view in Struts 2?

2007-05-09 Thread Caine Lai
Thanks again for your help. So perhaps I'm not understanding how to get this to work. In my action I have this mapping: @Result(name=Action.SUCCESS, value="/resources/${resource}.ftl", type= FreemarkerResult.class) And in my execute method I have: request.setAttribute("resource", "myPage");

Re: How to forward to an unknown view in Struts 2?

2007-05-09 Thread Musachy Barroso
I haven't tried myself but the annotations for results should work just like regular xml-configured results. musachy On 5/9/07, Caine Lai <[EMAIL PROTECTED]> wrote: Thanks Musachy, But how would one do this if they were using Struts 2 annotations to map their action classes? Is it possible?

Re: Decode Request Parameters

2007-05-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zuban, zuban wrote: > how do I decode a request parameter? > > like this on: > /.../EditUser.do?id=g%C3%BCltz > > the value should be: "gültz" [snip] > But after that username equals "gültz" instead "gültz" ? Your request character encoding doe

Re: OGNL question

2007-05-09 Thread Laurie Harper
Felipe Rodrigues wrote: I'm sorry about don't provide all the informations. I'll try to explain a little more. I'm trying to generate a tag for each item in a list, but I have to send a param when click on this link. This is why I use to do that. My code seems like that:

Re: [S1] Struts JavaScript Validation staticJavascript generates too much code

2007-05-09 Thread Paul Benedict
Antony, The preferred way is to copy the static javascript into a static file (.js) and include it as a

Re: [S1] Struts JavaScript Validation staticJavascript generates too much code

2007-05-09 Thread Laurie Harper
Antony Stubbs wrote: Having staticJavascript=true generates *all* the validation functions specificed in struts-validators.xml (?) even if the form it's generating for only uses the REQUIRED validator. That's why it's called 'static' :-) Think of it as library code. Is there a way to minimis

Re: Decode Request Parameters

2007-05-09 Thread Laurie Harper
zuban wrote: how do I decode a request parameter? like this on: /.../EditUser.do?id=g%C3%BCltz the value should be: "gültz" in my Action-Class I do the following: - public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest

[S1] Struts JavaScript Validation staticJavascript generates too much code

2007-05-09 Thread Antony Stubbs
Having staticJavascript=true generates *all* the validation functions specificed in struts-validators.xml (?) even if the form it's generating for only uses the REQUIRED validator. Is there a way to minimise the javascript generated? I'm going to try a work around, where I've extracted the gene

Re: [S2] dynamic update in hibernate ?

2007-05-09 Thread Laurie Harper
Wiyanto Ngasinur wrote: hi, i've some form in struts 2 doing update with hibernate ? i've add some attribute that need updated in form but not all attribute in table i put in the form. when i do update, it get error null exception. i don't understand why hibernate trying to set null the attribut

Re: OGNL question

2007-05-09 Thread Felipe Rodrigues
I got it using again. I didn't realize that I can use EL to get values from some Action as well. But I keep wondering if I can't do that by using and OGNL. Thanks, Felipe Felipe Rodrigues wrote: > > I'm sorry about don't provide all the informations. I'll try to explain a > little more. >

Re: Deploy struts Application

2007-05-09 Thread Laurie Harper
horri khalid wrote: Hi, I'm new user in Struts, so i develop a application and I deploy it in my server. when I execute it I have this problem: Servlet action not available. For more information I use: -Tomcat 5.5.4 -Struts 1.1 'Servlet action not available' means there was an error dur

Re: (S2) submit question

2007-05-09 Thread Ray Clough
I'm obviously missing something. Am I understanding this scenario correctly: I have 2 methods in my Action class: 'init' and 'save'. The 'init' method instantiates an instance variable 'myList', which is available to the jsp page thru a 'getList' method. The page is loaded and the 'myList' p

Re: How to forward to an unknown view in Struts 2?

2007-05-09 Thread Caine Lai
Thanks Musachy, But how would one do this if they were using Struts 2 annotations to map their action classes? Is it possible? Or am I stuck with using XML for this one action? Thanks, Caine On 5/9/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: You can use OGNL expressions in the result pat

Re:

2007-05-09 Thread stanlick
Thanks Dave. I really wanted to avoid mixing custom tag libraries if I could avoid it. I'll think about it tonight after I mow the yard. Sometimes the smell of cut grass enhances my thinking. On 5/9/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > Can you think of a w

Re: How to forward to an unknown view in Struts 2?

2007-05-09 Thread Dave Newton
Very good; I thought there had been discussion about that :) --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > I was just leaving a message to Rainer on: > > https://issues.apache.org/struts/browse/WW-1879 > > I submitted the patch just a few minutes before the > xwork build, and he > wasn't sur

Re: How to forward to an unknown view in Struts 2?

2007-05-09 Thread Musachy Barroso
I was just leaving a message to Rainer on: https://issues.apache.org/struts/browse/WW-1879 I submitted the patch just a few minutes before the xwork build, and he wasn't sure if it was going to break something else (coming from me I can understand that :) ) musachy On 5/9/07, Dave Newton <[EMA

Re: How to forward to an unknown view in Struts 2?

2007-05-09 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > just make sure that you use ${expression}, instead of > %{expression} (Was someone going to make a change for that so the config EL is the same as the normal OGNL? I think it'd be nice and less confusing if they were unified :) d.

Re: RE Beginners tutorial

2007-05-09 Thread bigtdps2004
Than you very much - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re:

2007-05-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Can you think of a way to coerce an evaluated string > into this property? You could try using JSP EL; that might work. My JSP isn't very strong and I can't test it at the moment, but it's worth a shot. > I have a full-blown S2 app running with Hibernate 3, > Sp

Re: How to forward to an unknown view in Struts 2?

2007-05-09 Thread Musachy Barroso
You can use OGNL expressions in the result path, just make sure that you use ${expression}, instead of %{expression}, like ${forwardTo} musachy On 5/9/07, Caine Lai <[EMAIL PROTECTED]> wrote: Does anyone know how I can forward to a .jsp file based on a dynamic attribute (request paramete

Re:

2007-05-09 Thread stanlick
Thanks d. Can you think of a way to coerce an evaluated string into this property? I nearly have reduced S2 to "Strails" with the exception of a couple of issues standing in the way. Dude, would you be interested in critiquing my app once I finish it? I have a full-blown S2 app running with H

Re: Why does behave differently from the rest?

2007-05-09 Thread Laurie Harper
Have you tried I haven't tried it, but the displayed text for a submit button comes from its value, so that should work. L. [EMAIL PROTECTED] wrote: So do we know how to replace the word Submit with a properties file label. On 5/8/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: I guess

Decode Request Parameters

2007-05-09 Thread zuban
how do I decode a request parameter? like this on: /.../EditUser.do?id=g%C3%BCltz the value should be: "gültz" in my Action-Class I do the following: - public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpS

How to forward to an unknown view in Struts 2?

2007-05-09 Thread Caine Lai
Does anyone know how I can forward to a .jsp file based on a dynamic attribute (request parameter)? I want to write a Struts 2 action that will forward the user to a .jsp dynamically. The flow works like so: 1. A request is made for 'resourceLocator.action?resource=common'. 2. The resourceLocat

Re: (S2) submit question

2007-05-09 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > Is the creation of a new instance the standard > behavior - I can't believe it is, because that would > make the whole 'thread-safe' model in S2 pointless. That's *why* it's thread-safe. d.

Re:

2007-05-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I am trying to figure out why this code works > >key="button.cancel"/> > > but this code does not > >key="%{operation}"/> > > Any ideas?-- The "key" attribute is a simple String so OGNL is not evaluated. As further evidence of this note the following (min

user@struts.apache.org

2007-05-09 Thread stanlick
I am trying to figure out why this code works but this code does not Any ideas?-- Scott [EMAIL PROTECTED]

(S2) submit question

2007-05-09 Thread Ray Clough
I have an action with a wildcard mapping: /jspx/settings.jspx The jsp page has 2 links which submit the form using javascript. Here is one of the functions: function save() { aler

Re: Struts 1.3.8 and URL Validation

2007-05-09 Thread Tomas Kramar
It works on a server side - this means that you have to submit the form to be validated. You won't have any javascript popup telling you that you mistyped url, but your validation will fail on server and an error message will be returned. If you set up your struts-config correctly, you can then red

Re: [S2] Setting Global Variable in Struts 2

2007-05-09 Thread Skip Hollowell
Currently, I used a Contants class to store this information. Am I better off keeping that class, and creating a static block in there that reads these values in from the properties files as such: InputStream input = null; input = getClass().getClassLoader().getResourceAsStream(RESO

Re: Can tiles access Application.properties?

2007-05-09 Thread Antonio Petrelli
2007/5/9, Sergio del Amo Caballero <[EMAIL PROTECTED]>: PS. I posted this question in the tiles mailing list but they told me to ask better here since i am using tiles together with struts. Probably you did not see my answer. Since I feel a nice boy today :-P I will copy/paste here: This is n

Re: [Struts 1.2.9 & Tiles] dynamically switch between two layout

2007-05-09 Thread Antonio Petrelli
2007/5/9, CARUANA JP. SOGECAP <[EMAIL PROTECTED]>: > > I need to switch between to tiles layout depending on the context. > > I think that cleanest way to do it is creating a DefinitionsFactory > implementation. You can read a configuration parameter that > allows to switch > between a group

Re: Session Expiration Handling

2007-05-09 Thread meissa . sakho
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. I have a user Object that I could put in the session at Login Time. But I think that when that ob

Re: Session Expiration Handling

2007-05-09 Thread Shahak Nagiel
I've implemented a similar authenticator (which I called AuthenticationInterceptor, since it's verifying the user has been authenticated). The easiest way to handle this is to simply put some object in the HttpSession once the user is authenticated at login time, such as a User object. If tha

RE: [Struts 1.2.9 & Tiles] dynamically switch between two layout

2007-05-09 Thread CARUANA JP. SOGECAP
> > I need to switch between to tiles layout depending on the context. > > I think that cleanest way to do it is creating a DefinitionsFactory > implementation. You can read a configuration parameter that > allows to switch > between a group of layouts and the other. > For example, you can extend

Can tiles access Application.properties?

2007-05-09 Thread Sergio del Amo Caballero
hello, I am using tiles together with struts to build a web application. This web application will have different themes. Basically i would like to know if it is possible to declare a variable inside tiles definition file or access a Application.properties definition from the tiles-def.xml file.

Re: [Struts 1.2.9 & Tiles] dynamically switch between two layout

2007-05-09 Thread Antonio Petrelli
2007/5/9, CARUANA JP. SOGECAP <[EMAIL PROTECTED]>: I need to switch between to tiles layout depending on the context. I think that cleanest way to do it is creating a DefinitionsFactory implementation. You can read a configuration parameter that allows to switch between a group of layouts an

[Struts 1.2.9 & Tiles] dynamically switch between two layout

2007-05-09 Thread CARUANA JP. SOGECAP
Hello, I need to switch between to tiles layout depending on the context. in fact, our EAR is used in two different applications, but these are quite the same ones. the EAR is deployed on two different servers with different server configurations. what is very different between the 2 applicat

Re: OGNL question

2007-05-09 Thread Felipe Rodrigues
Sure, you can find it at http://struts.apache.org/2.x/docs/home.html bigtdps2004 wrote: > > Dopes anyone know where there is a good beginners tutorial on > developing their first struts application even if I am using > Eclipse, Ant and MySql ? > > Thank you > > -

Re: Good Practice for prepopulating forms?

2007-05-09 Thread Torsten Römer
Thanks, this sure does help... I must be blind sometimes :-( Torsten Musachy Barroso wrote: > This might help: > > http://struts.apache.org/2.0.6/docs/how-do-we-repopulate-controls-when-validation-fails.html > > > musachy > > On 5/9/07, Torsten Römer <[EMAIL PROTECTED]> wrote: >> >> I would

[S2] Setting Global Variable in Struts 2

2007-05-09 Thread Skip Hollowell
I know this is probably a dumb question, and even more so it is probably in some best practices doc that I haven't seen, but here goes anyway. What is the preferred/recommended method for setting some global variables for my struts 2 app? These are things that may change sometime, so I would

Session Expiration Handling

2007-05-09 Thread meissa . sakho
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, I would like to write an Interceptor that will handle the session expiration. If somone

[S2] Ajax Forms

2007-05-09 Thread Roger Varley
Hi Is it possible to insert/update the value of a tag in a form using Ajax? I've listed the data entry jsp and the Ajax response jsp page below. When the form is loaded at start up, I see the text values and an empty text field from the ajax response. After entering a value into productCode fiel

RE Beginners tutorial

2007-05-09 Thread meissa . sakho
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. try the mailreader application. http://www.planetstruts.org/struts2-mailreader/Welcome.do Meissa

Re: Tiles 2 - error

2007-05-09 Thread Pedro Herrera
Antonio Petrelli-3 wrote: > > 2007/5/9, Pedro Herrera <[EMAIL PROTECTED]>: >> >> >> the follow error message appear : >> >> 9:43:49,223 INFO [STDOUT] 09:43:49,223 ERROR [[/gdoc]] Error configuring >> application listener of class >> org.apache.struts2.tiles.StrutsTilesListener >> java.lang.NoC

Re: Why does behave differently from the rest?

2007-05-09 Thread stanlick
So do we know how to replace the word Submit with a properties file label. On 5/8/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: I guess it is because submit can be either a button, a submit or an image. musachy On 5/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am trying to assign

Re: Too many open files

2007-05-09 Thread Mike Baroukh
> Would I look for things that are related to Tomcat/MySQL/Struts? I only > see about 20 items listed, none of which have anything to do with my app. If your application open too many files you would see it. lsof list every files, tcp connection included. Can you reproduce easyly the error ? Mi

RE: Re: Security and information passing

2007-05-09 Thread Bruno Melloni
Also, if you are dealing with credit card numbers, make sure you study up on PCI regulations. There are specific rules about how much of the number you may keep short-term and long-term, what strength of encryption is required, etc. And pretty severe penalties for your company if you fail to foll

Beginners tutorial

2007-05-09 Thread bigtdps2004
Hi, Does anyone know where there is a good tutorial covering the creation of ones first Struts application. One that doesn't care if I using Eclipse, Ant & MySql ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: OGNL question

2007-05-09 Thread bigtdps2004
Dopes anyone know where there is a good beginners tutorial on developing their first struts application even if I am using Eclipse, Ant and MySql ? Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: Too many open files

2007-05-09 Thread Jon Wynacht
Would I look for things that are related to Tomcat/MySQL/Struts? I only see about 20 items listed, none of which have anything to do with my app. Jon On May 7, 2007, at 6:18 AM, Mike Baroukh wrote: Hi. If you are runnig on unix, couldn't you do something like lsof -p to list wich files

Re: AW: Too many open files

2007-05-09 Thread Jon Wynacht
Hmmm...I typed ulimit and got back unlimited. Thanks for the info though...I'll keep checking. Jon On May 7, 2007, at 1:15 AM, Andreas Solarik wrote: you can also try checking if you have any restrictions in place for your userspace processes --> ulimit as -Ursprüngliche Nachrich

Re: Good Practice for prepopulating forms?

2007-05-09 Thread Musachy Barroso
This might help: http://struts.apache.org/2.0.6/docs/how-do-we-repopulate-controls-when-validation-fails.html musachy On 5/9/07, Torsten Römer <[EMAIL PROTECTED]> wrote: I would like to hear what is good practice for prepopulating forms. For example, I want to create a Map with options to po

Re: [S2] A bug in documentation for validation

2007-05-09 Thread Musachy Barroso
Fixed. It takes a while to replicate to the main doc. thanks musachy On 5/9/07, Olivier THIERRY <[EMAIL PROTECTED]> wrote: Hi, I'm not sure this is the right mailing list to talk about it, but I think there is a bug in the validation documentation on the struts website. When I open this url :

Re: Tiles 2 - error

2007-05-09 Thread Antonio Petrelli
2007/5/9, Pedro Herrera <[EMAIL PROTECTED]>: the follow error message appear : 9:43:49,223 INFO [STDOUT] 09:43:49,223 ERROR [[/gdoc]] Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener java.lang.NoClassDefFoundError: org/apache/tiles/TilesException

Re: [S2] A bug in documentation for validation

2007-05-09 Thread Torsten Römer
Did you also have a look at this one: http://struts.apache.org/2.x/docs/validating-input.html It helped me quite a bit. Torsten Olivier THIERRY wrote: > Hi, > > I'm not sure this is the right mailing list to talk about it, but I think > there is a bug in the validation documentation on the str

Tiles 2 - error

2007-05-09 Thread Pedro Herrera
the follow error message appear : 9:43:49,223 INFO [STDOUT] 09:43:49,223 ERROR [[/gdoc]] Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener java.lang.NoClassDefFoundError: org/apache/tiles/TilesException at java.lang.Class.getDeclaredConstructors

Re: Is it possible to unit test validatiors in xml?

2007-05-09 Thread Gunnar Boström
Hi, Thanks I can now unit test my xml validation files but with one problem. My action class implements ModelDriven so I need to add "model." before all ognl-expression and remove it again after the tests! Is there any solutions to that? Regards Gunnar Martin Gilday wrote: > > http://wiki.op

Re: [OT] Reading Unicode Files

2007-05-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kapil, Kapil Sharma wrote: > This code properly reads the unicode files in jsp and set in session The OP was asking about how to read properties files, which are pretty much defined to be ISO-8859-1 with escape codes for out-of-charset characters tha

[S2] A bug in documentation for validation

2007-05-09 Thread Olivier THIERRY
Hi, I'm not sure this is the right mailing list to talk about it, but I think there is a bug in the validation documentation on the struts website. When I open this url : http://struts.apache.org/2.0.6/docs/basic-validation.html There's an error in the step 3 so you can't see the end of the pag

Re: OGNL question

2007-05-09 Thread Felipe Rodrigues
I'm sorry about don't provide all the informations. I'll try to explain a little more. I'm trying to generate a tag for each item in a list, but I have to send a param when click on this link. This is why I use to do that. My code seems like that:

Re: How to transmit data from struts 2 to struts 1 ?

2007-05-09 Thread Musachy Barroso
If it is a forward, why don't you put them on the request? musachy On 5/9/07, Michał Letyński <[EMAIL PROTECTED]> wrote: Hi. I have actions in struts1 and struts2 in one application. Those struts1 actions will be re-writed in near future to struts2. But i need one thing for now. In struts2 (Te

Re: is ajax validation broken?

2007-05-09 Thread Musachy Barroso
In option 2, OGNL expressions are not supported. We will update the documentation before 2.1 is released (everything ajax-related will be better documented). musachy On 5/9/07, אלחנן מעין <[EMAIL PROTECTED]> wrote: what are the limitations on using option 2? will there be documenation, describ

Re: [S2] Can't make validation work

2007-05-09 Thread Olivier THIERRY
So it should work with valdidate="false" ... But it doesn't ... So there's still something wrong in my configuration ... What is strange is that I can see validation errors in the logs. So it looks like Struts keeps on running the request while there are validation errors and so it should stop and

Re: [S2] Can't make validation work

2007-05-09 Thread Guillaume Carré
2007/5/9, Torsten Römer <[EMAIL PROTECTED]>: I just called my validation file ActionClassName-validation.xml, don't even know what this alias is... and validation seems to work fine. it is because you have only one method in your action you need aliases when you want to be able to call several

Re: Deploy struts Application

2007-05-09 Thread Gary Feidt
Did you deploy all the Struts jar files with your deployment file? >>> [EMAIL PROTECTED] 5/9/2007 3:57:44 AM >>> Hi, I'm new user in Struts, so i develop a application and I deploy it in my server. when I execute it I have this problem: Servlet action not available. For more information I use:

[S2] dynamic update in hibernate ?

2007-05-09 Thread Wiyanto Ngasinur
hi, i've some form in struts 2 doing update with hibernate ? i've add some attribute that need updated in form but not all attribute in table i put in the form. when i do update, it get error null exception. i don't understand why hibernate trying to set null the attribute that i don't put it in f

Deploy struts Application

2007-05-09 Thread horri khalid
Hi, I'm new user in Struts, so i develop a application and I deploy it in my server. when I execute it I have this problem: Servlet action not available. For more information I use: -Tomcat 5.5.4 -Struts 1.1

Re: Correct usage of datetimepicker?

2007-05-09 Thread Torsten Römer
Great, that was quickly fixed :-) I'm looking forward to 2.1.0! Thanks! Torsten Musachy Barroso wrote: > I found several problem with the datetimepicker, first (and the worst) is > that the names of the input fields (visible and hidden) were switched. > Second, the hidden field was storing just

Re: [S2] Can't make validation work

2007-05-09 Thread Torsten Römer
I just called my validation file ActionClassName-validation.xml, don't even know what this alias is... and validation seems to work fine. As far as I recall (can't check it right now) I did not have to set validate="true" for my form. I am also using the ajax theme but I set it using the tag, whi

Re: Select Tag - Odd Behavior

2007-05-09 Thread Brian Trzupek
Laurie, Here are some more details. I have a collection of beans (simple pojo's - com.xyz.SomePojo ) that have a name and description field, both are strings. This is what the 'credential.credentialGenerators' call returns. If I use the S2 select tag the name and value for the option(s) in

Re: hashmap

2007-05-09 Thread Lance
Hi, I'm making the assumption that you are using struts1 and you want to access the map in a struts tag. I couldn't find a way of accessing properties mapped by anything else but a string Therefore, try hashMap.put(String.valueOf(questionId), new Integer(testDAO.getMarks(catid, typeid, pattern

hashmap

2007-05-09 Thread jalal udeen
hi all how to retrieve values from the HashMap i have set it as *hashMap*.put(*new* Integer(questionId),*new*Integer( testDAO.getMarks(catid, typeid, patternid))); how to getthese values again thanks jalaludeen

Re: [S2] Can't make validation work

2007-05-09 Thread Olivier THIERRY
OK, it works now. Not perfectly, but it works. Actually I had to name my validation file CreerDmandeAbsenceAction-submitCreerDemandeAbsence-validation.xml, beginning with an uppercase letter. Then I put this file in my action package as you said. But it worked only when I set the validate attribu

Re: Good idea of installing a file on host machine

2007-05-09 Thread Vijay Prajapati
can we user HIDEFOCUS attribute in tag in Struts2.0.6? Vijay Prajapati

Good idea of installing a file on host machine

2007-05-09 Thread Kapil Sharma
Hello, I know it is not a struts based query but still i would like to have your idea, Can i install a file on the client host of the pc e.g. a text file whenever a user presses some action in my jsp. If yes can i run that file if it is exe. I am thinking of some parallel activity on clietn si

Good Practice for prepopulating forms?

2007-05-09 Thread Torsten Römer
I would like to hear what is good practice for prepopulating forms. For example, I want to create a Map with options to populate a select with, and this needs to be done before validation but also after failed validation before the form is redisplayed. Right now I am creating the map in the const

how to unsuscribe?

2007-05-09 Thread Mr. nitin
I dont want mail from this user group and i sent mail for unsubscribe also but its not working ... tell me how to unsuscribe this user group? Olivier THIERRY <[EMAIL PROTECTED]> wrote: Hi, I try to validate a form, but I can't make it work, and I don't understand why ... So I have the

Re: [S2] Can't make validation work

2007-05-09 Thread Guillaume Carré
2007/5/9, Olivier THIERRY <[EMAIL PROTECTED]>: Well, it still doesn't work :( A few questions : - Do I have to put the xxx-validation.xml files in a specific directory ? I put them in the WEB-INF/classes directory ... you have to put it in the same package than your action - And has the first

Re: [S2] Can't make validation work

2007-05-09 Thread Olivier THIERRY
Well, it still doesn't work :( A few questions : - Do I have to put the xxx-validation.xml files in a specific directory ? I put them in the WEB-INF/classes directory ... - And has the first part of the validation xml file to be the action name (name attribute in struts.xml file) or the action cla

Re: [S2] Can't make validation work

2007-05-09 Thread Guillaume Carré
2007/5/9, Olivier THIERRY <[EMAIL PROTECTED]>: Hi, I try to validate a form, but I can't make it work, and I don't understand why ... So I have the following form in a JSP : My struts.xml file is as following (the action class is Spring managed) :

[S2] Can't make validation work

2007-05-09 Thread Olivier THIERRY
Hi, I try to validate a form, but I can't make it work, and I don't understand why ... So I have the following form in a JSP : My struts.xml file is as following (the action class is Spring managed) : /jsp/absences/confirmerCreationDeman