Re: help : JasperReports and struts

2004-12-13 Thread Andrew Hill
Have a look at the weapp sample in the demo folder that comes with 
jasperreports. That should get you started.

Struts doesnt add any extra complications and its straightforward to put 
the relevant code into an Action instead of a servlet.

hth
Andrew
sachin wrote:
hi all , 

i am a newbie in JasperReports . 

i develop a .jrxml file using iReports ( visual report designer)
Please , can someone tell me how to 
1. create .jasper file from the .jrxml file
2. run .jasper to create a pdf file
3. display the pdf file in the same explorer

Thanks in advance
Regards,
Sachin Hegde
Software Developer
Paradyne Infotech Limited
Mumbai
-
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]


help : JasperReports and struts

2004-12-13 Thread sachin
hi all , 

i am a newbie in JasperReports . 

i develop a .jrxml file using iReports ( visual report designer)

Please , can someone tell me how to 
1. create .jasper file from the .jrxml file
2. run .jasper to create a pdf file
3. display the pdf file in the same explorer

Thanks in advance

Regards,
Sachin Hegde
Software Developer
Paradyne Infotech Limited
Mumbai

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Book/on-line examples

2004-12-13 Thread S.B.
I am not able to follow the userregistration.do example on it. I am
having problems. Please check the thread from me put recently. 
If you could please let me know what could be wrong?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 13, 2004 1:49 PM
To: [EMAIL PROTECTED]
Subject: RE: Book/on-line examples


Download the Jakarta Struts Live from serverside.com. Its a free ebook.
It is a very practical and covers all the concepts. It is an excellent
book. Enjoy!

Bala

-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 4:41 PM
To: [EMAIL PROTECTED]
Subject: Book/on-line examples


Hello,

I am trying to see if struts will be applicable to some work I will be
doing in the future. I have googled quite a bit of struts examples, but
most seem incomplete, or refer to compiled class files, etc. 

Anyway, I would have read enough to be dangerous, but I am looking for
some "good" on-line or book examples that actually walk through the
logic and implementation of struts.

Does anyone out there have any of these bookmarked, or have a book
recommendation. Once again, looks like the Manning book falls short of a
purchase, and I am not sure if the O'Reilly one is worth the coin.

Thanks,
Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Note:  The information contained in this email and in any attachments is
intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material.  Any review,
retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited.  The recipient should check this email
and any attachments for the presence of viruses.  Sender accepts no
liability for any damages caused by any virus transmitted by this email.
If you have received this email in error, please notify us immediately
by replying to the message and delete the email from your computer.
This e-mail is and any response to it will be unencrypted and,
therefore, potentially unsecure. Thank you.  NOVA Information Systems,
Inc.

-
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: Problem with starting the samplecode-urgent help

2004-12-13 Thread S.B.
No, it still doesn't work. I am copying the error I get when I give:
http://localhost:8080/strutsTutorial/userRegistration.do

Can you tellme exactly where you are saying to change this?
Also, I think it's the tilesprocessor request. I am not using tiles just
default. Is default requestprocessor?
If so, what do I add to the struts-config.xml? StrutsConsole is not
giving any errors.
here's the output I get:

INFO: Jk running ID=0 time=0/200
config=C:\open_source\jakarta-tomcat-4.1.30\co
nf\jk2.properties
Dec 13, 2004 9:19:09 PM org.apache.struts.tiles.TilesRequestProcessor
initDefini
tionsMapping
INFO: Tiles definition factory found for request processor ''.
Dec 13, 2004 9:19:09 PM org.apache.struts.action.RequestProcessor
processMapping

SEVERE: Invalid path /UserRegistration was requested
Dec 13, 2004 9:19:18 PM org.apache.struts.action.RequestProcessor
processActionC
reate
SEVERE: No action instance for path /userRegistration could be created
java.lang.ClassNotFoundException: strutsTutorial.UserRegistrationAction
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1443)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1289)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
a:207)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:231)
at
org.apache.struts.action.RequestProcessor.processActionCreate(Request
Processor.java:326)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
--



-Original Message-
From: Sebastián Gorgo [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 13, 2004 12:52 PM
To: Struts Users Mailing List
Subject: Re: Problem with starting the samplecode-urgent help



You must change "strutsTutorial.UserRegistrationAction" to 
"StrutsTutorial.UserRegistrationAction".
Its case-sensitive.

S.B. wrote:
> I have a created a subclass of Action, called UserRegistrationAction: 
> package StrutsTutorial; import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
> 
> import org.apache.struts.action.Action;
> import org.apache.struts.action.ActionForm;
> import org.apache.struts.action.ActionForward;
> import org.apache.struts.action.ActionMapping;
> public class UserRegistrationAction extends Action{
> public ActionForward execute(
>   ActionMapping mapping,
>   ActionForm form,
>   HttpServletRequest request,
>   HttpServletResponse response)
> throws Exception{
>   
> return mapping.findForward("success");
> }
> }
> 
> 
> I have following struts-config file: (i have added the last action 
> mapping  type="strutsTutorial.UserRegistrationAction"
> parameter="/pages/regSuccess.jsp">
>path="/pages/strutsTutorial/regSuccess.jsp" />
>   
> )
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  type="org.apache.struts.actions.ForwardAction"
> parameter="/pages/Welcome.jsp" />
> 
> 
> 
>type="strutsTutorial.UserRegistrationAction"
> parameter="/pages/regSuccess.jsp">
> 
>/>
>   
> 
> 
> --
> The jsp file is just like hello world jsp.
> I have UserRegistrationAction.class in the directory structure at: 
> C:\\webapps\strutsTutorial\WEB-INF\classes\StrutsTutorial\UserRegi
> st
> rationAction.class
> Ant is ok. Building ok. Deployed war on tomcat 4.1. but-
> ---
> What's the problem? When I give :
> http://localhost:8080/strutsTutorial/UserRegistration.do it gives me
> error:
> 
> Status report
> 
> message No action instance for path /UserRegistration could be created
> 
> description The server encountered an internal error (No action 
> instance for path /UserRegistration could be created) that prevented 
> it from fulfilling this request.
> =--
> Following is command line messages:
> -
> SEVERE: No action instance for path /UserRegistration could be created
> java.lang.ClassNotFoundException:
strutsTutorial.UserRegistrationAction
> at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1443)
> at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1289)
> at 
> org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
> a:207)
> at 
> org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
> java:231)
> at 
> org.apache.struts.action.RequestProcessor.processActionCreate(Request
> Processor.java:326)
> at 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:268)
> at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
> at
> org.

RE: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread uma.k
Hi Sunny,
Thanks, I will try it out.

Uma

