Re: my first struts 2 HelloWord.action still not working

2009-04-08 Thread Paweł Wielgus
Hi all, first try to use Config Browser Plugin, to see what is loaded and what is not. Best greetings, Paweł Wielgus. 2009/4/7 Lukasz Lenart lukasz.len...@googlemail.com: 2009/4/7 john lee sh_thorn_b...@yahoo.com: no error when startup the tomcat. Could you try access directly

Re: validation

2009-04-08 Thread Lukasz Lenart
2009/4/8 Roberto Nunnari roberto.nunn...@supsi.ch:        action name=Item-update method=update Action name is: Item-update method name is: update so then, validation file should be? Item-update-update-validation.xml and here's my Item-update-validation.xml file that I put in the same folder

Pass parameter to ActionSupport class

2009-04-08 Thread NR031
Hi, I want to pass input parameter entered in the login page to ActionSupport class. How to pass it. I used httpservletreq object to get value, but getting NullPointerException in the req.getParameter(submitvalue) line. struts.xml : struts package name=ActionServlet

Re: Pass parameter to ActionSupport class

2009-04-08 Thread Nils-Helge Garli Hegvik
Hi! Passing parameters to the action is handled automatically for you by the framework if you have the appropriate setters on the action. I suggest that you start with the tutorials from the documentation: http://struts.apache.org/2.1.6/docs/bootstrap.html Nils-H On Wed, Apr 8, 2009 at 12:19

Fwd: event onclick of nested:checkbox

2009-04-08 Thread elyes sallem
it's ok now here how to give the param onclick='%=verifierReversible(+Integer.parseInt(numLigne)+ )%' Regards Elyes -- Forwarded message -- From: elyes sallem elyes.sal...@gmail.com Date: 2009/4/8 Subject: Fwd: event onclick of nested:checkbox To: Struts Users Mailing List

Re: Pass parameter to ActionSupport class

2009-04-08 Thread NR031
Hi, Thank you for your quick reply. I resolved my problem. This is what I did. Just put getters and setters for submitvalue in ActionSupport class: private String submitvalue; public String getSubmitvalue() { return submitvalue; } public void setSubmitvalue(String

Re: create personal interceptor

2009-04-08 Thread Terry Gardner
I see. Please be more specific about what you mean when you write that it does not work. The interceptor you have coded does not inject the mese into any action, but it does convert internally from month names to numbers. Perhaps you could create an interface called MeseAware: public

Re: validation

2009-04-08 Thread Roberto Nunnari
Hi. see my comments in context. Lukasz Lenart ha scritto: 2009/4/7 Roberto Nunnari roberto.nunn...@supsi.ch: do the above scenario permit the use of xml validation? It shouldn't be a problem, did you double check that validations files were transferred to the server? Yes. I checked and

Change single .properties file to one .properties file for every JSP

2009-04-08 Thread walki2
Hi, I am new to Struts. I have a website that uses Struts (.properties files) to show the website's content in either english, french or german. SomeFileName.properties SomeFileName_en.properties SomeFileName_fr.properties SomeFileName_de.properties Unfortunately all the text is stored in one

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread Lukasz Lenart
2009/4/8 walki2 kim.wali...@gmail.com: SomeFileName.properties SomeFileName_en.properties SomeFileName_fr.properties SomeFileName_de.properties You can use package.properties for all actions in given package and below (in Struts2 ;-) Regards -- Lukasz http://www.lenart.org.pl/

Re: create personal interceptor

2009-04-08 Thread PEGASUS84
ok but i must use personal interceptor for my project Terry Gardner-2 wrote: I think you can use date formatters in java.text to accomplish this with no coding. On Apr 7, 2009, at 6:36 PM, PEGASUS84 wrote: I want create an interceptors wich converts the list of select tag mese

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread Muthu Velappan
I believe the question is more about whether any tool available to split his current bulk properties into a small package/action specific properties. I think there is no tool to do that, It has to be manually split into different properties file based on either package or action class as

Fwd: event onclick of nested:checkbox

2009-04-08 Thread elyes sallem
here is the generated html code input type=checkbox name=ajustContrat[0].CAjustTypeAjust value=on onclick=verifierReversible(%= Integer.parseInt(numLigne) %) Regards Sallemel -- Forwarded message -- From: elyes sallem

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread Terry Gardner
Agreed. I am well-known for answering questions that were not asked. :) On Apr 8, 2009, at 7:25 AM, Muthu Velappan wrote: I believe the question is more about whether any tool available to split his current bulk properties into a small package/action specific properties. I think there is

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread walki2
Hi Muthu, Thanks for the answer, that's all I wanted to know. Greetings, walki2 -- View this message in context: http://www.nabble.com/Change-single-.properties-file-to-one-.properties-file-for-every-JSP-tp22947889p22948672.html Sent from the Struts - User mailing list archive at Nabble.com.

