Showing image beside fields with errors

2001-10-24 Thread Michelle Popovits
Hi, A couple things that I would like to do with the Struts 1.0 release relating to errors that I can't see doing without writing a bunch of extra code. 1) When I have validation errors (ActionErrors) I would like to show an image (red arrow gif) next to the fields that are in error. 2) I

Re: Dynamic XML extended defintions

2001-10-24 Thread iT meDic
Hi, Thanks for replying. That logic does not work because the 'flags' item is set on the submenu.jsp which is called by 'menu.links' i can't add the flags to menu.main because that calls the vboxlayout.jsp, which in turn calls menu.links(as one of its items) and also the flags item iterates

Re: Dynamic XML extended defintions

2001-10-24 Thread iT meDic
I just read the mail archive... To get to Eric Brault's answer i am running the struts-tiles off the Resin server and the menus i am trying create are included in the tutorial for tiles by Cedric. From: Sandeep Takhar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [ANNOUNCE] Fast Track to MVC / JSP Framework Public Workshop

2001-10-24 Thread Amitkumar J Malhotra
For those who are not able to attend this ..could you keep some material on-line so that every one is benefited by this Rgds Amit Malhotra

Re: 24/7 availability

2001-10-24 Thread Amitkumar J Malhotra
Could you tell me something more about the 24/7 environment , any URL's also will also be of great help Rgds Amit

View-Document approach

2001-10-24 Thread Nicolas Parisé
Hi, I have a JSP page which display a list of elements from a Vector in a HTML table. I want to put a button in each line of my table that let me view the element's detail (throught my elementForm) I don't know how I can pass a specific element to my viewElementDetailAction which use an

DBTAGLIBS problems

2001-10-24 Thread Amitkumar J Malhotra
I am writing this problem after posting it a number of times in the taglib-users forum.I have recieved no response from any of the members and I now ask you all to help me out. I am using tomcat 3.2.1, I have already followed the instructions given in the DBTaglib tutorial but it has given me

RE: Showing image beside fields with errors

2001-10-24 Thread Alexander Jesse
Hi, your points are also in our styleguide... 1) here's what I did: (using struts 1.0.0 and the validator-package dated: 2001-07-02) --- page-declarations: %@ taglib uri=/WEB-INF/struts-validator.tld prefix=validator % --- somewhere within the form: validator:errorsExist property=csPid

getting jsp output to a servlet

2001-10-24 Thread Ralf Krakowski
Hi all, I would like to get the output from a jsp into my servlet. I have seen three different approaches. 1. Make an http request 2. Use the struts bean:include 3. Some sort of BodyTagSupport All of these are discussed here

RE: Form properties reset ?

2001-10-24 Thread Tom Klaasen (TeleRelay)
-Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: maandag 22 oktober 2001 19:51 To: [EMAIL PROTECTED] Subject: Re: Form properties reset ? --- Ted Husted [EMAIL PROTECTED] wrote: You can also be more careful about which properties are reset when.

RE: Multiple web.xml's?

2001-10-24 Thread Alexander Jesse
As web.xml belongs to the web-app specs this calls for trouble. It definitely would not be portable, as every solution would depend on the XML-parser used by the specific servlet-engine... One way might be to modify the dtd web.xml is based upon... but it will mean an eternal struggle. Do you

RE: Nightly builds

2001-10-24 Thread Tom Klaasen (TeleRelay)
That should do it, although I noticed that putting a nightly build on tomcat 3.2.3 required to put xerces.jar in TOMCAT_HOME/lib and rename parser.jar and jaxp.jar to zparser.jar and zjaxp.jar, respectively. You'll also notice that there are a few classes that have moved in the package structure

Re: Showing image beside fields with errors

2001-10-24 Thread John Yu
Michelle, Regarding #1, you use the 'property' attribute of the ActionError to associate the error with the problematic field. In your validation code: if((form.getName() == null) || form.getName().equals()) { // Name can't be empty. Report the problem. ActionErrors errors = new

Using more then one properties(resource) file for a language.

2001-10-24 Thread VEDRE, RANAPRATAP REDDY
I guess we need to have a properties file for each language that we support for a web app. If there are a lot of pages in the application its gets messy to have all the message texts in one properties file and difficult to maintain(modify). Can we organize the resource files for a web

Re: html:link forward question

2001-10-24 Thread lisa ward
Hi again, This is my present scenario. I have a page that contains a number of checkboxes, which have been rendered using the struts multibox tag. The user needs to select at least one or more checkboxes before they can proceed. Once at least one check box has been selected I then proceed to

