Re: how do struts resolve the variable?
for your *1 (step 1?) You can get ActionForm object from a set of parameters that passed to your Action class You can cast according to your form type (e.g. MyActionForm) accordingly. for your *2 (step 2?) You save the form to your session with a key called myForm, after that, you are using your myForm as bean not a ActionForm any more. Which means, the ActionForm object that passed to your current action class is totally different from the one you saved in the session ... On 8/15/06, Michael Cheung [EMAIL PROTECTED] wrote: Hi, all; I create some action which have form on it. Sometime I can access the ActionForm bean via classname, sometime I can access it via variablename(*1), and sometime I have to set it into request object (*2) to access it. *1: in Action, write this code, and access ActionForm via myForm. MyActionForm myForm = (MyActionForm) form; *2: request.setAttribute(myForm,myForm); Anyone can tell me the reason? Regards; Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- When we invent time, we invent death. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No getter method for property
On 8/14/06, Daoud Abdelmonem Faleh [EMAIL PROTECTED] wrote: Hello folks, I use struts 1.2.9 and deploy to oc4j 10.1.3 My struts-config.xml containes: ... form-bean type=com.myapp.EditPersonneEtrangereForm name=editPersonneEtrangereForm/ ... action input=/user/jsp/personneEtrangere/PersonneEtrangereDetails.jsp type=com.myapp.EditPersonneEtrangere validate=false scope=request path=/editPersonneEtrangere name=editPersonneEtrangereForm set-property property=cancellable value=true/ forward path=/listAllPersonneEtrangere.do name=cancel/ forward path=/listAllPersonneEtrangere.do name=edited/ /action ... PersonneEtrangereDetails.jsp has: html:form action=/editPersonneEtrangere.do td width=76%html:text styleClass=ReadOnlyTextField property=perEtrDateNaissanceStr onchange=isDate(this.value) maxlength=10/ public class EditPersonneEtrangereForm extends org.apache.struts.action.ActionForm { private Date perEtrDateNaissance; private String perEtrDateNaissanceStr; ... public String getPerEtrDateNaissanceStr() { return SQLDateConvertor.convertDateFormat (getPerEtrDateNaissance(),dd/MM/); //return perEtrDateNaissanceStr; } public void setPerEtrDateNaissanceStr(String perEtrDateNaissanceStr) { this.perEtrDateNaissanceStr = perEtrDateNaissanceStr; this.perEtrDateNaissance = SQLDateConvertor.convertToSqlDateFormat (perEtrDateNaissanceStr,dd/MM/); } ... When i request PersonneEtrangereDetails.jsp I get the followin exception javax.servlet.jsp.JspException: No getter method for property: perEtrDateNaissanceStr of bean: com.myapp.EditPersonneEtrangereForm What am I doing wrong or missing? Thanks folks. sounds like the whole thing is real simple, and you do not need to mention each property of your form bean in the struts-config.xml All i can think of is maybe u should check your spellings, make sure proerty name in form bean and in the jsp match,recompile your ActionForm class,restart server. Make sure the correct ActionForm class exists on the server. -- Puneet
Congratulations Frank
Hi I wondering out about yesterday in a London bookstore and to my surprise I saw a regular Struts User's name on a cover of an Apress book! http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372-8952 855?ie=UTF8 Congratulations, Frank, especially from me -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forwards between webapps
Forwards between webapps are not supported, cuz both have different contexts, this's what I got from running this : forward name=portal path=/portal/main.do redirect=true contextRelative=false / Is there any other way to achieve this forward between different web applications ?
Re: Congratulations Frank
cool stuff! *congrats* Leon On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I wondering out about yesterday in a London bookstore and to my surprise I saw a regular Struts User's name on a cover of an Apress book! http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372-8952 855?ie=UTF8 Congratulations, Frank, especially from me -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Congratulations Frank
Thank you very much guys, I appreciate it! Now you know why I've been relatively quiet around here the past few months (you didn't think I was actually learning to be restrained, did you?!? LOL) Frank Leon Rosenberg wrote: cool stuff! *congrats* Leon On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I wondering out about yesterday in a London bookstore and to my surprise I saw a regular Struts User's name on a cover of an Apress book! http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372-8952 855?ie=UTF8 Congratulations, Frank, especially from me -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Congratulations Frank
That link didn't work, but here is another http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/103-4833065-9131026?ie=UTF8 Congrats. Shervin Asgari - System Consultant Frank W. Zammetti wrote: Thank you very much guys, I appreciate it! Now you know why I've been relatively quiet around here the past few months (you didn't think I was actually learning to be restrained, did you?!? LOL) Frank Leon Rosenberg wrote: cool stuff! *congrats* Leon On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I wondering out about yesterday in a London bookstore and to my surprise I saw a regular Struts User's name on a cover of an Apress book! http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372-8952 855?ie=UTF8 Congratulations, Frank, especially from me -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No getter method for property
Make sure you don't have any old versions of your form bean in your classpath or in old jar files from previous builds. From what you have sent, things look correct and it should work. What tool are you using to build? Are you using JDeveloper? -Richard Daoud Abdelmonem Faleh wrote: Hello folks, I use struts 1.2.9 and deploy to oc4j 10.1.3 My struts-config.xml containes: ... form-bean type=com.myapp.EditPersonneEtrangereForm name=editPersonneEtrangereForm/ ... action input=/user/jsp/personneEtrangere/PersonneEtrangereDetails.jsp type=com.myapp.EditPersonneEtrangere validate=false scope=request path=/editPersonneEtrangere name=editPersonneEtrangereForm set-property property=cancellable value=true/ forward path=/listAllPersonneEtrangere.do name=cancel/ forward path=/listAllPersonneEtrangere.do name=edited/ /action ... PersonneEtrangereDetails.jsp has: html:form action=/editPersonneEtrangere.do td width=76%html:text styleClass=ReadOnlyTextField property=perEtrDateNaissanceStr onchange=isDate(this.value) maxlength=10/ public class EditPersonneEtrangereForm extends org.apache.struts.action.ActionForm { private Date perEtrDateNaissance; private String perEtrDateNaissanceStr; ... public String getPerEtrDateNaissanceStr() { return SQLDateConvertor.convertDateFormat(getPerEtrDateNaissance(),dd/MM/); //return perEtrDateNaissanceStr; } public void setPerEtrDateNaissanceStr(String perEtrDateNaissanceStr) { this.perEtrDateNaissanceStr = perEtrDateNaissanceStr; this.perEtrDateNaissance = SQLDateConvertor.convertToSqlDateFormat(perEtrDateNaissanceStr,dd/MM/); } ... When i request PersonneEtrangereDetails.jsp I get the followin exception javax.servlet.jsp.JspException: No getter method for property: perEtrDateNaissanceStr of bean: com.myapp.EditPersonneEtrangereForm What am I doing wrong or missing? Thanks folks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2]: How to convert absolute URL to context-relative URL?
Then it will probably look something like the following: getRequestURI() + ? + getQueryString() If not, print out all of the methods below and see what they give you. I've always hated the documentation for these methods, not the least of which is getRequestURI() which says it includes the protocol but shows something different in the example provided. I rarely use them so I need to refresh my memory every time I need them. getRequestURI() getRequestURL() getServletPath() getContextPath() getPathInfo() getPathTranslated() getQueryString() On 8/14/06, Michael Cheung [EMAIL PROTECTED] wrote: Hi,Monkeyden; Thanks for your reply. Now I can get the context-relative path, but the extension is also omitted. How to get the path with extension? Actually, I want to do this. URL: /context-name/appname.do?param1=1param2=2 I want to get /appname.do?param1=1param2=2 and use this string to new ActionForward to return in Action. Thanks. Regards; Michael On Mon, 14 Aug 2006 10:24:19 -0400 Monkeyden [EMAIL PROTECTED] wrote: You may want to look at ActionMapping.getPath(). Return context-relative path of the submitted request, starting with a slash (/) character, and omitting any filename extension if extension mapping is being used. On 8/14/06, Michael Cheung [EMAIL PROTECTED] wrote: Hi, all; I get requestURL from request object in Action, then I want to create a ActionForward object for this URL to return. So I have to convert the absolute URL from requestURL to context relative URL. Thanks a lot. Regards; Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2]: How to convert absolute URL to context-relative URL?
...by the way, they are on the HttpServletRequest object. On 8/15/06, Monkeyden [EMAIL PROTECTED] wrote: Then it will probably look something like the following: getRequestURI() + ? + getQueryString() If not, print out all of the methods below and see what they give you. I've always hated the documentation for these methods, not the least of which is getRequestURI() which says it includes the protocol but shows something different in the example provided. I rarely use them so I need to refresh my memory every time I need them. getRequestURI() getRequestURL() getServletPath() getContextPath() getPathInfo() getPathTranslated() getQueryString() On 8/14/06, Michael Cheung [EMAIL PROTECTED] wrote: Hi,Monkeyden; Thanks for your reply. Now I can get the context-relative path, but the extension is also omitted. How to get the path with extension? Actually, I want to do this. URL: /context-name/appname.do?param1=1param2=2 I want to get /appname.do?param1=1param2=2 and use this string to new ActionForward to return in Action. Thanks. Regards; Michael On Mon, 14 Aug 2006 10:24:19 -0400 Monkeyden [EMAIL PROTECTED] wrote: You may want to look at ActionMapping.getPath (). Return context-relative path of the submitted request, starting with a slash (/) character, and omitting any filename extension if extension mapping is being used. On 8/14/06, Michael Cheung [EMAIL PROTECTED] wrote: Hi, all; I get requestURL from request object in Action, then I want to create a ActionForward object for this URL to return. So I have to convert the absolute URL from requestURL to context relative URL. Thanks a lot. Regards; Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Congratulations Frank
Thanks Shervin! You could always go straight to the source too: http://apress.com/book/bookDisplay.html?bID=10143 Frank Shervin Asgari wrote: That link didn't work, but here is another http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/103-4833065-9131026?ie=UTF8 Congrats. Shervin Asgari - System Consultant Frank W. Zammetti wrote: Thank you very much guys, I appreciate it! Now you know why I've been relatively quiet around here the past few months (you didn't think I was actually learning to be restrained, did you?!? LOL) Frank Leon Rosenberg wrote: cool stuff! *congrats* Leon On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I wondering out about yesterday in a London bookstore and to my surprise I saw a regular Struts User's name on a cover of an Apress book! http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372-8952 855?ie=UTF8 Congratulations, Frank, especially from me -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Congratulations Frank
Either that or get the best price. Not my publisher of choice but I'm always willing to support a colleague. The only place to buy tech books http://www.bookpool.com/ss?qs=1-59059-695-1sourceid=mozilla-searchx=1-59059-695-1y=1-59059-695-1 On 8/15/06, Frank W. Zammetti [EMAIL PROTECTED] wrote: Thanks Shervin! You could always go straight to the source too: http://apress.com/book/bookDisplay.html?bID=10143 Frank Shervin Asgari wrote: That link didn't work, but here is another http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/103-4833065-9131026?ie=UTF8 Congrats. Shervin Asgari - System Consultant Frank W. Zammetti wrote: Thank you very much guys, I appreciate it! Now you know why I've been relatively quiet around here the past few months (you didn't think I was actually learning to be restrained, did you?!? LOL) Frank Leon Rosenberg wrote: cool stuff! *congrats* Leon On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I wondering out about yesterday in a London bookstore and to my surprise I saw a regular Struts User's name on a cover of an Apress book! http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372-8952 855?ie=UTF8 Congratulations, Frank, especially from me -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Congratulations Frank
On 8/15/06, Monkeyden [EMAIL PROTECTED] wrote: Either that or get the best price. Not my publisher of choice but I'm always willing to support a colleague. Actually, while I used to be a strict O'Reilly book buying fellow, I must say that I have several excellent titles from Apress. I think that they're going to be a long term bet for good technical books. The only place to buy tech books http://www.bookpool.com/ss?qs=1-59059-695-1sourceid=mozilla-searchx=1-59059-695-1y=1-59059-695-1 I thought BookPool was only for older books. Glad to be proved wrong on that point. :-) Oh, and congratulations Frank. Do you need a good Slashdot reviewer? hint hint! (http://techbook.info/) Simon -- www.simonpeter.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts encoding problem ?
You can configure your web.xml file. In Weblogic, you do something like this. input-charset resource-path/foo/resource-path java-charset-nameUTF-8/java-charset-name /input-charset In Tomcat, something like this. init-param param-namejavaEncoding/param-name param-valueUTF8/param-value /init-param Thanks, -Kalpesh Mark Breitner [EMAIL PROTECTED] wrote: Hi, I´ve got the problem the I want to send the ⬠(Euro) character via struts and whenever this character appears in a string, all I receive in my action is an empty string. Is this an encoding problem and what do I have to do to solve it ? -- Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit! Feel free mit GMX DSL: http://www.gmx.net/de/go/dsl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
RE: Congratulations Frank
Yes. The link got http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372-8952 855?ie=UTF8 mangled by MS Outlook 2003 in the out tray! Actually I was in the famous (now revamped) Foyles Book store at Charing Cross Road in London just passing very quickly through to see about a digital video and audio book, when I saw Frank's book. http://www.foyles.co.uk/ Practical Ajax Projects with Java Technology (Practical) (Paperback) by Frank Zammetti -Original Message- From: Shervin Asgari [mailto:[EMAIL PROTECTED] Sent: 15 August 2006 14:48 To: Struts Users Mailing List Subject: Re: Congratulations Frank That link didn't work, but here is another http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/103-48 33065-9131026?ie=UTF8 Congrats. Shervin Asgari - System Consultant Frank W. Zammetti wrote: Thank you very much guys, I appreciate it! Now you know why I've been relatively quiet around here the past few months (you didn't think I was actually learning to be restrained, did you?!? LOL) Frank Leon Rosenberg wrote: cool stuff! *congrats* Leon On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I wondering out about yesterday in a London bookstore and to my surprise I saw a regular Struts User's name on a cover of an Apress book! http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372- 8952 855?ie=UTF8 Congratulations, Frank, especially from me -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No getter method for property
Hello, Thx Richerd you've pointed the right problem. Infact am using JBuilder and it caches the compiled pakages. Now it's working as expected! thank you all folks that replayed. On 8/15/06, Richard Yee [EMAIL PROTECTED] wrote: Make sure you don't have any old versions of your form bean in your classpath or in old jar files from previous builds. From what you have sent, things look correct and it should work. What tool are you using to build? Are you using JDeveloper? -Richard Daoud Abdelmonem Faleh wrote: Hello folks, I use struts 1.2.9 and deploy to oc4j 10.1.3 My struts-config.xml containes: ... form-bean type=com.myapp.EditPersonneEtrangereForm name=editPersonneEtrangereForm/ ... action input=/user/jsp/personneEtrangere/PersonneEtrangereDetails.jsp type=com.myapp.EditPersonneEtrangere validate=false scope=request path=/editPersonneEtrangere name=editPersonneEtrangereForm set-property property=cancellable value=true/ forward path=/listAllPersonneEtrangere.do name=cancel/ forward path=/listAllPersonneEtrangere.do name=edited/ /action ... PersonneEtrangereDetails.jsp has: html:form action=/editPersonneEtrangere.do td width=76%html:text styleClass=ReadOnlyTextField property=perEtrDateNaissanceStr onchange=isDate(this.value) maxlength=10/ public class EditPersonneEtrangereForm extends org.apache.struts.action.ActionForm { private Date perEtrDateNaissance; private String perEtrDateNaissanceStr; ... public String getPerEtrDateNaissanceStr() { return SQLDateConvertor.convertDateFormat(getPerEtrDateNaissance(),dd/MM/); //return perEtrDateNaissanceStr; } public void setPerEtrDateNaissanceStr(String perEtrDateNaissanceStr) { this.perEtrDateNaissanceStr = perEtrDateNaissanceStr; this.perEtrDateNaissance = SQLDateConvertor.convertToSqlDateFormat(perEtrDateNaissanceStr,dd/MM/); } ... When i request PersonneEtrangereDetails.jsp I get the followin exception javax.servlet.jsp.JspException: No getter method for property: perEtrDateNaissanceStr of bean: com.myapp.EditPersonneEtrangereForm What am I doing wrong or missing? Thanks folks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Le dieu n'est pas a craindre ; la mort ne donne pas de souci ; et tandis que le bien est facile a obtenir, le mal est facile a supporter. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need to do pagination but can't use DisplayTag
Hello, We are using SAP's Netweaver Developer Studio (NDS) to develop Struts applications. We want to implement pagination but we can't use DisplayTag because it requires JSP 2.0/Servlet 2.4. Unfortunately, NDS only supports JSP 1.2 + servlet 2.3. Can anyone recommend some other framework that would allow us to implement pagination? Thanks! -- View this message in context: http://www.nabble.com/Need-to-do-pagination-but-can%27t-use-DisplayTag-tf229.html#a5820748 Sent from the Struts - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need to do pagination but can't use DisplayTag
Just wanted to add that we'vefound the taglib below and it looks promising but it's also old and I'm worried about going with something that's not as widely supported (and used?) as DisplayTag http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html -- View this message in context: http://www.nabble.com/Need-to-do-pagination-but-can%27t-use-DisplayTag-tf229.html#a5820880 Sent from the Struts - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need to do pagination but can't use DisplayTag
I've used displaytag 1.X in JSP 1.2. Did you subscribe to their mailing list for installation help? Have you also tried http://valuelist.sourceforge.net ? Regards, David -Original Message- From: pantichd [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 3:47 PM To: user@struts.apache.org Subject: Need to do pagination but can't use DisplayTag Hello, We are using SAP's Netweaver Developer Studio (NDS) to develop Struts applications. We want to implement pagination but we can't use DisplayTag because it requires JSP 2.0/Servlet 2.4. Unfortunately, NDS only supports JSP 1.2 + servlet 2.3. Can anyone recommend some other framework that would allow us to implement pagination? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need to do pagination but can't use DisplayTag
Yes David is right. You can use display tag with JSP 1.2 Check - Java version/application server requirements at http://displaytag.sourceforge.net/11/migrating.html Thanks, -Kalpesh David Friedman [EMAIL PROTECTED] wrote: I've used displaytag 1.X in JSP 1.2. Did you subscribe to their mailing list for installation help? Have you also tried http://valuelist.sourceforge.net ? Regards, David -Original Message- From: pantichd [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 3:47 PM To: user@struts.apache.org Subject: Need to do pagination but can't use DisplayTag Hello, We are using SAP's Netweaver Developer Studio (NDS) to develop Struts applications. We want to implement pagination but we can't use DisplayTag because it requires JSP 2.0/Servlet 2.4. Unfortunately, NDS only supports JSP 1.2 + servlet 2.3. Can anyone recommend some other framework that would allow us to implement pagination? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Using bean:message from non-struts servlet
Working within a larger struts system, it became necessary for me to create a servlet, which co-exists with, but outside of, the system. This has worked very well, but I now find myself wishing to use the functionality of bean:message and MessageResource files in a jsp outside the struts realm. It is not difficult to simply use a ResourceBundle to retrieve the necessary messages into my servlet, but I can't seem to figure out how to make these messages accessible through bean:message in my jsp. Does anyone know the mechanism struts (or anything else) uses to make this happen?
Re: Using bean:message from non-struts servlet
On 8/16/06, James Sanders [EMAIL PROTECTED] wrote: Working within a larger struts system, it became necessary for me to create a servlet, which co-exists with, but outside of, the system. This has worked very well, but I now find myself wishing to use the functionality of bean:message and MessageResource files in a jsp outside the struts realm. It is not difficult to simply use a ResourceBundle to retrieve the necessary messages into my servlet, but I can't seem to figure out how to make these messages accessible through bean:message in my jsp. Does anyone know the mechanism struts (or anything else) uses to make this happen? If you want to use a key from ur properties file in ur jsp, u could simply do.. bean:messgae key = some.key / this will put the value of the key here.. im not sure this wat u wanted to ask..but in case its this then well n good.. -- Puneet
Re: Congratulations Frank
404 on all of the addresses Ive seen thu far..can you send me the ISBN? (Congratulations on publishing your book) Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: [EMAIL PROTECTED] To: user@struts.apache.org Sent: Tuesday, August 15, 2006 11:21 AM Subject: RE: Congratulations Frank Yes. The link got http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372-8952 855?ie=UTF8 mangled by MS Outlook 2003 in the out tray! Actually I was in the famous (now revamped) Foyles Book store at Charing Cross Road in London just passing very quickly through to see about a digital video and audio book, when I saw Frank's book. http://www.foyles.co.uk/ Practical Ajax Projects with Java Technology (Practical) (Paperback) by Frank Zammetti -Original Message- From: Shervin Asgari [mailto:[EMAIL PROTECTED] Sent: 15 August 2006 14:48 To: Struts Users Mailing List Subject: Re: Congratulations Frank That link didn't work, but here is another http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/103-48 33065-9131026?ie=UTF8 Congrats. Shervin Asgari - System Consultant Frank W. Zammetti wrote: Thank you very much guys, I appreciate it! Now you know why I've been relatively quiet around here the past few months (you didn't think I was actually learning to be restrained, did you?!? LOL) Frank Leon Rosenberg wrote: cool stuff! *congrats* Leon On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I wondering out about yesterday in a London bookstore and to my surprise I saw a regular Struts User's name on a cover of an Apress book! http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372- 8952 855?ie=UTF8 Congratulations, Frank, especially from me -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Congratulations Frank
1590596951 On 8/15/06, Martin Gainty [EMAIL PROTECTED] wrote: 404 on all of the addresses Ive seen thu far..can you send me the ISBN? (Congratulations on publishing your book) Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: [EMAIL PROTECTED] To: user@struts.apache.org Sent: Tuesday, August 15, 2006 11:21 AM Subject: RE: Congratulations Frank Yes. The link got http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372-8952 855?ie=UTF8 mangled by MS Outlook 2003 in the out tray! Actually I was in the famous (now revamped) Foyles Book store at Charing Cross Road in London just passing very quickly through to see about a digital video and audio book, when I saw Frank's book. http://www.foyles.co.uk/ Practical Ajax Projects with Java Technology (Practical) (Paperback) by Frank Zammetti -Original Message- From: Shervin Asgari [mailto:[EMAIL PROTECTED] Sent: 15 August 2006 14:48 To: Struts Users Mailing List Subject: Re: Congratulations Frank That link didn't work, but here is another http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/103-48 33065-9131026?ie=UTF8 Congrats. Shervin Asgari - System Consultant Frank W. Zammetti wrote: Thank you very much guys, I appreciate it! Now you know why I've been relatively quiet around here the past few months (you didn't think I was actually learning to be restrained, did you?!? LOL) Frank Leon Rosenberg wrote: cool stuff! *congrats* Leon On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I wondering out about yesterday in a London bookstore and to my surprise I saw a regular Struts User's name on a cover of an Apress book! http://www.amazon.com/gp/product/1590596951/ref=sr_11_1/002-6130372- 8952 855?ie=UTF8 Congratulations, Frank, especially from me -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using bean:message from non-struts servlet
Puneet, Thank you for your response. The problem is that this does not work outside of the land of struts configuration. Using struts configuration, each jsp has access to all the keys in the Messages.properties file for its module (or actually, whichever module the ActionForm that forwards to that jsp is in). However, my servlet does not have a struts module and thus any jsp it forwards to has no inherent Messages.properties file from which to retrieve keys. It is possible to retrieve these keys from inside my servlet by using the ResourceBundle.getBundle() function with the argument being the fully qualified class name of the Messages.properties file. But when I try to access these keys from my jsp using the bean:message tag I get an error, leading me to believe that there must be some other place where the keys recognized by that tag are being populated, I simply don't know where. On 8/15/06, Puneet Lakhina [EMAIL PROTECTED] wrote: On 8/16/06, James Sanders [EMAIL PROTECTED] wrote: Working within a larger struts system, it became necessary for me to create a servlet, which co-exists with, but outside of, the system. This has worked very well, but I now find myself wishing to use the functionality of bean:message and MessageResource files in a jsp outside the struts realm. It is not difficult to simply use a ResourceBundle to retrieve the necessary messages into my servlet, but I can't seem to figure out how to make these messages accessible through bean:message in my jsp. Does anyone know the mechanism struts (or anything else) uses to make this happen? If you want to use a key from ur properties file in ur jsp, u could simply do.. bean:messgae key = some.key / this will put the value of the key here.. im not sure this wat u wanted to ask..but in case its this then well n good.. -- Puneet
Re: Using bean:message from non-struts servlet
On 8/15/06, James Sanders [EMAIL PROTECTED] wrote: Puneet, Thank you for your response. The problem is that this does not work outside of the land of struts configuration. Using struts configuration, each jsp has access to all the keys in the Messages.properties file for its module (or actually, whichever module the ActionForm that forwards to that jsp is in). However, my servlet does not have a struts module and thus any jsp it forwards to has no inherent Messages.properties file from which to retrieve keys. It is possible to retrieve these keys from inside my servlet by using the ResourceBundle.getBundle() function with the argument being the fully qualified class name of the Messages.properties file. But when I try to access these keys from my jsp using the bean:message tag I get an error, leading me to believe that there must be some other place where the keys recognized by that tag are being populated, I simply don't know where. snip/ If your not in the Struts realm, use the JSTL format taglib (you may use it even if you are). The implementation details of the bean taglib depend on Struts specific APIs, such as MessageResources. -Rahul On 8/15/06, Puneet Lakhina [EMAIL PROTECTED] wrote: On 8/16/06, James Sanders [EMAIL PROTECTED] wrote: Working within a larger struts system, it became necessary for me to create a servlet, which co-exists with, but outside of, the system. This has worked very well, but I now find myself wishing to use the functionality of bean:message and MessageResource files in a jsp outside the struts realm. It is not difficult to simply use a ResourceBundle to retrieve the necessary messages into my servlet, but I can't seem to figure out how to make these messages accessible through bean:message in my jsp. Does anyone know the mechanism struts (or anything else) uses to make this happen? If you want to use a key from ur properties file in ur jsp, u could simply do.. bean:messgae key = some.key / this will put the value of the key here.. im not sure this wat u wanted to ask..but in case its this then well n good.. -- Puneet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using bean:message from non-struts servlet
Thank you Rahul, this was exactly what I needed. I was not formerly familiar with the fmt taglib. On 8/15/06, Rahul Akolkar [EMAIL PROTECTED] wrote: On 8/15/06, James Sanders [EMAIL PROTECTED] wrote: Puneet, Thank you for your response. The problem is that this does not work outside of the land of struts configuration. Using struts configuration, each jsp has access to all the keys in the Messages.properties file for its module (or actually, whichever module the ActionForm that forwards to that jsp is in). However, my servlet does not have a struts module and thus any jsp it forwards to has no inherent Messages.properties file from which to retrieve keys. It is possible to retrieve these keys from inside my servlet by using the ResourceBundle.getBundle() function with the argument being the fully qualified class name of the Messages.properties file. But when I try to access these keys from my jsp using the bean:message tag I get an error, leading me to believe that there must be some other place where the keys recognized by that tag are being populated, I simply don't know where. snip/ If your not in the Struts realm, use the JSTL format taglib (you may use it even if you are). The implementation details of the bean taglib depend on Struts specific APIs, such as MessageResources. -Rahul On 8/15/06, Puneet Lakhina [EMAIL PROTECTED] wrote: On 8/16/06, James Sanders [EMAIL PROTECTED] wrote: Working within a larger struts system, it became necessary for me to create a servlet, which co-exists with, but outside of, the system. This has worked very well, but I now find myself wishing to use the functionality of bean:message and MessageResource files in a jsp outside the struts realm. It is not difficult to simply use a ResourceBundle to retrieve the necessary messages into my servlet, but I can't seem to figure out how to make these messages accessible through bean:message in my jsp. Does anyone know the mechanism struts (or anything else) uses to make this happen? If you want to use a key from ur properties file in ur jsp, u could simply do.. bean:messgae key = some.key / this will put the value of the key here.. im not sure this wat u wanted to ask..but in case its this then well n good.. -- Puneet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator Client-Side and Custom Classes
Hi, I want to do client-side validation using a custom class I can specify in the validator.xml validatorclassname//validatior section. But my question is if I use a custom class, then how the heck can Struts generate the custom javascript for it in the jsp if I'm using a custom java class I wrote that exists only on the server? Not possible right? So if that's the case, if you do leave some custom classname validator class in your validation.xml, then will that validation simply be ignored? Thanks for help with these 2 questions.
RE: Need to do pagination but can't use DisplayTag
David, Thanks for the reply. It's encouraging to hear that you were able to use it with JSP 1.2. According to this link it requires JSP 2.0 http://displaytag.sourceforge.net/11/displaytag/dependencies.html When I try to run a very simple JSP using the tag I get this message: com.sap.engine.services.servlets_jsp.lib.jspparser.exceptions.JspParseException: Cannot parse custom tag with short name table. I know that's an SAP-specific error but when I contacted SAP support they, of course, blamed it on the DisplayTag requires JSP 2.0. So I'm back to trying to figure this out on my own (and with the help of this group). Could you tell me what tld you used? Also, what version of the dtd? Any help would be greatly appreciated. David Friedman-2 wrote: I've used displaytag 1.X in JSP 1.2. Did you subscribe to their mailing list for installation help? Have you also tried http://valuelist.sourceforge.net ? Regards, David -Original Message- From: pantichd [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 3:47 PM To: user@struts.apache.org Subject: Need to do pagination but can't use DisplayTag Hello, We are using SAP's Netweaver Developer Studio (NDS) to develop Struts applications. We want to implement pagination but we can't use DisplayTag because it requires JSP 2.0/Servlet 2.4. Unfortunately, NDS only supports JSP 1.2 + servlet 2.3. Can anyone recommend some other framework that would allow us to implement pagination? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Need-to-do-pagination-but-can%27t-use-DisplayTag-tf229.html#a5824425 Sent from the Struts - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Choices, choices...How does one choose a taglib for displaying tables?
Hello, We have a need to display tabular data in a Struts application. Seems simple enough. Start researching but all off a sudden it's not so simple. just a quick search finds a bunch of different frameworks (DisplayTag, ValueList, TableTag, PagerTag). Some would say that variety is good and I agree but I also want to make sure we choose something that will work well with Struts and will be supported/enhanced going forward. Is there a preferred or recommended tag lib that should be used with Struts? By the way, we're on Struts 1.2.7 and using JSP 1.2 and servlet 2.3. Unfortunately, we cannot upgrade to a higher level off JSP/Servlet because of the App Server (SAP's Netweaver) we're using. -- View this message in context: http://www.nabble.com/Choices%2C-choices...How-does-one-choose-a-taglib-for-displaying-tables--tf2112352.html#a5824428 Sent from the Struts - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Choices, choices...How does one choose a taglib for displaying tables?
Does it *have* to be a taglib? And does it have to be free? If the answer to both is no, I *very* highly recommend: www.activewidgets.com I did about a weeks' worth of research last month trying to find the best grid widget I could, and that one floated to the top pretty quickly... the only other that was comparable over all was this: http://scbr.com/docs/products/dhtmlxGrid/index.shtml I can't vouch for that one because I actually discovered it only after deciding on ActiveWidgets, but I can absolutely give an endorsement to ActiveWidgets. Been using it for a few weeks now, it's really fantastic. Frank pantichd wrote: Hello, We have a need to display tabular data in a Struts application. Seems simple enough. Start researching but all off a sudden it's not so simple. just a quick search finds a bunch of different frameworks (DisplayTag, ValueList, TableTag, PagerTag). Some would say that variety is good and I agree but I also want to make sure we choose something that will work well with Struts and will be supported/enhanced going forward. Is there a preferred or recommended tag lib that should be used with Struts? By the way, we're on Struts 1.2.7 and using JSP 1.2 and servlet 2.3. Unfortunately, we cannot upgrade to a higher level off JSP/Servlet because of the App Server (SAP's Netweaver) we're using. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to validate two different checkbox, through validation.xml
I have two different checkbox field in form. fields Property is boolean. I want to validate the form as: User should check at least one of the checkbox. Regards, Nilesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Choices, choices...How does one choose a taglib for displaying tables?
pantichd wrote: Some would say that variety is good and I agree but I also want to make sure we choose something that will work well with Struts and will be supported/enhanced going forward. I think displaytag is a reasonable choice. There are displaytag forums and displaytag mailing lists hosted by sourceforge. You may get more help there. But, if you look in displaytag.tld (it's in META-INF/ of displaytag.jar), the JSP version is 1.2 (I'm referring to displaytag-1.1), so maybe you can give that info to your vendor with the hope of getting a more helpful response. Another thing to try is deploying the displaytag examples war included in the binary (not sure about source) distribution. If that works, then you can get your app to work. If the example app doesn't work, then the problem is likely a bit more tricky to find. Another option is to use an older version of displaytag. Realise you're looking for something that will be enhanced going forward, but you may need to drop that aspect of your requirements if you're tied to older versions of the Servlets and JSP specs (but not necessarily). -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to validate two different checkbox, through validation.xml
Nilesh Sinha wrote: I have two different checkbox field in form. fields Property is boolean. I want to validate the form as: User should check at least one of the checkbox. Relevant info in the Designing Complex Validations with validwhen section of this document: http://struts.apache.org/1.2.9/userGuide/dev_validator.html There's also a guide to using requiredif under the section titled Conditionally required fields. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2]: How to convert absolute URL to context-relative URL?
Try using this... ActionForward forward = mapping.findForward(test); StringBuffer path = new StringBuffer(forward.getPath()); path.append(/appname.do?param1=1param2=2); return new ActionForward(path.toString()); Thanks, Srinivas. Michael Cheung [EMAIL PROTECTED] co.jp To Struts Users Mailing List 08/15/2006 08:57 user@struts.apache.org AM cc Subject Please respond to Re[2]: How to convert absolute URL Struts Users to context-relative URL? Mailing List [EMAIL PROTECTED] he.org Hi,Monkeyden; Thanks for your reply. Now I can get the context-relative path, but the extension is also omitted. How to get the path with extension? Actually, I want to do this. URL: /context-name/appname.do?param1=1param2=2 I want to get /appname.do?param1=1param2=2 and use this string to new ActionForward to return in Action. Thanks. Regards; Michael On Mon, 14 Aug 2006 10:24:19 -0400 Monkeyden [EMAIL PROTECTED] wrote: You may want to look at ActionMapping.getPath(). Return context-relative path of the submitted request, starting with a slash (/) character, and omitting any filename extension if extension mapping is being used. On 8/14/06, Michael Cheung [EMAIL PROTECTED] wrote: Hi, all; I get requestURL from request object in Action, then I want to create a ActionForward object for this URL to return. So I have to convert the absolute URL from requestURL to context relative URL. Thanks a lot. Regards; Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]