Re: Indexed Properties

2006-11-24 Thread WongTseng
Just think If the struts dosen't set these indexed properties from the lower bound to the upper bound in a ascending order, an outofbound exception will occur. -- Wong Tseng 王曾

Re: Indexed Properties

2006-11-24 Thread WongTseng
I think it's the getResultsPage method that causes your problem. If the results is none, and the parameter index equels any value that is large than 0, an OutOfBound Exception will occur. 2006/11/18, Adam K <[EMAIL PROTECTED]>: public Product getResultsPage(int index) { if(this

struts 2.0.x samples on java 1.4.2

2006-11-24 Thread David Bloom
I tried all the sample struts 2.0.1 wars individually in tomcat by placing each war in the webapps folder in tomcat. i.e The requested resource (/struts2-mailreader-2.0.1/) is not available. I placed libs from struts j4 zipin lib folder after wars get expanded after starting tomcat still no h

Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-24 Thread Niall Pemberton
On 11/24/06, Paul Benedict <[EMAIL PROTECTED]> wrote: Niall, This sounds like an enhancement request. If the validator methods do not match, perhaps that advice should be in the error message that Struts generates? Maybe a message like "method(x,y,z) requested but signature is method(x,y,z,a): c

Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-24 Thread Paul Benedict
Niall, This sounds like an enhancement request. If the validator methods do not match, perhaps that advice should be in the error message that Struts generates? Maybe a message like "method(x,y,z) requested but signature is method(x,y,z,a): correct validator-rules.xml" ? Niall Pemberton wrot

Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-24 Thread Thomas Thomas
Thank u very much.

Struts considering exceptions in Action class .execute() as unhandled

2006-11-24 Thread Mon Cab
I have an action class with an execute method as follows public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse re

Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-24 Thread Niall Pemberton
On 11/24/06, Thomas Thomas <[EMAIL PROTECTED]> wrote: I use Struts 1.3.5 When u talk about signatures, u talk about the doctypes of the validators xml files ? Because I copied pasted them from the struts 1.3.5 examples of validators. Paul meant replace the "validator-rules.xml" thats shipped wi

Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-24 Thread Thomas Thomas
I use Struts 1.3.5 When u talk about signatures, u talk about the doctypes of the validators xml files ? Because I copied pasted them from the struts 1.3.5 examples of validators.

Re: struts2-portlet-2.0.1

2006-11-24 Thread Alex Andrushchak
Ic. Thanks anyway! Wendy Smoak wrote: On 11/24/06, Alex Andrushchak <[EMAIL PROTECTED]> wrote: What is right place where can i ask about portlet development with struts2? This is the right mailing list for Struts 2 questions. However, it's a long holiday weekend in the US, and I don't think

Re: Problem using LookupDispatchAction

2006-11-24 Thread Wendy Smoak
On 11/24/06, Gallagher, Jim (RBoS ITD&S Dublin) <[EMAIL PROTECTED]> wrote: Thanks, that sounds just like what I'm looking for, except for one thing: I need meaningful multi-word labels on the buttons, but it looks to me like the parameter for EventDispatchAction can't cope - is this true, or is

Re: Validation XMl entity

2006-11-24 Thread Ed Griebel
Struts validation is generally used only for validations of fields from HTTP submissions, check out http://struts.apache.org/1.x/faqs/validator.html If you need to validate an XML file, you may be able to use the Apache Digester classes (http://jakarta.apache.org/commons/digester/) or some of the

RE: Problem using LookupDispatchAction

2006-11-24 Thread Gallagher, Jim (RBoS ITD&S Dublin)
Thanks, that sounds just like what I'm looking for, except for one thing: I need meaningful multi-word labels on the buttons, but it looks to me like the parameter for EventDispatchAction can't cope - is this true, or is it a question of using the properties file?

Re: struts2-portlet-2.0.1

2006-11-24 Thread Wendy Smoak
On 11/24/06, Alex Andrushchak <[EMAIL PROTECTED]> wrote: What is right place where can i ask about portlet development with struts2? This is the right mailing list for Struts 2 questions. However, it's a long holiday weekend in the US, and I don't think very many people are using portlets, so

Re: struts2-portlet-2.0.1

2006-11-24 Thread Alex Andrushchak
Hi! What is right place where can i ask about portlet development with struts2? Thanks, Alex Andrushchak Alex Andrushchak wrote: Hello! I've tried to launch struts2 portlet application under jetspeed2 but unfortunatelly no luck. There are one tutorial on struts2 wiki but it is not fresh eno

Re: Problem using LookupDispatchAction