-Original Message-
From: Sunny [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 10:10 AM
To: Struts Users Mailing List
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection


do some thing like this.

ArticleForm:
 change the "keywords" to be a blank String instead of null

 private String keywords = "";


--

Action:

execute ( ) method
{

ArticleForm articleForm = (ArticleForm) form;

String kw = articleForm.getKeywords();



 return mapping.findForward("success");
}

-

jsp:
<[EMAIL PROTECTED] uri = "/WEB-INF/struts-html.tld" prefix="html" %>



..


.

--

struts-config:



 

 
.

 

-


uma.k wrote:

>Eddie,
>How do I set my path in struts-config.xml file when my app is in
>tomcat\webapps\jg1\articles\Template.jsp
>
>Is this correct?
>type = "org.apache.struts.actions.ForwardAction"
>parameter = "/Template.jsp"
>validate = "false" >
>
>
>
>Uma
>  
>
>
>  
>

-
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: Can't Search List Archive?

2004-12-13 Thread Hubert Rabago
Try http://marc.theaimsgroup.com/?l=struts-user&r=1&w=2

H


On Mon, 13 Dec 2004 20:08:57 -0800, James Watkin
<[EMAIL PROTECTED]> wrote:
> When I try to search the Struts E-mail list using the List Archive link on
> the main Struts page, I get this error message:
> 
> "Text search not available for this list"
> 
> Why? It used to work.
> 
> Have you considered moving this list to NNTP and allowing Google to index it?
> 
> - Jim
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread Sunny
do some thing like this.
ArticleForm:
change the "keywords" to be a blank String instead of null
private String keywords = "";
--
Action:
execute ( ) method
{
ArticleForm articleForm = (ArticleForm) form;
String kw = articleForm.getKeywords();

return mapping.findForward("success");
}
-
jsp:
<[EMAIL PROTECTED] uri = "/WEB-INF/struts-html.tld" prefix="html" %>


..

.
--
struts-config:




.



-
uma.k wrote:
Eddie,
How do I set my path in struts-config.xml file when my app is in
tomcat\webapps\jg1\articles\Template.jsp
Is this correct?

   

Uma
 

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Can't Search List Archive?

2004-12-13 Thread James Watkin
When I try to search the Struts E-mail list using the List Archive link on 
the main Struts page, I get this error message:

"Text search not available for this list"
Why? It used to work.
Have you considered moving this list to NNTP and allowing Google to index it?
- Jim
__
James Watkin
ACIS Software Development
UCLA Anderson School
[EMAIL PROTECTED]
Voice: 1-310-825-5030
  Fax: 1-310-825-4835
__ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread Eddie Bush
Tomcat expects applications to be inside of the webapps directory.  The base 
path for your app would be:
   $TOMCAT_HOME/webapps/myapp/

For simplicity, let's call this $APP_HOME
Within that directory, you'd reference pages as relative to your context 
(like /somePage.jsp) in your struts-config file.  If you start adding 
directories, you've got to add them where you specify the path to the real 
page.  For example, if you have a directory named jsp under $APP_HOME, and 
this directory contains all your JSPs, then you would refer to their 
location by the path /jsp/somePage.jsp.

You should really examine the struts-example.war webapp ... I believe I mad 
that suggestion earlier.  Also, there are several good links on the 
Resources page of the Struts site.  It may be beneficial to check out the 
ones that deal with servlet technologies.  After all, Struts has to adhere 
to the specification just like applications that don't use Struts.  Things 
like paths to files are the same no matter if you are or aren't using Struts 
...

HTH,
Eddie
- Original Message - 
From: "S.B." <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 9:32 AM
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


I am having similar problems, check my email today sent. DO you know
what's causing my problem?
-Original Message-
From: uma.k [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 6:39 AM
To: 'Struts Users Mailing List'
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection
I am putting my jsp's under tomcat\jg1\articles\*.jsp
Uma
-Original Message-
From: S.B. [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 7:51 PM
To: 'Struts Users Mailing List'
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection
Where are you putting jsp file? In which folder? Is it under pages
directory?
-
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]

---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0451-0, 12/13/2004
Tested on: 12/13/2004 7:29:03 PM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ??? property naming convention problem

2004-12-13 Thread Andrew Hill
Yes, it is rather confusing. I wasted *many* hours with this issue the 
first time it hit me!

Another poster also stated that putting the property name as "ECoupon" 
in the JSP would work - and thats because with a getter getECoupon() 
that IS the real property name (like your saying in the last line of 
your email).

Iirc the bean property capitalisation rules - which also cover multiple 
capital letters in a row - mean there is no equivalant getter for the 
property "eCoupon", instead its "ECoupon" that maps to the getter 
"getECoupon". So the fact here is that your _not_ naming your property 
"eCoupon" - your naming it "ECoupon"! :-)

(The internal varioable name might be eCoupon, but it could equally well 
be foo or bob, or anything - it doesnt matter for the determination of 
the property name and as far as code that works with JavaBeans is 
concerned that property is called "ECoupon" and not "eCoupon".



Daniel Perry wrote:
This is confusing.  The bean spec / article is talking about going from a
method name into a property name.  The problem here is the other way round.
Eg, decapitalise method->property will convert: getECoupon -> ECoupon
But it doesnt mention property->method capitalise: eCoupon -> getECoupon /
geteCoupon
I think the assumption has been made that if youre going to go from
getECoupon ->ECoupon that you must go from ECoupon->getECoupon and therefore
eCoupon->geteCoupon
However the spec doesnt say that this should be a reversible process, so why
not eCoupon->getECoupon
Daniel.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: 14 December 2004 14:01
To: Struts Users Mailing List
Subject: Re: ??? property naming convention problem
Sure is mate!. Its all in the javabean specs
This post should enlighten you further:
http://marc.theaimsgroup.com/?l=struts-user&m=98900256403524&w=2
And for another getter/setter 'gotcha' you can read this thread through
http://marc.theaimsgroup.com/?l=struts-user&m=102696975022454&w=2
hth
Andrew
Vinod Easaw Varghese wrote:
Hi,
   I have a textbox in a JSP whose property has been named as eCoupon.
I have created the necessary ActionForm with the necessary setter and
getter methods such as setECoupon and getECoupon.
   When I run submit the form within the corresponding JSP I get the
error message not able to find the corresponding getter method for
property eCoupon
   The moment I changed the property name to ecoupon and made the
necessary adjustments within the ActionForm all began to work well.
Is there a property naming convention to be followed in STRUTS
With thanks and Regards
Vinod Easaw Varghese


-
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: Problems initializing form objects

2004-12-13 Thread Andrew Hill
The problem here is the need to be able to populate the form from a 
submission. Initialising it in the action before forwarding to the view 
is okay when rendering the page to the browser, but when interpreting 
the forms submission, struts is going to instantiate the new actionform 
instance (its request scoped I presume), call its reset(), and then try 
to populate it, before any action is invoked.

The only place to initialise the size of the list so populate will work 
is in the reset() method, however its naughty to connect to the database 
(to find out the required size) from here.

My first suggestion was to use a lazy list. Thats probably the best way, 
but another simple method would be to write the size of the list to a 
hidden field in the html. Then it will be sent back in the submitted 
request. You can then check that in the reset() method using getParameter().
ie (at its simplest), in reset() :

int size = Integer.parseInt( request.getParameter("myListSize") );
this.propertyValues = new ArrayList(size);
Ummm. I was having another look at that wiki link I sent. Its notable 
that their example provides an indexed getter. You may also need to do 
something like that, but I dont recall the details :-(

Jeff Beal wrote:
When I have this sort of thing, I usually put it in an "initializer" 
Action that I always link to in place of the JSP.


  
  


  


-- Jeff
Diego Manilla Suárez wrote:
Hi! I have a problem with form members initialization.
I have this form.
public class BasicContentForm extends ValidatorForm {
   protected java.util.List propertyValues;
 public BasicContentForm() {
   this.propertyValues = new java.util.ArrayList();
   }
 public void setPropertyValues( java.util.List propertyValues ) {
   this.propertyValues = propertyValues;
   }public java.util.List getPropertyValues() {
   return this.propertyValues;
   }
 public Object getPropertyValue(int index) {
   return propertyValues.get(index);
   }
 public void reset(ActionMapping mapping, HttpServletRequest 
request) {
   this.propertyValues = new java.util.ArrayList();
   }
}

And this jsp:




The problem is that the number and type of the elements of 
propertyValues list is calculated dynamically (from the database). I 
was doing that on my Action class, but I've realized that this doesn't 
work: when I submit the form, I get an Exception at 
BeanUtils.populate, because the list is not properly initialized. If I 
can't initialize it on the reset() method (I need to access the 
database), what else can I do?

Thanks in advance

-
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: how to save last 5 searches in the cookie?

2004-12-13 Thread Derek Broughton
On Monday 13 December 2004 18:35, Webmaster wrote:
> Personally I dislike cookies and dont allow any on my box...way too many
> virus attacks this year. In fact if the site Im visiting only works with
> cookies I write to the webmaster and ask them why dont they use Session?? I
> would strongly recommend saving your User preferences etc back up to the
> Server via "Session" attributes My 2 cents,

How do you get a virus from a cookie?  As a matter of habit, I don't accept 
cookies, but it's a privacy issue not a virus issue.
-- 
derek

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems initializing form objects

2004-12-13 Thread Jeff Beal
When I have this sort of thing, I usually put it in an "initializer" 
Action that I always link to in place of the JSP.


  
  


  


-- Jeff
Diego Manilla Suárez wrote:
Hi! I have a problem with form members initialization.
I have this form.
public class BasicContentForm extends ValidatorForm {
   protected java.util.List propertyValues;
 public BasicContentForm() {
   this.propertyValues = new java.util.ArrayList();
   }
 public void setPropertyValues( java.util.List propertyValues ) {
   this.propertyValues = propertyValues;
   }public java.util.List getPropertyValues() {
   return this.propertyValues;
   }
 public Object getPropertyValue(int index) {
   return propertyValues.get(index);
   }
 public void reset(ActionMapping mapping, HttpServletRequest request) {
   this.propertyValues = new java.util.ArrayList();
   }
}
And this jsp:




The problem is that the number and type of the elements of 
propertyValues list is calculated dynamically (from the database). I was 
doing that on my Action class, but I've realized that this doesn't work: 
when I submit the form, I get an Exception at BeanUtils.populate, 
because the list is not properly initialized. If I can't initialize it 
on the reset() method (I need to access the database), what else can I do?

Thanks in advance

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Generating valid HTML from tag

2004-12-13 Thread Niall Pemberton
Joe, maybe you were thinking of this one:

http://issues.apache.org/bugzilla/show_bug.cgi?id=15023

Niall

- Original Message - 
From: "Joe Germuska" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 14, 2004 2:22 PM
Subject: Re: Generating valid HTML from  tag


At 7:46 AM -0600 12/14/04, Joe Germuska wrote:
>At 10:51 PM +1000 12/14/04, William Ferguson wrote:
>>I noticed that the html generated form the  tag is not valid
HTML
>>according to the W3C validation service (http://validator.w3.org).
>>It generates a  tag with a 'name' attribute which has been
deprecated.
>>
>>Since I'm striving to conform to relevant standards as best as possible, I
>>was wondering whether anyone else had faced the same issue and what
approach
>>had been taken.
>
>
>Brian Preuß had the same problem, and he filed a bugzilla ticket:
>http://issues.apache.org/bugzilla/show_bug.cgi?id=32016
>
>If you have more general information about how
>the generated form HTML is not valid, please
>annotate that ticket.  If you can provide
>patches to solve the problem, so much the better!

I'm sorry; I skimmed the original posting: Brian
and William are having different problems - but
it still seems worth hooking all issues regarding
generating valid HTML related to the html:form
tag in one place.   I added a note about the
'name' attribute.  I haven't thought much yet
about deprecation/compatibility strategies.

Joe

-- 
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

-
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: Problems initializing form objects

2004-12-13 Thread Andrew Hill
Been a while since Ive done it, but this sort of thing can be managed 
using a lazy list (from commons-collections).

http://jakarta.apache.org/commons/collections/api/org/apache/commons/collections/ListUtils.html#lazyList
[http://jakarta.apache.org/commons/collections/api/org/apache/commons/collections/ListUtils.html#lazyList]
I forget the exact semantics of it but you can check the javadocs.
Some more info here:
http://wiki.apache.org/struts/StrutsCatalogLazyList
[http://wiki.apache.org/struts/StrutsCatalogLazyList]
hth
Andrew
Diego Manilla Suárez wrote:
Hi! I have a problem with form members initialization.
I have this form.
public class BasicContentForm extends ValidatorForm {
   protected java.util.List propertyValues;
 public BasicContentForm() {
   this.propertyValues = new java.util.ArrayList();
   }
 public void setPropertyValues( java.util.List propertyValues ) {
   this.propertyValues = propertyValues;
   }public java.util.List getPropertyValues() {
   return this.propertyValues;
   }
 public Object getPropertyValue(int index) {
   return propertyValues.get(index);
   }
 public void reset(ActionMapping mapping, HttpServletRequest request) {
   this.propertyValues = new java.util.ArrayList();
   }
}
And this jsp:




The problem is that the number and type of the elements of 
propertyValues list is calculated dynamically (from the database). I was 
doing that on my Action class, but I've realized that this doesn't work: 
when I submit the form, I get an Exception at BeanUtils.populate, 
because the list is not properly initialized. If I can't initialize it 
on the reset() method (I need to access the database), what else can I do?

Thanks in advance
-
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: Generating valid HTML from tag

2004-12-13 Thread Joe Germuska
At 7:46 AM -0600 12/14/04, Joe Germuska wrote:
At 10:51 PM +1000 12/14/04, William Ferguson wrote:
I noticed that the html generated form the  tag is not valid HTML
according to the W3C validation service (http://validator.w3.org).
It generates a  tag with a 'name' attribute which has been deprecated.
Since I'm striving to conform to relevant standards as best as possible, I
was wondering whether anyone else had faced the same issue and what approach
had been taken.

Brian Preuß had the same problem, and he filed a bugzilla ticket:
http://issues.apache.org/bugzilla/show_bug.cgi?id=32016
If you have more general information about how 
the generated form HTML is not valid, please 
annotate that ticket.  If you can provide 
patches to solve the problem, so much the better!
I'm sorry; I skimmed the original posting: Brian 
and William are having different problems - but 
it still seems worth hooking all issues regarding 
generating valid HTML related to the html:form 
tag in one place.   I added a note about the 
'name' attribute.  I haven't thought much yet 
about deprecation/compatibility strategies.

Joe
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Generating valid HTML from tag

2004-12-13 Thread Joe Germuska
At 10:51 PM +1000 12/14/04, William Ferguson wrote:
I noticed that the html generated form the  tag is not valid HTML
according to the W3C validation service (http://validator.w3.org).
It generates a  tag with a 'name' attribute which has been deprecated.
Since I'm striving to conform to relevant standards as best as possible, I
was wondering whether anyone else had faced the same issue and what approach
had been taken.

Brian Preuß had the same problem, and he filed a bugzilla ticket:
http://issues.apache.org/bugzilla/show_bug.cgi?id=32016
If you have more general information about how 
the generated form HTML is not valid, please 
annotate that ticket.  If you can provide patches 
to solve the problem, so much the better!

Joe
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: test

2004-12-13 Thread Andrew Hill
well, at the very least you really should follow this lists glorious 
tradition of mentioning BEER in your OT posts 

. Beer
;-)
Frank W. Zammetti wrote:
No.  The problem is that my webmail client, which is all I can use at 
work to access mailing lists, has a bug which causes messages to not get 
through to the lists.  My web host has been working on it for some time 
and so the only way to see if they've fixed it or not is to send a message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Error in CactusStrutsTestCase

2004-12-13 Thread Jim Barrows
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 4:44 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Error in CactusStrutsTestCase
> 
> 
> 
> This one is a real pain because there is no real failure in 
> my logs. Just
> the error I posted which came from my testcase page only.
> 
> The closest thing I can figure, is this is where the error is 
> happening:
> ==
> ===
> if(
> Constants.TRUE.equals(
> request.getParameter(Constants.BUS_CARD_SELECTED)
> )
> ) {
> navigationBean.setHasBusinessCard(true);
> } else {
>
> request.getSession().removeAttribute(Constants.BUSINESSCARD_FORM);

This is the only place you're writing anything, and it's not to the request.  
So, I don't think it's here, I think it's when you actually write to the 
request.  THat's what the error message says.

> navigationBean.setHasBusinessCard(false);
> }
> 
> 
> Note that there are 17 iterations, and there are only 4 that 
> have an if()
> for them. 1 for each of our 4 products. This is the second product in
> the list. So one of the products (businessLine), was already 
> executed in
> this test before the businessCard which is where it fails.


Move this one last, and see if the other three work.


> 
> 
> 
> 
> Mick Knutson
> Wells Fargo Business Direct
> (415) 222-1020
> 
> "This message may contain confidential and/or privileged 
> information. If you are not the addressee or authorized to 
> receive this for the addressee, you must not use, copy, 
> disclose, or take any action based on this message or any 
> information herein. If you have received this message in 
> error, please advise the sender immediately by reply e-mail 
> and delete this message. Thank you for your cooperation."
> 
> 
> 
> 
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 3:33 PM
> To: Struts Users Mailing List
> Subject: RE: Error in CactusStrutsTestCase
> 
> 
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> > Sent: Monday, December 13, 2004 4:20 PM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Error in CactusStrutsTestCase
> > 
> > 
> > I have the following method that keeps failing and I don't 
> > know why. The method should really only set a NavigationBean 
> > into session, then forward to a page based on the action parameter.
> > 
> > 
> > public void testProductSelection() throws Exception {
> > // JUnitDoclet begin method productSelection
> > 
> >   NavigationBean navigationBean = null;
> 
> 
> u... where is the code in the action that is failing? 
> 
> 
> 
> The exception indicates that you are trying to write to a 
> response that's  been committed, but your test harness 
> doesn't help much in figuring out why.  Your test harnes is 
> working, since it works 13 times before failing.
> 
> 
> > I get this error on the 14th iteration:
> > =
> > 
> > 
> > 
> > java.lang.IllegalStateException: response already committed
> > at 
> > weblogic.servlet.internal.ServletResponseImpl.sendRedirect(Ser
> > vletResponseImpl.java:584)
> > at 
> > servletunit.struts.StrutsResponseWrapper.sendRedirect(StrutsRe
> > sponseWrapper.java:154)
> > at 
> > org.apache.struts.action.RequestProcessor.processForwardConfig
> > (RequestProcessor.java:385)
> > at 
> > org.apache.struts.tiles.TilesRequestProcessor.processForwardCo
> > nfig(TilesRequestProcessor.java:316)
> > at 
> > org.apache.struts.action.RequestProcessor.process(RequestProce
> > ssor.java:231)
> > at 
> > org.apache.struts.action.ActionServlet.process(ActionServlet.j
> > ava:1164)
> > at 
> > 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> > at 
> > servletunit.struts.CactusStrutsTestCase.actionPerform(CactusSt
> > rutsTestCase.java:537)
> > at 
> > com.wf.bd.ice.creditapplication.CreditApplicationActionsTest.t
> > estProductSelection(CreditApplicationActionsTest.java:195)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at 
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > orImpl.java:39)
> > at 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > odAccessorImpl.java:25)
> > at 
> > org.apache.cactus.internal.AbstractCactusTestCase.runBareServe
> > r(AbstractCactusTestCase.java:153)
> > at 
> > org.apache.cactus.internal.server.AbstractWebTestCaller.doTest
> > (AbstractWebTestCaller.java:119)
> > at 
> > org.apache.cactus.internal.server.AbstractWebTestController.ha
> > ndleRequest_aroundBody0(AbstractWebTestController.java:93)
> > at 
> > org.apache.cactus.internal.server.AbstractWebTestController.ha
> > n

RE: Error in CactusStrutsTestCase

2004-12-13 Thread Mick.Knutson

This one is a real pain because there is no real failure in my logs. Just
the error I posted which came from my testcase page only.

The closest thing I can figure, is this is where the error is happening:
=
if(
Constants.TRUE.equals(
request.getParameter(Constants.BUS_CARD_SELECTED)
)
) {
navigationBean.setHasBusinessCard(true);
} else {
   
request.getSession().removeAttribute(Constants.BUSINESSCARD_FORM);
navigationBean.setHasBusinessCard(false);
}


Note that there are 17 iterations, and there are only 4 that have an if()
for them. 1 for each of our 4 products. This is the second product in
the list. So one of the products (businessLine), was already executed in
this test before the businessCard which is where it fails.




Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation."




-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 3:33 PM
To: Struts Users Mailing List
Subject: RE: Error in CactusStrutsTestCase




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 4:20 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Error in CactusStrutsTestCase
> 
> 
> I have the following method that keeps failing and I don't 
> know why. The method should really only set a NavigationBean 
> into session, then forward to a page based on the action parameter.
> 
> 
> public void testProductSelection() throws Exception {
> // JUnitDoclet begin method productSelection
> 
>   NavigationBean navigationBean = null;


u... where is the code in the action that is failing? 



The exception indicates that you are trying to write to a response that's  been 
committed, but your test harness doesn't help much in figuring out why.  Your 
test harnes is working, since it works 13 times before failing.


> I get this error on the 14th iteration:
> =
> 
> 
> 
> java.lang.IllegalStateException: response already committed
> at 
> weblogic.servlet.internal.ServletResponseImpl.sendRedirect(Ser
> vletResponseImpl.java:584)
> at 
> servletunit.struts.StrutsResponseWrapper.sendRedirect(StrutsRe
> sponseWrapper.java:154)
> at 
> org.apache.struts.action.RequestProcessor.processForwardConfig
> (RequestProcessor.java:385)
> at 
> org.apache.struts.tiles.TilesRequestProcessor.processForwardCo
> nfig(TilesRequestProcessor.java:316)
> at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:231)
> at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1164)
> at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> at 
> servletunit.struts.CactusStrutsTestCase.actionPerform(CactusSt
> rutsTestCase.java:537)
> at 
> com.wf.bd.ice.creditapplication.CreditApplicationActionsTest.t
> estProductSelection(CreditApplicationActionsTest.java:195)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> at 
> org.apache.cactus.internal.AbstractCactusTestCase.runBareServe
> r(AbstractCactusTestCase.java:153)
> at 
> org.apache.cactus.internal.server.AbstractWebTestCaller.doTest
> (AbstractWebTestCaller.java:119)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest_aroundBody0(AbstractWebTestController.java:93)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest_aroundBody1$advice(AbstractWebTestController.java:124)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest(AbstractWebTestController.java)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost_aroundBo
> dy2(ServletTestRedirector.java:101)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost_aroundBo
> dy3$advice(ServletTestRedirector.java:124)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost(ServletT
> estRedirector.java)
> at 
> org.apache.cactus.server.ServletTestRedirector.doGet_aroundBod
> y0(ServletTestRedirector.java:72)
> at 
> org.apache.cactus.server.ServletTestRedirector.doGet_aroundBod
> y1$advice(ServletTestRedirector.java:124)
> at 
> org.apache.c

RE: Error in CactusStrutsTestCase

2004-12-13 Thread Jim Barrows


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 4:20 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Error in CactusStrutsTestCase
> 
> 
> I have the following method that keeps failing and I don't 
> know why. The method should really only set a NavigationBean 
> into session, then forward to a page based on the action parameter.
> 
> 
> public void testProductSelection() throws Exception {
> // JUnitDoclet begin method productSelection
> 
>   NavigationBean navigationBean = null;


u... where is the code in the action that is failing? 



The exception indicates that you are trying to write to a response that's  been 
committed, but your test harness doesn't help much in figuring out why.  Your 
test harnes is working, since it works 13 times before failing.


> I get this error on the 14th iteration:
> =
> 
> 
> 
> java.lang.IllegalStateException: response already committed
> at 
> weblogic.servlet.internal.ServletResponseImpl.sendRedirect(Ser
> vletResponseImpl.java:584)
> at 
> servletunit.struts.StrutsResponseWrapper.sendRedirect(StrutsRe
> sponseWrapper.java:154)
> at 
> org.apache.struts.action.RequestProcessor.processForwardConfig
> (RequestProcessor.java:385)
> at 
> org.apache.struts.tiles.TilesRequestProcessor.processForwardCo
> nfig(TilesRequestProcessor.java:316)
> at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:231)
> at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1164)
> at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> at 
> servletunit.struts.CactusStrutsTestCase.actionPerform(CactusSt
> rutsTestCase.java:537)
> at 
> com.wf.bd.ice.creditapplication.CreditApplicationActionsTest.t
> estProductSelection(CreditApplicationActionsTest.java:195)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> at 
> org.apache.cactus.internal.AbstractCactusTestCase.runBareServe
> r(AbstractCactusTestCase.java:153)
> at 
> org.apache.cactus.internal.server.AbstractWebTestCaller.doTest
> (AbstractWebTestCaller.java:119)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest_aroundBody0(AbstractWebTestController.java:93)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest_aroundBody1$advice(AbstractWebTestController.java:124)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest(AbstractWebTestController.java)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost_aroundBo
> dy2(ServletTestRedirector.java:101)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost_aroundBo
> dy3$advice(ServletTestRedirector.java:124)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost(ServletT
> estRedirector.java)
> at 
> org.apache.cactus.server.ServletTestRedirector.doGet_aroundBod
> y0(ServletTestRedirector.java:72)
> at 
> org.apache.cactus.server.ServletTestRedirector.doGet_aroundBod
> y1$advice(ServletTestRedirector.java:124)
> at 
> org.apache.cactus.server.ServletTestRedirector.doGet(ServletTe
> stRedirector.java)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAct
> ion.run(ServletStubImpl.java:971)
> at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java:402)
> at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java:305)
> at 
> weblogic.servlet.internal.WebAppServletContext$ServletInvocati
> onAction.run(WebAppServletContext.java:6350)
> at 
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authe
> nticatedSubject.java:317)
> at 
> weblogic.security.service.SecurityManager.runAs(SecurityManage
> r.java:118)
> at 
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
> ebAppServletContext.java:3635)
> at 
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
> questImpl.java:2585)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> 
> 
> 
> 
> Mick Knutson
> Wells Fargo Business Direct Information Systems
> (415) 222-1020
> 
> "This message may contain confidential and/or privileged 
> information. If you are not the addressee or authorized to 
> receive this for the addressee, you must not use, copy, 
> disclose, or take any action based on this message or any 
> information herein. If you have received this message in 
> error, please advise the sender immediately by reply e-mail 
> a

Error in CactusStrutsTestCase

2004-12-13 Thread Mick.Knutson
I have the following method that keeps failing and I don't know why. The method 
should really only set a NavigationBean into session, then forward to a page 
based on the action parameter.