struts and permgen errors with ognl method parameters cache

2009-04-08 Thread Wim De Smet
Hi list, I've been trying to track down a problem with our struts 2 app where it starts loading classes in permgen till eventually permgen fills up and our application crashes. Examining jvm output of classes it loads I see a lot of sun.reflect.GeneratedMethodAccessorXx getting loaded with xx

event onclick of nested:checkbox

2009-04-08 Thread elyes sallem
Hello, i have a checkbox to which i associated an event onclick for this, i call a javascript function verifierReversible here is the component call nested:checkbox property=CAjustTypeAjust onclick=verifierReversible(%= Integer.parseInt(numLigne) %) an here is the javascript function function

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread Terry Gardner
.properties file can be looked up based on the current Action, or a hierarchy is used to search for a key. If the Action is named EnterEmployeeAction, then the .properties files are all preceded by EnterEmployeeAction, viz, EnterEmployeeAction_en.properties, and so forth. There is also a

RE: create personal interceptor

2009-04-08 Thread Martin Gainty
ask the question what is the reason why you must use personal interceptor 1)are you extracting and or modifying the request? 2)Is there some function you must perform before or after Action is executed that the action itself cannot handle? Please read:

New maven convention archetype

2009-04-08 Thread Lukasz Lenart
Hi, Could someone try to test a new archetype which base on Convention plugin and tell why it isn't working as expected? Index action is not mapped and I18N is missing (properties files are where they should be :-( ) mvn archetype:generate -DarchetypeCatalog=http://www.lenart.org.pl/maven/

Re: validation

2009-04-08 Thread Roberto Nunnari
Humm.. I don't know.. I tried with view: s:form method=post action=Item_update namespace=/admin struts.xml: action name=Item_update method=update class=ch.nunnisoft.myecommerce.actions.admin.ItemAction result type=redirect-action param name=actionNameItem-view?id=${id}/param /result

Re: New maven convention archetype

2009-04-08 Thread Musachy Barroso
The archetype is generating the jsps in the wrong location, it is missing the namespace in the patch. For example, if I enter actions.test for the package, the jsp is generated as WEB-INF/content/hello.jsp, it should be WEB-INF/content/test/hello.jsp musachy On Wed, Apr 8, 2009 at 8:56 AM,

Re: validation

2009-04-08 Thread Wes Wannemacher
I don't think you need the method name in validation file's filename. I would try renaming the file to Item_update-validation.xml. If your intention is to only validate when the method 'update' is being called, you might have to use the Validation annotations rather than the XML file. Remember

Re: Validators

2009-04-08 Thread Martin Gainty
Roberto- in %TOMCAT_HOME%\webapps\struts2-showcase-2.1.6\WEB-INF\classes\com\opensymphony\xwork2\validator\validators\default.xml you should have at minimum these 2 Validation Classes declared: validators validator name=requiredstring

Re: validation