2006-11-24 Thread Wendy Smoak
On 11/24/06, Gallagher, Jim (RBoS ITD&S Dublin) <[EMAIL PROTECTED]> wrote: I've persuaded my project team to upgrade from Struts 1.1 to Struts 1.2.9, simply to allow use of the LookupDispatchAction. However, it's not working correctly for me. Have I misunderstood the requirements, or is

Re: Validation XMl entity

2006-11-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vishal, Vishal Seth wrote: > Hi, > Does struts validation support XML entity. What do you mean? Can explain this question in more detail? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - h

Re: [Fwd: Having problems with Struts validation framework]

2006-11-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, All you have to do is set the name of your button to Globals.CANCEL_NAME (not that exact text, but use that constant to set the "name" attribute of that submit button element). - -chris robin bajaj wrote: > Hello folks, > I found a little iss

Problem using LookupDispatchAction

2006-11-24 Thread Gallagher, Jim (RBoS ITD&S Dublin)
Hi, I've persuaded my project team to upgrade from Struts 1.1 to Struts 1.2.9, simply to allow use of the LookupDispatchAction. However, it's not working correctly for me. Have I misunderstood the requirements, or is there something else obvious I'm doing wrong? I followed the instructions

Re: need help in Tag-lib

2006-11-24 Thread Ed Griebel
Propertiesid is probably a java.lang.Long, and at some point datain is this URL above, and the URL cannot be converted to a Long to be assigned to propertesid. To figure out which one it is, you could iterate thru the collection and log each element inside your action before the JSP is called. As

Re: need help in Tag-lib

2006-11-24 Thread Mark Bakker
On 11/24/06, Prashant Saraf <[EMAIL PROTECTED]> wrote: An exception occured trying to convert String "http://localhost:7003/cctc/pic1"; to type "java.lang.Long" (null) I can't see any relation between the converting a url to a Long and The code you have supplied. I expect the is exception is th

need help in Tag-lib

2006-11-24 Thread Prashant Saraf
Hi all.. I had following problem Edit

Re: how to use validation rules from validatior-rules.xml in Struts Actions

2006-11-24 Thread Java Programmer
On 11/23/06, robin bajaj <[EMAIL PROTECTED]> wrote: Hi Folks, I have an Email text field that I want to validate against Struts validation framework's provided "email" Rule in validator-rules.xml. Can I do this programmatically in Struts Action or ActionForm's java code instead of having to decl

Validation XMl entity

2006-11-24 Thread Vishal Seth
Hi, Does struts validation support XML entity. Thanks Vishal MASTEK "Making a valuable difference" Mastek in NASSCOM's 'India Top 20' Software Service Exporters List. In the US, we're called MAJESCOMASTEK

RE: Struts+EJB

2006-11-24 Thread David Pinho (Hexadecimal)
XDoclet is very handy for generating .xml config files (amongst other things) for struts and ejb. It picks up special tags in javadoc comments in your classes and generates .xml artifacts. For example: If you stick something like this in you Action class comments: * @struts.action path="/token_i

RE: Struts+EJB

2006-11-24 Thread shibing.chen
xDoclet is used to generate configs, ig: xml. You can write it manually. 陈仕兵 LifeSystem CS, IT Application Developer Great Eastern Life Assurance (China) Co. Ltd. Tel: 86-021-6140 Ext 2405 86-021-28065394 Fax: 86-23-63885566 -Original Message- From: samhr [mailto:[EMAIL PROTECTED

Re: Struts+EJB

2006-11-24 Thread samhr
i read that chapter, what is xDoclet used for? is it a must to use them? any alternative? anyway thanks for replying Stas Ostapenko wrote: > > Hi ! > > Take a look at the book "Struts Kick Start" by James Turner and Kevin > Bedell. > "Chapter 18. Using Struts with Enterprise JavaBeans" - is n

[OT][Friday] Free Seminar on Struts with James Holmes - London

2006-11-24 Thread Lauren Clegg
James Holmes, Struts project committer, creator of Struts Console and author of Struts: The Complete Reference Guide. Will present a free Skills Matter In-the-Brain session on Wednesday, 29th December 2006. During the presentation, entitled: Speed up Struts Development with Struts Scripting, J

Re: Struts+EJB

2006-11-24 Thread Stas Ostapenko
Hi ! Take a look at the book "Struts Kick Start" by James Turner and Kevin Bedell. "Chapter 18. Using Struts with Enterprise JavaBeans" - is nice introduction with example. On 11/24/06, samhr <[EMAIL PROTECTED]> wrote: Hi, Am new to Struts, currently am creating an application using Struts

Struts+EJB

2006-11-24 Thread samhr
Hi, Am new to Struts, currently am creating an application using Struts and EJB. I dont know how to connect the Struts with EJB component. Can someone pls help me? I searched for samples online, but am not able to understand them. Does anyone has a sample code to integrate both of