public void testProductSelection() throws Exception {
// JUnitDoclet begin method productSelection

  NavigationBean navigationBean = null;

  java.lang.String[] productSelectionRequired = {
"requiredif.productSelectionRequired" };

  java.lang.String[] reqParamNames = { "action",
   "businessLineSelected",
   "businessCardSelected",
  
"businessSecuredCardSelected",
   "equipmentExpressSelected"
  };
  java.lang.String[] reqParamValue0 = { "nextPage", "true",
"false", "false", "false", Constants.BUSINESS_FWD };
  java.lang.String[] reqParamValue1 = { "nextPage", "false",
"true", "false", "false", Constants.BUSINESS_FWD };
  java.lang.String[] reqParamValue2 = { "nextPage", "false",
"false", "true", "false", Constants.BUSINESS_FWD };
  java.lang.String[] reqParamValue3 = { "nextPage", "false",
"false", "false", "true", Constants.BUSINESS_FWD };
  java.lang.String[] reqParamValue4 = { "nextPage", "true",
"true", "false", "false", Constants.BUSINESS_FWD };
  java.lang.String[] reqParamValue5 = { "nextPage", "true",
"false", "true", "false", Constants.BUSINESS_FWD };
  java.lang.String[] reqParamValue6 = { "nextPage", "true",
"false", "false", "true", Constants.BUSINESS_FWD };
  java.lang.String[] reqParamValue7 = { "nextPage", "false",
"true", "true", "false", Constants.BUSINESS_FWD };
  java.lang.String[] reqParamValue8 = { "nextPage", "false",
"true", "false", "true", Constants.BUSINESS_FWD };
  java.lang.String[] reqParamValue9 = { "nextPage", "false",
"false", "true", "true", Constants.BUSINESS_FWD };

  java.lang.String[] reqParamValue10 = { "business", "true",
"true", "true", "true", Constants.BUSINESS_FWD };
  java.lang.String[] reqParamValue11 = { "firstOwner",
"true", "true", "true", "true", Constants.FIRSTOWNER_FWD };
  java.lang.String[] reqParamValue12 = { "secondOwner",
"true", "true", "true", "true", Constants.SECONDOWNER_FWD };
  java.lang.String[] reqParamValue13 = { "businessLine",
"true", "true", "true", "true", "prepareBusinessLine" };
  java.lang.String[] reqParamValue14 = { "businessCard",
"true", "true", "true", "true", "prepareBusinessCard" };
  java.lang.String[] reqParamValue15 = { "securedCard",
"true", "true", "true", "true", "prepareSecuredCard" };
  java.lang.String[] reqParamValue16 = { "equipmentExpress",
"true", "true", "true", "true", "prepareEquipmentExpress" };
  java.lang.String[] reqParamValue17 = { "conclude", "true",
"true", "true", "true", Constants.BUSINESS_FWD };

  java.lang.Object[] reqParamValues = { reqParamValue0,
reqParamValue1, reqParamValue2, reqParamValue3,
reqParamValue4,
reqParamValue5, reqParamValue6, reqParamValue7,
reqParamValue8,
reqParamValue9, reqParamValue10, reqParamValue11,
reqParamValue12,
reqParamValue13, reqParamValue14, reqParamValue15,
reqParamValue16,
reqParamValue17
  };

//- NO Products
-//
setRequestPathInfo("/productSelection");
addRequestParameter("action", "nextPage");
addRequestParameter("businessLineSelected", "false");
addRequestParameter("businessCardSelected", "false");
addRequestParameter("businessSecuredCardSelected", "false");
addRequestParameter("equipmentExpressSelected", "false");
actionPerform();

verifyActionErrors( productSelectionRequired );

verifyForward( Constants.ERROR_FWD );

//- Various Products
//
  setRequestPathInfo("/productSelection");

for( int i=0; i

??? property naming convention problem

2004-12-13 Thread Vinod Easaw Varghese
Hi,
 
I have a textbox in a JSP whose property has been named as eCoupon.
I have created the necessary ActionForm with the necessary setter and
getter methods such as setECoupon and getECoupon. 
When I run submit the form within the corresponding JSP I get the
error message not able to find the corresponding getter method for
property eCoupon
The moment I changed the property name to ecoupon and made the
necessary adjustments within the ActionForm all began to work well.

Is there a property naming convention to be followed in STRUTS
 

With thanks and Regards

Vinod Easaw Varghese

 


Problems initializing form objects

2004-12-13 Thread Diego Manilla Suárez
Hi! I have a problem with form members initialization.
I have this form.
public class BasicContentForm extends ValidatorForm {
   protected java.util.List propertyValues;
  
   public BasicContentForm() {
   this.propertyValues = new java.util.ArrayList();
   }
  
   public void setPropertyValues( java.util.List propertyValues ) {
   this.propertyValues = propertyValues;
   }   
  
   public java.util.List getPropertyValues() {
   return this.propertyValues;
   }
  
   public Object getPropertyValue(int index) {
   return propertyValues.get(index);
   }
  
   public void reset(ActionMapping mapping, HttpServletRequest request) {
   this.propertyValues = new java.util.ArrayList();
   }
}

And this jsp:




The problem is that the number and type of the elements of 
propertyValues list is calculated dynamically (from the database). I was 
doing that on my Action class, but I've realized that this doesn't work: 
when I submit the form, I get an Exception at BeanUtils.populate, 
because the list is not properly initialized. If I can't initialize it 
on the reset() method (I need to access the database), what else can I do?

Thanks in advance
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: how to save last 5 searches in the cookie?

2004-12-13 Thread Ron Day
How are you maintaining your session:  URL Rewriting??

-Original Message-
From: Webmaster [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 4:35 PM
To: Struts Users Mailing List
Subject: Re: how to save last 5 searches in the cookie?


Personally I dislike cookies and dont allow any on my box...way too many
virus attacks this year.
In fact if the site Im visiting only works with cookies I write to the
webmaster and ask them why dont they use Session??
I would strongly recommend saving your User preferences etc back up to the
Server via "Session" attributes
My 2 cents,
Martin

-Original message-
From: "Yadav, Ganesh" [EMAIL PROTECTED]
Date: Mon, 13 Dec 2004 13:00:21 -0500
To: [EMAIL PROTECTED]
Subject: how to save last 5 searches in the cookie?

> Hello All.
>
> I have a requirement to save last 5 searches in the cookie.
>
> In other words, saving last 5 set of "search param- value" pairs in
> cookie.
>
> Retrieve them and show these 5 searches in Combo box. So whenever user
> select one, he should have his search screen params filled up from the
> cookie values stored.
>
>
>
> Can some one guide me on this as to how I can get this done?
>
> Any code e.g. will really help.
>
>
>
> Thanks in advance
>
>
>
> G
>
>
>
>
>
>
>
>
>
>
>
>


This message and its contents are intended for receiver. Information
contained within is protected by Law. If you have received this message in
error please delete it and notify [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: Generating valid HTML from tag

2004-12-13 Thread William Ferguson
Well,

the w3C validator certainly considers it to be invalid and is validating
against the HTML 4.01 spec which came into being in December 1999.
So I'd be inclined to say that 5 years is more than enough deprecation
notice.

William


- Original Message - 
From: <[EMAIL PROTECTED]>
> Is it the opinion of others that "deprecated" is semantically equivalent
> to "invalid"?


> "William Ferguson" <[EMAIL PROTECTED]>
> I noticed that the html generated form the  tag is not valid
> HTML
> according to the W3C validation service (http://validator.w3.org).
> It generates a  tag with a 'name' attribute which has been
> deprecated.
>
> Since I'm striving to conform to relevant standards as best as possible, I
> was wondering whether anyone else had faced the same issue and what
> approach
> had been taken.
>
> If I don't use the  tag then I can't use other tags like
>  etc, which means a fair bit of messing about for drop-downs.
>
> Does anyone else bother with HTML validation?
> And if so, how do you handle Forms and Form elements?
>
> William




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.5.2 - Release Date: 13-Dec-04


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generating valid HTML from tag

2004-12-13 Thread DGraham
Is it the opinion of others that "deprecated" is semantically equivalent 
to "invalid"?

Dennis




"William Ferguson" <[EMAIL PROTECTED]> 
12/14/2004 07:51 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


To
<[EMAIL PROTECTED]>
cc

Subject
Generating valid HTML from  tag






I noticed that the html generated form the  tag is not valid 
HTML
according to the W3C validation service (http://validator.w3.org).
It generates a  tag with a 'name' attribute which has been 
deprecated.

Since I'm striving to conform to relevant standards as best as possible, I
was wondering whether anyone else had faced the same issue and what 
approach
had been taken.

If I don't use the  tag then I can't use other tags like
 etc, which means a fair bit of messing about for drop-downs.

Does anyone else bother with HTML validation?
And if so, how do you handle Forms and Form elements?

William



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.5.2 - Release Date: 13-Dec-04


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how to save last 5 searches in the cookie?

2004-12-13 Thread Webmaster
Personally I dislike cookies and dont allow any on my box...way too many virus 
attacks this year.
In fact if the site Im visiting only works with cookies I write to the 
webmaster and ask them why dont they use Session??
I would strongly recommend saving your User preferences etc back up to the 
Server via "Session" attributes
My 2 cents,
Martin

-Original message-
From: "Yadav, Ganesh" [EMAIL PROTECTED]
Date: Mon, 13 Dec 2004 13:00:21 -0500
To: [EMAIL PROTECTED]
Subject: how to save last 5 searches in the cookie?

> Hello All.
> 
> I have a requirement to save last 5 searches in the cookie.
> 
> In other words, saving last 5 set of "search param- value" pairs in
> cookie. 
> 
> Retrieve them and show these 5 searches in Combo box. So whenever user
> select one, he should have his search screen params filled up from the
> cookie values stored.
> 
>  
> 
> Can some one guide me on this as to how I can get this done?
> 
> Any code e.g. will really help.
> 
>  
> 
> Thanks in advance
> 
>  
> 
> G
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 


This message and its contents are intended for receiver. Information contained 
within is protected by Law. If you have received this message in error please 
delete it and notify [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Generating valid HTML from tag

2004-12-13 Thread William Ferguson
I noticed that the html generated form the  tag is not valid HTML
according to the W3C validation service (http://validator.w3.org).
It generates a  tag with a 'name' attribute which has been deprecated.

Since I'm striving to conform to relevant standards as best as possible, I
was wondering whether anyone else had faced the same issue and what approach
had been taken.

If I don't use the  tag then I can't use other tags like
 etc, which means a fair bit of messing about for drop-downs.

Does anyone else bother with HTML validation?
And if so, how do you handle Forms and Form elements?

William



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.5.2 - Release Date: 13-Dec-04


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ServletContext, Initialisation, & Distributed Environments

2004-12-13 Thread Andrew Hill
According to the sevlet spec: "context attributes are local to the JVM 
in which they were created. This prevents ServletContext attributes from 
being a shared memory store in a distributed container".

What Id like to know is how this affects configuration information I 
load in a PlugIn or in a servlets init method when the application 
starts up. If there are multiple JVMs, each will get its own instance of 
the same servlet (which presumably is marked as load on startup), so 
will init be called on each of them? or just for one machine?

Im guessing the former, as the latter seems dodgy, but Id like to hear 
it from someone who actually knows for sure.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: html:image?

2004-12-13 Thread Bjørn T Johansen
Yes, of course. Thx :)
BTJ
Matthias Stoll wrote:
Hi Bjorn
You should use the  tag. the  tag renders an "input" 
tag of type "image" ( tag, 
which is what you need.

greets
__
Matthias Stoll
hpi GmbH
Application Development
Web site: http://www.hpigmbh.com

Bjørn T Johansen <[EMAIL PROTECTED]> 
14.12.2004 12:50
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>

To
Struts Users Mailing List <[EMAIL PROTECTED]>
cc
Subject
html:image?


I have an image in my jsp page, that acts like a button when I click on 
the image, why is 
that? It creates a request to my action object, but this is not what I 
want... Clicking on 
the image, should do nothing.
How do I fix this?

The code in my jsp looks like this..:

Regards,
BTJ
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Transmission of a session using jsessionID

2004-12-13 Thread Jerry Rodgers
FWIW: I had a similar situation and used cookies to pass encrypted values
between the web apps. I also used a filter to check for changes in those
cookie values and to put the values from the cookie into the correct web app
session. 

-Jerry Rodgers

-Original Message-
From: Vadim Petrenko [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 09, 2004 2:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Transmission of a session using jsessionID

Or something like:
Authentication webapp authenticates the user, obtains it's data, like name,
age, all parameters you were talking about, then saves them in the database,
in a row with a primary key which == id of the session of the authentication
webapp. Then it redirects to the main webapp with a parameter, say, "authId"
== value of that primary key. The main webapp reads data from the db and can
use it for further processing. Then deletes that row from the table. If it
can't find a row with provided id, then it logs the user as a possible
hacker :)


-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 09, 2004 11:07 AM
To: 'Struts Users Mailing List'
Subject: RE: Transmission of a session using jsessionID

>>is there any other way to share session between two
>> different web application. I really need to do this...

Just my 2 cents,
which ever application creates the session, you could create a unique
indentifier,
store it in a dsn, then write indentifier to url for all inetractions with
applications and verify with
dsn lookup. This may not be the most intuitive approach, maybe, depends if
both
apps have access to dsn. You also would want to do a dsn cleanup for expired
indentifier's.

Or have application dependant sessions verfied by value of url
or hidden form field so its not actually seen, and cut out the dsn
altogether.

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: 09 December 2004 09:54
To: Struts Users Mailing List
Subject: Re: Transmission of a session using jsessionID


Maybe this "Tomcat How To" will help...

http://www.fwd.at/tomcat/sharing-session-data-howto.html

Niall

- Original Message - 
From: "Claude Libois" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 09, 2004 8:59 AM
Subject: Re: Transmission of a session using jsessionID


> A precision that make a big difference.
> The two actions are not in the same web application.
> I saw on a forum that sharing session between two web app is "bad design"
> and so is not allow with jsessionID.
> Is it true? If so, is there any other way to share session between two
> different web application. I really need to do this...
> Claude Libois
> [EMAIL PROTECTED]
> Technical associate - Unisys
>
> - Original Message - 
> From: "Claude Libois" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 09, 2004 9:32 AM
> Subject: Transmission of a session using jsessionID
>
>
> > Hi all,
> > I try to keep my session after a redirect in struts but it doesn't work.
> So
> > I made a test application with an action sendSession.do and an other
> action
> > receiveSession.do.
> > Here are the code of those two simple action:
> > 
> > sendSession.do
> > 
> > public class sendSession extends Action {
> > public ActionForward execute(ActionMapping actionMapping,
> >  ActionForm actionForm,
> >  HttpServletRequest servletRequest,
> >  HttpServletResponse servletResponse) {
> > System.out.println("* sessionId before redirect"
> > +servletRequest.getSession().getId());
> > servletRequest.getSession().setAttribute("test","test");
> > ActionForward af=new ActionForward(
> >
> "http://12.2.33.13:4/Consumer/receiveSession.do;jsessionid=";
> > +
> > servletRequest.getSession().getId(),true);
> > return af;
> > }
> > }
> > *
> > receiveSession.do
> > *
> > public class ReceiveSession extends Action {
> > public ActionForward execute(ActionMapping actionMapping,
> >  ActionForm actionForm,
> >  HttpServletRequest servletRequest,
> >  HttpServletResponse servletResponse) {
> >  System.out.println("* sessionId after redirect"
> > +servletRequest.getSession().getId());
> > System.out.println("test
> > "+servletRequest.getSession().getAttribute("test"));
> > return null;
> >  }
> > }
> >
> > What's wrong with it? the attribute "test" is null in receiveSession.do
> > Is there anything else to do for session sharing between two web app??
> >
> > Thanks in advance
> >
> > Claude Libois
> > [EMAIL PROTECTED]
> > Technical associate - Unisys
> >
> >
> > -
> > To unsubscribe, e-mai

RE: Transmission of a session using jsessionID

2004-12-13 Thread Jerry Rodgers
FWIW: I had a similar situation and used cookies to pass encrypted values
between the web apps. I also used a filter to check for changes in those
cookie values and to put the values from the cookie into the correct web app
session. 

-Jerry Rodgers

-Original Message-
From: Vadim Petrenko [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 09, 2004 2:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Transmission of a session using jsessionID

Or something like:
Authentication webapp authenticates the user, obtains it's data, like name,
age, all parameters you were talking about, then saves them in the database,
in a row with a primary key which == id of the session of the authentication
webapp. Then it redirects to the main webapp with a parameter, say, "authId"
== value of that primary key. The main webapp reads data from the db and can
use it for further processing. Then deletes that row from the table. If it
can't find a row with provided id, then it logs the user as a possible
hacker :)


-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 09, 2004 11:07 AM
To: 'Struts Users Mailing List'
Subject: RE: Transmission of a session using jsessionID

>>is there any other way to share session between two
>> different web application. I really need to do this...

Just my 2 cents,
which ever application creates the session, you could create a unique
indentifier,
store it in a dsn, then write indentifier to url for all inetractions with
applications and verify with
dsn lookup. This may not be the most intuitive approach, maybe, depends if
both
apps have access to dsn. You also would want to do a dsn cleanup for expired
indentifier's.

Or have application dependant sessions verfied by value of url
or hidden form field so its not actually seen, and cut out the dsn
altogether.

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: 09 December 2004 09:54
To: Struts Users Mailing List
Subject: Re: Transmission of a session using jsessionID


Maybe this "Tomcat How To" will help...

http://www.fwd.at/tomcat/sharing-session-data-howto.html

Niall

- Original Message - 
From: "Claude Libois" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 09, 2004 8:59 AM
Subject: Re: Transmission of a session using jsessionID


> A precision that make a big difference.
> The two actions are not in the same web application.
> I saw on a forum that sharing session between two web app is "bad design"
> and so is not allow with jsessionID.
> Is it true? If so, is there any other way to share session between two
> different web application. I really need to do this...
> Claude Libois
> [EMAIL PROTECTED]
> Technical associate - Unisys
>
> - Original Message - 
> From: "Claude Libois" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 09, 2004 9:32 AM
> Subject: Transmission of a session using jsessionID
>
>
> > Hi all,
> > I try to keep my session after a redirect in struts but it doesn't work.
> So
> > I made a test application with an action sendSession.do and an other
> action
> > receiveSession.do.
> > Here are the code of those two simple action:
> > 
> > sendSession.do
> > 
> > public class sendSession extends Action {
> > public ActionForward execute(ActionMapping actionMapping,
> >  ActionForm actionForm,
> >  HttpServletRequest servletRequest,
> >  HttpServletResponse servletResponse) {
> > System.out.println("* sessionId before redirect"
> > +servletRequest.getSession().getId());
> > servletRequest.getSession().setAttribute("test","test");
> > ActionForward af=new ActionForward(
> >
> "http://12.2.33.13:4/Consumer/receiveSession.do;jsessionid=";
> > +
> > servletRequest.getSession().getId(),true);
> > return af;
> > }
> > }
> > *
> > receiveSession.do
> > *
> > public class ReceiveSession extends Action {
> > public ActionForward execute(ActionMapping actionMapping,
> >  ActionForm actionForm,
> >  HttpServletRequest servletRequest,
> >  HttpServletResponse servletResponse) {
> >  System.out.println("* sessionId after redirect"
> > +servletRequest.getSession().getId());
> > System.out.println("test
> > "+servletRequest.getSession().getAttribute("test"));
> > return null;
> >  }
> > }
> >
> > What's wrong with it? the attribute "test" is null in receiveSession.do
> > Is there anything else to do for session sharing between two web app??
> >
> > Thanks in advance
> >
> > Claude Libois
> > [EMAIL PROTECTED]
> > Technical associate - Unisys
> >
> >
> > -
> > To unsubscribe, e-mai

RE: Book/on-line examples

2004-12-13 Thread Bala . Paranj
Download the Jakarta Struts Live from serverside.com. Its a free ebook. It
is a very practical and covers all the concepts. It is an excellent book.
Enjoy!

Bala

-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 4:41 PM
To: [EMAIL PROTECTED]
Subject: Book/on-line examples


Hello,

I am trying to see if struts will be applicable to some work I will be doing
in the future. I have googled quite a bit of struts examples, but most seem
incomplete, or refer to compiled class files, etc. 

Anyway, I would have read enough to be dangerous, but I am looking for some
"good" on-line or book examples that actually walk through the logic and
implementation of struts.

Does anyone out there have any of these bookmarked, or have a book
recommendation. Once again, looks like the Manning book falls short of a
purchase, and I am not sure if the O'Reilly one is worth the coin.

Thanks,
Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Note:  The information contained in this email and in any attachments is
intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material.  Any review,
retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the
intended recipient is prohibited.  The recipient should check this email and
any attachments for the presence of viruses.  Sender accepts no liability
for any damages caused by any virus transmitted by this email. If you have
received this email in error, please notify us immediately by replying to
the message and delete the email from your computer.  This e-mail is and any
response to it will be unencrypted and, therefore, potentially unsecure.
Thank you.  NOVA Information Systems, Inc.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Book/on-line examples

2004-12-13 Thread Jim Barrows


> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 2:41 PM
> To: [EMAIL PROTECTED]
> Subject: Book/on-line examples
> 
> 
> Hello,
> 
> I am trying to see if struts will be applicable to some work 
> I will be doing in the future. I have googled quite a bit of 
> struts examples, but most seem incomplete, or refer to 
> compiled class files, etc. 
> 
> Anyway, I would have read enough to be dangerous, but I am 
> looking for some "good" on-line or book examples that 
> actually walk through the logic and implementation of struts.
> 
> Does anyone out there have any of these bookmarked, or have a 
> book recommendation. Once again, looks like the Manning book 
> falls short of a purchase, and I am not sure if the O'Reilly 
> one is worth the coin.

O'Reilly is always worth the coin, and if you mean the Manning book with Ted 
Husted as the author... I use that one daily.  What are you looking for?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:image?

2004-12-13 Thread Matthias Stoll
Hi Bjorn

You should use the  tag. the  tag renders an "input" 
tag of type "image" ( tag, 
which is what you need.

greets
__
Matthias Stoll
hpi GmbH
Application Development
Web site: http://www.hpigmbh.com



Bjørn T Johansen <[EMAIL PROTECTED]> 
14.12.2004 12:50
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


To
Struts Users Mailing List <[EMAIL PROTECTED]>
cc

Subject
html:image?






I have an image in my jsp page, that acts like a button when I click on 
the image, why is 
that? It creates a request to my action object, but this is not what I 
want... Clicking on 
the image, should do nothing.
How do I fix this?

The code in my jsp looks like this..:




Regards,

BTJ

-- 
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange 
Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Book/on-line examples

2004-12-13 Thread Scott Purcell
Hello,

I am trying to see if struts will be applicable to some work I will be doing in 
the future. I have googled quite a bit of struts examples, but most seem 
incomplete, or refer to compiled class files, etc. 

Anyway, I would have read enough to be dangerous, but I am looking for some 
"good" on-line or book examples that actually walk through the logic and 
implementation of struts.

Does anyone out there have any of these bookmarked, or have a book 
recommendation. Once again, looks like the Manning book falls short of a 
purchase, and I am not sure if the O'Reilly one is worth the coin.

Thanks,
Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:image?

2004-12-13 Thread Bjørn T Johansen
I have an image in my jsp page, that acts like a button when I click on the image, why is 
that? It creates a request to my action object, but this is not what I want... Clicking on 
the image, should do nothing.
How do I fix this?

The code in my jsp looks like this..:

Regards,
BTJ
--
---
Bjørn T Johansen
[EMAIL PROTECTED]
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Validator question

2004-12-13 Thread Susan Bradeen
On Mon, 13 Dec 2004 10:44:24 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote:
> 
> 
> > -Original Message-
> > From: Vinicius Caldeira Carvalho
> > [mailto:[EMAIL PROTECTED]
> > Sent: Monday, December 13, 2004 11:32 AM
> > To: Struts Users Mailing List
> > Subject: Validator question
> >
> >
> > Hi there. Correct if I'm wrong, validator returns to the
> > input jsp after
> > a validation fails right?
> > Now if my jsp was called by an action that receives
> > parameters throught
> > the request, how can I handle this?
> 
> This is a problem with how validation works with struts.  The list history 
> has quite a few discussions on this.  My typical solution is to put the form 
> bean into session scope, rather then request scope.
> 

Or, include the parameters in your JSP as hidden fields. They will be
passed to the form bean again after submitting the form page, and
therefore will be available after validation fails.


> -
> 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: problem with html:Image and Indexed form

2004-12-13 Thread Tito Eritja
El lun, 13 de 12 de 2004 a las 20:44, Tito Eritja escribiÃ:
> Hi everybody.
> 
> I have a problem with  tag
> 
> I'm using a ImageButton bean like that:
> 
> public final class ImageButtonBean implements Serializable {
> private String x = null;
> private String y = null;
> 
> public String getX() {
> return (this.x);
> }
> 
> public void setX(String x) {
> this.x = x;
> }
> 
> public String getY() {
> return (this.y);
> }
> 
> public void setY(String y) {
> this.y = y;
> }
> 
> public boolean isSelected() {
> return ((x != null) || (y != null));
> }
> 
> public void reset() {
> x = null;
> y = null;
> }
> }
> 
> I use it to know which button (image) has been pressed on a jsp page
> with:
> 
> 
> 
> and a function getButtonSelected() in the Form which populates this jsp.
> 
> With this configuration everything works fine, 
> 
> The problem is when I try to use indexed properties in jsp.
> 
> I'm using a Form with several lineItems, but as this jsp, just need to
> show one of this lineItems I use indexed elements like
> 
> 
>  src="${mapForm.lineItem[index].someValue}"/>
> 
> The problem now, is that I don't get the button of this lineItem
> populated with the x and y values. (setSomeButton function is not
> called)
> 
> The strange thing is that if I use from this jsp the tag
> 
> 
> 
> the function getSomeButton() from mapForm is called.
Sorry, I mean the function getSomeButton() from lineItem[index]
> 
> Anybody has any clue what I'm doing wrong?
> 
> 
> Thanks for your time
> 
> 
> tito


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts configuration problem on Tomcat 5.5.4

2004-12-13 Thread alan . sinclair
Thanks Jim.
The web.xml is in the right place:
1908 Sun Dec 12 18:34:58 PST 2004 WEB-INF/web.xml

I have checked the permissions and I feel they are correct. It is very 
puzzling; I have ruled out an ant build issue either.

Thanks


-Original Message-
From: Jim Barrows <[EMAIL PROTECTED]>
Sent: Dec 13, 2004 11:54 AM
To: Struts Users Mailing List <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED]
Subject: RE: Struts configuration problem on Tomcat 5.5.4



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 12:49 PM
> To: [EMAIL PROTECTED]
> Subject: Struts configuration problem on Tomcat 5.5.4
> 
> 
> Hi,
> I am hoping I have selected the correct list for this 
> problem. I can successfully deploy a simple struts 
> application with 1 action and form by manually extracting the 
> war file into the webapps directory of the Tomcat server.  I 
> cannot deploy the war file automatically on a running Tomcat 
> 5.5.4 server. I get the following error which has been very 
> difficult to debug:
> 
> INFO: Missing application web.xml, using defaults only 
> StandardEngine[Catalina].StandardHost[lo
> calhost].StandardContext[/nobs]
> 
> I think it is a subtle struts configuration problem with 
> web.xml and struts-config.xml but I am at a loss to find the 
> root cause of the problem. 

Except that struts-config.xml is read after web.xml, and tomcat is apparently 
not finding the web.xml file.  This could be for a couple of reasons:
1) web.xml is not in the WEB-INF directory
  2) read permissions on web.xml
  3) read permissions on WEB-INF and/or parent directories.

In essence, the web.xml file tells tomcat to load the action servlet for 
struts.  The action servlet then reads struts-config.xml.  So, in this 
particular case it is not likely that the problem is struts related.

I suspect that the war won't work becuase the war has to have a web.xml while 
the exploded does not.


> 
> All the example struts applications in the 1.2.4 bundle 
> deploy automatically on Tomcat 5.5.4 using JDK1.4
> 
> Does anybody have any ideas?
> 
> Much appreciated.
> 
> 
> 
> 
> -
> 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: problem with html:Image and Indexed form

2004-12-13 Thread Mark Lowe
You need to a subclass action and search the request parameter for "["
"]" find the index and do things this way, at least thats what i've
done in the past.


Mark

On 13 Dec 2004 20:55:25 +0100, Tito Eritja <[EMAIL PROTECTED]> wrote:
> El lun, 13 de 12 de 2004 a las 20:44, Tito Eritja escribió:
> 
> 
> > Hi everybody.
> >
> > I have a problem with  tag
> >
> > I'm using a ImageButton bean like that:
> >
> > public final class ImageButtonBean implements Serializable {
> > private String x = null;
> > private String y = null;
> >
> > public String getX() {
> > return (this.x);
> > }
> >
> > public void setX(String x) {
> > this.x = x;
> > }
> >
> > public String getY() {
> > return (this.y);
> > }
> >
> > public void setY(String y) {
> > this.y = y;
> > }
> >
> > public boolean isSelected() {
> > return ((x != null) || (y != null));
> > }
> >
> > public void reset() {
> > x = null;
> > y = null;
> > }
> > }
> >
> > I use it to know which button (image) has been pressed on a jsp page
> > with:
> >
> > 
> >
> > and a function getButtonSelected() in the Form which populates this jsp.
> >
> > With this configuration everything works fine,
> >
> > The problem is when I try to use indexed properties in jsp.
> >
> > I'm using a Form with several lineItems, but as this jsp, just need to
> > show one of this lineItems I use indexed elements like
> >
> >
> >  > src="${mapForm.lineItem[index].someValue}"/>
> >
> > The problem now, is that I don't get the button of this lineItem
> > populated with the x and y values. (setSomeButton function is not
> > called)
> >
> > The strange thing is that if I use from this jsp the tag
> >
> > 
> >
> > the function getSomeButton() from mapForm is called.
> Sorry, I mean the function getSomeButton() from lineItem[index]
> >
> > Anybody has any clue what I'm doing wrong?
> >
> >
> > Thanks for your time
> >
> >
> > tito
> 
> 
> -
> 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]



Struts configuration problem on Tomcat 5.5.4

2004-12-13 Thread alan . sinclair
Hi,
I am hoping I have selected the correct list for this problem. I can 
successfully deploy a simple struts application with 1 action and form by 
manually extracting the war file into the webapps directory of the Tomcat 
server.  I cannot deploy the war file automatically on a running Tomcat 5.5.4 
server. I get the following error which has been very difficult to debug:

INFO: Missing application web.xml, using defaults only 
StandardEngine[Catalina].StandardHost[lo
calhost].StandardContext[/nobs]

I think it is a subtle struts configuration problem with web.xml and 
struts-config.xml but I am at a loss to find the root cause of the problem. 

All the example struts applications in the 1.2.4 bundle deploy automatically on 
Tomcat 5.5.4 using JDK1.4

Does anybody have any ideas?

Much appreciated.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts configuration problem on Tomcat 5.5.4

2004-12-13 Thread Jim Barrows


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 12:49 PM
> To: [EMAIL PROTECTED]
> Subject: Struts configuration problem on Tomcat 5.5.4
> 
> 
> Hi,
> I am hoping I have selected the correct list for this 
> problem. I can successfully deploy a simple struts 
> application with 1 action and form by manually extracting the 
> war file into the webapps directory of the Tomcat server.  I 
> cannot deploy the war file automatically on a running Tomcat 
> 5.5.4 server. I get the following error which has been very 
> difficult to debug:
> 
> INFO: Missing application web.xml, using defaults only 
> StandardEngine[Catalina].StandardHost[lo
> calhost].StandardContext[/nobs]
> 
> I think it is a subtle struts configuration problem with 
> web.xml and struts-config.xml but I am at a loss to find the 
> root cause of the problem. 

Except that struts-config.xml is read after web.xml, and tomcat is apparently 
not finding the web.xml file.  This could be for a couple of reasons:
1) web.xml is not in the WEB-INF directory
  2) read permissions on web.xml
  3) read permissions on WEB-INF and/or parent directories.

In essence, the web.xml file tells tomcat to load the action servlet for 
struts.  The action servlet then reads struts-config.xml.  So, in this 
particular case it is not likely that the problem is struts related.

I suspect that the war won't work becuase the war has to have a web.xml while 
the exploded does not.


> 
> All the example struts applications in the 1.2.4 bundle 
> deploy automatically on Tomcat 5.5.4 using JDK1.4
> 
> Does anybody have any ideas?
> 
> Much appreciated.
> 
> 
> 
> 
> -
> 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]



upgraded to 1.2.4 and form bean fields are not filled

2004-12-13 Thread Matthias Stoll
we upgraded to Struts 1.2.4

since then some form fields are not filled anymore. e.g. we have a input 
type="text" field in our jsp which contains a date. in the form bean we 
have a setter with a string argument that converts the fields contents 
from string to date. the form bean has a member variable that keeps the 
transformed date as Date object and the getter returns a Date object. 
Worked fine with Struts 1.1.X. Now the setter is never called (tried with 
system.out statements). what are we missing?

thx
__
Matthias Stoll
hpi GmbH
Application Development
Web site: http://www.hpigmbh.com

problem with html:Image and Indexed form

2004-12-13 Thread Tito Eritja
Hi everybody.

I have a problem with  tag

I'm using a ImageButton bean like that:

public final class ImageButtonBean implements Serializable {
private String x = null;
private String y = null;

public String getX() {
return (this.x);
}

public void setX(String x) {
this.x = x;
}

public String getY() {
return (this.y);
}

public void setY(String y) {
this.y = y;
}

public boolean isSelected() {
return ((x != null) || (y != null));
}

public void reset() {
x = null;
y = null;
}
}

I use it to know which button (image) has been pressed on a jsp page
with:



and a function getButtonSelected() in the Form which populates this jsp.

With this configuration everything works fine, 

The problem is when I try to use indexed properties in jsp.

I'm using a Form with several lineItems, but as this jsp, just need to
show one of this lineItems I use indexed elements like




The problem now, is that I don't get the button of this lineItem
populated with the x and y values. (setSomeButton function is not
called)

The strange thing is that if I use from this jsp the tag



the function getSomeButton() from mapForm is called.

Anybody has any clue what I'm doing wrong?


Thanks for your time


tito


-- 
_

 Tito Eritja
 GnuPG key: FD022DAF ( http://www.keyserver.net/ )
 Key fingerprint = 31E3 7E17 3C59 DEEC 51AC  635C FF95 CC05 FD02 2DAF
_


signature.asc
Description: PGP signature


test

2004-12-13 Thread Frank W. Zammetti (MLists)
Please ignore me.  Just seeing if my web host fixed the webmail problem
I've been having.  Thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validator upgrade?

2004-12-13 Thread Jim Barrows


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 11:53 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Validator upgrade?
> 
> 
> Bingo
> I sent an email last week about my custom rules, and was told 
> that I should/could put my custom rules into a file called 
> validator-rules-wfb.xml and just add an entry into my 
> struts-config validator setting with that file. So now I 
> would have 4 different validator config files. But the 
> validator-rules-wfb.xml does not get loaded.
> So, I moved my custom rules back into the validator-rules.xml 
> file, and it works.

Okay..that's interesting becuase what they told you is supposed to be correct.  
However, this will still force you to monkey with the file on the next upgrade. 
 At this point though... I'm guessing you don't care :)

> 
> 
> 
> 
> Mick Knutson
> Wells Fargo Business Direct
> (415) 222-1020
> 
> "This message may contain confidential and/or privileged 
> information. If you are not the addressee or authorized to 
> receive this for the addressee, you must not use, copy, 
> disclose, or take any action based on this message or any 
> information herein. If you have received this message in 
> error, please advise the sender immediately by reply e-mail 
> and delete this message. Thank you for your cooperation."
> 
> 
> 
> 
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 10:26 AM
> To: Struts Users Mailing List
> Subject: RE: Validator upgrade?
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> > Sent: Monday, December 13, 2004 11:22 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Validator upgrade?
> > 
> > 
> > here is the error I get each time (the original code is below 
> > in this thread):
> > ===
> > 
> > 2004-12-10 15:12:08,998 ERROR [ExecuteThread: '8' for queue:
> > 'weblogic.kernel.Default'] validator.ValidatorForm
> > (ValidatorForm.java:114) - No ValidatorActio n named 
> > isequalif found for
> > field businessLineSelected
> > org.apache.commons.validator.ValidatorException: No 
> > ValidatorAction named
> > isequalif found for field businessLineSelected
> 
> It doesn't look like it's reading your xml file with the 
> plugins in it.  I might put a break point in 
> RequestProcess.processValidate and see what it's doing at 
> this point to verify that Struts is reading your plugin 
> configuration correctly.
> 
> 
> > at 
> > 
> org.apache.commons.validator.Field.handleMissingAction(Field.java:911)
> > at 
> org.apache.commons.validator.Field.validate(Field.java:886)
> > at org.apache.commons.validator.Form.validate(Form.java:174)
> > at 
> > org.apache.commons.validator.Validator.validate(Validator.java:367)
> > at 
> > org.apache.struts.validator.ValidatorForm.validate(ValidatorFo
> > rm.java:112)
> > at 
> > org.apache.struts.action.RequestProcessor.processValidate(Requ
> > estProcessor.java:921)
> > at 
> > org.apache.struts.action.RequestProcessor.process(RequestProce
> > ssor.java:206)
> > at 
> > org.apache.struts.action.ActionServlet.process(ActionServlet.j
> > ava:1164)
> > at 
> > 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> > at 
> > servletunit.struts.CactusStrutsTestCase.actionPerform(CactusSt
> > rutsTestCase.java:537)
> > at 
> > com.wf.bd.ice.creditapplication.CreditApplicationActionsTest.t
> > estProductSelection(CreditApplicationActionsTest.java:135)
> > at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at 
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > orImpl.java:39)
> > at 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > odAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at junit.framework.TestCase.runTest(TestCase.java:154)
> > at junit.framework.TestCase.runBare(TestCase.java:127)
> > at 
> > org.apache.cactus.internal.AbstractCactusTestCase.runBareServe
> > r(AbstractCactusTestCase.java:153)
> > at 
> > org.apache.cactus.internal.server.AbstractWebTestCaller.doTest
> > (AbstractWebTestCaller.java:119)
> > at 
> > org.apache.cactus.internal.server.AbstractWebTestController.ha
> > ndleRequest_aroundBody0(AbstractWebTestController.java:93)
> > at 
> > org.apache.cactus.internal.server.AbstractWebTestController.ha
> > ndleRequest_aroundBody1$advice(AbstractWebTestController.java:124)
> > at 
> > org.apache.cactus.internal.server.AbstractWebTestController.ha
> > ndleRequest(AbstractWebTestController.java)
> > at 
> > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBo
> > dy2(ServletTestRedirector.java:101)
> > at 
> > org.apache.cactus.server.Se

Re: test

2004-12-13 Thread Guillaume Cottenceau
"Frank W. Zammetti (MLists)"  writes:

> Please ignore me.  Just seeing if my web host fixed the webmail problem
> I've been having.  Thanks!

No offense, but is it not possible to test that from one email of
yours to another one?

-- 
Guillaume Cottenceau

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validator upgrade?

2004-12-13 Thread Hollaway, Shedrick L CIV TRIREFFAC
Is your custom validator in a resource (i.e. validation-custom.xml)
that's identified in struts-config.xml like such:

  


  

===  validation-custom.xml =

  



smime.p7s
Description: S/MIME cryptographic signature


Re: Book/on-line examples

2004-12-13 Thread aris
Thanks for the cue Bala.
I've found useful information about ActionForm at glance.
aris.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 10:48 PM
Subject: RE: Book/on-line examples


> Download the Jakarta Struts Live from serverside.com. Its a free ebook. It
> is a very practical and covers all the concepts. It is an excellent book.
> Enjoy!
>
> Bala
>
> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 4:41 PM
> To: [EMAIL PROTECTED]
> Subject: Book/on-line examples
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validator upgrade?

2004-12-13 Thread Mick.Knutson
Bingo
I sent an email last week about my custom rules, and was told that I 
should/could put my custom rules into a file called validator-rules-wfb.xml and 
just add an entry into my struts-config validator setting with that file. So 
now I would have 4 different validator config files. But the 
validator-rules-wfb.xml does not get loaded.
So, I moved my custom rules back into the validator-rules.xml file, and it 
works.




Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation."




-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 10:26 AM
To: Struts Users Mailing List
Subject: RE: Validator upgrade?


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 11:22 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Validator upgrade?
> 
> 
> here is the error I get each time (the original code is below 
> in this thread):
> ===
> 
> 2004-12-10 15:12:08,998 ERROR [ExecuteThread: '8' for queue:
> 'weblogic.kernel.Default'] validator.ValidatorForm
> (ValidatorForm.java:114) - No ValidatorActio n named 
> isequalif found for
> field businessLineSelected
> org.apache.commons.validator.ValidatorException: No 
> ValidatorAction named
> isequalif found for field businessLineSelected

It doesn't look like it's reading your xml file with the plugins in it.  I 
might put a break point in RequestProcess.processValidate and see what it's 
doing at this point to verify that Struts is reading your plugin configuration 
correctly.


> at 
> org.apache.commons.validator.Field.handleMissingAction(Field.java:911)
> at org.apache.commons.validator.Field.validate(Field.java:886)
> at org.apache.commons.validator.Form.validate(Form.java:174)
> at 
> org.apache.commons.validator.Validator.validate(Validator.java:367)
> at 
> org.apache.struts.validator.ValidatorForm.validate(ValidatorFo
> rm.java:112)
> at 
> org.apache.struts.action.RequestProcessor.processValidate(Requ
> estProcessor.java:921)
> at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:206)
> at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1164)
> at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> at 
> servletunit.struts.CactusStrutsTestCase.actionPerform(CactusSt
> rutsTestCase.java:537)
> at 
> com.wf.bd.ice.creditapplication.CreditApplicationActionsTest.t
> estProductSelection(CreditApplicationActionsTest.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at 
> org.apache.cactus.internal.AbstractCactusTestCase.runBareServe
> r(AbstractCactusTestCase.java:153)
> at 
> org.apache.cactus.internal.server.AbstractWebTestCaller.doTest
> (AbstractWebTestCaller.java:119)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest_aroundBody0(AbstractWebTestController.java:93)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest_aroundBody1$advice(AbstractWebTestController.java:124)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest(AbstractWebTestController.java)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost_aroundBo
> dy2(ServletTestRedirector.java:101)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost_aroundBo
> dy3$advice(ServletTestRedirector.java:124)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost(ServletT
> estRedirector.java)
> at 
> org.apache.cactus.server.ServletTestRedirector.doGet_aroundBod
> y0(ServletTestRedirector.java:72)
> at  
> org.apache.cactus.server.ServletTestRedirector.doGet_aroundBod
> y1$advice(ServletTestRedirector.java:124)
> at 
> org.apache.cactus.server.ServletTestRedirector.doGet(ServletTe
> stRedirector.java)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet

RE: Validator upgrade?

2004-12-13 Thread Mick.Knutson
I did that, but, I have 4 entries, not 3. Is there a limit of 3 entries somehow?


Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation."




-Original Message-
From: Hollaway, Shedrick L CIV TRIREFFAC
[mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 10:49 AM
To: Struts Users Mailing List
Subject: RE: Validator upgrade?


Is your custom validator in a resource (i.e. validation-custom.xml)
that's identified in struts-config.xml like such:

  


  

===  validation-custom.xml =

  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validator upgrade?

2004-12-13 Thread Mick.Knutson
1st, I did not check the old way, and will attempt to revert back to arg0 
instead of position="0".

2nd, here is the error I get each time (the original code is below in this 
thread):
\===
2004-12-10 15:12:08,998 ERROR [ExecuteThread: '8' for queue:
'weblogic.kernel.Default'] validator.ValidatorForm
(ValidatorForm.java:114) - No ValidatorActio n named isequalif found for
field businessLineSelected
org.apache.commons.validator.ValidatorException: No ValidatorAction named
isequalif found for field businessLineSelected
at 
org.apache.commons.validator.Field.handleMissingAction(Field.java:911)
at org.apache.commons.validator.Field.validate(Field.java:886)
at org.apache.commons.validator.Form.validate(Form.java:174)
at org.apache.commons.validator.Validator.validate(Validator.java:367)
at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112)
at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:921)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at 
servletunit.struts.CactusStrutsTestCase.actionPerform(CactusStrutsTestCase.java:537)
at 
com.wf.bd.ice.creditapplication.CreditApplicationActionsTest.testProductSelection(CreditApplicationActionsTest.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at 
org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
at 
org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
at 
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
at 
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:124)
at 
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
at 
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
at 
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:124)
at 
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
at 
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
at  
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:124)
at 
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at  weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)





Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation."