Re: html:link forward question

2001-10-24 Thread John Yu
Lisa, The common pattern is: jsp - action - jsp in which the action contains the logic to process the form bean. -- John At 03:56 pm 23-10-2001 +0100, you wrote: Hi, Can anyone please tell me how to achieve forwarding of one page to another as well as have the information in the form submitted

Re: Creating your own ActionForm inside of an Action

2001-10-24 Thread Ted Husted
The ActionServlet creates the ActionForm bean in the processActionForm method, and populates it in the processPopulate method. See the source code for details. Though, I don't understand why you don't let the controller do this for you, by specifying the name of the ActionForm bean in the

Re: View-Document approach

2001-10-24 Thread John Yu
Nicolas, It will be easier if you can tolerate with an hyperlink instead of a button: table logic:iterate id=element type=myPackage.elementClass name=myVectorOfElementInstances tr tdbean:write name=element property=elementKey filter=true //td tdbean:write name=element property=firstName

RE: View-Document approach

2001-10-24 Thread Alexander Jesse
Hi, do you really require POST on that action? if not: read up on html:link tag which lets you specify 1 parameter directly or more through a HashMap. Works perfectly for something similar for me... == logic:iterate id=author name=%= TFWAuthorView.LIST_REQ_ATTR_ID %

html:image tag example

2001-10-24 Thread chiji nwankwo
Hi, Does anyone have any examples of how to use the html:image tag to perform a submit. Please point me in the right direction. Thanks ChijiGet your FREE download of MSN Explorer at http://explorer.msn.com

Re: Showing image beside fields with errors

2001-10-24 Thread Jonathan M Crater
the only way to do this with the 1.0 release is to embed your image and anchor tags in your application resources file. you could also consider placing the error message directly beside or on top of the fields which generated the errors by using html:errors property=.../. if you're willing to

HTML:Text Formatting

