Re: doc problem at struts.properites page

2009-03-02 Thread Lukasz Lenart
2009/3/2 Musachy Barroso musa...@gmail.com: You need to file a CLA: http://www.apache.org/licenses/icla.txt and then drop and email to @dev, and someone will grant you wiki rights. I did that months ago but now answer, should I repeat that? Regards -- Lukasz http://www.lenart.org.pl/

Re: Acegi with Struts 2.

2009-03-03 Thread Lukasz Lenart
2009/3/3 Mohan Radhakrishnan radhakrishnan.mo...@gmail.com:    filter-mapping        filter-namestruts2/filter-name        url-pattern/HelloWorld.jsp/url-pattern    /filter-mapping Wrong, has to be filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern

Re: How to pass Result dynamic param value while using Annotation to define action

2009-03-04 Thread Lukasz Lenart
2009/3/4 Matt Jiang matt.ji...@gmail.com: Do I just use ${expression} as well? try #expression http://struts.apache.org/2.1.6/docs/ognl.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail:

Re: struts2 and dojo

2009-03-10 Thread Lukasz Lenart
2009/3/10 fr Rouxel rouxe...@yahoo.com: and when struts 2 will integrate dojo 1.0? Support for Dojo was deprecated, some work is going on to integrate Struts2 with jQuery Regards -- Lukasz http://www.lenart.org.pl/ - To

Re: Re: struts2 and dojo

2009-03-10 Thread Lukasz Lenart
2009/3/10 pascal.gehr...@freenet.de: Support for dojo was not deprecated!! It was bundled to a plugin and is called struts2-dojo-plugin-2.1.6.jar. It was deprecated, there is no plans to upgrade Dojo to latest version, no plans to add new Dojo futures and so on... In such case support for Dojo

Re: struts2 and dojo

2009-03-11 Thread Lukasz Lenart
2009/3/11 Mohan Radhakrishnan radhakrishnan.mo...@gmail.com: Are you supporting JQuery in the future ? There is work-in-progress on jquery-plugin I know I should be expecting only voluntary support from a open-source project. Will the developers who are still working on DOJO support in Struts

Re: [OT] Authorization and Authentication Question

2009-03-11 Thread Lukasz Lenart
2009/3/11 Ashish Kulkarni ashish.kulkarn...@gmail.com: HiI was able to configure LDAP to do authentication, but how do i use UserDetailsService, is there any example of how to use this and implement it in my project to get user and role from DB2 database I did that like this, extended

Re: Struts 2.1.6 - Date parameters conversion failure due to missing locale

2009-03-12 Thread Lukasz Lenart
2009/3/12 Andrea andrea.giglio...@smurfitkappa.it: after migrating from 2.0.11 to 2.1.6 version i faced the above problem. can someone send me the xwork 2.1.3 jar file, or only the .class fixed ? I can't build it cause the enterprise firewall. I need to resolve the issue because our web app

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr grigg...@gmail.com: ERROR com.opensymphony.xwork2.util.InstantiatingNullHandler  - Could not create and/or set value back on to object ognl.OgnlException: settings [java.lang.IllegalArgumentException: argument type mismatch] ERROR

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr grigg...@gmail.com: settings is a SettingList which is just an extended ArrayListSetting. That can be a problem, generics are erased during compilation and Ognl doesn't know how to convert array to SettingList, did you try to prepare converter for it? Regards -- Lukasz

Re: System.out into interceptor

2009-03-16 Thread Lukasz Lenart
On Mon, Mar 16, 2009 at 5:31 PM, PEGASUS84 pegasu...@hotmail.it wrote: %out.print(request.getParameter(ciao))% Simplest solution %= request.getParameter(ciao) % Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe,

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr grigg...@gmail.com: It appears both values objects (value and o, respectively) are completely empty... It's strange but anyway you should be able to use Struts2 / XWork2 convertion mechanism, did you setup xwork-conversion.properties file as mentioned in documentation [1]? [1]

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr grigg...@gmail.com: Yes, I have it listed in the xwork-conversion.properties file as such: com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.converter.SettingListConverter And the file is in the root of your classpath (WEB-INF/classes)? Regards -- Lukasz

Re: Type conversion exceptions

2009-03-17 Thread Lukasz Lenart
2009/3/16 ryangr grigg...@gmail.com: com.opensymphony.xwork2.util.XWorkConverter  - processing conversion file [com/rjssoft/webdocs/admin/SettingAction-conversion.properties] [class=class com.rjssoft.webdocs.admin.SettingAction] As I see you have only SettingAction-conversion.properties, could

Re: Type conversion exceptions

2009-03-18 Thread Lukasz Lenart
2009/3/17 ryangr grigg...@gmail.com: [xwork-conversion.properties] Element_settings=com.rjssoft.webdocs.setting.Setting That's ok but your SettingList is not full List implementation and you have to specified how to convert array to SettingList that's why you have to specified also converter

Re: Type conversion exceptions

2009-03-18 Thread Lukasz Lenart
2009/3/18 musom...@aol.com: But then how do you plan to write a converter to convert a String[] to a SettingList? It's already done, just to the configuration has to be adjusted Also why is aggregation a bad design? It isn't but exposing directly internal field (ArrayListSetting) it is.

Re: Where is Struts 2 Blank Archetype 2.1.6 ?

2009-03-23 Thread Lukasz Lenart
Hi, I've just put the latest (unreleased version) here [1], you can use it with command: mvn archetype:generate -DarchetypeCatalog=http://www.lenart.org.pl/maven/ [1] http://www.lenart.org.pl/maven/ Regards -- Lukasz http://www.lenart.org.pl/

Re: Dojo plugin deprecated on Struts 2.1: why ?

2009-03-24 Thread Lukasz Lenart
2009/3/24 cel...@yahoo.com: I have two main questions about that : 1) What is the reason ? Is it because it is slow ? Not enough support from community and no plans to upgrade to latest Dojo version (no volunteers) 2) Will it be replaced by another Javascript library ? Not replacement, but

Re: ClassCastException com.dev.model.Form cannot be cast to java.lang.String

2009-03-24 Thread Lukasz Lenart
2009/3/24 foward fow...@gmail.com: s:action name=createForm!getForm id=action namespace=default/ Method getForm() return object Form or String? Struts is expecting that action will return a String not an object. I think you should read some tutorial how to use Struts 2. Regards -- Lukasz

Re: ClassCastException com.dev.model.Form cannot be cast to java.lang.String

2009-03-24 Thread Lukasz Lenart
2009/3/24 foward fow...@gmail.com: the method getForm() return a object Form where before with the respective id is obtained and returned. You put method getForm() in s:form as a action, which means such method will be called by Struts 2 and the framework will expect a String - result name,

Re: Where is Struts 2 Blank Archetype 2.1.6 ?

2009-03-24 Thread Lukasz Lenart
2009/3/24 Radoslav Krivak rkri...@gmail.com: Thanks Lukasz. I was actually checking your catalog few days ago but it wasn't there yet. I put it yesterday ;-) I've hope, I will be able to publish also conventionize version before Easter Regards -- Lukasz http://www.lenart.org.pl/

Re: display Bigdecimal with 3 number after the ,

2009-04-02 Thread Lukasz Lenart
2009/4/2 elyes sallem elyes.sal...@gmail.com: Hello, i work with struts 1.2 and i wanna display in the jsp page Bigdecimal number with 3 number after the comma any one know how can i do that? by default, it is displayed 1 comma after the comma Did you read documentation [1] about that? [1]

Re: display Bigdecimal with 3 number after the ,

2009-04-02 Thread Lukasz Lenart
2009/4/2 elyes sallem elyes.sal...@gmail.com: yes i viewed , this is  for struts 2 but i work with struts 1.2 Sorry, I missed that ;-( You can use JSTL fmt:formatNumber pattern=#,###,### value=${myForm.myBigDecimal}/ Regards -- Lukasz http://www.lenart.org.pl/

Re: display Bigdecimal with 3 number after the ,

2009-04-02 Thread Lukasz Lenart
2009/4/2 Lukasz Lenart lukasz.len...@googlemail.com: fmt:formatNumber pattern=#,###,### value=${myForm.myBigDecimal}/ it should be fmt:formatNumber pattern=#,###,###.### value=${myForm.myBigDecimal}/ Regards -- Lukasz http://www.lenart.org.pl

Re: Empty lines before doctype declaration

2009-04-06 Thread Lukasz Lenart
2009/4/6 Cristian Peraferrer corellia...@gmail.com: I'm using struts 2.1.6, using JSP's with Tiles plugin, and I'm getting empty lines before the doctype, but in my JSP's there aren't spaces. Where I should look at? Maybe it's an encoding problem? Some UTF8 with BOM? Regards -- Lukasz

Re: configure struts 2

2009-04-07 Thread Lukasz Lenart
Remove struts2-spring-plugin.jar from your lib folder if don't use integration with Spring. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands,

Re: Error when starting sun java App Server com.opensymphony.xwork2.inject.DependencyException: Security manager in use, could not access constructor: com.opensymphony.xwork2.ObjectFactory(com.opensy

2009-04-07 Thread Lukasz Lenart
2009/4/1 srinivasch sri...@gmail.com: WEB0100: Loading web module [budsystem] in virtual server [server] at [/budsystem] Starting Servlet Engine: Sun-Java-System/Application-Server Parsing configuration file [struts-default.xml] Parsing configuration file [struts-plugin.xml] Unable to

Re: please help me

2009-04-07 Thread Lukasz Lenart
2009/4/7 PEGASUS84 pegasu...@hotmail.it: public class DataOre {    List giorno=new ArrayList();  public DataOre(){    giorno = new ArrayList(); You already created list, not needed %...@page import=bean.DataOre% s:select headerKey=1 headerValue=seleziona list=DataOre listValue=giorno /

Re: tag select

2009-04-07 Thread Lukasz Lenart
2009/4/7 PEGASUS84 pegasu...@hotmail.it: good evening; I've this question: I want crate a select tag with a list of 31 days. I create a java class with an ArrayList with 31 days but how can insert this ArrayList into a list of the select tag? Don't duplicate topics, it doesn't help! I

Re: Error with ActionForward

2009-04-07 Thread Lukasz Lenart
2009/4/7 Security Management list-subscripti...@secmgmt.com: Struts 2.1.6, here's my action. action name=saveRuleName class=com.secmgmt.actions.SaveRule        result name=success type=redirectAction                param name=actionNameaddExceptionForm/param                param

Re: validation

2009-04-07 Thread Lukasz Lenart
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? Regards -- Lukasz http://www.lenart.org.pl/

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

2009-04-07 Thread Lukasz Lenart
2009/4/7 john lee sh_thorn_b...@yahoo.com: no error when startup the tomcat. Could you try access directly HelloWorld.jsp? Like this http://localhost:8080/jiong2/HelloWorld.jsp Regards -- Lukasz http://www.lenart.org.pl/ -

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

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/

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 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: 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: 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: struts2-showcase on OC4J

2009-04-09 Thread Lukasz Lenart
2009/4/9 Mick_ ruaspam...@gmail.com: 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

Re: New maven convention archetype

2009-04-09 Thread Lukasz Lenart
Ok, I made some minor tweaks and right now everything should be as expected, please test it. Then I will register new Task with Jira ;-) Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail:

Re: [S2.1.6] boolean static parameter for an action

2009-04-10 Thread Lukasz Lenart
2009/4/10 Greg Lindholm glindh...@yahoo.com: I'm trying to pass a boolean static parameter to an Action and the value getting set is always false no matter what I do it won't set it to true. action name=MyAction   class=com.xxx.MyClass   method=doDisplay   param

Re: Struts and EJB 3

2009-04-10 Thread Lukasz Lenart
2009/4/10 Stefano elste...@gmail.com: in struts1 what's the way to use EJB3.0? there's no possibility to use annotation? i need to use classical jndi? why? You can use annotations with Struts1, is not a problem with framework but with Java platform you're using. THe best solution is to use

Re: Session Management

2009-04-16 Thread Lukasz Lenart
package example3; import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.interceptor.Interceptor; /** * * @author Lukasz */ public class LoginInterceptor implements Interceptor { public void destroy() { } public

Re: Regarding locale in struts

2009-04-16 Thread Lukasz Lenart
2009/4/16 abhishek reddy abhishek.c1...@gmail.com: how do i manually set the locale in struts application? You have to have I18N interceptor in your stack and setup request_local param in url with given Locale code, see [1] for more details [1]

Re: Storing interface instance in a user's session

2009-04-16 Thread Lukasz Lenart
2009/4/16 Security Management list-subscripti...@secmgmt.com: I think I just was being dumb and did not make the IUser serializable, which should be all I need to do, yes? Yes, you should get exception when session will be saved to disk. Regards -- Lukasz http://www.lenart.org.pl/

Re: Regarding locale in struts

2009-04-17 Thread Lukasz Lenart
2009/4/17 abhishek reddy abhishek.c1...@gmail.com: thanks for the replyiam using struts 1.2.9, how to use the interceptor? Not possible ;-) And I have no idea how it (Locale) should be implemented in Struts 1.2. Regards -- Lukasz http://www.lenart.org.pl/

Re: WARNING: No configuration found for the specified action:

2009-04-19 Thread Lukasz Lenart
2009/4/18 Stefano Tranquillini stefano.tranquill...@gmail.com:    package name=home extends=default namespace=/ There isn't namespace user, only /. Namespace is a virtual name, doesn't base on packages or something. Try to read [1] to understand it deeply [1]

Re: Menus

2009-04-20 Thread Lukasz Lenart
2009/4/20 abhishek reddy abhishek.c1...@gmail.com: can anyone let me know how to build menus in struts? Struts Menu [1] [1] http://struts-menu.sourceforge.net/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe,

Re: Is there a better way?

2009-04-20 Thread Lukasz Lenart
2009/4/20 Mighty Tornado mighty.torn...@gmail.com: This works, but is there a better way to do it with Struts? The question is: the jsp page is not an HTML form; it just displays information - can I use the form for this purpose though, and if so, should I? It's up to you, the only think, you

Re: How to do matematical operation in jsp.

2009-04-21 Thread Lukasz Lenart
2009/4/21 Stefano Tranquillini stefano.tranquill...@gmail.com: how can i do that? Add method to class Item to do that, jsp isn't place for business logic Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail:

Re: How to do matematical operation in jsp.

2009-04-21 Thread Lukasz Lenart
2009/4/21 Dave Newton newton.d...@yahoo.com: Meh--for simple stuff like this I'm not as sure, although if we're talking about a line item in a invoice, it wouldn't take much to convince me. How do you want to test it? I know it's a simple case, but it's better to have logic in one place. The

Re: How to do matematical operation in jsp.

2009-04-21 Thread Lukasz Lenart
2009/4/21 Suneel sunee...@gmail.com: I'm not sure about this but can't you invoke a function in OGNL. I guess thats how the getText function works in ognl. Probably you can write a function in your action like getResult and invoke it using s:property value=getResult(key.price,value)/ Correct

Re: Non editable jsp with struts 2 templates - whats the best approach?

2009-04-21 Thread Lukasz Lenart
2009/4/21 Suneel sunee...@gmail.com: I've a JSP where the user views a set of html input fields. The user enters the values and submits the page and he is taken to another page where he gets a chance to review his inputs before final submission. All this JSP does is, it displays the inputs as

Re: Non editable jsp with struts 2 templates - whats the best approach?

2009-04-21 Thread Lukasz Lenart
2009/4/21 Security Management list-subscripti...@secmgmt.com: Yes, create a theme based on simple that sets the disabled=true for the fields, and render with that theme. Some browses don't send to a server disabled fields, so you will have to duplicate them in to the hidden inputs. You can use

Re: How to do matematical operation in jsp.

2009-04-21 Thread Lukasz Lenart
2009/4/21 Dave Newton newton.d...@yahoo.com: How do you want to test it? I know it's a simple case, but it's better to have logic in one place. As I said, I'm easily convinced in this particular case. OTOH, there are plenty of times when it's simply easier, quicker, and clearer to just

Re: How to do matematical operation in jsp.

2009-04-21 Thread Lukasz Lenart
2009/4/21 Dave Newton newton.d...@yahoo.com: And the next step will be implement whole bank security in jsp :P Right, because that's clearly the type of trivial functionality I was talking about. Don't be ridiculous. Young programmers very often follow such advices and extend logic in jsp,

Re: HTML:errors

2009-04-23 Thread Lukasz Lenart
2009/4/23 McDowell, Paula paula.mcdow...@sug.com: Is there a way to check the html:errors/ field in the jsp for not empty?  I only want to display an html group if the errors field is empty.  I'm using Struts 1.1. I've been using such structure: logic:messagesPresent

Re: struts 2 and tomcat 6 problem

2009-04-26 Thread Lukasz Lenart
2009/4/26 Kortheo kort...@kwanta.net: I've just created a new standard dynamic web project using eclipse , added the struts2 libs and configured a standard mapping in web.xml Did you add all needed dependency? Unable to load configuration. - bean -

Re: Exception Handling in Struts 2.0.11

2009-04-27 Thread Lukasz Lenart
2009/4/27 NR031 nataraja...@cognizant.com:   I am using Struts 2.0.11 and NetBeans 6.1. Is there any way to handle exception in Struts 2? Just define global result and put entries for given exceptions in struts.xml, like below global-results result name=methodNotSupported

Re: Defining text field dynamically and assigning value from array

2009-05-07 Thread Lukasz Lenart
2009/5/7 sateesh_chand...@harvardpilgrim.org: s:textfield theme=simple key=%{paramId} value=%{%{paramId}[0]} maxlength=2 size=2 cssClass=monthInput tabindex=%{sequenceNo} / Maybe just that will be enough? value=%{paramId[0]} Regards -- Lukasz http://www.lenart.org.pl/

Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Lukasz Lenart
Could you try to use the latest snapshot build? http://people.apache.org/builds/struts/nightlies/2.x/ If that doesn't help, please register an issue with Jira, JBoss 5 introduced new virtual file system and that the origin of problems https://issues.apache.org/struts/browse/ Regards -- Lukasz

Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-07 Thread Lukasz Lenart
2009/5/7 SofIAm sof.am...@yahoo.com:        public String getAllEmployees() { This method is never called, renamed it to execute() and should be ok Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail:

Re: problems using tiles with struts 2

2009-05-12 Thread Lukasz Lenart
2009/5/12 manub e.bla...@reply.it: Anyone can suggest me how to handle this? XML parser is trying to connect over the Internet to validate XML base on DTD, do you have proxy in use? It was possible to disable such function and to use local DTD copy instead. Regards -- Lukasz

Re: Using session object in JSP page

2009-05-12 Thread Lukasz Lenart
2009/5/11 NR031 nataraja...@cognizant.com: Map sesion=ActionContext.getContext().getSession(); sesion.put(username,getUn());    /*getun() returns the username form field data*/ I want to use this session data in all my JSP pages, how to use the session data in my JSP? I am using Struts -2

Re: problems using tiles with struts 2

2009-05-12 Thread Lukasz Lenart
2009/5/12 manub e.bla...@reply.it: Yes, I'm behind a proxy. How to disable that functionality? Thanks in advance. Sorry, no idea. It's related to Digester itself, try to look in that direction. Regards -- Lukasz http://www.lenart.org.pl/

Re: Cant get css, js files if not using .do extension

2009-05-13 Thread Lukasz Lenart
2009/5/13 KE LI hkustli...@gmail.com:  15545 [http-8080-2] ERROR org.apache.struts2.dispatcher.Dispatcher  - Could not find action or result There is no Action mapped for namespace / and action name main.css. - [unknown location] You changed mapping for Action Servlet, right now it will catch

Re: [Struts 2] Disabled fields are not posted on form submission

2009-05-13 Thread Lukasz Lenart
2009/5/13 Fernandes Celinio cfernan...@sopragroup.com: How do i submit the value of a disabled text field ? Is there an interceptor that already takes care of it in Struts 2 ? By HTML spec, disabled fields aren't send to a server, it isn't Struts issue but general rule. You can consider to use

Re: convention plug-in

2009-05-13 Thread Lukasz Lenart
2009/5/13 Jim Collings jlistn...@gmail.com: Is there a place where I can see what the conventions are that the convention plug-in uses? Did you read the documentation [1]? [1] http://cwiki.apache.org/WW/convention-plugin.html Regards -- Lukasz http://www.lenart.org.pl/

Re: Disabling JSP's

2009-05-18 Thread Lukasz Lenart
Check that solution [1], is better and should works for any kind of servlet container; putting files under WEB-INF is not always good because there isn't strict specification to protect files under WEB-INF - it works for Tomcat but I don't know if it does for others. [1]

Re: Invoking multiple webservices from Action

2009-05-18 Thread Lukasz Lenart
2009/5/17 sid5 siddharthchha...@hotmail.com: We currently have a SOA based application with a struts front end. We have to invoke multiple webservices to get the data to render a single page. I was thinking of writing an Executor service inside an Action class or an Interceptor to do this.

Re: Accessing protected resources via a login page

2009-05-19 Thread Lukasz Lenart
2009/5/19 Steve st...@sjlt.co.uk: Can anyone advise on the best way to do this? Use Acegi, it has such functionality built-in or store request path in session when redirecting to login page and after successful login, read it from session and redirect to it. It should be achievable with the same

Re: Any validation flag available to the action code?

2009-05-20 Thread Lukasz Lenart
2009/5/19 Qunhuan Mei q...@qm18.wanadoo.co.uk: When Struts validation is in place, the java action code appears to run fully twice by default. What you mean by that? The method execute() is called twice? Is there a flag or variable as such available? As I know nope, it's simply not needed.

Re: passing form parameters to a custom validator

2009-05-20 Thread Lukasz Lenart
2009/5/19 manub e.bla...@reply.it: I'm trying to write a custom field validator which needs other fields to validate the field I need to validate. How can I pass field values (and not static params) to a field validator in the validation xml? I'm using Struts 2.1.6. Did you try

Re: passing form parameters to a custom validator

2009-05-20 Thread Lukasz Lenart
2009/5/20 manub e.bla...@reply.it: Yes, I did. But in the action the string takes the value ${field} and not the field value. Frankly, I don't understand, are you trying to pass data from validator xml configuration to action? Regards -- Lukasz http://www.lenart.org.pl/

Re: passing form parameters to a custom validator

2009-05-20 Thread Lukasz Lenart
2009/5/20 manub e.bla...@reply.it: I've written a custom field validator, which needs other field values to validate his field. I need a way to pass that values to that field validator. Did you try to use param tag as below? field name=employee.employeeType field-validator type=expression

Re: passing form parameters to a custom validator

2009-05-21 Thread Lukasz Lenart
2009/5/21 manub e.bla...@reply.it: I think that this may work for the expression validator because you are supplying an expression. I've been thinking about param/ tag, with it you can set any field in your validator and it can be an OGNL expression. Regards -- Lukasz

Re: Pagination

2009-05-25 Thread Lukasz Lenart
2009/5/25 Murugesh muruges...@gmail.com: can any one help me to achieve this? Could you show how did you try to use DisplayTag, some code example? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail:

Re: Pagination

2009-05-25 Thread Lukasz Lenart
2009/5/25 Murugesh muruges...@gmail.com:  display:table  list=minDataList requestURI=calldata.action pagesize=10  display:column property=name/  display:column property=id/ /display:table Could you also show action code? Regards -- Lukasz http://www.lenart.org.pl/

Re: Pagination

2009-05-25 Thread Lukasz Lenart
End the last thing, action's configuration. As I noticed you don't use execute() method and maybe your are missing call to method call30Mdata(). And also try Chris suggestion. Regards -- Lukasz http://www.lenart.org.pl/ - To

Re: Pagination

2009-05-25 Thread Lukasz Lenart
2009/5/25 Murugesh muruges...@gmail.com: i am getting list with s:iterator but not displaytag Did you try Chris suggestion? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail:

Re: Pagination

2009-05-25 Thread Lukasz Lenart
2009/5/25 Murugesh muruges...@gmail.com: is their any way to modify the display? like the page no's and no of items coming on top , i need it to be bottom. so where i have to chnage this? Check DisplayTag documentation, for begining that [1] [1]

Re: Force user to specific page

2009-05-26 Thread Lukasz Lenart
2009/5/26 Jim Collings jlistn...@gmail.com: I could write an interceptor but this seems like re-inventing the wheel as it seems like there should be something out there that will do this already. Your own Interceptor is the best solution and the second best option is to use Acegi or something

Re: Force user to specific page

2009-05-26 Thread Lukasz Lenart
2009/5/26 Jim Collings jlistn...@gmail.com: How can I force the user to go to a specific page, if a specific property is set? With JavaScript? Or if you mean server side solution, in execute() method return different result namr base on that property which is defined as a redirect to page you

Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

2009-05-27 Thread Lukasz Lenart
2009/5/27 Fernandes Celinio cfernan...@sopragroup.com: I know it works well with the Tomcat server. JBoss is using Tomcat to serve Java web applications, did you try deploy the same application to standalone Tomcat? Regards -- Lukasz http://www.lenart.org.pl/

Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

2009-05-27 Thread Lukasz Lenart
2009/5/27 musom...@aol.com: Me again: here is a link with a discussion. Don't hold your breath as it does not give a work around. http://www.nabble.com/Problems-using-Struts2-on-JBoss-5.0.1GA-td22969807.html Does it mean it solves your issue? Or there there is something new regarding JBoss

Re: white space

2009-06-15 Thread Lukasz Lenart
2009/6/15 PEGASUS84 pegasu...@hotmail.it: How can I make it? Did you try this listValue=%{nome + ' ' + cognome} Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: @Results ignored

2009-06-15 Thread Lukasz Lenart
As I remember, Dynamic Method Invocation is disabled by default, so you need to enable it: struts.enable.DynamicMethodInvocation = true Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail:

Re: Why all this WARN on interceptor (and how to eliminate?)

2009-06-17 Thread Lukasz Lenart
I think it's unrelated to Struts, check that [1] [1] http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.0/html/EJB3_Interceptors.html Regards -- Lukasz http://www.lenart.org.pl/ - To

Re: applicationresources.properties with utf-8 characters

2009-07-01 Thread Lukasz Lenart
What do you use to edit that file? Eclipse? There is plugin which will convert in fly characters to UTF-8 entities, Resource Bundle Editor or something. IntelliJ IDEA has built-in such option, just select it in Settings. Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/

Re: [s2] Custom field validator with params containing OGNL expression

2009-07-09 Thread Lukasz Lenart
2009/7/7 Cristian Peraferrer corellia...@gmail.com: field-validator type=usernameavailable      param name=userId${enterprise.enterpriseId}/param      messageThis username is already taken./message    /field-validator Do you have a getter called getEnteriprise() on an action? Regards --

Re: exceute() method in action class didn't called

2009-07-09 Thread Lukasz Lenart
2009/7/9 jayadevan jayadeva...@gmail.com:        action-mappings                        action                path=/helloWorld                type=examples.firstStruct.helloWorld.HelloWorldAction                name= Add name = HelloWorldFromBean Regards -- Lukasz

Re: exceute() method in action class didn't called

2009-07-09 Thread Lukasz Lenart
Ok, but it's truncated, could you send more? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Eddie Izzard - Never put a sock in a toaster. - http://www.brainyquote.com/quotes/authors/e/eddie_izzard.html

Re: validwhen question

2009-07-13 Thread Lukasz Lenart
2009/7/13 Odelya YomTov ode...@jpost.com: But I don't see that it works! Why? Did you try like this? var-valuedata.category != \'empty\'/var-value Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ -

Re: exception :java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet

2009-07-13 Thread Lukasz Lenart
2009/7/14 jayadevan jayadeva...@gmail.com: i am using struts 1 in my project . when i sart tomcat i got the following exception Jul 14, 2009 10:39:05 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Allocate exception for servlet action java.lang.NoClassDefFoundError:

Re: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.

2009-07-16 Thread Lukasz Lenart
Could you show your web.xml? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Lenny Bruce - Communism is like one big phone company. - http://www.brainyquote.com/quotes/authors/l/lenny_bruce.html -

Re: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.

2009-07-16 Thread Lukasz Lenart
It's ok, when you got that exception? What url were you entering in web browser? It looks like you went directly to jsp. Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Timothy Leary - Women who seek to be equal with men lack ambition. -

Re: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.

2009-07-16 Thread Lukasz Lenart
2009/7/16 jayadevan jayadeva...@gmail.com: my index.jsp like this Is it the same file as in web.xml for welcome-file? where i place struts-tags.xml ? It's already in struts2-*.jar Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Joan Crawford - I, Joan

Re: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.

2009-07-16 Thread Lukasz Lenart
2009/7/16 jayadevan jayadeva...@gmail.com: i tried both way directly and step by step You should avoid directly accessing jsp files, always go through actions. Especially when you are using Struts tags inside. Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Ogden

Re: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.

2009-07-16 Thread Lukasz Lenart
2009/7/16 jayadevan jayadeva...@gmail.com: u said struts-tags.xml is  already in struts2-*.jar so add struts2-core.jar into class path and try to exccute then i got the following exception org.apache.jasper.JasperException: File /struts-tags.tld not found struts-tags.tld is for sure in

<    1   2   3   4   5   6   7   8   9   10   >