-Original Message-
From: Hollaway, Shedrick L CIV TRIREFFAC
[mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 10:12 AM
To: Struts Users Mailing List
Subject:

RE: Validator upgrade?

2004-12-13 Thread Mick.Knutson
here is the error I get each time (the original code is below in this thread):
===

2004-12-10 15:12:08,998 ERROR [ExecuteThread: '8' for queue:
'weblogic.kernel.Default'] validator.ValidatorForm
(ValidatorForm.java:114) - No ValidatorActio n named isequalif found for
field businessLineSelected
org.apache.commons.validator.ValidatorException: No ValidatorAction named
isequalif found for field businessLineSelected
at 
org.apache.commons.validator.Field.handleMissingAction(Field.java:911)
at org.apache.commons.validator.Field.validate(Field.java:886)
at org.apache.commons.validator.Form.validate(Form.java:174)
at org.apache.commons.validator.Validator.validate(Validator.java:367)
at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112)
at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:921)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at 
servletunit.struts.CactusStrutsTestCase.actionPerform(CactusStrutsTestCase.java:537)
at 
com.wf.bd.ice.creditapplication.CreditApplicationActionsTest.testProductSelection(CreditApplicationActionsTest.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at 
org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
at 
org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
at 
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
at 
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:124)
at 
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
at 
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
at 
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:124)
at 
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
at 
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
at  
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:124)
at 
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at  weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)




Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation."




