Validwhen validator question

2004-02-02 Thread Andriy Ruzhevych
Hi. Can I use global constants from constant element in validwhen validator? If I can, how can I do that? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

disable html:text using form bean element

2004-02-02 Thread anant.parnami
hi, Can I use a form bean element (java.lang.Boolean) to disable a html:text dynamically depending on its value. is yes then how can I do it? thanks Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the

How do you submit a page and not change values

2004-02-02 Thread Hunt, Steve
If you use either html:button, html:submit or html:cancel buttons they generate input type=button html. So how can you create a screen for example with 1 field and 2 buttons, a submit and a do Not Submit button, both of which navigate the user to a results screen? Regards Steve

RE: Validwhen validator question

2004-02-02 Thread Andriy Ruzhevych
Hi. I have the next question related with validwhen validator. I have the validwhen validator like var var-nametest/var-name var-value((*this* != null) or ((actionName == Action) and (*this* == null)))/var-value /var This works fine, but when I replace the Action string literal with

R: request attributes and failed validation

2004-02-02 Thread Leonardo Francalanci
Using an Action as input sometimes takes more work. Your action should know that it's only redisplaying a form and not reset all form values (or else the user will have to reinput everything instead of just correct the validation error). How do you usually do this? Using an hidden

Struts 1.0.2 required

2004-02-02 Thread Rohit Singla
Hi I wanted to have struts 1.0.2 version. Please let me know from where to get it. It is not available on jakarta site. Only struts 1.1 is available. Regards Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Getting the CheckBox Collection Value in FormBean Class

2004-02-02 Thread Ramachandran
Hi All, If any body know how to get the solution for getting the check box collection value in the form bean class. If so mail your ideas... Thanx, Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Accessing Struts Datasource from another action servlet

2004-02-02 Thread James MacKenzie
Hi Guys, I have a web application written in Stuts and am writing a scheduler which is a seperate action servlet which is configured in the web.xml file to start at startup. All of my other action classes are session based so they can get the default datasource (From the struts-config.xml)

Re: How do you submit a page and not change values

2004-02-02 Thread Claire Wall
you can use the html:submit and html:cancel buttons from within a form. They will both actually submit the form to an action, but it is possible to capture the 'cancel' event in your action and therefore forward the user to different places depending upon which one they clicked on. so, for

Re: Accessing Struts Datasource from another action servlet

2004-02-02 Thread Mark Lowe
have you not seen the threads regarding the struts datasource? the party line seems to frown upon it as it encourages breaking with MVC, unless you pass the connection up to the model tier. that said, in your shoes I'd configure a datasource in the second webapp (albeit with the same config

Re: Struts 1.0.2 required

2004-02-02 Thread Marcel Schepers
See the apache archives at http://archive.apache.org/dist/jakarta/struts/old/release/v1.0.2/ Marcel On Mon, 2004-02-02 at 10:25, Rohit Singla wrote: Hi I wanted to have struts 1.0.2 version. Please let me know from where to get it. It is not available on jakarta site. Only struts 1.1 is

Re: Getting the CheckBox Collection Value in FormBean Class

2004-02-02 Thread Claire Wall
Do you mean that you want to store checkbox values in a form bean? if so... You can set up an empty String array in your form bean like this: String[] checkboxes = new String[]{}; and then in your jsp page you can set the property of a checkbox to this array, like: html:checkbox name=FormName

RE: How do you submit a page and not change values