2009-04-08 Thread Lukasz Lenart
2009/4/8 Roberto Nunnari roberto.nunn...@supsi.ch: Any more hints? Could you remove this from top of your validation file? ?xml version=1.0 encoding=UTF-8? !-- Document : ItemAction-validation.xml Created on : 24 marzo 2009, 20:40 Author : nunnari Description: -- Pozdrawiam

Re: New maven convention archetype

2009-04-08 Thread Lukasz Lenart
2009/4/8 Musachy Barroso musa...@gmail.com: The archetype is generating the jsps in the wrong location, it is missing the namespace in the patch. For example, if I enter actions.test for the package, the jsp is generated as WEB-INF/content/hello.jsp, it should be WEB-INF/content/test/hello.jsp

Re: validation

2009-04-08 Thread Roberto Nunnari
tried it: doesn't help. Lukasz Lenart ha scritto: 2009/4/8 Roberto Nunnari roberto.nunn...@supsi.ch: Any more hints? Could you remove this from top of your validation file? ?xml version=1.0 encoding=UTF-8? !-- Document : ItemAction-validation.xml Created on : 24 marzo 2009, 20:40

Re: validation

2009-04-08 Thread Roberto Nunnari
Yep. I tried that and doesn't help neither. I also tried the underscore version but nothing changed. Any more hints? Robi Lukasz Lenart ha scritto: 2009/4/8 Roberto Nunnari roberto.nunn...@supsi.ch: action name=Item-update method=update Action name is: Item-update method name is:

Re: New maven convention archetype

2009-04-08 Thread Musachy Barroso
no, that would just instruct convention to scan from that package down, what you need to do (I have no idea how archetypes work), is to get the package name, and substring from actions., replace . by / and that will be the path under WEB-INF/content. If you can't determine were to put the files at

Re: validation

2009-04-08 Thread Roberto Nunnari
Hi Wes. Wes Wannemacher ha scritto: I don't think you need the method name in validation file's filename. I would try renaming the file to Item_update-validation.xml. Didn't help. I even tried to make a new package /admin/Item and use action names as update, view and edit.. naturally I

Re: validation

2009-04-08 Thread Wes Wannemacher
On Wednesday 08 April 2009 10:48:34 Roberto Nunnari wrote: [snip] I start to think there is something wrong with my environment.. But.. are you guys sure that xml validation works when implementing ModelDriven? Yes, I am sure :) I've used it plenty. I was starting to think that there is

Re: S2: latest Struts 2.1.x and latest CXF dont play nice together

2009-04-08 Thread cheeran
Hey Man, you are a life saver. thanks for taking time to reply! Such a simple fix and I was going blue! loge1974 wrote: Ahh here we go. Just read the struts 2.0 - 2.1 migration guide and saw this: The default action extension list (struts.action.extension) has changed from just

Re: validation

2009-04-08 Thread Mileidys Gonzalez Prieto
Im using this piece on code on my jsp html:javascript formName=/submitCraft dynamicJavascript=true staticJavascript=false / - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Re: New maven convention archetype

2009-04-08 Thread Lukasz Lenart
2009/4/8 Musachy Barroso musa...@gmail.com: no, that would just instruct convention to scan from that package down, what you need to do (I have no idea how archetypes work), is to get the package name, and substring from actions., replace . by / and that will be the path under WEB-INF/content.

Re: New maven convention archetype

2009-04-08 Thread Musachy Barroso
lol. I hadn't thought of that, no package, no subdir required, clever ;) musachy On Wed, Apr 8, 2009 at 11:16 AM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2009/4/8 Musachy Barroso musa...@gmail.com: no, that would just instruct convention to scan from that package down, what you need

Re: validation

2009-04-08 Thread Lukasz Lenart
2009/4/8 Mileidys Gonzalez Prieto mileidys.gonza...@i-frontier.net: Im using this piece on code on my jsp html:javascript formName=/submitCraft dynamicJavascript=true staticJavascript=false / Yeah, but the topic is about the problems with validation in Struts2 not in Struts1 as you're