-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 10:19 AM
To: Struts Users Mailing List
Subject: RE: Validator upgrade?


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, December

RE: Validator upgrade?

2004-12-13 Thread Jim Barrows
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 11:22 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Validator upgrade?
> 
> 
> here is the error I get each time (the original code is below 
> in this thread):
> ===
> 
> 2004-12-10 15:12:08,998 ERROR [ExecuteThread: '8' for queue:
> 'weblogic.kernel.Default'] validator.ValidatorForm
> (ValidatorForm.java:114) - No ValidatorActio n named 
> isequalif found for
> field businessLineSelected
> org.apache.commons.validator.ValidatorException: No 
> ValidatorAction named
> isequalif found for field businessLineSelected

It doesn't look like it's reading your xml file with the plugins in it.  I 
might put a break point in RequestProcess.processValidate and see what it's 
doing at this point to verify that Struts is reading your plugin configuration 
correctly.


> at 
> org.apache.commons.validator.Field.handleMissingAction(Field.java:911)
> at org.apache.commons.validator.Field.validate(Field.java:886)
> at org.apache.commons.validator.Form.validate(Form.java:174)
> at 
> org.apache.commons.validator.Validator.validate(Validator.java:367)
> at 
> org.apache.struts.validator.ValidatorForm.validate(ValidatorFo
> rm.java:112)
> at 
> org.apache.struts.action.RequestProcessor.processValidate(Requ
> estProcessor.java:921)
> at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:206)
> at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1164)
> at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> at 
> servletunit.struts.CactusStrutsTestCase.actionPerform(CactusSt
> rutsTestCase.java:537)
> at 
> com.wf.bd.ice.creditapplication.CreditApplicationActionsTest.t
> estProductSelection(CreditApplicationActionsTest.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at 
> org.apache.cactus.internal.AbstractCactusTestCase.runBareServe
> r(AbstractCactusTestCase.java:153)
> at 
> org.apache.cactus.internal.server.AbstractWebTestCaller.doTest
> (AbstractWebTestCaller.java:119)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest_aroundBody0(AbstractWebTestController.java:93)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest_aroundBody1$advice(AbstractWebTestController.java:124)
> at 
> org.apache.cactus.internal.server.AbstractWebTestController.ha
> ndleRequest(AbstractWebTestController.java)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost_aroundBo
> dy2(ServletTestRedirector.java:101)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost_aroundBo
> dy3$advice(ServletTestRedirector.java:124)
> at 
> org.apache.cactus.server.ServletTestRedirector.doPost(ServletT
> estRedirector.java)
> at 
> org.apache.cactus.server.ServletTestRedirector.doGet_aroundBod
> y0(ServletTestRedirector.java:72)
> at  
> org.apache.cactus.server.ServletTestRedirector.doGet_aroundBod
> y1$advice(ServletTestRedirector.java:124)
> at 
> org.apache.cactus.server.ServletTestRedirector.doGet(ServletTe
> stRedirector.java)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAct
> ion.run(ServletStubImpl.java:971)
> at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java:402)
> at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java:305)
> at 
> weblogic.servlet.internal.WebAppServletContext$ServletInvocati
> onAction.run(WebAppServletContext.java:6350)
> at 
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authe
> nticatedSubject.java:317)
> at 
> weblogic.security.service.SecurityManager.runAs(SecurityManage
> r.java:118)
> at 
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
> ebAppServletContext.java:3635)
> at 
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
> questImpl.java:2585)
> at  
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> 
> 
> 
> 
> Mick Knutson
> Wells Fargo Business Direct
> (415) 222-1020
> 
> "Th

RE: Validator upgrade?

2004-12-13 Thread Jim Barrows
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 10, 2004 3:42 PM
> To: [EMAIL PROTECTED]
> Subject: Validator upgrade?
> 
> 
> with the new struts 1.2.4 upgrade, I started to change all 
> the  to  but find that my 
> custom validators are not being found.
> 1. Is there a doc on upgrading the validator?
> 2. Anyone ever heard of this happening?

I believe requiredif is being deprecated in favor of validwhen.  However, the 
only reference I see is the key you are using, so that may not be valid.

http://struts.apache.org/userGuide/dev_validator.html

Other then that, everything else looks okay.  Do you have a specific error 
you're getting?



