Re: Struts 1.3.8 and URL Validation

2007-05-09 Thread Laurie Harper
[EMAIL PROTECTED] wrote: There is no JavaScript implementation of the url validation. Niall Does it mean that the default url validator in validation.xml doesn't work? No, it means that it only works on the server-side; there is no client side validation for this rule type. L.

RE: Struts 1.3.8 and URL Validation

2007-05-09 Thread pushkar . p
-Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Wednesday, May 09, 2007 11:26 AM To: user@struts.apache.org Subject: Re: Struts 1.3.8 and URL Validation [EMAIL PROTECTED] wrote: There is no JavaScript implementation of the url

Re: need help[URL containing additionl information that was not requested]

2007-05-09 Thread rangana samarasinghe
ok thx for the help On 5/9/07, Nuwan Chandrasoma [EMAIL PROTECTED] wrote: Hi, This is something to do with your server, see your server documentation to hide the jsessionid from the URL http://www.junlu.com/msg/201119.html Thanks, Nuwan - Original Message - From: rangana

Re: need help[URL containing additionl information that was not requested]

2007-05-09 Thread Nuwan Chandrasoma
Hi, This is something to do with your server, see your server documentation to hide the jsessionid from the URL http://www.junlu.com/msg/201119.html Thanks, Nuwan - Original Message - From: rangana samarasinghe [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, May 09,

How to transmit data from struts 2 to struts 1 ?

2007-05-09 Thread Michał Letyński
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 (Test.action ) i have some parameters - collection of id's which i want to transmit to struts1 (Test2.action). I cant do a

[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 : s:actionerror / s:form action=submitCreerDemandeAbsence id=form1 s:textfield id=matriculeDemandeur

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 : s:actionerror / s:form action=submitCreerDemandeAbsence id=form1 s:textfield

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

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

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

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

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

Re: Good idea of installing a file on host machine

2007-05-09 Thread Vijay Prajapati
can we user HIDEFOCUS attribute in s:a href= tag in Struts2.0.6? Vijay Prajapati

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

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: 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,

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)

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 s:head

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

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

[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

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:

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: [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: 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,

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

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 s:a tag for each item in a list, but I have to send a param when click on this s:a link. This is why I use s:url to do that. My code seems like that: s:iterator value=type tr

[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

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

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:

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

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 struts

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 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: 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

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

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 processid to list

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,

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

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

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 ?

Re: Why does s:submitbehave 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 a

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.NoClassDefFoundError:

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

[S2] Ajax Forms

2007-05-09 Thread Roger Varley
Hi Is it possible to insert/update the value of a s:textfield 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

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] 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

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 like to hear

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

[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

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 and

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 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 the

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

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

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

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: snip This

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 =

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

(S2) submit question

2007-05-09 Thread Ray Clough
I have an action with a wildcard mapping: action name=Settings_* method={1} class=com.kamakura.struts2.action.SettingsAction result/jspx/settings.jspx /result /action The

s:submit action=Login_cancel key=button.cancel/

2007-05-09 Thread stanlick
I am trying to figure out why this code works s:submit *action=Login_cancel* key=button.cancel/ but this code does not s:submit *action=Login_cancel* key=%{operation}/ Any ideas?-- Scott [EMAIL PROTECTED]

Re: s:submit action=Login_cancel key=button.cancel/

2007-05-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: I am trying to figure out why this code works s:submit *action=Login_cancel* key=button.cancel/ but this code does not s:submit *action=Login_cancel* key=%{operation}/ Any ideas?-- The key attribute is a simple String so OGNL is not evaluated.

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.

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

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,

Re: Why does s:submitbehave differently from the rest?

2007-05-09 Thread Laurie Harper
Have you tried s:submit value=%{getText(#session.symbolicName)} .../ 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

Re: s:submit action=Login_cancel key=button.cancel/

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 Struts on Rails 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

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 action ... result${forwardTo}/result /action musachy On 5/9/07, Caine Lai [EMAIL PROTECTED] wrote: Does anyone know how I can forward to a .jsp file based on a

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: 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: 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

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 sure if it

Re: s:submit action=Login_cancel key=button.cancel/

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 way

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

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'

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

Re: OGNL question

2007-05-09 Thread Felipe Rodrigues
I got it using c:forEach 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 s:iterator and OGNL. Thanks, Felipe Felipe Rodrigues wrote: I'm sorry about don't provide all the informations. I'll try to explain a

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

[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

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

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

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 script element. This will also allow it to be cached by your browser. There's no reason why you must generate those functions every time. The only generation must be for your form. Paul On

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 s:a tag for each item in a list, but I have to send a param when click on this s:a link. This is why I use s:url to do that. My code seems like that:

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 does not match

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: 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); The

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 You

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: 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: [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

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

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

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 s:a href= 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

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

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 submit the

[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) ?