Re: validation

2009-04-08 Thread Roberto Nunnari
Wes, here you can find my files: http://web.dti.supsi.ch/~nunnari/s2/ Robi Wes Wannemacher ha scritto: On Wednesday 08 April 2009 10:48:34 Roberto Nunnari wrote: [snip] I start to think there is something wrong with my environment.. But.. are you guys sure that xml validation works when

Re: validation

2009-04-08 Thread Roberto Nunnari
yes.. I'd rather use declarative validation in xml, but if I cannot get it to work, I'll do it on the client side.. Robi Lukasz Lenart ha scritto: 2009/4/8 Mileidys Gonzalez Prieto mileidys.gonza...@i-frontier.net: Im using this piece on code on my jsp html:javascript formName=/submitCraft

HTML warnings for hidden in xhtml theme

2009-04-08 Thread Security Management
All, Using forms in the xhtml theme creates a 2 column table for *most* items. The hidden item is not one of them, and gives html warnings for hidden being inside of table instead of inside of a td. It's an easy fix by putting the following hidden.ftl in the xhtml theme directory. Is there any

Re: validation

2009-04-08 Thread Roberto Nunnari
Ok. Something started to work. Not sure though what the problem was.. maybe a couple of validation files I had left around in WEB-INF/ Now I can validate even my ModelDriven actions by using ClassName-methodName-validation.xml so now I have: package namespace: /admin/Item s2 action name: update

Re: validation

2009-04-08 Thread Roberto Nunnari
Roberto Nunnari ha scritto: but for this validation doesn't work: package namespace: /admin2 s2 action name: Item_update method name: update URI: /myapp/admin2/Item_update.action classname: ItemAction xml-valid: ItemAction-update-validation.xml if I rename ItemAction-update-validation.xml to

Invoking a method in the Action from a FreeMarker template

2009-04-08 Thread Ignacio de Córdoba
Hi there, I am trying to invoke a method in a struts2 action from a FreeMarker template. To do this, I put the action as an object named action and then I reference it, for example, as: #list action.sortedFields as field (Sorted fields is a method: getSortedFields()) this works

struts2-showcase on OC4J

2009-04-08 Thread Mick_
I am trying to deploy the struts2-showcase but when I try to access the application I get the error below. Any ideas about how I can get it working? 500 Internal Server Error Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in

what is the equivalent of method in struts 2 for retrieve data?

2009-04-08 Thread john lee
in struts 1, i saved the data into session   session.setAttribute(BeanNames.PARTS_LIST,partsList);   then, in the jsp file, retrieve the data by   logic:iterate id=plist name=partslist scope=session type=neuco.PartForm   what is the equivalent method in struts 2?   tks in advance   john

Page waits to load initially with Div Dojo taj

2009-04-08 Thread Mekna
Hi, I am struts user. upgrading app from struts 2.0.11.2 to struts 2.1.6. Initial load works fine with s:div, I am not sure what am i missing using sx:div. Why does it wait for 5 secs (updateFreq value) for the first time load. Code with struts 2.0.11.2 s:url var=loadApples

Struts Action Issue

2009-04-08 Thread riya
Hi, Recently I observed that if in JSP input text I have entered special characters, lets say: displayIDNumber: #...@#%$!#$%!(*)*()*( In the action I get displayIDNumber as i.e empty string. Nowhere in the code we are explicitly emptying the string whenever there are special characters

firefox css is not loaded

2009-04-08 Thread Anton Berg
Hello, I have a simple JSP that is served by jboss (4.2.3-GA) under ubuntu linux. A stylesheet is used in the header of the jsp. If I use a konqueror browser the css styles are loaded. If I use the firefox (3.08) which is actually my standard browser the stylesheet is not loaded. Generally

Re: what is the equivalent of method in struts 2 for retrieve data?

