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 : > 2009/4/7 john lee : >> no error when startup the tomcat. > > Could you try access directly HelloWorld.jsp? Like this > http://localhost:8080/jiong2/Hel

Re: validation

2009-04-08 Thread Lukasz Lenart
2009/4/8 Roberto Nunnari : >         and here's my Item-update-validation.xml file that I put in the same folder In theory this should work for whole action Item-update, but I think the problem is that double dash ;-) Change naming convention for your actions, use namespace instead names like Ite

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 : /JSPPages/AJA

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

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 Date: 2009/4/8 Subject: Fwd: event onclick of nested:checkbox To: Struts Users Mailing List here is the gener

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 submit

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 i

Re: validation

2009-04-08 Thread Roberto Nunnari
Hi. see my comments in context. Lukasz Lenart ha scritto: 2009/4/7 Roberto Nunnari : 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 the xml file is there. I

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 b

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

2009-04-08 Thread Lukasz Lenart
2009/4/8 walki2 : > 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

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 specified

Fwd: event onclick of nested:checkbox

2009-04-08 Thread elyes sallem
here is the generated html code Regards Sallemel -- Forwarded message -- From: elyes sallem Date: 2009/4/8 Subject: event onclick of nested:checkbox To: Struts Users Mailing List Hello, i have a checkbox to which i associated an event

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 bein

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 an here is the javascript function function verifierReversible(i){ if (document.forms[0].elements["ajustContrat["+i+"].CAjustTypeAjust"].checked==tru

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 pa

RE: create personal interceptor

2009-04-08 Thread Martin Gainty
ask the question what is the reason why you must use 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: http://struts.apache.org/2.x/docs/interceptors.html#

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/ Rega

Re: validation

2009-04-08 Thread Roberto Nunnari
Humm.. I don't know.. I tried with view: struts.xml: class="ch.nunnisoft.myecommerce.actions.admin.ItemAction"> Item-view?id=${id} adminItemEdit and renamed validator xml file to: Item_update-update-validation.xml but still.. it doesn't check anything.. Any more hints? Robi

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

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: //an example of Action Class with an ID attribute package com.opensymphony.webwork.

Re: validation

2009-04-08 Thread Lukasz Lenart
2009/4/8 Roberto Nunnari : > Any more hints? Could you remove this from top of your validation file? Pozdrawiam -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additiona

Re: New maven convention archetype

2009-04-08 Thread Lukasz Lenart
2009/4/8 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 Archetype

Re: validation

2009-04-08 Thread Roberto Nunnari
tried it: doesn't help. Lukasz Lenart ha scritto: 2009/4/8 Roberto Nunnari : Any more hints? Could you remove this from top of your validation file? Pozdrawiam -- Roberto Nunnari Servizi Informatici SUPSI-DTI SUPSI-DTI - Via Cantonale - 6928 Manno - Switzerland email: mailto:roberto

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 : Action name is: Item-update method name is: update so then, validation file should be? Item-update-update-v

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 fil

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 rename

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

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 ju

Re: validation

2009-04-08 Thread Mileidys Gonzalez Prieto
Im using this piece on code on my jsp - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: New maven convention archetype

2009-04-08 Thread Lukasz Lenart
2009/4/8 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

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 wrote: > 2009/4/8 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 wor

Re: validation

2009-04-08 Thread Lukasz Lenart
2009/4/8 Mileidys Gonzalez Prieto : > Im using this piece on code on my jsp > > staticJavascript="false" /> Yeah, but the topic is about the problems with validation in Struts2 not in Struts1 as you're presenting. Regards -- Lukasz http://www.lenart.org.pl/ ---

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 impl

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 : Im using this piece on code on my jsp Yeah, but the topic is about the problems with validation in Struts2

HTML warnings for 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 being inside of instead of inside of a . It's an easy fix by putting the following hidden.ftl in the xhtml theme directory. Is there any reason not to

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 m

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

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 thi

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     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 Loading.. modified above code to the be

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 character

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 the

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 wrote

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

RE: firefox css is not loaded

2009-04-08 Thread Martin Gainty
link href attribute is pointing to the wrong location.. here is mine Seien Sie sinnvoll? Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaen

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:

Re: firefox css is not loaded

2009-04-08 Thread Wes Wannemacher
On Wednesday 08 April 2009 18:00:34 Martin Gainty wrote: > > http://www.manning.com/wannemacher - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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 com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.jav

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 class org.apache.struts2.dispatcher.mapper.ActionMapping showcase / //so in your /WEB-INF/classes/struts-default.xml you would need to change

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 wrote: > > //PrepareOperations.findActionMapping method contains this hardcoded lookup > struts.actionMapping > > //PrepareInterceptor has this Action class mapping > > > class org.apache.struts2.dispatche

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: musachy On Wed, Apr 8, 2009 at 6:19 PM, Mick_ wrote: > > > > Nils-Helge Garli wrote: >> >> And wh

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 : > in struts 1, i saved the data into session >   session.setAttribute(BeanNames.PARTS_LIST,partsList); >

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 comple

Re: struts2-showcase on OC4J

2009-04-08 Thread Lukasz Lenart
2009/4/9 Mick_ : > 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 > com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) >    at > com.opensymphony.xwork2.util.F