Re: Basic

2006-05-10 Thread siva sajja
Logic iterate can be used only over a collection of elements. Check whether the property userRoles in the bean returned by LookUpConstants.SESSION_OBJECT is a collection. Also the property names used in bean:write(role) is different from the property name used in logic:iterate(userRoles) which I

Re: File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread siva sajja
hope you have given your form declaration as kommineni Anita <[EMAIL PROTECTED]> 写道: David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream , though I have the necessary jar's in place. Thanks, /Anita --

re: File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread Kyle Wu
as far as I know, file upload issue just require commons-fileupload.jar which is already included in the struts-blank demo, why don't you just do as what is demostrated in the file upload demo? just a guess... kommineni Anita <[EMAIL PROTECTED]> 写道: David, U are right...But If I change

RE: Basic

2006-05-10 Thread David Evans
This may help: http://struts.apache.org/struts-action/struts-taglib/index.html You may also want to consider using the jstl tags. i think the struts logic tags may be depreciated in favor of jstl. the jstl tags to solve your problem are and and the documentation is here: http://java.sun.com/prod

re: Basic

2006-05-10 Thread Kyle Wu
why not use tag instead? josh t <[EMAIL PROTECTED]> wrote: Greetings everyone: Objective: Retrieve an object from the session that contains a Collection of String for userRoles. Iterate through userRoles, and if one of the roles equals "SUPER" include a href. So this is what

RE: Basic