2001-10-24 Thread Peter Pilgrim
I have a ActionForm bean with `Date' or `float' , `double' types. How do get html:text to access a formatted version of the form bean. For example say the date field currentDate was suppose to be `24-Oct-2001 html:form action=/Something.do ... html:text value=currentDate / /html:form --

Re: SilverStream 3.5.2

2001-10-24 Thread Barry Glasco
NO -- Original Message -- From: Tim [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 24 Oct 2001 13:41:13 +0800 Hi, I'd like to inquire on whether it is possible to deploy a struts app to SilverStream 3.5.2? Thanks. --

HTML:Text Formatting

2001-10-24 Thread Peter Pilgrim
I know why it does not do this! Looking at the source code for org.apache.strut.taglib.html.BaseInputTag.java show that there is doStart() method and no such thing as doAfterBody() !!! So the following is guaranteed to fail!!! html:text property=currentDate app:dateFormat

RE: SilverStream 3.5.2

2001-10-24 Thread Tom Klaasen (TeleRelay)
You might find http://marc.theaimsgroup.com/?l=struts-userw=2r=1s=silverstreamq=b interesting... hth, tomK -Original Message- From: Tim [mailto:[EMAIL PROTECTED]] Sent: woensdag 24 oktober 2001 7:41 To: [EMAIL PROTECTED] Subject: SilverStream 3.5.2 Hi, I'd like to inquire on

Re: SilverStream 3.5.2

2001-10-24 Thread Michelle Popovits
No, you need to be at at least 3.7.1. SS did not support web app prior to 3.7 release -Michelle From: Tim [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: SilverStream 3.5.2 Date: Wed, 24 Oct 2001 13:41:13 +0800 Hi, I'd like to inquire on whether it is possible to

RE: How to handle a PopUp Form from another Form?

2001-10-24 Thread tnist
Dan, There is an example of called Simulating Modal Dialog Windows available at the below URL: http://developer.netscape.com/viewsource/goodman_modal/goodman_modal.html HTH, Todd G. Nist -Original Message- From: Dan Hodge [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001

RE: What is proper way to determine ActionForm type?

2001-10-24 Thread Justin Piper
Maybe I'm misinterpreting your suggestion, but wouldn't this be putting logic in your ActionForm that should be in the ActionServlet? What about defining several additional perform methods in your ActionServlet that handle specific superclasses of ActionForm, and an abstract method

Re: org.apache.common.workflow

2001-10-24 Thread Ted Husted
There are still some pieces missing, but I started a demo using Struts in the struts-simple application. http://husted.com/struts/resources.htm#new -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/

SilverStream 3.5.2

2001-10-24 Thread Tim
Hi, I'd like to inquire on whether it is possible to deploy a struts app to SilverStream 3.5.2? Thanks. -- Tim - Web : http://mailhost.net/~ttimothy/ - E-mail : [EMAIL PROTECTED] Madness takes its toll. Please have

Example Site Built using Struts

2001-10-24 Thread Robin Roos
Hello Can anyone suggest the URLs of a couple of websites built using the Struts framework? My company needs such examples before commiting to Struts for our own site. I am subscribed, so you can reply to the list or direct to me. Many thanks, Robin.

Re: View-Document approach

2001-10-24 Thread Sandeep Takhar
you can use one form element and have the iterate tag go over these and then have the elementKey as a parameter using an html:link as the last column in the table. The example app does a good job of using this approach. Sandeep --- Nicolas_Parisé [EMAIL PROTECTED] wrote: Hi, I have a JSP

How To: (Form-Based Authentication) use the form-error page to login

2001-10-24 Thread Matt Raible
I figured out how to make Form-based Authentication use the form-error page to login and thought I would share with everyone. The instructions are iPlanet-specific, but can most likely be ported to another appserver, providing you knew the name of the hidden field that holds the url that the

Re: Dynamic XML extended defintions

2001-10-24 Thread Sandeep Takhar
In a later posting (which I deleted too hastily) you mention that you found an answer from Eric Brault. I just searched the archives and I can't find any reference from this author with tiles. Can you post the link? thanks, Sandeep --- iT meDic [EMAIL PROTECTED] wrote: Hi, Thanks for

Re: Creating your own ActionForm inside of an Action

2001-10-24 Thread Sandeep Takhar
Here is something I pulled from the archive and the latest discussion seem to indicate that this is how it works: 1. Controller receives request. 2. Controller looks up mapping for Action and what ActionForm to use. 3. Reset is invoked on the bean. N.B. The instance of the ActionForm either

Weird problem (WAS)

2001-10-24 Thread Aapo Laakkonen
Seems like my struts installation doesn't work anymore as expected. All my forms do not have .do added to the end of action url anymore. It's interesting because html:links does work. What can cause this behavior? I did not do anything except updated my own jar-package.

Validator Nightly builds and Struts 1.0

2001-10-24 Thread Sandeep Takhar
I get the following error message: classnotfoundexception: com.wintecinc.struts.validation.Constant on startup When I run the example I get the following error: NoClassDefFoundError: org/apache/struts/action/ActionMessages Even though the code that causes it is compatible with version 1.0:

Re: DBTAGLIBS problems

2001-10-24 Thread Ted Husted
The tld is referenced in two places, and both references must be correct. The web.xml indicates where the tld is actually stored, and what logical reference can be used to retrieve it. The jsp cites the logical reference. Amitkumar J Malhotra wrote: I am writing this problem after posting

RE: SilverStream 3.5.2

2001-10-24 Thread George, Carl
no -Original Message- From: Tim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 1:41 AM To: [EMAIL PROTECTED] Subject: SilverStream 3.5.2 Hi, I'd like to inquire on whether it is possible to deploy a struts app to SilverStream 3.5.2? Thanks. --

Using ApplicationResources.properties for submit button

2001-10-24 Thread Bernhard J. Hirschmann
How is it possible to use a String defined in ApplicationResources.properties for the value of a submit button? I would need something like: html:submit value=bean:message key=button.update/ property=udmButton/ ...but that doesn't work.

How to pass initialise parameters to action class

2001-10-24 Thread Alex Colic
Hi, I have an action class that has a variable that I want set from the web.xml file. To prevent the action class from reading the xml file everytime it is accessed I wanted to set the variable once in the action classes init() method. After looking at the action class I see that there is no

test Struts User mailing list

2001-10-24 Thread Peter Pilgrim
I am receiving mail from the struts user. But I cant see any mail that I sent to the list earlier today (?!). Mailserver down? -- Peter Pilgrim ++44 (0)207-545-9923 //_\\ Mathematics is essentially the study of islands of

Re: 24/7 availability

2001-10-24 Thread David Morris
Amit, The site supports a manufacturing facility that makes Medium Density Fiberboard. The plant runs continuously for up to 6 months at a time. Scheduling information originates on an AS/400, which is fed down to an Oracle database that supports the site. The site provides machine operators

Re: Showing image beside fields with errors

2001-10-24 Thread Michelle Popovits
Hi Jonathan, Is there a stable release of struts which includes the messages tag? I am writing this code for a production system and I need to be reasonably confident that I can use a new struts release without causing other problems with pre-existing code. Thanks, Michelle [EMAIL PROTECTED]

Re: View-Document approach

2001-10-24 Thread Brian Holzer
Hi Nicolas, I think I get what you are trying to do here. How about just a link to get you there rather than a button. Here is the code from my jsp which iterates through a collection of users and sets up a link for each which goes to the same Action, but the key is passed as a request

Real time web page?

2001-10-24 Thread dhay
Hi everyone. We are starting a new project and have a requirement for real-time updates in a web browser. Does anyone know of any tools that allow for this, apart from applets? Cheers, Dave

test Struts User mailing list

2001-10-24 Thread Peter Pilgrim
Ted . s the mailing listserver working? -- Peter Pilgrim ++44 (0)207-545-9923 //_\\ Mathematics is essentially the study of islands of === disparate subjects in a sea of ignorance. || ! || Andrew Wiles

Re: Showing image beside fields with errors

2001-10-24 Thread Michelle Popovits
John, Thanks for your reply. As you've described the solution, it sounds like it would also put the message(s) beside the field in error. What I'm looking for is to keep the messages at the top of the page (like standard html:errors tag does) and within the body of the form include just a

Radio Buttons

2001-10-24 Thread Steven Leija
Hello All, I'm confused on the usage of the Radio Buttons. I have simply have two html:radio tags defined. Each have the same property and of course, their values are different. But when my form bean is populated upon submit, the values are not read in. I changed the values of the radio

Flash button and forms with struts

2001-10-24 Thread Hitesh Parashar
Hi All: How can we use Macromedia flash buttons and forms with struts? It is really important for us at the moment because we want to use struts and we also want to leverage the Flash forms/buttons already present with us. The decision of whether to use struts or not hinges on the fact how

HowTo: pass template as a put in the xml file

2001-10-24 Thread Stephen Gissendaner
This may be the wrong approach but I am trying to have a put tag in my xml file, include a template jsp file and at the same time pass some put's to that template jsp file. This is the code that I put into my tiles.xml file. It should explain what I am trying to do. definition

RE: html:image tag example

2001-10-24 Thread Fuller, Wayne
html:image src=PATH TO IMAGE alt=SOME TEXT border=0 value=SOME PROPERTY VALUE/ -Original Message- From: chiji nwankwo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 5:15 AM To: [EMAIL PROTECTED] Subject: html:image tag example Hi, Does anyone have any examples of how to

Re: html:image tag example

2001-10-24 Thread Eric Rizzo
chiji nwankwo wrote: Does anyone have any examples of how to use the html:image tag to perform a submit. Please point me in the right direction. You just need to put the html:image tag within a html:form tag. This works for me: html:form action=someAction.do ...input fields,

adding /viewing messages like errors

2001-10-24 Thread Strichartz, Beth
I thought I read somewhere that I can add to the message bean and then in a jsp see if this message bean exists and output it kind of like errors??? errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.database.missing)); Can anyone point me in the right

Re: Validator and Struts 1.0

2001-10-24 Thread David Winterfeldt
--- Sandeep Takhar [EMAIL PROTECTED] wrote: sorry David, but I accidentally deleted the thread that was started from my mail. I think that having a final release of validator for release 1.0 of struts is a great idea. One thing that you mentioned is that using bCancel as a javascript

subscribe jniski@ninedots.com

2001-10-24 Thread Joe Niski
Title: subscribe [EMAIL PROTECTED] subscribe [EMAIL PROTECTED]

Messages like Errors...

2001-10-24 Thread Strichartz, Beth
I thought I read somewhere that I can add to the message bean and then in a jsp see if this message bean exists and output it kind of like errors??? errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.database.missing)); Can anyone point me in the right

Placing JSP's below the WEB-INF directory

2001-10-24 Thread Rahim Lalani
Title: Message Hi, I would like to hide all of my jsp pages under the WEB-INF directory so that I can place all of my security in my actions. However, I would also like to use the Struts Template taglib such that my ActionForwards return jsp pages that use templates. Will I be able to

how to bean:define for a static method

2001-10-24 Thread Thinh Doan
I'd like to retrieve an ArrayList from a public static method (getMyArray) in class A to iterate through this ArrayList in my jsp. An instance of this class A is saved in session scope after successful login. in class A: public static ArrayList getMyArray(A a) { //