> 
> Here is  my  validator:
> ==
>depends="isequalif">
>key="requiredif.productSelectionRequired"/>
>key="form.businessLineSelected"/>
>   
>   
> thisValue[0]
>   true
>   
>   
>   field[0]
>   
> businessCardSelected
>   
>   
>   
> fieldTest[0]
>   EQUAL
>   
>   
>   
> fieldValue[0]
>   false
>   
>   
>   field[1]
>   
> businessSecuredCardSelected
>   
>   
>   
> fieldTest[1]
>   EQUAL
>   
>   
>   
> fieldValue[1]
>   false
>   
>   
>   field[2]
>   
> equipmentExpressSelected
>   
>   
>   
> fieldTest[2]
>   EQUAL
>   
>   
>   
> fieldValue[2]
>   false
>   
>   
>   fieldJoin
>   AND
>   
>   
> 
> And here is my custom validator:
> ===
> classname="com.wf.bd.ice.rules.validation.ICEFieldChecks"
>  method="validateIsEqualIf"
>  methodParams="java.lang.Object,
>
> org.apache.commons.validator.ValidatorAction,
>org.apache.commons.validator.Field,
>
> org.apache.struts.action.ActionMessages,
>org.apache.commons.validator.Validator,
>javax.servlet.http.HttpServletRequest"
>  msg="isequalif.default">
>   
> 
> 
> and here is the method in our ICEFieldChecks:
> ===
> 
> public static boolean validateIsEqualIf(
> Object bean, ValidatorAction va, Field field, 
> ActionMessages errors,
> org.apache.commons.validator.Validator validator,
> HttpServletRequest request
> ) {
> Object form =
> validator.getResource(
> org.apache.commons.validator.Validator.BEAN_KEY
> );
> String value = null;
> 
> if(isString(bean)) {
> value = (String) bean;
> } else {
> value = ValidatorUtil.getValueAsString(bean, 
> field.getProperty());
> }
> 
> if(value == null) {
> value = "";
> }
> 
> boolean required = false;
> java.util.Collection theseValues = new ArrayList();
> 
> int j = 0;
> 
> while(
> !GenericValidator.isBlankOrNull(
> field.getVarValue("thisValue[" + j + "]")
> )
> ) {
> theseValues.add(field.getVarValue("thisValue[" + 
> j++ + "]"));
> }
> 
> if(theseValues.isEmpty()) {
> return true;
> }
> 
> int i = 0;
> String fieldJoin = "AND";
> 
> 
> if(!GenericValidator.isBlankOrNull(field.getVarValue("fieldJoin"))) {
> fieldJoin = field.getVarValue("fieldJoin");
> }
> 
> if(

RE: how to save last 5 searches in the cookie?

2004-12-13 Thread Jim Barrows


> -Original Message-
> From: Yadav, Ganesh [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 11:00 AM
> To: [EMAIL PROTECTED]
> Subject: how to save last 5 searches in the cookie?
> 
> 
> Hello All.
> 
> I have a requirement to save last 5 searches in the cookie.
> 
> In other words, saving last 5 set of "search param- value" pairs in
> cookie. 
> 
> Retrieve them and show these 5 searches in Combo box. So whenever user
> select one, he should have his search screen params filled up from the
> cookie values stored.
> 
>  
> 
> Can some one guide me on this as to how I can get this done?

Creating and storing cookies in JSP/Servlets can be found here:
http://java.sun.com/webservices/docs/1.4/api/javax/servlet/http/Cookie.html
Which is actually the cookie class, and the doc shows you how to add it to the 
request.
If you want me to write the code for you, that's $50.00US/hour, and a 4 hour 
minimum charge.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ActionMessages and Struts-EL Tags

2004-12-13 Thread Hariharan V
In my application I want to differentiate b/w error and normal messages

Here is the code in my Controller 


ActionMessages messages = new ActionMessages();
ActionMessages errors = new ActionMessages();

messages.add("sample.message", new ActionMessage("sample.message"));
messages.add("sample.message2", new
ActionMessage("sample.message2"));

errors.add("sample.error", new ActionMessage("sample.error"));
errors.add("sample.error2", new ActionMessage("sample.error2"));

super.addMessages(req, messages);
super.addErrors(req, errors);


in my jsp I have added following piece of code




 
 

But the problem is that I see only error messages in the output , 
I don't get hold of my normal messages using  tag.

Sample Error
Sample Error2

Sample Error
Sample Error2 

Resource Bundle entries

sample.error=Sample Error
sample.error2=Sample Error2
sample.message=Sample Message
sample.message2=Sample Message2

Is anything wrong with the way Iam storing errors and normal messages

-- 
-Hari

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: my testimony about Struts

2004-12-13 Thread t t
Thanks, James.

James Mitchell <[EMAIL PROTECTED]> wrote:Looks good T!



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

- Original Message - 
From: "t t" 
To: "Struts Users Mailing List" 
Sent: Monday, December 13, 2004 11:27 AM
Subject: my testimony about Struts


> No question. Struts is a wonderful tool to build websites. I just built 
> one: www.sportslovers.net using Struts.
> Take a look if you are a sports lover or you are a web developer but still 
> doubt Struts.
> Sorry if this post bothered you.
>
>
>
>
> -
> Do you Yahoo!?
> Send a seasonal email greeting and help others. Do good. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Do you Yahoo!?
 Yahoo! Mail - Easier than ever with enhanced search. Learn more.

RE: Validator upgrade?

2004-12-13 Thread Hollaway, Shedrick L CIV TRIREFFAC
What is your error message? Does it work if you keep it as ?

Shed.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 12:56
To: [EMAIL PROTECTED]
Subject: RE: Validator upgrade?


Ping.. Any help here...


Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Validator upgrade?


with the new struts 1.2.4 upgrade, I started to change all the  to  but find that my custom validators are not
being found.
1. Is there a doc on upgrading the validator?
2. Anyone ever heard of this happening?

Here is  my  validator:
==





thisValue[0]
true


field[0]

businessCardSelected



fieldTest[0]
EQUAL



fieldValue[0]
false


field[1]

businessSecuredCardSelected



fieldTest[1]
EQUAL



fieldValue[1]
false


field[2]

equipmentExpressSelected



fieldTest[2]
EQUAL



fieldValue[2]
false


fieldJoin
AND



And here is my custom validator:
===  
  


and here is the method in our ICEFieldChecks:
===

public static boolean validateIsEqualIf(
Object bean, ValidatorAction va, Field field, ActionMessages
errors,
org.apache.commons.validator.Validator validator,
HttpServletRequest request
) {
Object form =
validator.getResource(
org.apache.commons.validator.Validator.BEAN_KEY
);
String value = null;

if(isString(bean)) {
value = (String) bean;
} else {
value = ValidatorUtil.getValueAsString(bean,
field.getProperty());
}

if(value == null) {
value = "";
}

boolean required = false;
java.util.Collection theseValues = new ArrayList();

int j = 0;

while(
!GenericValidator.isBlankOrNull(
field.getVarValue("thisValue[" + j + "]")
)
) {
theseValues.add(field.getVarValue("thisValue[" + j++ +
"]"));
}

if(theseValues.isEmpty()) {
return true;
}

int i = 0;
String fieldJoin = "AND";

 
if(!GenericValidator.isBlankOrNull(field.getVarValue("fieldJoin"))) {
fieldJoin = field.getVarValue("fieldJoin");
}

if(fieldJoin.equalsIgnoreCase("AND")) {
required = true;
}

while(
!GenericValidator.isBlankOrNull(
field.getVarValue("field[" + i + "]")
)
) {
String dependProp = field.getVarValue("field[" + i + "]");
String dependTest = field.getVarValue("fieldTest[" + i +
"]");
String dependTestValue = field.getVarValue("fieldValue[" + i
+ "]");
String dependIndexed = field.getVarValue("fieldIndexed[" + i
+ "]");

if(dependIndexed == null) {
dependIndexed = "false";
}

String dependVal = null;
boolean thisRequired = false;

 

how to save last 5 searches in the cookie?

2004-12-13 Thread Yadav, Ganesh
Hello All.

I have a requirement to save last 5 searches in the cookie.

In other words, saving last 5 set of "search param- value" pairs in
cookie. 

Retrieve them and show these 5 searches in Combo box. So whenever user
select one, he should have his search screen params filled up from the
cookie values stored.

 

Can some one guide me on this as to how I can get this done?

Any code e.g. will really help.

 

Thanks in advance

 

G

 

 

 

 

 



RE: Validator upgrade?

2004-12-13 Thread Mick.Knutson
Ping.. Any help here...


Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation."




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Validator upgrade?


with the new struts 1.2.4 upgrade, I started to change all the  to 
 but find that my custom validators are not being found.
1. Is there a doc on upgrading the validator?
2. Anyone ever heard of this happening?

Here is  my  validator:
==




thisValue[0]
true


field[0]

businessCardSelected


fieldTest[0]
EQUAL


fieldValue[0]
false


field[1]

businessSecuredCardSelected


fieldTest[1]
EQUAL


fieldValue[1]
false


field[2]

equipmentExpressSelected


fieldTest[2]
EQUAL


fieldValue[2]
false


fieldJoin
AND



And here is my custom validator:
===  
  


and here is the method in our ICEFieldChecks:
===

public static boolean validateIsEqualIf(
Object bean, ValidatorAction va, Field field, ActionMessages errors,
org.apache.commons.validator.Validator validator,
HttpServletRequest request
) {
Object form =
validator.getResource(
org.apache.commons.validator.Validator.BEAN_KEY
);
String value = null;

if(isString(bean)) {
value = (String) bean;
} else {
value = ValidatorUtil.getValueAsString(bean, field.getProperty());
}

if(value == null) {
value = "";
}

boolean required = false;
java.util.Collection theseValues = new ArrayList();

int j = 0;

while(
!GenericValidator.isBlankOrNull(
field.getVarValue("thisValue[" + j + "]")
)
) {
theseValues.add(field.getVarValue("thisValue[" + j++ + "]"));
}

if(theseValues.isEmpty()) {
return true;
}

int i = 0;
String fieldJoin = "AND";

if(!GenericValidator.isBlankOrNull(field.getVarValue("fieldJoin"))) {
fieldJoin = field.getVarValue("fieldJoin");
}

if(fieldJoin.equalsIgnoreCase("AND")) {
required = true;
}

while(
!GenericValidator.isBlankOrNull(
field.getVarValue("field[" + i + "]")
)
) {
String dependProp = field.getVarValue("field[" + i + "]");
String dependTest = field.getVarValue("fieldTest[" + i + "]");
String dependTestValue = field.getVarValue("fieldValue[" + i + "]");
String dependIndexed = field.getVarValue("fieldIndexed[" + i + "]");

if(dependIndexed == null) {
dependIndexed = "false";
}


RE: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread Hollaway, Shedrick L CIV TRIREFFAC
Uma, this should help, based on tomcat\webapps\jg1\articles\Template.jsp





Shed.
-Original Message-
From: uma.k [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 7:21
To: 'Struts Users Mailing List'
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


Eddie,
How do I set my path in struts-config.xml file when my app is in
tomcat\webapps\jg1\articles\Template.jsp

Is this correct?




Uma

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 5:30 PM
To: Struts Users Mailing List
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection


Uma,

That's being generated by the RequestProcessor.  That means your
ActionServlet instance loaded and is probably setup right.

Do you have an action in your struts-config with a path of "/test1"?
I'm
betting you don't.  You probably want to be using "/testme.do", since
that's
what you've got setup.

Have you tried installing the example application?  You could tinker
with
that to get a feel for the most elementary pieces of Struts and then go
from
there.  There's also a blank application (struts-blank.war) that's a
boiler-plate web application.  That might be a good place to start your
own
test.

Good Luck,

Eddie

- Original Message -
From: "uma.k" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 5:52 AM
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


> Ok, I now executed the test1.do by removing all un necessary codes and
I
> get
> this error
>
> The requested resource (Invalid path /test1 was requested) is not
> available.
>
> Why is the context not found for .do file?
>
> my struts-config.xml file
>
> 
>
>   "-//Apache Software Foundation//DTD Struts Configuration
1.2//EN"
>
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>
>
> 
>
> 
> type = "org.apache.struts.actions.ForwardAction"
>parameter = "/testme.jsp"
>validate = "false" >
>
> 
>
> 
>
>
> 
>
>
> Uma
>
> -Original Message-
> From: Sunny [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 3:23 PM
> To: Struts Users Mailing List
> Subject: Re: Cannot find ActionMappings or ActionFormBeans collection
>
>
> hi,
>
> there is *no need* to add struts-bean.tld as she is *not* using any
bean
> tags
>
> uma, please paste your tomcat's class path. mail your
> setclasspath.sh(linux) or setclasspath.bat(windows) or whatever file
in
> which you are setting tomcat's class path
>
>
> also try creating a normal jsp ( no form submissions)
>
> and an action similar to
>
>  type = "org.apache.struts.actions.ForwardAction"
> parameter = "/testme.jsp"
> validate = "false" >
> 
> 
>
> testme.jsp
>
> 
> 
>  hello your test is successful 
> 
> 
>
>
> call the url with .do (testme.do) and paste the results. in this way
we
> can know whether its the problem with struts itself or your page.
>
>
> regards,
> Sunny
>
>
> -
> 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]
>



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0450-1, 12/09/2004
Tested on: 12/13/2004 6:00:06 AM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com




-
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]



smime.p7s
Description: S/MIME cryptographic signature


Re: my testimony about Struts

2004-12-13 Thread James Mitchell
Looks good T!

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "t t" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 11:27 AM
Subject: my testimony about Struts


No question. Struts is a wonderful tool to build websites. I just built 
one: www.sportslovers.net using Struts.
Take a look if you are a sports lover or you are a web developer but still 
doubt Struts.
Sorry if this post bothered you.


-
Do you Yahoo!?
Send a seasonal email greeting and help others. Do good. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Validator question

2004-12-13 Thread Jim Barrows


> -Original Message-
> From: Vinicius Caldeira Carvalho
> [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 11:32 AM
> To: Struts Users Mailing List
> Subject: Validator question
> 
> 
> Hi there. Correct if I'm wrong, validator returns to the 
> input jsp after 
> a validation fails right?
> Now if my jsp was called by an action that receives 
> parameters throught 
> the request, how can I handle this?

This is a problem with how validation works with struts.  The list history has 
quite a few discussions on this.  My typical solution is to put the form bean 
into session scope, rather then request scope.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validator question

2004-12-13 Thread Vinicius Caldeira Carvalho
Hi there. Correct if I'm wrong, validator returns to the input jsp after 
a validation fails right?
Now if my jsp was called by an action that receives parameters throught 
the request, how can I handle this?

Imagine this flow:
Search Action (receives parameters on the request) -> forwards to jsp 
page -> Validation Action (it fails, lets go back to jsp page, but wait, 
what was the parameters again???)

Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


my testimony about Struts

2004-12-13 Thread t t
No question. Struts is a wonderful tool to build websites. I just built one: 
www.sportslovers.net using Struts.
Take a look if you are a sports lover or you are a web developer but still 
doubt Struts.
Sorry if this post bothered you.


 

-
Do you Yahoo!?
 Send a seasonal email greeting and help others. Do good.

RE: Form submission and javascript

2004-12-13 Thread David Bolsover
Ryan

It is interesting that you should be working on this.. I have a similar 
requirement - I need to forward to a NAMED page once my action has completed - 
I do not know which page prior to form submittal. from what I have read so far, 
there is no 'struts' solution - you have to use Javascript.

I have not tried yet - but I suspect your problem is with the html:form element 
- try changing name="processMainForm" to method="processMainForm"

db


-Original Message-
From: Ryan julius [mailto:[EMAIL PROTECTED]
Sent: 13 December 2004 13:45
To: [EMAIL PROTECTED]
Subject: Form submission and javascript


Hello,
 
I am trying to submit a form to an action, with the resulting page displayed in 
a child window.
 

function toChildWondow(actionName, methodeAppelee, form, nomFenetre, largeur, 
hauteur ) {
 var windowFeatures = 
"scrollbars=yes,resizable=no,width="+largeur+",height="+hauteur;
 var sUrl = 
'<%=request.getContextPath()%>'+"/"+nomAction+"?dispatch="+methodeAppelee;
 alert("sUrl : "+sUrl);
 popUp = window.open("","nomFenetre",windowFeatures);
 alert("document.form : "+form);
 popUp = window.open("",nomFenetre,windowFeatures);
 form.target='nomFenetre';   
 form.action='sUrl';   
 form.submit();   
 popUp.focus();
}


   
   
   
 
==
==

   
   
   
 


I have the following error on form.submit(); "This object can not manage this 
property or mathod"
Please tell me what is wrong with that Javascript. 
What is the easy way of submitting a form and display the forwarded page to a 
child window.
Thanks.


-
 Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail

  Avec Yahoo! faites un don et soutenez le Téléthon !
=== 
This message has been scanned for viruses and dangerous 
content using Vet Anti-Virus Protection and is believed 
to be clean. 
===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts application

2004-12-13 Thread Freddy Villalba A.
Hello everyone,

I'm facing some problems with Struts on a Tomcat server. I'm looking for my
own answers. However, input from both groups would be appreciated.

I just downloaded Tomcat v5.5 and installed on an XP Professional box. No
problem.

I've been running and testing without trouble a Struts applications on a
Tomcat 4.0 server as well as a Tomcat 4.1 server, both of them shipped and
integrated with JBuilderX IDE (Java 1.4). In the past, I've deployed several
other web applications on standalone servers (Tomcats, Weblogics, JBoss...)
after developing and testing them on these "embedded" servers and never
faced any (important) problems.

Now, I tried to deploy that very same web application on the Tomcat 5.5
server. It just wouldn't work. There seems to be some kind of problem with
Struts' Tag Libraries. "Normal" JSPs and other non-Struts files are
succesfully served. Something important: I used J2SE 5.0, since it's a
REQUISITE for running v5.5 (and I haven't been able to find the famous
"RUNNING.txt" file - or any other document, for what it matters - where
those details for using v5.5 along with Java v1.4 are professedly
explained).

Any comments anybody? (If somebody believes the stack trace would be of some
help in this case I wouldn't mind provinding it... I just didn't want to
flood you with unnecesary (?) data)

At this moment, I'm trying to find out what's going on with the tomcat v5.5
deployment. However, I thought it would also be a good debugging practice to
install a standalone Tomcat v4.1 server and make sure that, at least, the
web application works just as fine as it did with that one shipped with
JBuilderX. Hence, another question: what's the difference between:

jakarta-tomcat-4.1.31-LE-jdk14.exe

and

jakarta-tomcat-4.1.31.exe

???

Thanks in advance.

Regards,
Freddy.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cascading messageresource lookups

2004-12-13 Thread James Mitchell
Did you ever get a response on this?

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "Wayne Christian" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 09, 2004 10:04 AM
Subject: cascading messageresource lookups


We've got a situation where a customer wants to have the option of
providing overrides to some of the contents of our message resource
file.  This could occur during rebranding, if a customer essentially
sells our software under their own brand name.  We're trying to see if
its possible for Struts to have a MessageResource lookup system where
when provided a key, it looks in fileA first and if that key is not
found, then it looks in fileB.  This is sort of how the Properties
class works, in that you can construct a default location that gets
searched if the loaded properties dont have the key.
Has anyone tried something like this?  Are there any thoughts about
what it might take to subclass MessageResources
(PropertyMessageResources?) or the factory in order to provide this
feature?  How would one hook this into struts so that struts would use
our overridden message class instead of its own?

-
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: Problem with starting the samplecode-urgent help

2004-12-13 Thread Sebastián Gorgo
You must change "strutsTutorial.UserRegistrationAction" to 
"StrutsTutorial.UserRegistrationAction".
Its case-sensitive.

S.B. wrote:
I have a created a subclass of Action, called UserRegistrationAction:
package StrutsTutorial;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class UserRegistrationAction extends Action{
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception{

return mapping.findForward("success");
}
}

I have following struts-config file: (i have added the last action
mapping



)
















--
The jsp file is just like hello world jsp.
I have UserRegistrationAction.class in the directory structure at:
C:\\webapps\strutsTutorial\WEB-INF\classes\StrutsTutorial\UserRegist
rationAction.class
Ant is ok. Building ok. Deployed war on tomcat 4.1. but-
---
What's the problem? When I give :
http://localhost:8080/strutsTutorial/UserRegistration.do it gives me
error:
Status report
message No action instance for path /UserRegistration could be created
description The server encountered an internal error (No action instance
for path /UserRegistration could be created) that prevented it from
fulfilling this request.
=--
Following is command line messages:
-
SEVERE: No action instance for path /UserRegistration could be created
java.lang.ClassNotFoundException: strutsTutorial.UserRegistrationAction
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1443)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1289)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
a:207)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:231)
at
org.apache.struts.action.RequestProcessor.processActionCreate(Request
Processor.java:326)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:268)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

-
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]


Problem with starting the samplecode-urgent help

2004-12-13 Thread S.B.
I have a created a subclass of Action, called UserRegistrationAction:
package StrutsTutorial;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class UserRegistrationAction extends Action{
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception{

return mapping.findForward("success");  
}
}


I have following struts-config file: (i have added the last action
mapping



)


























--
The jsp file is just like hello world jsp.
I have UserRegistrationAction.class in the directory structure at:
C:\\webapps\strutsTutorial\WEB-INF\classes\StrutsTutorial\UserRegist
rationAction.class
Ant is ok. Building ok. Deployed war on tomcat 4.1. but-
---
What's the problem? When I give :
http://localhost:8080/strutsTutorial/UserRegistration.do it gives me
error:

Status report

message No action instance for path /UserRegistration could be created

description The server encountered an internal error (No action instance
for path /UserRegistration could be created) that prevented it from
fulfilling this request.
=--
Following is command line messages:
-
SEVERE: No action instance for path /UserRegistration could be created
java.lang.ClassNotFoundException: strutsTutorial.UserRegistrationAction
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1443)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1289)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
a:207)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:231)
at
org.apache.struts.action.RequestProcessor.processActionCreate(Request
Processor.java:326)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:268)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: about logic tag

2004-12-13 Thread Webmaster
Pramod (et al)

Please refer to the "Guidelines for Struts Mailing List" for further posts
http://struts.apache.org/mail.html

Martin Gainty

-Original message-
From: Andrew Hill [EMAIL PROTECTED]
Date: Mon, 13 Dec 2004 06:15:33 -0500
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: about logic tag

> Are there stairs in your house?
> 
> Pramod wrote:
> 
> > I have done the steps but i didn't get results
> > 
> > -
> > 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]
> 