2006-05-10 Thread josh t
Thanks. Does anyone know where I can get some good reference material on Struts Tags? "Patil, Sheetal" <[EMAIL PROTECTED]> wrote: Hi there As my best knowledge your And supports for either int or boolean -Original Message- From: josh t [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11

Re: Struts and WebServices with both FORM and BASIC authentication in same web app

2006-05-10 Thread Frank W. Zammetti
Robert Taylor wrote: Greetings, can you have both FORM and BASIC authentication in the same web application? (I don't think so, but thought I would ask) No, you cannot. I recently asked this same question... just look at the web-app DTD... at least in 2.3, auth-method is marked as ? affinity.

RE: Basic

2006-05-10 Thread Patil, Sheetal
Hi there As my best knowledge your mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 7:41 AM To: user@struts.apache.org Subject: Basic test . Note: I can get the session value just fine, when i do the follow

Basic

2006-05-10 Thread josh t
Greetings everyone: Objective: Retrieve an object from the session that contains a Collection of String for userRoles. Iterate through userRoles, and if one of the roles equals "SUPER" include a href. So this is what I have, but doesn't seem to be correct: .

Struts and WebServices with both FORM and BASIC authentication in same web app

2006-05-10 Thread Robert Taylor
Greetings, can you have both FORM and BASIC authentication in the same web application? (I don't think so, but thought I would ask) I have a system of Struts web applications where I have users authenticating using FORM based authentication. I also have a need for B-to-B communication between

Re: reXXXXXX File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
Yes I do have both... --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > On 5/10/06, kommineni Anita <[EMAIL PROTECTED]> > wrote: > > David, > > U are right...But If I change that to post I get > > > java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream, > > though I have

Re: reXXXXXX File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread Wendy Smoak
On 5/10/06, kommineni Anita <[EMAIL PROTECTED]> wrote: David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream, though I have the necessary jar's in place. If you're using Commons Fileupload 1.1, it requires Co

Re: reXXXXXX File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream, though I have the necessary jar's in place. Thanks, /Anita --- David Evans <[EMAIL PROTECTED]> wrote: > Just a guess, as i don't use the struts html tags,

Re: reXXXXXX File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread David Evans
Just a guess, as i don't use the struts html tags, but shouldn't that method=get be method="post"? you can't "get" a multi part form. dave On Wed, 2006-05-10 at 11:59 -0700, kommineni Anita wrote: > Kyle, > Thanks for the reply. But I ahve it declared. > I have that defined in my html as follows

What is the URI I Should Use to Provide a Link to Go Back to a Previous Web Page

2006-05-10 Thread Caroline Jen
I am using the Struts. I am prepaing URIs so that previous web pages that users have navigated though can be re-constructed and displayed to users. For example, one of the web pages has the below showing in the address bar: http://localhost:9080/tf/ntts/entity/editPersonEntity.do?cancelForwardNa

Re: message-resources key/parameter

2006-05-10 Thread josh t
Thanks Niall, That was very helpful. I have another issue with my validator.xml. Based on my investigation, I have configured everything correctly. But there must be something wrong with this basic and barebone validator.xml file, because even if I change the form name to something bogus

Re: re�� File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
Kyle, Thanks for the reply. But I ahve it declared. I have that defined in my html as follows Appreciate any further insights.. > --- Kyle Wu <[EMAIL PROTECTED]> wrote: > mayby you forgot to set the "enctype" attribute in > the "" tag, it should be > > > > kommineni Anita <[EMAIL P

re: re: re: html:options collection design question

2006-05-10 Thread Kyle Wu
I am not sure if there's better idea than writing your own JavaScript to do that.. Stanislav <[EMAIL PROTECTED]> : Hi! That is fine if i want to set bgcolor to ALL text, but i want to set different bgcolor for different choices in drop down menu. Tnx, Stanislav - Original Message Fo

re: File upload using tag fails.. java.lang.IllegalArgumentException:

2006-05-10 Thread Kyle Wu
mayby you forgot to set the "enctype" attribute in the "" tag, it should be kommineni Anita <[EMAIL PROTECTED]> Hi, Trying to upload a file using property="primaryFile">. In my Action form I have the property defined as org.apache.struts.upload.FormFile and have appropriate gette

File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
Hi, Trying to upload a file using . In my Action form I have the property defined as org.apache.struts.upload.FormFile and have appropriate getter and setter. It gives me this exception E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: java.lang.IllegalArgumentException: Cannot invoke com.stryk

Re: [java.util.regex ]using Regular Expressions

2006-05-10 Thread Jakub Milkiewicz
As far as i remember "d" means digit, but not digits ... try to add + or *. 2006/5/10, temp temp <[EMAIL PROTECTED]>: Note: forwarded message attached. -- Blab-away for as little as 1¢/min. Make PC-to-Phone Calls

Re: Session lost in filter after redirect while using URL-rewrite

2006-05-10 Thread Andreas Hartmann
Dave Newton wrote: > Andreas Hartmann wrote: >> No, that's not done. I thought, this would be done in the "background" by >> struts automatically. > > getContextPath is from J2EE, not Struts :) I still have to learn a lot :-(, I know. But I really like it - especially with the great support here

Re: Session lost in filter after redirect while using URL-rewrite

2006-05-10 Thread Andreas Hartmann
Michael Jouravlev wrote: > http://java.sun.com/webservices/docs/1.6/api/javax/servlet/http/HttpServletResponse.html#encodeRedirectURL(java.lang.String) Thanks for the URL - I never thought that there would be a method to add a session ID to the URL. My first solution was to do it "manually" which

Re: message-resources key/parameter

2006-05-10 Thread Niall Pemberton
This explains how "key" is used: http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section6 In respect of validator, although it has had a "bundle" attribute (which is the same as "key" in struts-config.xml) for a while, it was only actually supported since Struts 1.2.7 and Va

How do other deal with being OO and dealing with multselects on front end?

2006-05-10 Thread Rick Reumann
Lets assume you want to be a good OO developer and you are designing an application to handle CRUD stuff for a "Person." Lets say this Person can own Cats and Dogs. So person might look like... Person -- int personId String personName List dogs; //list of Dog objects List cats; //list of Cat

message-resources key/parameter

2006-05-10 Thread josh t
Can someone please explain to me how and where in my code I need to refer to message-resources key? When doing validation, how does the validator know where to loopup the ApplicationResources? Do I need to include the key somwhere in my validator.xml? Thanks!

Fwd: [java.util.regex ]using Regular Expressions

2006-05-10 Thread temp temp
Note: forwarded message attached. Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.--- Begin Message --- I am having problems with Regular Expressions usage. I want to ensure that the user enters only digits and no other characters. For

can not find file log4j.dtd???

2006-05-10 Thread Zheng Wen Zhe
Hi all, I wanna use log4j within struts. I have log4j-1.2.13.jar & exerces.jar both copied into directory /WEB-INF/lib . But why when I create log4j.xml within directory /WEB-INF/lib System always displays error on this line: It says "file not found:'C:\...\WEB-INF\log4j.dtd(The system cannot

Re: Struts DTD on Classpath

2006-05-10 Thread Bart Busschots
Hi Daniel, Is it the Struts DTDs or the Validator DTDs that are causing the problem? I had the same thing happen me on a machine with no net access are few months ago and upgrading to the latest Validator and also changing the DOCTYPES to the versions actually in the jar files did the trick f

Struts DTD on Classpath

2006-05-10 Thread Kalcevich, Daniel
Everyone, Someone told me about this feature, but I am not sure if/where it exists. Is it possible to tell Struts to use the DTD for the Struts-config file from the classpath (as I see it in the Struts.jar), and not from the URL? I want to avoid the dependencies on the Struts website, in the e

action mapping forwards question

2006-05-10 Thread fea jabi
When to forward to an action and when to forward to a JSP. As far as I know when some action need to done then forwad to action otherwise to JSP. I am working on a jsp in which there are two tables. In the second table the user can check the customers he want to move to the first table and pr

Mouse rollover

2006-05-10 Thread Michael Immerman
I need a simple mouse rollover within a JSP condition (choose). Along with changing from image1 to image2 upon rollover, the code invokes an action and passes a value. The following code snippet shows two examples within the same program, one presents 'analyze' with a rollover, the second

Re: NullPointerException when using DynaActionForm

2006-05-10 Thread fea jabi
very silly mistake. used java.lang.ArrayList instead of java.util.ArrayList. Thanks for your help. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: Re: NullPointerException when using DynaActionForm Date: Wed, 10 May 2006 08:52:28

Re: NullPointerException when using DynaActionForm

2006-05-10 Thread fea jabi
can someone help me with this please. Everything seams to be right to me but getting exception. tried to change formbean to DynaActionform too type="org.apache.struts.action.DynaActionForm" dynamic="true"> still getting same error. I am unable to figure out what the issue is? Thanks. From:

re: reŁş html:options collection design question

2006-05-10 Thread Stanislav
Hi! That is fine if i want to set bgcolor to ALL text, but i want to set different bgcolor for different choices in drop down menu. Tnx, Stanislav - Original Message Follows - > maybe css would be one solution, edit your css class, and use "styleClass" > attribute to ref it > > > >

Please help with indexed fields

2006-05-10 Thread Sudha Kona
Hi, I am trying to create text fields dynamically in a form at the request time. I need to have two text fields in a table row and an "ADD" button. When the user clicks on "ADD" button, the form should refresh and shows another row with two text fields and so on. In case if I have entered

Re: Another Tiles Question

2006-05-10 Thread Antonio Petrelli
Troy Bull ha scritto: I have another tiles question. I have an application with a header, footer leftmenu and body. My question is should i have 1 form layed out in my layout.jsp that surrounds all these tiles, or should i have a different form on each tile. For example if you edit a form i