Re: struts2 validation

2009-02-18 Thread Lukasz Lenart
2009/2/17 PEGASUS84 pegasu...@hotmail.it: Does someone knows how to hide the error message which cames from the action with name=input? i don't want to view this message Invalid field value... I thing you're talking about conversion errors, if so remove Conversion Error Interceptor [1] from

Re: [S1] struts integration with AjaxAnywhere

2009-02-18 Thread Lukasz Lenart
2009/2/18 Lalchandra Rampersaud lrampers...@ceis.cujae.edu.cu: I am trying to use the zoneJSF tag with struts 1.3 and tiles, but it shows javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax./faces/webapp/UIComponentTag when I try to load the page. However, I am able to use

Re: issues when using urlrewritefilter with struts2

2009-02-18 Thread Wim De Smet
Hi again, On Mon, Feb 16, 2009 at 10:12 AM, Wim De Smet krom...@gmail.com wrote: I hope this is the right venue for asking questions like this. If I'm mistaken, feel free to redirect me. :-) I'm currently working on a project where we are trying to use tuckey's urlrewritefilter[1] v3.2.0 to

ExecAndWait interceptor + stream

2009-02-18 Thread Francisco Exposito
Hi, I have to generate a report and while it is being generated I need to show a waiting page. My xml file has: action name=CrearGenerarPartes method=crearParte class=ads.web.action.PartesAction interceptor-ref name=defaultStack/ interceptor-ref name=execAndWait

Struts performance metrics

2009-02-18 Thread Mohan Radhakrishnan
Hi, There were some concerns raised about the performance of OGNL. We are evaluating Struts 2 for an internet site. How bad is the performance of OGNL ? Are there any methods to gather metrics by profiling that the forum recommends ? Thanks, Mohan -- View this message in context:

RE: struts2 + tiles

2009-02-18 Thread David Kerwick
Not sure Can you not add in put-attribute name=title value=welcome.title/ Before your put-list-attribute name=tabs To pass the title to the template. Dave -Original Message- From: Пламен Узунов [mailto:puzun...@gmail.com] Sent: 17 February 2009 17:28 To: Struts Users Mailing List

Struts2.1 and ajax

2009-02-18 Thread konf
BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Hi, I found a lot of articles which describes how to use ajax in Struts2.0 using DOJO / JSON But in Struts 2.1 I found that DOJO is deprecated and replaced by Java Web Part - but I did not found any tutorial. In JWP pages I found

Re: Struts2.1 and ajax

2009-02-18 Thread Lukasz Lenart
2009/2/18 k...@chalu.cz: I found a lot of articles which describes how to use ajax in Struts2.0 using DOJO / JSON But in Struts 2.1 I found that DOJO is deprecated and replaced by Java Web Part - but I did not found any tutorial. In JWP pages I Yes, Dojo is deprecated but where did you

Re: struts2 + tiles

2009-02-18 Thread Пламен Узунов
The problem is that I can't put multiple values from 'tab' list attribute as a values from properties file which have internationalized text (it I use for menus, tabs, etc.)

Re: struts2 + tiles

2009-02-18 Thread Antonio Petrelli
2009/2/17 Пламен Узунов puzun...@gmail.com: How will do it if you have a tiles list-attribute for title? Something like this: definition name=tiles.tabs extends=tiles.layout put-list-attribute name=tabs item value=TAB_ACTION1 link=action1.action / item value=TAB_ACTION2

Re: Struts2.1 and ajax

2009-02-18 Thread Jiří Chaloupka
If it is deprecated, is there any other recomended library for AJAX? Jirka Lukasz Lenart napsal(a): 2009/2/18 k...@chalu.cz: I found a lot of articles which describes how to use ajax in Struts2.0 using DOJO / JSON But in Struts 2.1 I found that DOJO is deprecated and replaced by Java Web

Struts2 form layout