2009-04-08 Thread Nils-Helge Garli Hegvik
Struts 1 and Struts 2 are quite different in philosophy. I would recommend that you go through the Struts 2 tutorials/guides, which will give you an introduction to the concepts of the framework: http://struts.apache.org/2.1.6/docs/home.html Nils-H On Wed, Apr 8, 2009 at 10:07 PM, john lee

Re: struts2-showcase on OC4J

2009-04-08 Thread Nils-Helge Garli Hegvik
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details. And what does the application log say? Nils-H

Re: firefox css is not loaded

2009-04-08 Thread Wes Wannemacher
On Wednesday 08 April 2009 17:24:16 Anton Berg wrote: Hello, I have a simple JSP that is served by jboss (4.2.3-GA) under ubuntu linux. A stylesheet is used in the header of the jsp. If I use a konqueror browser the css styles are loaded. If I use the firefox (3.08) which is actually my

RE: firefox css is not loaded

2009-04-08 Thread Martin Gainty
link href attribute is pointing to the wrong location.. here is mine LINK type=text/css rel=stylesheet href=resources/space.css Seien Sie sinnvoll? Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht

Re: firefox css is not loaded

2009-04-08 Thread Anton Berg
Thanks Wes for the quick reply. But the error was too simple. I've made a mistake: wrong: link rel=stylesheet type=css/text media=screen href=s:url right: link rel=stylesheet type=text/css media=screen href=s:url Sorry for posting Tony Am Mittwoch 08 April 2009 23:39:21 schrieb Wes

Re: firefox css is not loaded

2009-04-08 Thread Wes Wannemacher
On Wednesday 08 April 2009 18:00:34 Martin Gainty wrote: link rel=stylesheet type=css/text media=screen href=s:url After taking a second look at this, maybe your type attribute is wrong. Try changing it to text/css -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage

Re: struts2-showcase on OC4J

2009-04-08 Thread Mick_
Nils-Helge Garli wrote: And what does the application log say? Here is the pertinent data from the logs: 09/04/08 18:04:41.468 struts2-showcase-2.1.6: Servlet error java.lang.NullPointerException at

RE: struts2-showcase on OC4J

2009-04-08 Thread Martin Gainty
//PrepareOperations.findActionMapping method contains this hardcoded lookup struts.actionMapping //PrepareInterceptor has this Action class mapping struts.actionMapping classclass org.apache.struts2.dispatcher.mapper.ActionMapping/class nameshowcase/name namespace//namespace

Re: struts2-showcase on OC4J

2009-04-08 Thread Musachy Barroso
I am sorry but that makes no sense. musachy On Wed, Apr 8, 2009 at 8:40 PM, Martin Gainty mgai...@hotmail.com wrote: //PrepareOperations.findActionMapping method contains this hardcoded lookup struts.actionMapping //PrepareInterceptor has this Action class mapping struts.actionMapping

Re: struts2-showcase on OC4J

2009-04-08 Thread Musachy Barroso
This error you are getting, we have seen it with other containers, and it should be fixed in trunk xwork (you can build it yourself, or grab a snapshot). Try setting this in your struts.xml file: constant name=struts.devMode value=false / musachy On Wed, Apr 8, 2009 at 6:19 PM, Mick_

Re: what is the equivalent of method in struts 2 for retrieve data?

2009-04-08 Thread 马 召
Request Scope 1. add a property in action 2. then use it in jsp Session Scope 1. Action implement SessionAware interface 2. set value to session map 3. then use it in jsp 2009/4/9 john lee sh_thorn_b...@yahoo.com: in struts 1, i saved the data into session  

How to suppress server console message in struts1.3.10 + tiles

2009-04-08 Thread rajusaranga
We are developing application with Struts 1.3.10, tiles and log4j1.2.15 using RAD 6.0.   I am receiving following message on server console for every “request”   [4/8/09 14:53:38:959 PDT] 005f TilesPreProce I org.apache.struts.tiles.commands.TilesPreProcessor execute Tiles process