2004-02-02 Thread Hunt, Steve
Thanks Claire, Unfortunately in your example below, any changes made to the page before it was submitted with the cancel button will actually change the values stored on the form though. -Original Message- From: Claire Wall [mailto:[EMAIL PROTECTED] Sent: 02 February 2004 09:42 To: Struts

RE: Getting the CheckBox Collection Value in FormBean Class

2004-02-02 Thread Ramachandran
Yes Claire, I am doing like that only.This is my jsp,contains the code. I am nested inside the iteration. FORM BEAN public String[] getDeletereqs() { return this.deletereqs; } public void setDeletereqs(String[] deletereqs) { this.deletereqs=deletereqs; }

Tiles, insert - no output

2004-02-02 Thread draegoon Z
Hey guys, need some help: THE LAYOUT: %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles% div id=tiles:insert attribute=style flush=true / tiles:insert attribute=header flush=true / tiles:insert attribute=body flush=true / /div THE DEFINITIONS: definition

RE: redirect=true ActionErrors

2004-02-02 Thread Manjunath Bhat
Hi Thanks for the reply. My first concerns is with the action errors display on the web page, which is lost due to redirect=true, since it is bound to the request. I looked into transaction token, but its does not solve error display. I am thinking of using it somewhere else in my app. Thanks

Re: Getting the CheckBox Collection Value in FormBean Class

2004-02-02 Thread Claire Wall
What is 'allreqcand'? I'm assuming that this is the name of your form bean. When the form is submitted, whatever is the value of the check box will be stored in the array (and only the checked ones will be submitted). So in the example you gave, the values that will be stored in the array will be

RE: Getting the CheckBox Collection Value in FormBean Class

2004-02-02 Thread Mohan Radhakrishnan
Ramachandran, The following is what we use. Read html:multibox doc. logic:iterate id=item property=deletereqs name=form tr bgcolor=#EEF1F7 class=text_bold height=20 td

RE: Struts 1.0.2 required

2004-02-02 Thread Rohit Singla
Thanks for ur help. -Original Message- From: Marcel Schepers [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 3:17 PM To: Struts Users Mailing List Subject: Re: Struts 1.0.2 required See the apache archives at http://archive.apache.org/dist/jakarta/struts/old/release/v1.0.2/

Stxx material

2004-02-02 Thread Rohit Singla
Title: Message Hi Iam working on STXX (struts for transforming xml with xsl). If any one of u have any idea for the same please let me know. I would be really help ful to me. RegardsRohit - To unsubscribe, e-mail: [EMAIL

RE: redirect=true ActionErrors

2004-02-02 Thread Manjunath Bhat
Hi Thanks for the reply. My first concerns is with the action errors display on the web page, which is lost due to redirect=true, since it is bound to the request. I looked into transaction token, but its does not solve error display. I am thinking of using it somewhere else in my app. Thanks

Re: R: request attributes and failed validation

2004-02-02 Thread Ian Joyce
[EMAIL PROTECTED] 02/02/04 03:18 AM Using an Action as input sometimes takes more work. Your action should know that it's only redisplaying a form and not reset all form values (or else the user will have to reinput everything instead of just correct the validation error). How do you

html:options and html:select

2004-02-02 Thread Otto, Frank
hello, I have following bean: public class CProduct { private Integer id; private String name public Integer getId() {return id;} puclic void setId(Integer id){ ... } My form class contains a java.util.List of CProduct bean. How can I display the List as select box? I

Making the fields non editable dynamically using a form bean element

2004-02-02 Thread anant.parnami
Hi ppl, I have a situation where I do not want the user to edit the fields if the history record flag in the form bean is true. Can you suggest me how to go about it. Can I use a form bean element (java.lang.Boolean/String) to disable a html:text dynamically depending on its value. If yes

Re: html:options and html:select

2004-02-02 Thread Claire Wall
you can do the following: html:select name=FormName property=xxx logic:iterate id=product name=FormName property=ListName option value=bean:write name=product property=id/bean:write name=product property=name/ /logic:iterate /html:select 'property' of the select box should be

R: R: request attributes and failed validation

2004-02-02 Thread Leonardo Francalanci
I think that the form is added to the request before the call to execute(..). Are you sure that (request.getAttribute(myForm) != null) is not true the first time you call the page? -Messaggio originale- Da: Ian Joyce [mailto:[EMAIL PROTECTED] Inviato: lunedi 2 febbraio 2004 13.09 A:

RE: Making the fields non editable dynamically using a form bean element

2004-02-02 Thread Navjot Singh
guess there is some attribute called readonly for html:text. set that to true. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 4:06 PM To: [EMAIL PROTECTED] Subject: Making the fields non editable dynamically using a form bean element

Re: html:options and html:select

2004-02-02 Thread Mark Lowe
ArrayList productList = new ArrayList(); CProduct product = new CProduct(); product.setId(new Integer(1)); product.setName(My Product); productList.add(product); request.setAttribute(products,productList.toArray()); ... html:option value=--/html:option html:options collection=products

AW: html:options and html:select

2004-02-02 Thread Otto, Frank
Thanks for your answer, but I have found out, that I can use html:optionsCollection. html:select property=ref html:optionsCollections name=myForm property=myListOfBean value=id label=name/ /html:select Regards, Frank -Ursprüngliche Nachricht- Von: Claire Wall [mailto:[EMAIL

RE: Making the fields non editable dynamically using a form bean element

2004-02-02 Thread anant.parnami
I have to set that statically i-e html:text readonly=true My problem is to try to do that dynamically, I have a flag in form bean, if that is true then disable the textbox else if false then enable it -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: html:options and html:select

2004-02-02 Thread anant.parnami
Hi Frank Try using Request.setAttribute(collectionName,list); html:select name=formBeanName property=seletedValue html:options collection=collectionName value=id labelProperty=name name=comCProduct/ /html:select I

Re: AW: html:options and html:select

2004-02-02 Thread Mark Lowe
Thank goodness for that, dunno why folks seem to do that bean:write for dropdowns :o) On 2 Feb 2004, at 13:27, Otto, Frank wrote: Thanks for your answer, but I have found out, that I can use html:optionsCollection. html:select property=ref html:optionsCollections name=myForm

Re: AW: html:options and html:select

2004-02-02 Thread Claire Wall
Aha! i use the bean:write's but then i like doing things the complicated way. Never used the html:options in this situation before so thanks for the tip - will make things much easier! cw :) - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

Re: Making the fields non editable dynamically using a form bean element

2004-02-02 Thread Claire Wall
Anant, You can do the following: set up a boolean flag at the top of the jsp page that will be used to disable fields on your page like so: % boolean flag = false; % and then set this according to the value of the flag in your form using logic tags: logic:equal name=FormName property=xxx

CheckBox Collection Value in FormBean Class

2004-02-02 Thread Ramachandran
Hi All, I am having list of check boxes in a page. My Scenario is, if i checked a check box, then if i click the submit button, it should delete. Then how can i relate the check box selection to the record which is to be deleted I am listing the records in JSP using

[OT] looking for a method that will be called on application startup

2004-02-02 Thread Arne Brutschy
hi, I'm looking for a method/hook/whatever that will be called from tomcat at application startup. I want to use it to put all my init-stuff (as configuration reading) into it. At the moment, my authentication filter looks for the presence of these objects in application scope, and if they

RE: [OT] looking for a method that will be called on application startup

2004-02-02 Thread Robert Taylor
javax.servlet.ServletContextListener robert -Original Message- From: Arne Brutschy [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 8:00 AM To: Struts Users Mailing List Subject: [OT] looking for a method that will be called on application startup hi, I'm looking

Re: [OT] looking for a method that will be called on application startup

2004-02-02 Thread Marcel Schepers
Hi Arne, A solution could be create an initialization servlet. Include that servlet in your web.xml and make sure you provide a load-on-startup parameter. Marcel On Mon, 2004-02-02 at 13:59, Arne Brutschy wrote: hi, I'm looking for a method/hook/whatever that will be called from tomcat at

RE: Making the fields non editable dynamically using a form bean element

2004-02-02 Thread anant.parnami
Thanks a ton It worked for me :-) Regards Anant -Original Message- From: Claire Wall [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 6:09 PM To: Struts Users Mailing List Subject: Re: Making the fields non editable dynamically using a form bean element Anant, You can do

RE: html:options and html:select

2004-02-02 Thread Guillermo Meyer
Otto, you can take a look at http://providers.sourceforge.net/, this project can help you in filling options in selects. There is a 0.1 version, butwe are working in 0.2 with a lot of improvements. Cheers. Guillermo. -Original Message- From: Otto, Frank [mailto:[EMAIL PROTECTED] Sent:

RE: html:options and html:select

2004-02-02 Thread Jiin-Her Lu
If your list stores objects which is the type of Struts' LabelValueBean (provides only getValue() and getLabel() methods), then you can simply as html:select name=formBeanName property=seletedValue html:options collection=collectionName value=value

Tesiting DispatchAction with StrutsAction..

2004-02-02 Thread Al Rathon
Need to test a struts app that uses DispatchAction using struts TestCase. Thanks for the help. __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/

Validation error messages

2004-02-02 Thread Glenn, Scott
I might be missing something obvious here, but is there an easy way to get the submitted value to become part of the your error message? So, for example, if the user enters abc in an email field, I'd like a message saying :- Address abc is not a valid email address. I can get this

[ANNOUNCE] Struts Console v4.3

2004-02-02 Thread James Holmes
Struts Console version 4.3 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.3.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.3.tar.gz Struts Console is FREE software. This release has a few bug fixes and

Re: [ANNOUNCE] Struts Console v4.3

2004-02-02 Thread Mark Lowe
Nice one.. Just one question.. Its there a property or something I can set that will let me define where the StrutsConfig.cfg lives? I use console as a standalone bundled up with jar bundler or whatever its called on OSX. The file likes appearing in my home directory, whereas ideally i could

RE: Using database tables for resource bundles

2004-02-02 Thread Johan Wasserman - CPX Mngd Services
Regarding using a database to provide resource bundles; James Mitchell developed a nifty extention called 'OJBMessageResources' that uses OJB and there where talk of a new version using Hibernate... quote I'm also about to release another implementation that uses Hibernate for those who don't

Problems when not using html:form

2004-02-02 Thread MichaelBoucher
Hi folks, For a variety of reasons, I can't use the struts HTML tags in my jsps. To get things started, I got it working using html:form, but now I have to remove that tag. So, I'm trying to figure out how to specify the form to correctly call my action. The jsp gets displayed correctly, but

Re: Tesiting DispatchAction with StrutsAction..

2004-02-02 Thread James Mitchell
What is your question? -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Al Rathon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 02, 2004 9:42 AM

Re: Using database tables for resource bundles

2004-02-02 Thread James Mitchell
Not yet. I was planning to finish my refactoring to commons-resources (sandbox) quite some time ago, but like most people.I have just been too busy with other things. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN:

RE: Validation error messages

2004-02-02 Thread Hunt, Steve
in the resource file where the error message is defined use {0} to parametize it. eg address.invalid=Address {0} is not a valid email address. When you construct the actionError add the parameter to the constructor ie. new ActionError(address.invalid, address) Regards Steve -Original

logic:iterate ... logic:equal question?

2004-02-02 Thread Derek Colley
Apologies for this newbie question... I have 2 selections: Country and City I have 2 collections in session (CityList contains a reference to Country) I don't want the user to select a City before selecting a Country and I want to display a list of Cities that relate to the selected Country...

Re: Problems when not using html:form

2004-02-02 Thread Joe Germuska
I think that if you just fully-qualify the action of your form, it would work. That is, form name=LoginForm method=post action=/Login.do focus=userName Joe At 10:10 AM -0500 2/2/04, [EMAIL PROTECTED] wrote: Hi folks, For a variety of reasons, I can't use the struts HTML tags in my jsps. To get

Re: Problems when not using html:form

2004-02-02 Thread Hubert Rabago
Wouldn't /Login.do make the server look for a Login.do resource at the root of the server? You need to provide the path to your action relative to how the browser found your input form. If your input form is /jsp/Login.jsp and this is what shows in the URL when requested (meaning, it didn't go

RE: Problems when not using html:form

2004-02-02 Thread Slattery, Tim - BLS
Wouldn't /Login.do make the server look for a Login.do resource at the root of the server? Web.xml is usually set up to intercept *any* request ending in .do and send it to the Struts ActionServlet. ActionServlet will then look for /Login (in this case) in an action definition in

RE: Validation error messages

2004-02-02 Thread Glenn, Scott
Thanks Steve, That's what I'm doing when I implement my own custom validation routines, but what about the standard Struts validation rules (which are implemented declaratively), so you don't explicitly create any ActionError objects?? For example, we might have a validation.xml snippet

Re: 2 unanswered questions

2004-02-02 Thread Matt Bathje
Replying to myself here - but after some searching over the weekend, I found bug 17667 - which is the same problem I have been having. Stupid me searching for multiple form all this time instead of multi-form never found it. Anyways, I took the patches that had been attached to that bug already,

RE: Problems when not using html:form

2004-02-02 Thread Hubert Rabago
Yes, but the server would have to find an app with the web.xml first, right? If my URL is at http://my.domain.com/mywebapp1/jsp/Login.jsp; and the form is submitted to form action=/Login.do, it would map to http://my.domain.com/Login.do;. Of course if the web app was deployed as the root

folder structure

2004-02-02 Thread Namasivayam, Sudhakar (Cognizant)
Title: folder structure Hi all, i just wanted to know whethe i can store images outside the webapp and access them in my jsp. what i mean is %CATALINA_HOME% | webapps | app1 | images | folder1 | mywebapp | jsp files i want to know whether my jsp

Re: problem using JSTL inside struts/tiles application

2004-02-02 Thread Kris Schneider
I've looked at this a little closer and it's not caused by Struts or Tiles. I'll continue the thread over on taglibs-user... Quoting [EMAIL PROTECTED]: I started this on the taglibs group and looks and have narrowed the problem down to its use inside a struts/tiles application. *** from the

RE: Problems when not using html:form

2004-02-02 Thread Glenn, Scott
In the past I've had to prepend %=request.getContextPath()% to the action string, so that the app server knows the context of the request. Ie. action=%=request.getContextPath()%/Login.do -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: 02 February

RE: folder structure

2004-02-02 Thread Bubeník Miroslav
Of course you can. But it is not clear. Better way is to put common content (images, js, ...) into default application - in Tomcat ROOT folder and then access it through other URI e.g. common/images/x.gix (if you have webapps/ROOT/common/images) -Original Message- From:

RE: redirect=true ActionErrors

2004-02-02 Thread Hubert Rabago
Manjunath, The patch was just submitted and Ted Husted indicated he will look at it, but just because someone submits a patch doesn't mean it gets committed (I would hope not!). If it doesn't and you still need it, I can help you add some subclasses to your project to make it work for you. -

RE: Validation error messages

2004-02-02 Thread Hunt, Steve
Scott, As long as the error message is set up as I said the validation framework should put the field name at the start of the message... But not the value in the field. so in your example below you might get an error message like; Email address is a required field if admin.email.user=Email

indexed AND nested formbeans -- HOW?

2004-02-02 Thread Jeff Skubick
indexed nested formbeans -- HOW? Suppose I have a form that represents rows of users, each of whom is identified by a unique integer id. Each row has two checkboxes, representing selected foo and selected bar conditions, respectively. I've gotten the impression that it's possible to use nested

RE: Validation error messages

2004-02-02 Thread Glenn, Scott
As long as the error message is set up as I said the validation framework should put the field name at the start of the message... But not the value in the field. so in your example below you might get an error message like; Email address is a required field [[SMG]] Yeah, that's

Is there an INCLUDE feature that works with struts-config?

2004-02-02 Thread Anderson, James H [IT]
We will have many related Struts apps that require identical entries in struts-config, so I'm wondering if there's a way to define common sets of entries and then include them in the config file for each of the apps. Thanks, jim

Re: logic:iterate ... logic:equal question?

2004-02-02 Thread Jiin-Her Lu
you can do as following. countryCollection is an ArryList with object of struts' LabelValueBean. The value is the country code and label is the country name for example. Once the user changes the country selection, it will submit the change to server so that the action can generate the city

Re: Is there an INCLUDE feature that works with struts-config?

2004-02-02 Thread Hubert Rabago
Probably not in the way you're thinking. Struts allows you to specify more multiple config files for the same app, so you can probably specify the app-specific config and the shared config for each app. However, each of your apps will need to have copies of the same shared XML. If you're

RE: Problems when not using html:form

2004-02-02 Thread Slattery, Tim - BLS
Yes, but the server would have to find an app with the web.xml first, right? If my URL is at http://my.domain.com/mywebapp1/jsp/Login.jsp; and the form is submitted to form action=/Login.do, it would map to http://my.domain.com/Login.do;. Of course if the web app was deployed as the

Re: Is there an INCLUDE feature that works with struts-config?

2004-02-02 Thread Matt Bathje
I think XML entities would do what he wants. What you do is, at the top of your struts-config.xml file, you define the entities you want to include: ?xml version=1.0 encoding=UTF-8? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN

Re: logic:iterate ... logic:equal question? SELECTED ATTRIBUTE

2004-02-02 Thread Jino Morgan
How does one add selected attribute if I want one the option to have the SELECTED attribute --- Jiin-Her Lu [EMAIL PROTECTED] wrote: you can do as following. countryCollection is an ArryList with object of struts' LabelValueBean. The value is the country code and label is the country name

RE: logic:iterate ... logic:equal question? SELECTED ATTRIBUTE

2004-02-02 Thread Derek Colley
Struts does this for you if the value of the SELECT parameter equals the OPTION... Derek -Original Message- From: Jino Morgan [mailto:[EMAIL PROTECTED] Sent: 02 February 2004 17:48 To: Struts Users Mailing List Subject: Re: logic:iterate ... logic:equal question? SELECTED

Tomcat error

2004-02-02 Thread Claire Wall
I know this is the Struts mailing list but replies are nice and quick here that i'm gonna post my query to you guys (and gals) Tomcat keeps on throwing LifeCycle exception errors and produces this error in the log file: 2004-02-02 17:54:57 StandardManager[/ApplicationName] IOException while

Re: Tomcat error

2004-02-02 Thread Claire Wall
Just thought i'd add that this error might be something completey different and not necessarily the reason why Tomcat is throwing LifeCycle exceptions.. just i saw the error and put 2 and 2 together.. - Original Message - From: Claire Wall [EMAIL PROTECTED] To: Struts Users Mailing List

Testing DispatchAction with StrutsTestCase

2004-02-02 Thread Al Rathon
Hi: I am working working on a Struts based web-app that uses DispatchAction to club the methods belonging to each entity in one Action class. I would like to know how to test such an action class using struts test case. Thanks in advance for the help. __ Do you

ChartDirector with Struts

2004-02-02 Thread Andy Engle
Hi all, Just curious if anyone has used ChartDirector (from http://www.advsofteng.com) in any Struts application? Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Testing DispatchAction with StrutsTestCase

2004-02-02 Thread Nick Heudecker
Al, I just set the appropriate request parameter. If the parameter is 'method' and the method I want to test is 'get', it would look like this: addRequestParameter(method, get); On 2004-Feb-02 10:02, Al Rathon wrote: Hi: I am working working on a Struts based web-app that uses

[OT]Adding xdoclet code to existing EJB beans

2004-02-02 Thread Balakrishnan, Vijay
Hi, I am trying to add an Xdoclet tag to about 100 existing EJB beans.I am trying to add a @jboss.method-attributes read-only=true to all the getter methods of all the Entity beans to avoid deadlocking issues. Someone suggested to use the patch task of ant and use xslt before running the

Re: R: R: request attributes and failed validation

2004-02-02 Thread Ian Joyce
It's is not there the first time. Only when it's been sent there by way of a failed validation via the input=/showForm.do attribute. [EMAIL PROTECTED] 02/02/04 05:18AM I think that the form is added to the request before the call to execute(..). Are you sure that (request.getAttribute(myForm)

Re: logic:iterate ... logic:equal question? SELECTED ATTRIBUTE

2004-02-02 Thread Jiin-Her Lu
In you ActionForm java class, you have to define the selectedCountry instance variable. For example public MyForm extends ActionForm { private String [] selectedCountry = {}; // if the option is multiple selection (check box or multiple selection listbox) // private String

small trouble with the validator

2004-02-02 Thread Nathan Maves
All of my other forms validate perfect. This form will only validate the name field and not the two breakpoint fields. I have tried everything Any ideas? action path=/admin/UpdateMetric type=dashboard.presentation.actions.admin.UpdateMetricAction name=MetricForm validate=true

RE: Is there an INCLUDE feature that works with struts-config?

2004-02-02 Thread Anderson, James H [IT]
Thanks, both of you, I'll go the XML entities route if that's all that's available. -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 12:35 PM To: Struts Users Mailing List Subject: Re: Is there an INCLUDE feature that works with struts-config?

Re: small trouble with the validator

2004-02-02 Thread Larry Meadors
It is because beanutils converts anything that is invalid to a 0, and therefore, it is present, meeting the requirement for the required dependancy. Stupid, huh? Larry [EMAIL PROTECTED] 02/02/04 1:25 PM All of my other forms validate perfect. This form will only validate the name field and

replace null with empty string

2004-02-02 Thread Lixin Fan
Hi buddy, Whenever the variable value is null, it displays as null in the page. I like to replace it with the empty string. I know I can check each variable in Action class (or property in JSP page) and replace it if it is null. Is there any better way to do it so that I don't need check each

Re: small trouble with the validator

2004-02-02 Thread Nathan Maves
So are you saying that it is because I declared it as a java.lang.Float? When I switch it to a java.lang.String will it works! So the real question is how to validate a float to be required? Nathan On Feb 2, 2004, at 1:32 PM, Larry Meadors wrote: It is because beanutils converts anything that

Re: small trouble with the validator

2004-02-02 Thread Hubert Rabago
From http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_action_form_classes : And, of course, while the DynaActionForm may support various binary types, properties used with the html:text tag should still be String properties. Yes, use java.lang.String then try your form

Accessing session-context objects within ActionForm's constructor

2004-02-02 Thread Jeff Skubick
OK, I think I might have found an example illustrating nested formbeans that shows how to use nested settable formbeans(the Bananas, Inc. web app at keyboardmonkey.com). Apparently, the proper procedure is to create a container bean object that encapsulates the entire collection of

RE: Error deploying strus application to JBOSS --- The content of element type taglib must match

2004-02-02 Thread Yibing Li
Thanks, Max. That is also my initial thoughts and I have searched for urn but could not find it in all the tld file. I am using struts 1.1 version and have also checked the most current version and found that all the tld files are the same. The same application works fine in Oracle 9iAS.

session timeout problem

2004-02-02 Thread Abhishek Agrawal
We are using WebLogic 7.0.4 in the application layer and Sun ONE Web Server 6.1 to serve up the static content. Sometimes for no apparent reason, client is taken back to the login page of the application. I have checked and found that the session itself is invalidated for that user. This

RE: session timeout problem

2004-02-02 Thread Abhishek Agrawal
Just wanted to add that this is not the normal session timeout. This happens much before the actual timeout setting for the application. -Original Message- From: Abhishek Agrawal Sent: Monday, February 02, 2004 4:18 PM To: Struts Users Mailing List Subject: session timeout problem We

Re: folder structure

2004-02-02 Thread Michael McGrady
At 08:32 AM 2/2/2004, Namasivayam, Sudhakar (Cognizant) wrote: Hi all, i just wanted to know whethe i can store images outside the webapp and access them in my jsp. You can store them on another machine, if you like. The images are downloaded separate from the text for the page.

Guidelines and steps for architecting a struts application

2004-02-02 Thread Al Rathon
Hi: I am developing a simple application (basically does CRUD operations on various entities in the application). I want to use the Tiles, Validator also. I would like to know what steps I need to follow to design the architecture. Thanks. __ Do you Yahoo!?

Why doesn't ActionForm's constructor have access to HttpServletRequest?

2004-02-02 Thread Jeff Skubick
Is the absence of a reference to the HttpServletRequest object that triggered the creation of a new ActionForm object in its constructor a historical artifact or oversight, or was it an intentional decision whose motivation and rationale remains 100% valid and relevant today? At the moment,

floatRange arguments in validator?

2004-02-02 Thread Nathan Maves
The floatRange validation is working fine but the error message show that my vars are null? This is surprising since the validation is occurring fine using the specified vars. Nathan field property=redBreakpoint depends=required,float,floatRange arg0 key=app.metric.redBreakpoint /

Using Catus versus using StrutsTestcase

2004-02-02 Thread Al Rathon
Hi: I want to write unit tests for testing the struts portion of a web-app.I am not sure whether I should be using Cactus or StrutsTestCase. What are the factors that I should consider while choosing one application over the other? Thanks. __ Do you Yahoo!?

Re: Business Exception and JSP

2004-02-02 Thread Srinivas Kusunam
can you plz explain your architecture, so that i can suggest something. Thanks, S!! [EMAIL PROTECTED] 01/31/04 06:05AM Hi all, I would want to display the business exception that are thrown to a separate jsp page. Please suggest some way in which i can approach this Thanks in advance,

Re: Why doesn't ActionForm's constructor have access to HttpServletRequest?

2004-02-02 Thread Joe Germuska
So... if I implement my own RequestProcessor class that overrides the default processActionForm method to call my own ActionForm-extending bean's constructor an explicitly pass it a reference to the HttpServletRequest object so it can fetch the HttpSession object and find the object that tells

RE: Business Exception and JSP

2004-02-02 Thread Gopalakrishnan, Jayesh
You could either 1) use the error-page elements in your web.xml or 2) use the global-exceptions element in your struts.config file. Reading up on these elements should help you decide how you want to handle it depending on you requirement/architecture. -jayash -Original

Re: Struts + displaytag = delay

2004-02-02 Thread Nikhil Sidhaye
Hi Andy , Can you reproduce the same results with hardcoded ArrayList objects (without connecting database)? ./Nikhil On Fri, 30 Jan 2004 08:40:14 -0800 (PST), Andy Engle [EMAIL PROTECTED] wrote: Hi all, I am using displaytag in a Struts app that I am working with, and so far it seems

Re: Why doesn't ActionForm's constructor have access to HttpServletRequest?

2004-02-02 Thread Hubert Rabago
Not sure how your app is configured, but perhaps you could call an Action to prepopulate your ActionForm, or help it by passing it the request object. --- Jeff Skubick [EMAIL PROTECTED] wrote: Is the absence of a reference to the HttpServletRequest object that triggered the creation of a new

  1   2   >