This message and its contents are intended for receiver. Information contained 
within is protected by Law. If you have received this message in error please 
delete it and notify [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread S.B.
I am having similar problems, check my email today sent. DO you know
what's causing my problem?

-Original Message-
From: uma.k [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 13, 2004 6:39 AM
To: 'Struts Users Mailing List'
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


I am putting my jsp's under tomcat\jg1\articles\*.jsp

Uma

-Original Message-
From: S.B. [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 7:51 PM
To: 'Struts Users Mailing List'
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


Where are you putting jsp file? In which folder? Is it under pages
directory?


-
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: [OT - Friday]Corporate Stupidity

2004-12-13 Thread fzlists
Well, certainly a dishonest company in any case is a bad thing.  If there is a 
law on the book, as there is in my sector, that requires certain things of 
them, then there's not much you can complain about as far as the company goes, 
but complain all you want to your government representatives of course.  And if 
there's NOT a law on the books but it's not an unreasonable request, as is the 
case I think in some sensitive positions, then so be it.  But if the company is 
going to flat-out lie about the need, that's obviously a cause for concern, 
forget what the request was in the first place!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, December 13, 2004 8:50 am, Derek Broughton said:
> On Sunday 12 December 2004 11:40, Frank W. Zammetti wrote:
>> This might seem like an obvious comment, but this depends on what type
>> of job it is.
>>
>> I work for one of the largest financial companies in the U.S. in the
>> mutual fund sector.  There are real, legitimate concerns with so much
>> money involved.  To me, asking for my fingerprints wasn't an outrageous
>> request.  I think I could have argued it was superfluous, but not
>> unreasonable.
> 
> In my case, I'm doing contract work for a federal (Canadian) government
> department - nothing remotely sensitive, though there is a small amount of
> confidential information, as there probably is in any IT position.  I
> didn't
> have nearly as much problem with the demand for my fingerprints as their
> insistence that federal law requires them to keep my fingerprints on file
> after they've served their purpose (which it doesn't).
> --
> derek
> 
> -
> 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: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread Webmaster
Sunny:

If you have any errors in your Jsp pages 
It is always helpful to make sure the JSP pages compile without errors thru 
Eclipse, JDeveloper or JBuilder
Also 
make sure your package spec for ArticleAction is 'articles'
of course Make the changes to struts-config.xml below..
 
Please keep us informed,

Martin Gainty

-Original message-
From: Sunny [EMAIL PROTECTED]
Date: Mon, 13 Dec 2004 02:08:02 -0500
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection

> Do following changes:
> 
> your struts-config:
> 
> 
> 
>path="/Article"
>   type="articles.ArticleAction"
>   scope="request"
>   validate="true"
>   parameter="/Template.jsp">
>   
>   
> 
>path="/ArticleUpdate"
>   type="articles.ArticleAction"
>   name="articleForm"
>   scope="request"
>   validate="true"
>   input="/Template.jsp">
>   
>   
>   
> 
> 
> 
> 
> your Template.jsp
> 
> .
> 
> 
> 
> uma.k wrote:
> 
> >Hi Bush,
> >Its confusing me. How do I call an Action without the Template.jsp form
> >being submitted? My Action and ActionForm are i web-inf/classes/articles
> >folder. My Template.jsp will take that information from the user and send it
> >to the respective jsp based on the "execute" method.
> >
> >If I am wrong please correct me.
> >
> >Thanks
> >Uma
> >  
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


This message and its contents are intended for receiver.  If you have received 
this message in error please delete it and notify [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form submission and javascript

2004-12-13 Thread fzlists
If I'm understanding your question properly, the easiest way is just to add the 
attribute target="_new" in your  tag.  I don't know how that translates 
to the Struts  tag as I tend to not use Struts tags, but for a plain-jane 
 tag, it should get the job done.

I have heard that the target attribute is no longer valid HTML, but I haven't 
bothered to look up if that's accurate or not.  Even if it is, I doubt any 
browser won't support it these days, although in the future who knows.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, December 13, 2004 8:45 am, Ryan julius said:
> Hello,
> 
> I am trying to submit a form to an action, with the resulting page
> displayed in a child window.
> 
> 
> function toChildWondow(actionName, methodeAppelee, form, nomFenetre,
> largeur, hauteur ) {
>  var windowFeatures =
> "scrollbars=yes,resizable=no,width="+largeur+",height="+hauteur;
>  var sUrl =
> '<%=request.getContextPath()%>'+"/"+nomAction+"?dispatch="+methodeAppelee;
>  alert("sUrl : "+sUrl);
>  popUp = window.open("","nomFenetre",windowFeatures);
>  alert("document.form : "+form);
>  popUp = window.open("",nomFenetre,windowFeatures);
>  form.target='nomFenetre';
>  form.action='sUrl';
>  form.submit();
>  popUp.focus();
> }
> 
>  type="com.inet.form.ProcessMainForm">
> href="Javascript:toChildWindow('ProcessMainAction.do','doDataProcess',
> 'this.form', 'myChildWindow',200, 400)">
>border="0"/>
>
> 
> ==
> ==
>  type="com.inet.form.ProcessChildForm">
> href="Javascript:toChildWindow('ProcessChildAction.do','doDataProcess',
> 'this.processChildForm', 'myChildWindow',200, 400)">
>border="0"/>
>
> 
> 
> 
> I have the following error on form.submit(); "This object can not manage
> this property or mathod"
> Please tell me what is wrong with that Javascript.
> What is the easy way of submitting a form and display the forwarded page
> to a child window.
> Thanks.
> 
> 
> -
>  D?couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos
> mails !
> Cr?ez votre Yahoo! Mail
> 
>   Avec Yahoo! faites un don et soutenez le T?l?thon !

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread Dakota Jack
One calls actions with urls ending in things like myAction.do.  The
".do" tells the appllication process an action.  The action then
passes the request on to an appropriate response object creator, like
a JSP page, usually with an ActionForward.  This is contrasted with
just calling the JSP page directly.  Actions are called BEFORE NOT
AFTER target JSPs.

Jack


On Mon, 13 Dec 2004 12:15:33 +0530, uma.k <[EMAIL PROTECTED]> wrote:
> Hi Bush,
> Its confusing me. How do I call an Action without the Template.jsp form
> being submitted? My Action and ActionForm are i web-inf/classes/articles
> folder. My Template.jsp will take that information from the user and send it
> to the respective jsp based on the "execute" method.
> 
> If I am wrong please correct me.
> 
> Thanks
> Uma.
> 
> 
> 
> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 11:54 AM
> To: Struts Users Mailing List
> Subject: Re: Cannot find ActionMappings or ActionFormBeans collection
> 
> In order to have a request properly setup, you need to be going through the
> controller.  To go through the controller, you need to be viewing an action
> instead of a JSP page.  Try invoking an action that uses the template and
> see if the problem persists.
> 
> You can't expect Struts to set things up for a page it doesn't know you're
> requesting, and it can't know you're requesting the page unless you go
> through the controller :-)
> 
> Good Luck,
> 
> Eddie
> 
> - Original Message -
> From: "uma.k" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Sunday, December 12, 2004 11:00 PM
> Subject: RE: Cannot find ActionMappings or ActionFormBeans collection
> 
> > Hi David,
> > That error is displayed while I am loading my Template.jsp itself.
> > http://localhost:8080/test/Template.jsp Not able to see the GUI itself.
> >
> > Uma
> >
> > -Original Message-
> > From: David G. Friedman [mailto:[EMAIL PROTECTED]
> > Sent: Monday, December 13, 2004 10:28 AM
> > To: Struts Users Mailing List
> > Subject: RE: Cannot find ActionMappings or ActionFormBeans collection
> >
> >
> > Is that error at start-up or when you are invoking an action by going to a
> > Struts *.do action through a URL?
> >
> > Regards,
> > David
> >
> > -Original Message-
> > From: uma.k [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, December 12, 2004 11:54 PM
> > To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> > Subject: RE: Cannot find ActionMappings or ActionFormBeans collection
> >
> >
> > Hi Sunny,
> > Thanks for the reply. The classpath is set right and my struts-config.xml
> > file looks the same way as you posted, I just removed the un necessary
> > tags.
> > Any ideas now?
> >
> > Uma
> >
> > -Original Message-
> > From: Sunny [mailto:[EMAIL PROTECTED]
> > Sent: Monday, December 13, 2004 10:04 AM
> > To: Struts Users Mailing List
> > Subject: Re: Cannot find ActionMappings or ActionFormBeans collection
> >
> >
> > hi,
> > Ensure that your are having your struts-config  like the one below. And
> > also please check your class path
> >
> > regards,
> > Sunny
> >
> >
> > 
> >  > Struts Configuration 1.1//EN"
> > "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>
> > 
> >  
> >
> >  
> >
> >  
> > >path="/Article"
> >type="articles.ArticleAction"
> >name="articleForm"
> >scope="request"
> >validate="true"
> >input="/Template.jsp">
> >  
> >  
> >
> >  
> >
> > 
> >
> >
> > uma.k wrote:
> >
> >>Hello,
> >>I am new to Struts, my first application is giving me this error. I am
> > using
> >>Tomcat 4.0
> >>and struts 1.2.4. Where did I go wrong? Please help me.
> >>javax.servlet.ServletException: Cannot find ActionMappings or
> >>ActionFormBeans collection
> >>
> >>
> >>Here are my files
> >>
> >>-Template.jsp
> >>
> >><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> >>
> >>
> >>
> >>
> >>
> >>
> >>  
> >>Keywords
> >> 
> >>  
> >>
> >>Submit
> >>
> >>
> >>
> >>
> >> web.xml
> >>
> >>
> >> >>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> >>"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> >>
> >>
> >>
> >>  
> >>  
> >>action
> >>org.apache.struts.action.ActionServlet
> >>
> >>  config
> >>  /WEB-INF/struts-config.xml
> >>
> >>
> >>  debug
> >>  2
> >>
> >>
> >>  detail
> >>  2
> >>
> >>2
> >>  
> >>
> >>  
> >>  
> >>action
> >>*.do
> >>  
> >>
> >>  
> >>  
> >>/WEB-INF/struts-bean
> >>/WEB-INF/struts-bean.tld
> >>  
> >>
> >>  
> >>/WEB-INF/struts-html
> >>/WEB-INF/struts-html.tld
> >>  
> >>
> >>  
> >>/WEB-INF/struts-logic
> >>/WEB-INF/struts-logic.tld
> >>  
> >>
> >>  
> >>/WEB-INF/struts-nested
> >>/WEB-INF/struts-nested.tld
> >>  
> >>
> >>  
> >>/WEB-INF/struts-tiles
> >>/WEB-INF/struts-tiles.tld
> >>  
> >>
> >>
> >>
> >

RE: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread uma.k
I am putting my jsp's under tomcat\jg1\articles\*.jsp

Uma

-Original Message-
From: S.B. [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 7:51 PM
To: 'Struts Users Mailing List'
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


Where are you putting jsp file? In which folder? Is it under pages
directory?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form submission and javascript

2004-12-13 Thread Daniel H A Lima
Hi Ryan.

Have you tried 

Javascript:toChildWindow('ProcessMainAction.do','doDataProcess',
document.forms[0], 'myChildWindow',200, 400)

instead of 

Javascript:toChildWindow('ProcessMainAction.do','doDataProcess',
'this.form', 'myChildWindow',200, 400)

?

I think that the property "form" is only available to
form elements (like inputs, radios and buttons).

 --- Ryan julius <[EMAIL PROTECTED]> escreveu: 
> Hello,
>  
> I am trying to submit a form to an action, with the
> resulting page displayed in a child window.
>  
>  TYPE="text/javascript">
> function toChildWondow(actionName, methodeAppelee,
> form, nomFenetre, largeur, hauteur ) {
>  var windowFeatures =
>
"scrollbars=yes,resizable=no,width="+largeur+",height="+hauteur;
>  var sUrl =
>
'<%=request.getContextPath()%>'+"/"+nomAction+"?dispatch="+methodeAppelee;
>  alert("sUrl : "+sUrl);
>  popUp =
> window.open("","nomFenetre",windowFeatures);
>  alert("document.form : "+form);
>  popUp = window.open("",nomFenetre,windowFeatures);
>  form.target='nomFenetre';   
>  form.action='sUrl';   
>  form.submit();   
>  popUp.focus();
> }
> 
>  name="processMainForm"
> type="com.inet.form.ProcessMainForm">
>
href="Javascript:toChildWindow('ProcessMainAction.do','doDataProcess',
> 'this.form', 'myChildWindow',200, 400)">
>width="26" height="25" border="0"/> 
>
>  
> ==
> ==
>  name="processChildForm"
> type="com.inet.form.ProcessChildForm">
>
href="Javascript:toChildWindow('ProcessChildAction.do','doDataProcess',
> 'this.processChildForm', 'myChildWindow',200, 400)">
>width="26" height="25" border="0"/> 
>
>  
> 
> 
> I have the following error on form.submit(); "This
> object can not manage this property or mathod"
> Please tell me what is wrong with that Javascript. 
> What is the easy way of submitting a form and
> display the forwarded page to a child window.
> Thanks.
> 
>   
> -
>  Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace
> de stockage pour vos mails !
> Créez votre Yahoo! Mail
> 
>   Avec Yahoo! faites un don et soutenez le Téléthon
! 





___ 
Yahoo! Mail - Agora com 250MB de espaço gratuito. Abra 
uma conta agora! http://br.info.mail.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread S.B.
Where are you putting jsp file? In which folder? Is it under pages
directory?
--- Begin Message ---
Title: RE: Cannot find ActionMappings or ActionFormBeans collection






Hi Bush,

Its confusing me. How do I call an Action without the Template.jsp form

being submitted? My Action and ActionForm are i web-inf/classes/articles

folder. My Template.jsp will take that information from the user and send it

to the respective jsp based on the "execute" method.


If I am wrong please correct me.


Thanks

Uma


-Original Message-

From: Eddie Bush [mailto:[EMAIL PROTECTED]]

Sent: Monday, December 13, 2004 11:54 AM

To: Struts Users Mailing List

Subject: Re: Cannot find ActionMappings or ActionFormBeans collection



In order to have a request properly setup, you need to be going through the

controller.  To go through the controller, you need to be viewing an action

instead of a JSP page.  Try invoking an action that uses the template and

see if the problem persists.


You can't expect Struts to set things up for a page it doesn't know you're

requesting, and it can't know you're requesting the page unless you go

through the controller :-)


Good Luck,


Eddie


- Original Message -

From: "uma.k" <[EMAIL PROTECTED]>

To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>

Sent: Sunday, December 12, 2004 11:00 PM

Subject: RE: Cannot find ActionMappings or ActionFormBeans collection



> Hi David,

> That error is displayed while I am loading my Template.jsp itself.

> http://localhost:8080/test/Template.jsp Not able to see the GUI itself.

>

> Uma

>

> -Original Message-

> From: David G. Friedman [mailto:[EMAIL PROTECTED]]

> Sent: Monday, December 13, 2004 10:28 AM

> To: Struts Users Mailing List

> Subject: RE: Cannot find ActionMappings or ActionFormBeans collection

>

>

> Is that error at start-up or when you are invoking an action by going to a

> Struts *.do action through a URL?

>

> Regards,

> David

>

> -Original Message-

> From: uma.k [mailto:[EMAIL PROTECTED]]

> Sent: Sunday, December 12, 2004 11:54 PM

> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]

> Subject: RE: Cannot find ActionMappings or ActionFormBeans collection

>

>

> Hi Sunny,

> Thanks for the reply. The classpath is set right and my struts-config.xml

> file looks the same way as you posted, I just removed the un necessary

> tags.

> Any ideas now?

>

> Uma

>

> -Original Message-

> From: Sunny [mailto:[EMAIL PROTECTED]]

> Sent: Monday, December 13, 2004 10:04 AM

> To: Struts Users Mailing List

> Subject: Re: Cannot find ActionMappings or ActionFormBeans collection

>

>

> hi,

> Ensure that your are having your struts-config  like the one below. And

> also please check your class path

>

> regards,

> Sunny

>

>

> 

> 

> Struts Configuration 1.1//EN"

> "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">

> 

>  

>    

>  

>

>  

>    

>    path="/Article"

>    type="articles.ArticleAction"

>    name="articleForm"

>    scope="request"

>    validate="true"

>    input="/Template.jsp">

>  

>  

>    

>  

>

> 

>

>

> uma.k wrote:

>

>>Hello,

>>I am new to Struts, my first application is giving me this error. I am

> using

>>Tomcat 4.0

>>and struts 1.2.4. Where did I go wrong? Please help me.

>>javax.servlet.ServletException: Cannot find ActionMappings or

>>ActionFormBeans collection

>>

>>

>>Here are my files

>>

>>-Template.jsp

>>

>><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

>>

>>

>>

>>

>>

>>

>>  

>>    Keywords

>>     

>>  

>>

>>Submit

>>

>>

>>

>>

>> web.xml

>>

>>

>>

>>    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"

>>    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

>>

>>

>>

>>  

>>  

>>    action

>>    org.apache.struts.action.ActionServlet

>>    

>>  config

>>  /WEB-INF/struts-config.xml

>>    

>>    

>>  debug

>>  2

>>    

>>    

>>  detail

>>  2

>>    

>>    2

>>  

>>

>>  

>>  

>>    action

>>    *.do

>>  

>>

>>  

>>  

>>    /WEB-INF/struts-bean

>>    /WEB-INF/struts-bean.tld

>>  

>>

>>  

>>    /WEB-INF/struts-html

>>    /WEB-INF/struts-html.tld

>>  

>>

>>  

>>    /WEB-INF/struts-logic

>>    /WEB-INF/struts-logic.tld

>>  

>>

>>  

>>    /WEB-INF/struts-nested

>>    /WEB-INF/struts-nested.tld

>>  

>>

>>  

>>    /WEB-INF/struts-tiles

>>    /WEB-INF/struts-tiles.tld

>>  

>>

>>

>>

>>

>>

>>struts-config.xml

>>

>>

>>    

>>

>>

>>

>>    

>>    path="/Article"

>>    type="articles.ArticleAction"

>>    name="articleForm"

>>    scope="request"

>>    validate="true"

>>    input="/Template.jsp">

>> 

>> 

>> 

>>

>>

>>

>>

>>

>>

>>--ArticleForm.java

>>

>>package articles;

>>

>>import javax.servlet.http.HttpServletRequest;

>>import org.apache.struts.action.ActionForm;

>>import org.apache.struts.action.ActionMapping;

>>impo

Re: [OT - Friday]Corporate Stupidity

2004-12-13 Thread Derek Broughton
On Sunday 12 December 2004 11:40, Frank W. Zammetti wrote:
> This might seem like an obvious comment, but this depends on what type
> of job it is.
>
> I work for one of the largest financial companies in the U.S. in the
> mutual fund sector.  There are real, legitimate concerns with so much
> money involved.  To me, asking for my fingerprints wasn't an outrageous
> request.  I think I could have argued it was superfluous, but not
> unreasonable.

In my case, I'm doing contract work for a federal (Canadian) government 
department - nothing remotely sensitive, though there is a small amount of 
confidential information, as there probably is in any IT position.  I didn't 
have nearly as much problem with the demand for my fingerprints as their 
insistence that federal law requires them to keep my fingerprints on file 
after they've served their purpose (which it doesn't).
-- 
derek

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Form submission and javascript

2004-12-13 Thread Ryan julius
Hello,
 
I am trying to submit a form to an action, with the resulting page displayed in 
a child window.
 

function toChildWondow(actionName, methodeAppelee, form, nomFenetre, largeur, 
hauteur ) {
 var windowFeatures = 
"scrollbars=yes,resizable=no,width="+largeur+",height="+hauteur;
 var sUrl = 
'<%=request.getContextPath()%>'+"/"+nomAction+"?dispatch="+methodeAppelee;
 alert("sUrl : "+sUrl);
 popUp = window.open("","nomFenetre",windowFeatures);
 alert("document.form : "+form);
 popUp = window.open("",nomFenetre,windowFeatures);
 form.target='nomFenetre';   
 form.action='sUrl';   
 form.submit();   
 popUp.focus();
}


   
   
   
 
==
==

   
   
   
 


I have the following error on form.submit(); "This object can not manage this 
property or mathod"
Please tell me what is wrong with that Javascript. 
What is the easy way of submitting a form and display the forwarded page to a 
child window.
Thanks.


-
 Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail

  Avec Yahoo! faites un don et soutenez le Téléthon !

RE: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread uma.k
Eddie,
How do I set my path in struts-config.xml file when my app is in
tomcat\webapps\jg1\articles\Template.jsp

Is this correct?




Uma

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 5:30 PM
To: Struts Users Mailing List
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection


Uma,

That's being generated by the RequestProcessor.  That means your
ActionServlet instance loaded and is probably setup right.

Do you have an action in your struts-config with a path of "/test1"?  I'm
betting you don't.  You probably want to be using "/testme.do", since that's
what you've got setup.

Have you tried installing the example application?  You could tinker with
that to get a feel for the most elementary pieces of Struts and then go from
there.  There's also a blank application (struts-blank.war) that's a
boiler-plate web application.  That might be a good place to start your own
test.

Good Luck,

Eddie

- Original Message -
From: "uma.k" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 5:52 AM
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


> Ok, I now executed the test1.do by removing all un necessary codes and I
> get
> this error
>
> The requested resource (Invalid path /test1 was requested) is not
> available.
>
> Why is the context not found for .do file?
>
> my struts-config.xml file
>
> 
>
>   "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
>  "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>
>
> 
>
> 
> type = "org.apache.struts.actions.ForwardAction"
>parameter = "/testme.jsp"
>validate = "false" >
>
> 
>
> 
>
>
> 
>
>
> Uma
>
> -Original Message-
> From: Sunny [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 3:23 PM
> To: Struts Users Mailing List
> Subject: Re: Cannot find ActionMappings or ActionFormBeans collection
>
>
> hi,
>
> there is *no need* to add struts-bean.tld as she is *not* using any bean
> tags
>
> uma, please paste your tomcat's class path. mail your
> setclasspath.sh(linux) or setclasspath.bat(windows) or whatever file in
> which you are setting tomcat's class path
>
>
> also try creating a normal jsp ( no form submissions)
>
> and an action similar to
>
>  type = "org.apache.struts.actions.ForwardAction"
> parameter = "/testme.jsp"
> validate = "false" >
> 
> 
>
> testme.jsp
>
> 
> 
>  hello your test is successful 
> 
> 
>
>
> call the url with .do (testme.do) and paste the results. in this way we
> can know whether its the problem with struts itself or your page.
>
>
> regards,
> Sunny
>
>
> -
> 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]
>



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0450-1, 12/09/2004
Tested on: 12/13/2004 6:00:06 AM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com




