Re: Help please TOMCAT 5 + Struts

2008-07-17 Thread Jorge Martín Cuervo
Hi Cristian, it looks like a out of memory problem, try to assign more memory to you JVM with: export JAVA_OPTS='-Xmx756m -server -XX:MaxPermSize=256m' export CATALINA_OPTS='-Djava.awt.headless=true' El jue, 17-07-2008 a las 18:05 +0200, STRUTS SL. Mailing List escribió: Hello for everybody;

Re: How to get all sessions in one web application

2008-06-26 Thread Jorge Martín Cuervo
Hi Joey, i think this is not a struts issue. As far as i know, you can't access all sessions with servlet 2.3 compliant container (i don't know earlier versions) You can try to use session listeners to session store info in a common place or jmx solution. El jue, 26-06-2008 a las 18:53 +0800,

Re: Populating dropdown

2008-02-11 Thread Jorge Martín Cuervo
Hi, Maybe you can divide your options in categories and use several dropdowns with an ajax loading. From the user point of view, large data in dropdowns are not very usefull. El lun, 11-02-2008 a las 06:01 -0800, Jayaveeran escribió: Hi all, I am populating a dropdown in my jsp which has

Re: How to forward to a page out of .war file

2007-09-11 Thread Jorge Martín Cuervo
can't you use a redirect? i think you can't forward outside the same context (but i'm not sure, maybe some servlet containers can do it). El lun, 10-09-2007 a las 17:45 -0700, [EMAIL PROTECTED] escribió: Hi, The present application structure has multiple .war files in a .ear file. Now my

Re: [S2] validation issue

2007-09-11 Thread Jorge Martín Cuervo
try validwhen validation rule. It exists in struts, maybe exists too in struts2. El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez Blázquez escribió: Hi all! I´m trying to validate two fields that depends on another field. What I was doing in S1 is (for field in): field property=in

Re: [S2] validation issue

2007-09-11 Thread Jorge Martín Cuervo
, Pablo Vázquez Blázquez escribió: Hola Jorge, I think there is not a validwhen validator, either... Any idea? Thanks. Jorge Martín Cuervo escribió: try validwhen validation rule. It exists in struts, maybe exists too in struts2. El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez

Re: Number Validator

2007-07-31 Thread Jorge Martín Cuervo
Hi which version of commons validator are you using? http://struts.apache.org/1.2.9/userGuide/dev_validator.html i so, you can see: integer - validates that a field can be converted to an Integer. field property=ordernumber depends=integer arg0 key=order.number/ /field

upgrade from 1.2.9 to 1.3.8

2007-07-30 Thread Jorge Martín Cuervo
Hi all, i'm actually using the 1.2.9 version of struts, and i'm thinking about upgrading to latest 1.x version. Is there any issue i must know before upgrading? I've been looking for something like upgrading 1.2.x to 1.3.x tips in struts website but no one was found. thanks --

Re: upgrade from 1.2.9 to 1.3.8

2007-07-30 Thread Jorge Martín Cuervo
at last i've found at: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 El lun, 30-07-2007 a las 19:44 +0200, Jorge Martín Cuervo escribió: Hi all, i'm actually using the 1.2.9 version of struts, and i'm thinking about upgrading to latest 1.x version. Is there any issue i must

Re: Complex Validation

2007-07-16 Thread Jorge Martín Cuervo
if you are not using dyna action forms, you can overwrite the method validate in the ActioForm bean. Or even extend this dyna validation action form and implemente your own validate like: [...] public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {

Re: Complex Validation

2007-07-16 Thread Jorge Martín Cuervo
sorry, the code would be like: ActionErrors errors = new ActionErrors(); errors.add(super.validate(mapping, request)); don't forget to add the errors from the commons validator. El lun, 16-07-2007 a las 10:05 +0200, Jorge Martín Cuervo escribió: if you are not using dyna action forms, you

Re: struts validation

2007-07-06 Thread Jorge Martín Cuervo
i've in my struts-config.xml: plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in can you send us the struts-config.xml related portion? El vie, 06-07-2007 a las

Re: AW: struts validation

2007-07-06 Thread Jorge Martín Cuervo
=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml / /plug-in Anja -Ursprüngliche Nachricht- Von: Jorge Martín Cuervo [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 6. Juli 2007 11:02

[ot] weird message

2007-07-06 Thread Jorge Martín Cuervo
Hi all, every time i've sent an email to this list i receive another email like that: The original message was received at Fri, 6 Jul 2007 11:19:25 +0200 (CEST) from [EMAIL PROTECTED] - The following addresses had permanent fatal errors - [EMAIL PROTECTED] (reason: 550 5.0.0

Re: [ot] weird message

2007-07-06 Thread Jorge Martín Cuervo
please, can any admin remove this email account from the mailing list? El vie, 06-07-2007 a las 11:32 +0200, Ing. Andrea Vettori escribió: Yes, I think it's a non-existent email that's subscribed... Il giorno 06/lug/07, alle ore 11:30, Jorge Martín Cuervo ha scritto: Hi all, every

Re: Tiles question

2007-07-06 Thread Jorge Martín Cuervo
you can add a position header to use. Something like this: html:html head titles:message key=common.title//title tiles:insert attribute=header/ /head body div id=contenedor tiles:insert attribute=text/ tiles:insert attribute=links/

Re: How to convert a list of object to XML

2007-06-29 Thread Jorge Martín Cuervo
you have to overwrite the toString method in class Book, and then iterate over the List to complete the xml. somthing like this: [...] public String toString() { return bookid + id + /idname + name + /name/book; } [...] public String list() { StringBuffer sb = new

ServletException in '/WEB-INF/tiles/position/edit.jsp': null

2007-05-08 Thread Jorge Martín Cuervo
Hi all, i'm using struts 1.2.9 and i get this exception, it's not very explanatory and i don't know what is wrong, does anyone have any idea of how can i get more info? i tried to debug with eclipse and there's no parent exception. 51207 [http-8080-Processor23] ERROR

Re: ServletException in '/WEB-INF/tiles/position/edit.jsp': null

2007-05-08 Thread Jorge Martín Cuervo
) com.martincuervo.engine.core.Engine.init(Unknown Source) com.defactops.smartcvemployer.PositionForm.init(PositionForm.java:41) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [...] ups, sorry again El mar, 08 de 05 de 2007 a las 11:30, Jorge Martín Cuervo escribió: Hi all, i'm using

Re: debug in eclipse using tomcat plug-in

2006-12-05 Thread Jorge Martín Cuervo
Try to use wtp from eclipse. Remember to start tomcat in debug mode. http://www.eclipse.org/webtools/ El mar, 05 de 12 de 2006 a las 18:05, Lim Hock-Chai escribió: When I try to debug my application by starting tomcat using tomcat eclipse plug-in, eclipse keeps telling me that it can not find

Re: debug in eclipse using tomcat plug-in

2006-12-05 Thread Jorge Martín Cuervo
i've use sysdeo plugin in debug mode time ago, but IMHO wtp has better integration with eclipse. I don't remember if sysdeo can debug jsps, but wtp does. Checkout a new eclipse with WTP and tell us. El mar, 05 de 12 de 2006 a las 18:57, Jared Blitzstein escribió: I honestly didn't even know

Re: Validating a form bean

2006-11-02 Thread Jorge Martín Cuervo
El jue, 02 de 11 de 2006 a las 11:45, chamal desilva escribió: in the method validate in CustomerForm class you must call the validate method of AccountClass. Hi, I have a form bean as this one public class CustomerForm extends ActionForm { private AccountForm accForm = null;

RE: Optimal Heap Size for my Struts-Application

2006-11-02 Thread Jorge Martín Cuervo
It's a realy cool question, i've a complex webapp with a lot of differents diciplines: - xstl - xsl-fo - ajax - xpath - custom classloading - very large objects in session - ... The tests with jmeter using 10 concurrents users don't cause an memory exception (i use 256M for heap) there is some

Re: Dynamic links

2006-10-31 Thread Jorge Martín Cuervo
is Escribeme en castellano si quieres. 30 Oct 2006 17:59:17 +0100, Jorge Martín Cuervo [EMAIL PROTECTED] : Hi, try with jslt c:import: %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% %@ taglib uri=/tags/smartcv2 prefix=s % %@ taglib uri=/tags/jstl-c

Re: Dynamic links

2006-10-30 Thread Jorge Martín Cuervo
Hi, try with jslt c:import: %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% %@ taglib uri=/tags/smartcv2 prefix=s % %@ taglib uri=/tags/jstl-c prefix=c % c:set var=filenames:message key='faqs.localfile'//c:set c:import url=${filename} charEncoding=UTF-8/ El lun,

Re: removing jsessionid from the URL

2006-09-07 Thread Jorge Martín Cuervo
Hi all, can i change the jsessionid name? is it mandatory to use jsessionid name to store the id? thanks to all. El jue, 07 de 09 de 2006 a las 10:24, Antonio Petrelli escribió: sunil virmani ha scritto: I want to remove the jsessionid attached with URL . Can you please tell me how

Re: validation framework problem?

2006-09-05 Thread Jorge Martín Cuervo
Hi i used validator and i got problems with validWhen, i wrote validWhen with caps and until i change to validwhen it didn't work properly. Please send us the struts-config.xml or the action you use, maybe the problem is there. El mar, 05 de 09 de 2006 a las 13:05, Mallik escribió: HI

Re: Validator FRamework

2006-09-05 Thread Jorge Martín Cuervo
ups, sorry i thought you were using dinaform sorry El mar, 05 de 09 de 2006 a las 13:13, Jorge Martín Cuervo escribió: hi why you use com.hns.nme.frontend.apps.cmdexecution.form.SelectCommandForm instead java.lang.String in form-bean type? El mar, 05 de 09 de 2006 a las 10:48, sheetal

Re: Anti-piracy software

2006-07-03 Thread Jorge Martín Cuervo
Hi, you can use proguard to obfuscate your jar files. http://proguard.sourceforge.net/ El lun, 03 de 07 de 2006 a las 08:17, [EMAIL PROTECTED] escribió: Hi All, I would like to know if any anti-piracy tools available opensource that can prevent illigal use of web related software like a

Re: Struts and AJAX

2006-07-03 Thread Jorge Martín Cuervo
I use struts + DWR to develope ajax applications. http://getahead.ltd.uk/dwr/ El lun, 03 de 07 de 2006 a las 05:57, chamal desilva escribió: Hi, Can I use struts with AJAX. Does struts has classes and tags for AJAX or do I have write my own code. Thanking You, Chamal.

Re: AW: xhtml-mobile with Struts?

2006-06-30 Thread Jorge Martín Cuervo
El vie, 30 de 06 de 2006 a las 09:12, Martin Kindler escribió: I do not know, if there is a tool for XHTML MP, but we have done our mobile site with ordinary Struts and a set of XHTML MP JSPs. Very easy. If you want to look: http://www.cityexperience.net/. If you do use a normal browser and

Re: AW: xhtml-mobile with Struts?

2006-06-30 Thread Jorge Martín Cuervo
://www.cityexperience.net/cxpCat/Welcome.do?ua=MOBILE Martin -Ursprüngliche Nachricht- Von: Jorge Martín Cuervo [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 30. Juni 2006 09:33 An: [EMAIL PROTECTED] Cc: 'Struts Users Mailing List' Betreff: Re: AW: xhtml-mobile with Struts? El vie, 30 de 06 de

Re: pls help

2006-06-15 Thread Jorge Martín Cuervo
El jue, 15 de 06 de 2006 a las 01:52, Ceena Bose escribió: hi, pls help me solve the following. 1)paging using struts you can use displaytag http://displaytag.sourceforge.net/11/ in your action: List data = new ArrayList(); data.add(1); data.add(2); data.add(3);

Re: Path success does not start with a / character

2006-06-06 Thread Jorge Martín Cuervo
El mar, 06 de 06 de 2006 a las 11:21, [EMAIL PROTECTED] escribió: Hi I have an problem with my struts application where I don't know the reason. I always get the following exception: java.lang.IllegalArgumentException: Path success does not start with a / character

Re: urgent

2006-06-05 Thread Jorge Martín Cuervo
if you use a collection simply: %=((java.util.List)request.getAttribute(data)).size()% also check: http://displaytag.sourceforge.net/11/tut_implicitobjects.html rowNum maybe help too El lun, 05 de 06 de 2006 a las 16:13, Abhimanyu Koul escribió: hi all! can anyone please tell me how i can

Re: javabeans explanation

2006-06-05 Thread Jorge Martín Cuervo
i think the types must be the same choose: public int getAge() public void setAge(int age) or public Age getAge() public void setAge(Age age) despite this, in actionform you should use only String values. With String values you can store wrong int values that user entered, but with int

Re: Disable submit button

2006-05-31 Thread Jorge Martín Cuervo
i've not tested but i think it should work: html:submit onclick=this.disabled=true/ El mié, 31 de 05 de 2006 a las 16:36, rukka escribió: As a part of solution to multiple reloads and to block the multiple submit requests in long running service layer methods, we like to disable submit

Re: Disable submit button

2006-05-31 Thread Jorge Martín Cuervo
i was going to say you try... onclick=this.disabled=true;this.form.submit() sorry for the delay El mié, 31 de 05 de 2006 a las 18:14, A Amarakoon escribió: Gareth, Monkeyden, Jorge, Andy Thank you.. This js lib looks good. this code fixes it: onclick=this.disabled=true;submit()

Re: Struts with Eclipse 3.1

2006-05-25 Thread Jorge Martín Cuervo
Hi, of course. you can use WTP or sysdeo plugin El jue, 25 de 05 de 2006 a las 17:05, Maya menon escribió: All, Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can anyone please help. Thanks. - Feel free to

Re: Struts with Eclipse 3.1http://javaboutique.internet.com/tutorials/three/

2006-05-25 Thread Jorge Martín Cuervo
http://javaboutique.internet.com/tutorials/three/ El jue, 25 de 05 de 2006 a las 17:05, Maya menon escribió: All, Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can anyone please help. Thanks. - Feel free to

Re: Missing message key

2006-05-24 Thread Jorge Martín Cuervo
El mié, 24 de 05 de 2006 a las 10:55, marcus biel (innoWake gmbh) escribió: Hi, I've (also) got the following problem: When trying to start my app, it throws this error: javax.servlet.ServletException: Missing message for key mypage.title in my WEB-INF folder, I've got one folder src

Re: Missing message keymessage-resources parameter=MessageResources /

2006-05-24 Thread Jorge Martín Cuervo
do you have set the correct parameter value un struts-config? message-resources parameter=resources.MessageResources / This means that you have to put the MessageResources.properties in WEB-INF/class/resources directory. El mié, 24 de 05 de 2006 a las 10:55, marcus biel (innoWake gmbh)

Re: get ResourceBundle in ActionForm subclass

2006-05-24 Thread Jorge Martín Cuervo
Thanks to all, this is a working solution, but i didn't want to instantiate another ResourceBundle, struts already have one. I solve the problem after i check the struts source: [...] if (orgName == null || orgName.equals()) { //errors.add(orgName, new

Re: RequestProcessor and execute method

2006-05-24 Thread Jorge Martín Cuervo
. I found that this seemed very natural, reduced code bloat and made a clear distinction between disparate request types. I'm wondering if anyone else has done something different and/or more practical. -- Jorge Martín Cuervo email: [EMAIL

Re: shopping cart source code

2006-05-23 Thread Jorge Martín Cuervo
El lun, 22 de 05 de 2006 a las 19:00, rajan pahuja escribió: Programming Jakarta Struts - Chuck Cavaness - ISBN 0-596-00328-5 This book is great, despite i don't have the last revisión, IMHO it's a must read resource. find it in book programming Struts by chuck cavass,orielly pulications.

get ResourceBundle in ActionForm subclass

2006-05-22 Thread Jorge Martín Cuervo
Hi all, i want to use externalized messages in the validation errors of a ActionForm subclass. I have this code: [...] public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); /*

RE: get ResourceBundle in ActionForm subclass

2006-05-22 Thread Jorge Martín Cuervo
El lun, 22 de 05 de 2006 a las 18:43, fea jabi escribió: Thanks, but remember that it's in a ActionForm subclass. getLocale() and getResources() aren't avaliable. Those are Action methods. Can i get Action from ActionFrom? Locale locale = getLocale(request); MessageResources

Re: the right way?

2006-05-19 Thread Jorge Martín Cuervo
. Thanks for the advise. And yes, theres no putting objects code in the above message. Only a comment in place... /* * load the data to request */ thanks again. --- Jorge Martín Cuervo [EMAIL PROTECTED] wrote: Hi all, i have the problem to populate request with data with validation

the right way?

2006-05-18 Thread Jorge Martín Cuervo
mapping.getInputForward(); } } } -- Jorge Martín Cuervo email: [EMAIL PROTECTED] voz: +34 660 026 384 -- - To unsubscribe

Re: Cannot find bean under name __APPLICATION_CONTAINER_KEY.area

2006-05-17 Thread Jorge Martín Cuervo
anyone have used a container to store application scope data? please, let me know if it's a bad practice. El mar, 16 de 05 de 2006 a las 17:15, Jorge Martín Cuervo escribió: Hi all, h2fmt:message key=search2.filter.job.title//h2 p class=pEstrecho spanfmt:message key=search2

Re: Style in a tags-html

2006-05-17 Thread Jorge Martín Cuervo
Use styleClass attribute. http://struts.apache.org/struts-doc-1.2.9/userGuide/struts-html.html#optionsCollection p class=pEstrecho spanfmt:message key=search2.filter.job.area//span html:select property=jobCategory styleClass=selectAncho html:options

RE: Cannot find bean under name __APPLICATION_CONTAINER_KEY.area

2006-05-17 Thread Jorge Martín Cuervo
Message- From: Jorge Martín Cuervo [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 5:05 AM To: Struts Users Mailing List Subject: Re: Cannot find bean under name __APPLICATION_CONTAINER_KEY.area anyone have used a container to store application scope data? please, let me know

Re: Wrapper cannot find servlet class

2006-05-16 Thread Jorge Martín Cuervo
Try to map another simple servlet to exclude struts problem. El mar, 16 de 05 de 2006 a las 07:30, M Faizal escribió: Hi, I am using struts 1.2.9 with tomcat 4.1.27..and Jbuilder X i have just one jsp in my root context and my web.xml has configured like below servlet

Cannot find bean under name __APPLICATION_CONTAINER_KEY.area

2006-05-16 Thread Jorge Martín Cuervo
Hi all, h2fmt:message key=search2.filter.job.title//h2 p class=pEstrecho spanfmt:message key=search2.filter.job.sector//span html:select property=industryCode styleClass=selectAncho html:options collection=industryCodeMap property=key

Re: Conditional Statements (if/else) Using logic tag

2006-05-15 Thread Jorge Martín Cuervo
Filter the List before sent to jsp, can you do it? or you must do it in jsp? you can implement your own custom tag extending iterate. Other solution is to define a variable in jsp with c:set when you found and item, and only print when variable isn't set or false. Take a look to jstl common

Re: problem with using Tag and Scriplets together

2006-05-15 Thread Jorge Martín Cuervo
You can't mix jsp and scriptlet those manner. Scriptlet generates the output, and the output can't modify the scriptlet code. Instead of using scriptlets try to use c:set tag from jstl library. El lun, 15 de 05 de 2006 a las 09:04, J Gotsch escribió: Any idea how I can set a local JSP

Re: how to deal with request attributes and validation?

2006-05-12 Thread Jorge Martín Cuervo
Thanks a lot, i'll try it El vie, 12 de 05 de 2006 a las 11:19, [EMAIL PROTECTED] escribió: Dario, In this situation, in the input attribute of action-mapping, you should provide the action-mapping which you want to execute to populate your drop-down in jsp. Usually we provide the JSP

Getting applicationResources.properties keys

2004-12-28 Thread Jorge Martín Cuervo
Hello to all, I've start working with jasperReports with struts, and i want to externalize the labels to use in multilanguage environment. I use a file applicationResources.properties (with the tag message-resources in struts-config.xml) to the jsp labels without problems, but in my report

Why download messages twice??

2004-12-28 Thread Jorge Martín Cuervo
I don`t know why the messages of the list comes twice. Does it happens to anyone? --- Jorge Martin Cuervo [EMAIL PROTECTED] +34 660 026 384 --- - To unsubscribe,