2009-02-18 Thread David Kerwick
Hi, Is it possible to adjust the layout of an ajax themed form by using css? I'd like to have a four column layout instead of two. I tried creating a div around half the content and floating it right put the div ends up outside the form table for some reason. I tried creating another table

how to configure the json handler in the rest plugin?

2009-02-18 Thread Andrei Ivanov
Hello, I'm trying to use some custom settings(provide my own JsonConfig) for the json content type handler(org.apache.struts2.rest.handler.JsonLibHandler) but I don't see a way to do that. Any advice? Thanks - To unsubscribe,

RE: Struts2-Spring Integration Issue

2009-02-18 Thread Sundararaman, Anand
Hi Dale and Wes, I am the original poster. But I did get a lot of information in this discussion. I will like to explain my original issue again. In my Struts2- Spring2 application, I had configured the struts2-Spring plugin and made Spring initialize all the action classes etc. Basically I

Re: struts2 + tiles

2009-02-18 Thread Пламен Узунов
Thanks, Antonio!!! This works perfectly! Greetings! 2009/2/18 Antonio Petrelli antonio.petre...@gmail.com 2009/2/17 Пламен Узунов puzun...@gmail.com: How will do it if you have a tiles list-attribute for title? Something like this: definition name=tiles.tabs extends=tiles.layout

Re: Struts2-Spring Integration Issue

2009-02-18 Thread Wes Wannemacher
Try using CGLIB proxies rather than Dynamic JDK proxies... I'm guessing that your methods are not defined in one of the extended interfaces. Assuming you are using Spring 2.5 or higher, try adding this to your applicationContext.xml - aop:config proxy-target-class=true / Then make sure you have

Re: how to configure the json handler in the rest plugin?

2009-02-18 Thread Jack Qu
You can use struts2-jsonplugin ,that's can return json result type! -- From: Andrei Ivanov andrei.iva...@gmail.com Sent: Wednesday, February 18, 2009 11:03 PM To: Struts Users Mailing List user@struts.apache.org Subject: how to configure the json

exception in jsp file

2009-02-18 Thread elyes sallem
Hello, i m developping a web application with struts framework i got this error,which indicates that there a null pointer exception but nothing else any one know how can i find the null variable ... here is the exception java.lang.NullPointerException at

Re: issues when using urlrewritefilter with struts2

2009-02-18 Thread Bill Stilwell
On Wed, Feb 18, 2009 at 1:22 AM, Wim De Smet krom...@gmail.com wrote: This only seems to happen when setting use-query-string=true in the filter. Since our filters rely on being able to access the query string it doesn't really work well when we don't include it, but at least the parameters

ajax autocompleter

2009-02-18 Thread Jiří Chaloupka
Hi, I tried to use autocompleter on base of tutorial http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/, which do nothing. My code is: public class HintAddresses extends ActionSupport{ private String namePart; private MapInteger,String json; static

@Result annotation (2.1.6) -- name does not default to 'success'

2009-02-18 Thread musomesa
I noticed while upgrading that the new @Result annotation [import org.apache.struts2.convention.annotation.Result] forces you to explicitly put in the name attribute. Is there a reason fro dropping the convention that it defaults to success? Chris Mawata

How do I add a paramter to the request and forward?

2009-02-18 Thread laredotornado
Hi, I'm using Struts 2. I am fairly new to Struts and wondered how I would set this up. What I want to do is when someone types in mydomain.com/context_path/flow.do, something on the server side catches the request, and a parameter with name=token, value=123 to the request, and then forwards

Re: @Result annotation (2.1.6) -- name does not default to 'success'

2009-02-18 Thread Musachy Barroso
That looks like a bug to me. musachy On Wed, Feb 18, 2009 at 11:12 AM, musom...@aol.com wrote: I noticed while upgrading that the new @Result annotation [import org.apache.struts2.convention.annotation.Result] forces you to explicitly put in the name attribute. Is there a reason fro

Re: @Result annotation (2.1.6) -- name does not default to 'success'

2009-02-18 Thread Musachy Barroso
Fixed in trunk. https://issues.apache.org/struts/browse/WW-3003 thanks for reporting. musachy On Wed, Feb 18, 2009 at 11:21 AM, Musachy Barroso musa...@gmail.com wrote: That looks like a bug to me. musachy On Wed, Feb 18, 2009 at 11:12 AM, musom...@aol.com wrote: I noticed while upgrading

Re: struts2 validation

2009-02-18 Thread PEGASUS84
thanks for your answer i've removed the conversion error interceptor but the same message apper in my jsp page; if i see the html code i see td with the message invalide field value... is there a way for remove this td? -- View this message in context:

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
Running http://struts.apache.org/2.x/docs/config-browser-plugin.html also giving the same error : HTTP Status 404 - /starter/config-browser/index.action type Status report message /starter/config-browser/index.action description The requested resource (/starter/config-browser/index.action) is

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread Musachy Barroso
at this point anything can be wrong with your config, from missing the filter configuration in web.xml, to trying to run the webapp in IIS. Take the blank web app and start learning with it, or follow a tutorial, or use the maven archetype to create a new app. musachy On Wed, Feb 18, 2009 at

Re: struts2 validation

2009-02-18 Thread Lukasz Lenart
Use theme simple [1] and add what tags you want [1] http://struts.apache.org/2.1.2/docs/themes-and-templates.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: exception in jsp file

2009-02-18 Thread benjamin haimerl
hi, do you have a jsp called: ajust_005fcpe1.jsp in your project? it looks like a null pointer on this jsp take a look at tomcat/work/../yourApp where all the jsp's should be dropped as a java class.. then you should see where the null pointer came from. ben elyes sallem wrote: Hello,

Re: Struts2.1 and ajax

2009-02-18 Thread Lukasz Lenart
2009/2/18 Jiří Chaloupka k...@chalu.cz: If it is deprecated, is there any other recomended library for AJAX? What ever you can use, jQuery for instance. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail:

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
I think I have explained every step and procedure I have followed for this application in this thread. And I also have tested Sample Appluication that comes with struts2 distribution and it runs fine and I can execute all the lesson examples there. The only difference I see here is the Sample

Re: struts2 validation

2009-02-18 Thread PEGASUS84
thanks, but in this way i'cant se the labels of the form; Can i override theme simple and remove only errorMessage? -- View this message in context: http://www.nabble.com/struts2-validation-tp22068251p22087958.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: struts2 validation

2009-02-18 Thread Lukasz Lenart
2009/2/18 PEGASUS84 pegasu...@hotmail.it: but in this way i'cant se the labels of the form; You can use s:label tag [1] Can i override theme simple and remove only errorMessage? Yes you can, take a look on [2] and [3] [1] http://struts.apache.org/2.1.6/docs/label.html [2]

Re: [S1] struts integration with AjaxAnywhere

2009-02-18 Thread Lalchandra Rampersaud
I guess that I could use a JSF-enabled servlet container since it seems to be the most logical at this point. How do I go about integrating JSF into my struts application (what jars would I need, etc..). Saludos Lalchandra - Original Message - From: Lukasz Lenart

Re: [S1] struts integration with AjaxAnywhere

2009-02-18 Thread Lukasz Lenart
2009/2/19 Lalchandra Rampersaud lrampers...@ceis.cujae.edu.cu: How do I go about integrating JSF into my struts application (what jars would I need, etc..). Sorry, but I don't understand. You can use MyFaces and follow installation instruction for Tomcat for example. Regards -- Lukasz

Re: struts2 validation

2009-02-18 Thread PEGASUS84
sorry but i can't. this is my code jsp: s:form action=/action/Login.action method=GET cssClass=form s:textfield label=Username name=username cssClass=basic/s:textfield s:password label=Password name=password cssClass=basic/s:password s:select label=Login as name=tipo cssClass=selezione

Re: exception in jsp file

2009-02-18 Thread Lalchandra Rampersaud
Can you be more specific as to when the error occurs. Saludos Lalchandra Rampersaud - Original Message - From: elyes sallem elyes.sal...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, February 18, 2009 7:41 AM Subject: exception in jsp file

Errors repopulating the list after validation.

2009-02-18 Thread Sidharth Bhatia
Hi, I have form, and a list that is being populated with it. When I first enter the action the list populates properly. But the second time, I get the following error: tag 'select', field 'list', name 'country': The requested list key 'countries' could not be resolved as a

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread Dave Newton
Have you increased the logging level for S2 and XWork? Is there anything in the log file on app startup? It sounds to me like it's not even starting. Dave SanJ.SANJAY wrote: I think I have explained every step and procedure I have followed for this application in this thread. And I also have

RE: getText did not return value in s:submit

2009-02-18 Thread Martin Gainty
Good Evening Lu- there is a good illustration of this resolution of getText available in Struts 2.1.2 editEmployee.jsp the example is a textfield which pulls attribute firstName from employee s:form name=editForm action=save s:textfield label=Employee Id name=currentEmployee.empId/

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
I have'nt increased the logging level. I also suspect the same that its not even starting. All the S1 action works but not S2 links/actions newton.dave wrote: Have you increased the logging level for S2 and XWork? Is there anything in the log file on app startup? It sounds to me like

RE: Why is Validation not firing?

2009-02-18 Thread Martin Gainty
Mike- not understanding the situation you are presenting can you show us your declared result types? e.g. .\classes\struts-actionchaining.xml struts package name=actionchaining extends=struts-default namespace=/actionchaining action name=actionChain1

Re: Errors repopulating the list after validation.

2009-02-18 Thread sheva j
Hi, Declare like this in your action class, ListString country = new ArrayListString(); Hope this will solve your problem - Sheeva On Thu, Feb 19, 2009 at 5:47 AM, Sidharth Bhatia sidharth.bhat...@gmail.com wrote: Hi, I have form, and a list that is being populated with it. When I

How to get dropdown list value even if validation intercetor intercepts

2009-02-18 Thread sheva j
Hi, I am using struts 2.0.11. I am using s:select tag, struts is populating the list box correctly for all the time, except when the validation error occurs for any other field. My issue is: When I first enter into the page, I am able to get the dropdown value, When I submit the page with out

RE: Struts2.1 and ajax

2009-02-18 Thread Seshagiri V
Hi , Java Web Parts, The AjaxTags component of the Java Web Parts project is a taglib. Please follows url: http://www.ajaxwith.com/AjaxTags-Sub-Component-of-the-Java-Web-Parts-oject.h tml may be given solution. Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US

Re: Hiding s:select control: SOLVED!

2009-02-18 Thread Rajeshwari Godbole
Mitch, I think the question may have been directed at you as you indicated in your email that if ajax was required, then setting the form theme to simple may not work? Thanks for the form tip, it sure would make the code better :) Thanks, Rajeshwari On Tue, Feb 17, 2009 at 7:19 PM, mitch

To use Struts Validation or not?

2009-02-18 Thread Rajeshwari Godbole
Hi all, Our team here has developed a portal using Struts2. Most of the developers have used javascript to validate the forms. I know using the Struts validation framework is a better way to do this but I think this was avoided in the project due to the (perceived) cumbersome setup (xml file,

RE: How to get dropdown list value even if validation intercetor intercepts

2009-02-18 Thread Seshagiri V
Hi, Please send a snippet of my code in the jsp: Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information contained in

Re: To use Struts Validation or not?

2009-02-18 Thread Wes Wannemacher
On Thursday 19 February 2009 01:02:16 Rajeshwari Godbole wrote: Hi all, Our team here has developed a portal using Struts2. Most of the developers have used javascript to validate the forms. I know using the Struts validation framework is a better way to do this but I think this was avoided

Re: Struts2.1 and ajax

2009-02-18 Thread Frank W. Zammetti
- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org __ Information from ESET Smart Security, version of virus signature database 3866 (20090218