-
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: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread uma.k
Mohamed,
Yes, Its right, I did not paste all of the code as its lengthy.

Uma

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 5:38 PM
To: Struts Users Mailing List
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection



Hi, In your Action Servlet you are trying to call the  getTtitle() method
from the bean Object. I am
not able to see such a method in the Bean. Is this Right?

ArticleForm articleForm = (ArticleForm)form;
keywords = articleForm.getTitle();


Thanks
Mohamed Abdul Khaliq.M
IT Specialist
SDC2 - Chennai
Ph 8272628 Ext 8098



  "Eddie Bush"
  <[EMAIL PROTECTED]To:   "Struts Users
Mailing List" <[EMAIL PROTECTED]>
  t>   cc:
   Subject:  Re: Cannot find
ActionMappings or ActionFormBeans collection
  12/13/2004 05:30
  PM
  Please respond to
  "Struts Users
  Mailing List"






Uma,

That's being generated by the RequestProcessor.  That means your
ActionServlet instance loaded and is probably setup right.

Do you have an action in your struts-config with a path of "/test1"?  I'm
betting you don't.  You probably want to be using "/testme.do", since that's
what you've got setup.

Have you tried installing the example application?  You could tinker with
that to get a feel for the most elementary pieces of Struts and then go from
there.  There's also a blank application (struts-blank.war) that's a
boiler-plate web application.  That might be a good place to start your own
test.

Good Luck,

Eddie

- Original Message -
From: "uma.k" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 5:52 AM
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


> Ok, I now executed the test1.do by removing all un necessary codes and I
> get
> this error
>
> The requested resource (Invalid path /test1 was requested) is not
> available.
>
> Why is the context not found for .do file?
>
> my struts-config.xml file
>
> 
>
>   "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
>  "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>
>
> 
>
> 
> type = "org.apache.struts.actions.ForwardAction"
>parameter = "/testme.jsp"
>validate = "false" >
>
> 
>
> 
>
>
> 
>
>
> Uma
>
> -Original Message-
> From: Sunny [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 3:23 PM
> To: Struts Users Mailing List
> Subject: Re: Cannot find ActionMappings or ActionFormBeans collection
>
>
> hi,
>
> there is *no need* to add struts-bean.tld as she is *not* using any bean
> tags
>
> uma, please paste your tomcat's class path. mail your
> setclasspath.sh(linux) or setclasspath.bat(windows) or whatever file in
> which you are setting tomcat's class path
>
>
> also try creating a normal jsp ( no form submissions)
>
> and an action similar to
>
>  type = "org.apache.struts.actions.ForwardAction"
> parameter = "/testme.jsp"
> validate = "false" >
> 
> 
>
> testme.jsp
>
> 
> 
>  hello your test is successful 
> 
> 
>
>
> call the url with .do (testme.do) and paste the results. in this way we
> can know whether its the problem with struts itself or your page.
>
>
> regards,
> Sunny
>
>
> -
> 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]
>



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0450-1, 12/09/2004
Tested on: 12/13/2004 6:00:06 AM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






*
This  electronic  mail  message  is  intended  solely  for  the  named
recipients  and  may contain
confidential  and  proprietary  business information of eFunds Corporation
and all its subsidiaries.
If  you  are  not a named recipient, please notify the sender immediately.
You may not disclose the
contents  to  any  other  person;  use  this  electronic  mail message or
its contents for any other
purpose; or further store or copy its contents in any medium

*



-
To unsubscribe, e-mail: [EMAIL

RE: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread uma.k
Hi Eddie,
That worked, Thanks a lot. But this is a simple app, But any ideas on my
real question? on using a html:form?

Uma

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 5:30 PM
To: Struts Users Mailing List
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection


Uma,

That's being generated by the RequestProcessor.  That means your
ActionServlet instance loaded and is probably setup right.

Do you have an action in your struts-config with a path of "/test1"?  I'm
betting you don't.  You probably want to be using "/testme.do", since that's
what you've got setup.

Have you tried installing the example application?  You could tinker with
that to get a feel for the most elementary pieces of Struts and then go from
there.  There's also a blank application (struts-blank.war) that's a
boiler-plate web application.  That might be a good place to start your own
test.

Good Luck,

Eddie

- Original Message -
From: "uma.k" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 5:52 AM
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


> Ok, I now executed the test1.do by removing all un necessary codes and I
> get
> this error
>
> The requested resource (Invalid path /test1 was requested) is not
> available.
>
> Why is the context not found for .do file?
>
> my struts-config.xml file
>
> 
>
>   "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
>  "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>
>
> 
>
> 
> type = "org.apache.struts.actions.ForwardAction"
>parameter = "/testme.jsp"
>validate = "false" >
>
> 
>
> 
>
>
> 
>
>
> Uma
>
> -Original Message-
> From: Sunny [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 3:23 PM
> To: Struts Users Mailing List
> Subject: Re: Cannot find ActionMappings or ActionFormBeans collection
>
>
> hi,
>
> there is *no need* to add struts-bean.tld as she is *not* using any bean
> tags
>
> uma, please paste your tomcat's class path. mail your
> setclasspath.sh(linux) or setclasspath.bat(windows) or whatever file in
> which you are setting tomcat's class path
>
>
> also try creating a normal jsp ( no form submissions)
>
> and an action similar to
>
>  type = "org.apache.struts.actions.ForwardAction"
> parameter = "/testme.jsp"
> validate = "false" >
> 
> 
>
> testme.jsp
>
> 
> 
>  hello your test is successful 
> 
> 
>
>
> call the url with .do (testme.do) and paste the results. in this way we
> can know whether its the problem with struts itself or your page.
>
>
> regards,
> Sunny
>
>
> -
> 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]
>



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0450-1, 12/09/2004
Tested on: 12/13/2004 6:00:06 AM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com




-
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: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread Mohamed . Abdulkhaliq

Hi, In your Action Servlet you are trying to call the  getTtitle() method from 
the bean Object. I am
not able to see such a method in the Bean. Is this Right?

ArticleForm articleForm = (ArticleForm)form;
keywords = articleForm.getTitle();


Thanks
Mohamed Abdul Khaliq.M
IT Specialist
SDC2 - Chennai
Ph 8272628 Ext 8098



   
  "Eddie Bush"  
   
  <[EMAIL PROTECTED]To:   "Struts Users Mailing 
List" <[EMAIL PROTECTED]>  
  t>   cc:  
   
   Subject:  Re: Cannot find 
ActionMappings or ActionFormBeans collection  
  12/13/2004 05:30  
   
  PM
   
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   

   




Uma,

That's being generated by the RequestProcessor.  That means your
ActionServlet instance loaded and is probably setup right.

Do you have an action in your struts-config with a path of "/test1"?  I'm
betting you don't.  You probably want to be using "/testme.do", since that's
what you've got setup.

Have you tried installing the example application?  You could tinker with
that to get a feel for the most elementary pieces of Struts and then go from
there.  There's also a blank application (struts-blank.war) that's a
boiler-plate web application.  That might be a good place to start your own
test.

Good Luck,

Eddie

- Original Message -
From: "uma.k" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 5:52 AM
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


> Ok, I now executed the test1.do by removing all un necessary codes and I
> get
> this error
>
> The requested resource (Invalid path /test1 was requested) is not
> available.
>
> Why is the context not found for .do file?
>
> my struts-config.xml file
>
> 
>
>   "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
>  "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>
>
> 
>
> 
> type = "org.apache.struts.actions.ForwardAction"
>parameter = "/testme.jsp"
>validate = "false" >
>
> 
>
> 
>
>
> 
>
>
> Uma
>
> -Original Message-
> From: Sunny [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 3:23 PM
> To: Struts Users Mailing List
> Subject: Re: Cannot find ActionMappings or ActionFormBeans collection
>
>
> hi,
>
> there is *no need* to add struts-bean.tld as she is *not* using any bean
> tags
>
> uma, please paste your tomcat's class path. mail your
> setclasspath.sh(linux) or setclasspath.bat(windows) or whatever file in
> which you are setting tomcat's class path
>
>
> also try creating a normal jsp ( no form submissions)
>
> and an action similar to
>
>  type = "org.apache.struts.actions.ForwardAction"
> parameter = "/testme.jsp"
> validate = "false" >
> 
> 
>
> testme.jsp
>
> 
> 
>  hello your test is successful 
> 
> 
>
>
> call the url with .do (testme.do) and paste the results. in this way we
> can know whether its the problem with struts itself or your page.
>
>
> regards,
> Sunny
>
>
> -
> 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]
>



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0450-1, 12/09/2004
Tested on: 12/13/2004 6:00:06 AM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com




--

Re: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread Eddie Bush
Uma,
That's being generated by the RequestProcessor.  That means your 
ActionServlet instance loaded and is probably setup right.

Do you have an action in your struts-config with a path of "/test1"?  I'm 
betting you don't.  You probably want to be using "/testme.do", since that's 
what you've got setup.

Have you tried installing the example application?  You could tinker with 
that to get a feel for the most elementary pieces of Struts and then go from 
there.  There's also a blank application (struts-blank.war) that's a 
boiler-plate web application.  That might be a good place to start your own 
test.

Good Luck,
Eddie
- Original Message - 
From: "uma.k" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 5:52 AM
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


Ok, I now executed the test1.do by removing all un necessary codes and I 
get
this error

The requested resource (Invalid path /test1 was requested) is not 
available.

Why is the context not found for .do file?
my struts-config.xml file

http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>



   



Uma
-Original Message-
From: Sunny [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 3:23 PM
To: Struts Users Mailing List
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection
hi,
there is *no need* to add struts-bean.tld as she is *not* using any bean
tags
uma, please paste your tomcat's class path. mail your
setclasspath.sh(linux) or setclasspath.bat(windows) or whatever file in
which you are setting tomcat's class path
also try creating a normal jsp ( no form submissions)
and an action similar to



testme.jsp


 hello your test is successful 


call the url with .do (testme.do) and paste the results. in this way we
can know whether its the problem with struts itself or your page.
regards,
Sunny
-
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]

---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0450-1, 12/09/2004
Tested on: 12/13/2004 6:00:06 AM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread uma.k
Ok, I now executed the test1.do by removing all un necessary codes and I get
this error

The requested resource (Invalid path /test1 was requested) is not available.

Why is the context not found for .do file?

my struts-config.xml file



http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>














Uma

-Original Message-
From: Sunny [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 3:23 PM
To: Struts Users Mailing List
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection


hi,

there is *no need* to add struts-bean.tld as she is *not* using any bean
tags

uma, please paste your tomcat's class path. mail your
setclasspath.sh(linux) or setclasspath.bat(windows) or whatever file in
which you are setting tomcat's class path


also try creating a normal jsp ( no form submissions)

and an action similar to


 
 

testme.jsp



  hello your test is successful 




call the url with .do (testme.do) and paste the results. in this way we
can know whether its the problem with struts itself or your page.


regards,
Sunny


-
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: about logic tag

2004-12-13 Thread Pramod
This is the code in the model class's method
if(result!=null || result.size()>0)
 {
  objectVector = new Vector();
for(int i=0;i

Re: about logic tag

2004-12-13 Thread Andrew Hill
opps. Didnt see this post when I replied just now.
The syntax seems ok. When you say its not producing results, is there 
any error message or stack trace, or is it just that that part of the 
page is blank?

If blank it sounds like the results vector is empty. I presume you 
initialise it in your Action before forwarding to the view? Given that 
you say the actionform is being recreated I rather suspect that you may 
inadvertanly be using a redirecting forward to forward to the JSP. Check 
your struts-config.xml and make sure that the ActionForward pointing to 
the JSP has redirect="false" set.

Also check that your action="... path in the 

Pramod wrote:
It is not displaying the results. The code producing new instances of
ActionForm.
i will send my code

   

   
  

-
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: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread uma.k
Hello Sunny,
I am using Tomcat 4.0. And Tomcat uses JDK classpath, my JDK classpath is
set in the environment variables in Windows. The classpath that I have given
you is the one that I am using.

I have tried your test programme, using the
http://localhost:8080/test/test1.do and I get

java.lang.ClassCastException: org.apache.struts.tiles.TilesUtilImpl
at
org.apache.struts.tiles.TilesRequestProcessor.initDefinitionsMapping(TilesRe
questProcessor.java:86)
at
org.apache.struts.tiles.TilesRequestProcessor.init(TilesRequestProcessor.jav
a:77)
at
org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.jav
a:585)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1162)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:595)

Is it the problem with Tomcat or struts?

Uma

-Original Message-
From: Sunny [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 4:28 PM
To: uma.k
Subject: test this



uma, please paste your tomcat's class path. mail your
setclasspath.sh(linux) or setclasspath.bat(windows) or whatever file in
which you are setting tomcat's class path


also try creating a normal jsp ( no form submissions)

and an action similar to





testme.jsp



 hello your test is successful 




call the url with .do (testme.do) and paste the results. in this way we
can know whether its the problem with struts itself or your page.


regards,
Sunny


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: logic tag

2004-12-13 Thread Andrew Hill
Sorry mate, you going to have to be a bit more specific about the 
problems your having, and precisely what result it is that you are 
actually trying to achieve, as we are having some trouble understanding 
the question!


I am having a vector object in jsp

In a request or session attribute I presume?

An ActionForm's two instances are stored in that vector

This I dont understand. The struts methodology involves one actionform 
per request, and its instantiated, populated and put into the request 
)or session) by the RequestProcessor. Are you doing some custom handling 
to support multiple actionforms per request or did you mean something else?


How can i produce the results

What is the result that you are trying to produce?
I guess you want to iterate a vector and output the contents?
At its simplest you should be able to do something like:

  
  

Change "myVector" to the attribute key that your vector is stored under 
in the request or session. "myProperty" refers to the name of the single 
variable you wish to output. It needs to have a single getMyProperty() 
method (change names as appropriate).

hth
Andrew
ps:
The article at:
http://www.catb.org/~esr/faqs/smart-questions.html
has some advise on how to improve your communication when asking 
questions in lists like this, and is well worth a read if you are new to 
such forums.


Pramod wrote:
I am having a vector object in jsp. An ActionForm's two instances are stored in that vector. Action form contains only one variable. How can i produce the results using logic & bean tags

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: about logic tag

2004-12-13 Thread Pramod
i didnt get u

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: about logic tag

2004-12-13 Thread Andrew Hill
Are there stairs in your house?
Pramod wrote:
I have done the steps but i didn't get results
-
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: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread Sunny
hi,
there is *no need* to add struts-bean.tld as she is *not* using any bean 
tags

uma, please paste your tomcat's class path. mail your 
setclasspath.sh(linux) or setclasspath.bat(windows) or whatever file in 
which you are setting tomcat's class path

also try creating a normal jsp ( no form submissions)
and an action similar to



testme.jsp


 hello your test is successful 


call the url with .do (testme.do) and paste the results. in this way we 
can know whether its the problem with struts itself or your page.

regards,
Sunny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread uma.k
Hello Mohamed,
Thanks for the reply. I added this line, but I still get that problem. Any
ideas?

Uma

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 3:02 PM
To: Struts Users Mailing List
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection



Hi,
  Can you please include the below line in your JSP.

<%@ taglib uri = "/WEB-INF/structs-bean.tld" prefix="bean" %>

Pardon me if I am wrong.

Thanks
Mohamed Abdul Khaliq.M
IT Specialist
SDC2 - Chennai
Ph 8272628 Ext 8098



  Sunny
  <[EMAIL PROTECTED]To:   Struts Users
Mailing List <[EMAIL PROTECTED]>
  t>   cc:
   Subject:  Re: Cannot find
ActionMappings or ActionFormBeans collection
  12/13/2004 01:11
  PM
  Please respond to
  "Struts Users
  Mailing List"






Are you able to Get other pages working?
e.g. : login.do


This kind of error comes *only* when ActionServlet itself is not
initialised / not mapped.




uma.k wrote:

>No, Nothing helped me. I still get that error and I cannot call Template.do
>as the tomcat gives error that the file is not found.
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






*
This  electronic  mail  message  is  intended  solely  for  the  named
recipients  and  may contain
confidential  and  proprietary  business information of eFunds Corporation
and all its subsidiaries.
If  you  are  not a named recipient, please notify the sender immediately.
You may not disclose the
contents  to  any  other  person;  use  this  electronic  mail message or
its contents for any other
purpose; or further store or copy its contents in any medium

*



-
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: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread uma.k
Hi Sunny,
I checked the classpath and its perfect. No issues with classpath. This is
my first Struts page, I have no other pages.

Uma

-Original Message-
From: Sunny [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 1:11 PM
To: Struts Users Mailing List
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection


Are you able to Get other pages working?
e.g. : login.do


This kind of error comes *only* when ActionServlet itself is not
initialised / not mapped.




uma.k wrote:

>No, Nothing helped me. I still get that error and I cannot call Template.do
>as the tomcat gives error that the file is not found.
>
>

-
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: Cannot find ActionMappings or ActionFormBeans collection

2004-12-13 Thread Mohamed . Abdulkhaliq

Hi,
  Can you please include the below line in your JSP.

<%@ taglib uri = "/WEB-INF/structs-bean.tld" prefix="bean" %>

Pardon me if I am wrong.

Thanks
Mohamed Abdul Khaliq.M
IT Specialist
SDC2 - Chennai
Ph 8272628 Ext 8098



   
  Sunny 
   
  <[EMAIL PROTECTED]To:   Struts Users Mailing 
List <[EMAIL PROTECTED]>
  t>   cc:  
   
   Subject:  Re: Cannot find 
ActionMappings or ActionFormBeans collection  
  12/13/2004 01:11  
   
  PM
   
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   

   




Are you able to Get other pages working?
e.g. : login.do


This kind of error comes *only* when ActionServlet itself is not
initialised / not mapped.




uma.k wrote:

>No, Nothing helped me. I still get that error and I cannot call Template.do
>as the tomcat gives error that the file is not found.
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





*
This  electronic  mail  message  is  intended  solely  for  the  named  
recipients  and  may contain
confidential  and  proprietary  business information of eFunds Corporation and 
all its subsidiaries.
If  you  are  not a named recipient, please notify the sender immediately.  You 
may not disclose the
contents  to  any  other  person;  use  this  electronic  mail message or its 
contents for any other
purpose; or further store or copy its contents in any medium
*



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >