dataSources outside of actionservlet

2002-12-17 Thread Mark Lowe
hello you'll all have to forgive my stupidity but i've been having real problems trying to reference the datasource specified in config.xml in my business logic classes. I've been very good and seperated everything as one should. but i really need a straight answer to this (i.e. an example that

RE: Multiple submit buttons

2002-12-17 Thread Arnaud HERITIER
You're not in C++ :-) In java you can't inherit from several classes. (cf java specs) Arnaud. -Message d'origine- De : Heligon Sandra [mailto:[EMAIL PROTECTED]] Envoyé : lundi 16 décembre 2002 17:58 À : 'Struts Users Mailing List' Objet : RE: Multiple submit buttons all the

RE: Multiple submit buttons

2002-12-17 Thread Heligon Sandra
What is the best solution: extends the MyLokkupDispatchAction from the LookDispatchAction or from my BaseAction class ? I think that it is better to extends from LookDispatchAction and copy the code of the BaseAction in the MyLokkupDispatchAction class because we know the code the changes applied.

Re: Oracle DataSource Tips

2002-12-17 Thread Mark
Hello I'm using oracle as my datsource as well, I haven't had this problem but that in my earlier posting.. So who do you reference the datasource specifed in config.xml in business logic classes. The docs recommend this seperation but provide no clear way of doing this, am i missing something?

RE: Compliment Frameworks

2002-12-17 Thread ROSSEL Olivier
are there any big documentation for expresso? may be a book or several tutorials? -Message d'origine- De: Steven Leija [mailto:[EMAIL PROTECTED]] Date: lundi 16 décembre 2002 21:36 À: 'Struts Users Mailing List ' Objet: Compliment Frameworks Hey Guys, What are some good

Struts Validator

2002-12-17 Thread Suresh Addagalla
Hi, I'm new to Struts and am trying to get a hang of Struts Validator framework. I defined the validator-rules.xml, application.properties, validator.xml. To be able to do server-side validations, is it still required to have the ActionForm class? If yes, do we need to override the validate() or

Re: Struts Validator

2002-12-17 Thread Iris
Suresh Addagalla wrote: Hi, I'm new to Struts and am trying to get a hang of Struts Validator framework. I defined the validator-rules.xml, application.properties, validator.xml. To be able to do server-side validations, is it still required to have the ActionForm class? If yes, do we need to

RE: Struts Validator

2002-12-17 Thread Suresh Addagalla
Thanks Iris. Could you recommend a good book (or online tutorial) for me to learn Struts? I am going through a lot of material on the web, but more often I am getting confused than learning something new. Suresh -Original Message- From: Iris [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

Re: Struts Validator

2002-12-17 Thread Iris
Suresh Addagalla wrote: Thanks Iris. Could you recommend a good book (or online tutorial) for me to learn Struts? I am going through a lot of material on the web, but more often I am getting confused than learning something new. Sorry, I don't know the books, I know there is advertisement

FW: dataSources outside of actionservlet

2002-12-17 Thread Mark
Sorry to repost this question, but the more i think about it the more i think it a reasonable one (please tell me if i'm wrong). -- Forwarded Message From: Mark Lowe [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 17 Dec 2002 09:03:33 +0100 To: Struts Users

RE: Struts Validator

2002-12-17 Thread James Turner
If you want specific information about the Validator, the sample chapter from Struts Kick Start, on www.strutskickstart.com, deals with DynaForms and the Validator. Since people are looking for guidance as to which book(s) to buy, I thought I'd offer this concise guide: Struts Kick Start

Struts directory-structure

2002-12-17 Thread Heligon Sandra
I will wish to have opinions on the organization of the directory-structure (source, Web pages) for a Struts-Web application. There already were much discussion around the advantages and disadvantages of placing pages JSP below therepertory Web-inf. I chose

can't find out why the digester doesnt find method in class

2002-12-17 Thread lukas_oesterreicher
Hi there. I'm using the struts digester to load some configuration parameters from an xml file. The digester source is: Digester dig = new Digester(); dig.push(this); dig.setValidating(false); // log file configuration dig.addObjectCreate(mls-config/logconfigfile,

StrutsValidator + html:select

2002-12-17 Thread Jan Zimmek
Hi, i have got a question about validating html:select - box. My JSP-Source look like this: html:select property=productid html:option value= key=SELECTBOX.pleaseSelect/ html:options collection=products property=id labelProperty=name/ /html:select Property productid is an attribute of a

Re: bean:messages tag

2002-12-17 Thread Patrice
Tags are interprated after scriplets, that's why you can't use tags inside scriplets. In struts 1.1, you can do: bean:define id=aKeybean:message key=form.maxNumber//bean:define % int i = Integer.parseInt(aKey); % Hope it helps Patrice - Original Message - From: Richmond Te [EMAIL

[Struts 1.1] How to access to MessageRessources in an ActionForm ??

2002-12-17 Thread Arnaud HERITIER
Hi all! I have a question about Struts 1.1. I would like to access to the default MessageRessources instance I use in my web app in the validate method of an ActionForm. How can I do that ?? I didn't do it up to now and I don't find a solution. Any ideas ?? Arnaud HERITIER EAI Consulting

RE: Struts Validator

2002-12-17 Thread Suresh Addagalla
Hi Iris, I came across the following excerpt from Struts kickstart: After moving all the properties out of the bean and into the DynaForm definition in struts-config.xml, the only thing left in the bean is the validate function. By using the Struts Validation framework, which ties into the

Re: can't find out why the digester doesnt find method in class (addon)

2002-12-17 Thread lukas_oesterreicher
Hi again. I've been searching on this problem and after 1 1/2 days finally getting somewhere. I found out that it tries to call setDriver without any parameter. I havent found out why yet though, or how to make it pass that parameter. Lukas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

Antwort: Re: can't find out why the digester doesnt find method in class (solution)

2002-12-17 Thread lukas_oesterreicher
Hi there, again! Now I've found out what it was. Though I was sure I downloaded the latest struts.jar it was an old version (0.9), where this feature must have been implemented differently or not at all. After I upgraded to 1.0 it worked with the original source as I have written it. Maybe it

Re: Struts Validator

2002-12-17 Thread Iris
Suresh Addagalla wrote: Hi Iris, I came across the following excerpt from Struts kickstart: After moving all the properties out of the bean and into the DynaForm definition in struts-config.xml, the only thing left in the bean is the validate function. By using the Struts Validation framework,

RE: html:errors ActionErrors.GLOBAL_ERROR

2002-12-17 Thread Sri Sankaran
Are you invoking saveErrors() in the action that generates the ActionErrors? Sri -Original Message- From: Vijay Balakrishnan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 4:48 PM To: '[EMAIL PROTECTED]' Subject: html:errors ActionErrors.GLOBAL_ERROR Hi, I am doing the

Re: FW: dataSources outside of actionservlet

2002-12-17 Thread Matthias Bauer
The normal thing to is the following: You aquire a database connection in the action class and pass it on as a parameter to the bean's database methods. --- Matthias Mark wrote: Sorry to repost this question, but the more i think about it the more i think it a reasonable one (please tell me

FW: dataSources outside of actionservlet

2002-12-17 Thread Mark
I'm really sorry to post this mail again,, but is there something i'm not understanding ? Or does everyone do all their queries in action servlets? I can see how what i'm trying could be wrong in that, if i want to reuse my non servlet classes using the datasource in config.xml might render this

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
Woohoo!!! But you'll have to forgive my ignorance, but any chance of a more ostensive answer, like an example for example.. So something like DataSource ds = getDatasource(mykey); (MyBEan).doSomething(ds, and other args); Is this along the right lines? Many thanks mark On 17-12-2002

Re: FW: dataSources outside of actionservlet

2002-12-17 Thread keithBacon
Using the command design pattern you can ensure the DB code needs to be coded only once. See the example below http://www.mail-archive.com/struts-user@jakarta.apache.org/msg24579.html --- Matthias Bauer [EMAIL PROTECTED] wrote: The normal thing to is the following: You aquire a database

Re: FW: dataSources outside of actionservlet

2002-12-17 Thread keithBacon
Hi mark, It is a good question! I've not used them so far but i think the new java Properties class is designed to supply config. info to a system. If you have a command processor class that gets the connection maybe you should make it's name a property so you can have a different class in the

RE: Struts and session

2002-12-17 Thread Siggelkow, Bill
Doug, the servlet container is responsible for invalidating the session based on the configured timeout. If you want to take some action when that occurs you should register an HttpSessionListener to receive notification of session lifecycle events. For complete details you can read the

Struts and session

2002-12-17 Thread Doug Ogateter
Greetings: I am using struts1.1b2 to implement a web application. I have a question regarding to implementing session timeout. When session is invalidated, user who has logged in the system should be forwarded to login page. I am not clear about the followings, and hope someone can help me

Validation and Tiles

2002-12-17 Thread jeremy weber
Hello, I am very new to struts so please bear with me. Its been going very well up until this point, but now I am stuck. I have a simple tile layout called common_layout. Common_layout uses a header/footer/rightmenu/body configuration. I also just started to use the validation tool. My first

logic:present

2002-12-17 Thread Roland Carlsson
Hi! I got a small problem with finding an object in the request-scope. In an Action I have the following line: request.setAttribute(rdc_shop_Login_loginById, login); Then I have a .jsp-page with the following: logic:present name=rdc_state_Login_loginById scope=request found a Login

RE: Where does the servlet.log(String) output go?

2002-12-17 Thread Jerome Jacobsen
This is true for Tomcat, but not necessarily for other servlet containers. Check your servlet container documentation. -Original Message- From: Robert J. Lebowitz [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 6:20 PM To: Struts Users Mailing List Subject: Re: Where does

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
Thanks keith that looks like a really good elegant way of doing this, but as i conceded before I particularly stupid, and i don't get it. To be honest I've always had the db pooling stuff taken care for me before which was only of the attractions of using struts.. Is there no means to referencing

Validator: validating indexed properties

2002-12-17 Thread Matt Raible
I have been given the impression that the Validator can be used to validate indexed properties in a form. I'm trying to figure out the validation.xml syntax to perform this validation. If I have a GroupForm that contains an ArrayList of UserForms, how do I configure validation.xml? For

RE: Validation and Tiles

2002-12-17 Thread Sri Sankaran
When validation fails, Struts forwards to the location indicated by the respective mapping's input attribute. So for example, your action-mapping with path 'SetupFormBean' will, upon validation failure, take you to /pages/newinstallation.jsp -- because that is what you have set as your

RE: Struts and session

2002-12-17 Thread shirishchandra . sakhare
Should I use request.getSession(false) to check if session is timeout? If so, that means for every request, it will check if session is invaildate. Will it cause performance problem? If not, which methods should I call to check it? That is the only way to know if the session is invalid..(or

Re: Struts and session

2002-12-17 Thread Justin Ashworth
Hi Doug, We use a javax.servlet.Filter to check for an expired session. I found this idea on some website or in the Struts-User archives and it makes the most sense to me. All requests go through the filter before they hit the servlet, so this is the perfect place to check for whether or not a

RE: FW: dataSources outside of actionservlet

2002-12-17 Thread Edgar P. Dollin
Another option is to aquire the database connection via jndi when you need it. Edgar -Original Message- From: Matthias Bauer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 9:05 AM To: 'Struts Users Mailing List' Subject: Re: FW: dataSources outside of actionservlet The

Re: logic:present

2002-12-17 Thread Roland Carlsson
Ignore my last please. I must be in need of some sleep or coffe... Hope that I didn't make anyone work Thanks Roland - Original Message - From: Roland Carlsson [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 17, 2002 3:34 PM Subject:

RE: [Struts 1.1] How to access to MessageRessources in an ActionForm ??

2002-12-17 Thread Toni
Try this: MessageResources msgres = getServlet().getResources(); -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 6:32 AM To: Struts Users Mailing List (E-mail) Subject: [Struts 1.1] How to access to MessageRessources in an ActionForm

RE: Struts Validator

2002-12-17 Thread Hurdle, Robert H, PERSCOM
https://www6.software.ibm.com/developerworks/education/x-iextreme19/index.ht ml is a good tutorial for getting started. You'll need to register with IBM, but its painless. -Original Message- From: Iris [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 5:01 AM To: Struts Users

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
I know that , i've read that .. But I what i really want to know is this Without importing any servlet stuff Some_means_of_getting_to_details_in_config_xml.getDatasource(mykey); Many thanks mark On 17-12-2002 15:17, Edgar P. Dollin [EMAIL PROTECTED] wrote: Another option is to aquire the

Forcing the ActionForm to populate a field before the other

2002-12-17 Thread Toni Charlot
I would like to have a setter method called before another. What's the best way to do that in the ActionForm Thank you.

Re: Oracle DataSource Tips

2002-12-17 Thread Bradley G Smith
One tactic I have used is to create a singleton data access class (e.g. DataCache) which provides methods that return data as beans (not action form beans). The DataCache class gets initialized in a Struts plug-in. Plug-ins execute once when the application starts and once when it shuts down, and

Re: logic:present

2002-12-17 Thread Roland Carlsson
I'm sorry. I should have told what's where wrong. rdc_shop_Login_loginById != rdc_state_Login_loginById One would think that one should see these things but I missed until I look at my quiestion again. Regards Roland - Original Message - From: Roland Carlsson [EMAIL PROTECTED] To:

TilesDefinition name in associated controller

2002-12-17 Thread Björn Pewe
Hello! We use tiles in a project and we really appreciate how powerful tiles can be, but we have bit problem... I have a tile that outputs dynamic data into a html table. The table has links on each columnheader to allow sorting of differentThis table can be placed at different locations on the

RE: Validation and Tiles

2002-12-17 Thread jeremy weber
Thanks did the trick. --- Sri Sankaran [EMAIL PROTECTED] wrote: When validation fails, Struts forwards to the location indicated by the respective mapping's input attribute. So for example, your action-mapping with path 'SetupFormBean' will, upon validation failure, take you to

request.getContextPath() and Tiles

2002-12-17 Thread Susan Bradeen
This is exactly what I am trying to do ... http://www.mail-archive.com/struts-user@jakarta.apache.org/msg37691.html I would like to set requestURI='request.getContextPath().concat(/something.do)' however, my request.getContextPath() is not including my module in that path. For example, I am

Re: TilesDefinition name in associated controller

2002-12-17 Thread Cedric Dumoulin
It is not possible to retrieve the name of the definition within a tile. However, there is a simple solution: add to your tile an attribute specifying the name ;-) Hope this help, Cedric Björn Pewe wrote: Hello! We use tiles in a project and we really appreciate how powerful tiles

FormBEan retrun null

2002-12-17 Thread Mark
Hello I'm in the final stages of a project i've been working on. I've up til now been working with all my classes in my classes directory with no package descriptions etc.. Now I've cleaned everything up, put everything into packages and changed my config.xml file etc. Everything compiles etc,

Re: Struts and session

2002-12-17 Thread Doug Ogateter
Justin: Thank you for reply. That's a good idea. One more question, can filter works with struts? Doug Justin Ashworth [EMAIL PROTECTED] wrote:Hi Doug, We use a javax.servlet.Filter to check for an expired session. I found this idea on some website or in the Struts-User archives and it makes

RE: [Struts 1.1] How to access to MessageRessources in an ActionForm ??

2002-12-17 Thread Arnaud HERITIER
It works but it is a deprecated method in 1.1 Is anyone know the workaround in 1.1 ??? -Message d'origine- De : Toni [mailto:[EMAIL PROTECTED]] Envoyé : mardi 17 décembre 2002 16:01 À : 'Struts Users Mailing List'; [EMAIL PROTECTED] Objet : RE: [Struts 1.1] How to access to

RE: dataSources outside of actionservlet

2002-12-17 Thread Edgar P. Dollin
Context env = (Context) new InitialContext().lookup(java:comp/env); DataSource ds = (DataSource) env.lookup(yourconnection); conn = ds.getConnection(); Edgar -Original Message- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002

ValidatorActionForm JavaScript validateXXX() function name

2002-12-17 Thread Rémy Giard
Hi all, We have been using the ValidatorActionForm to validate a form for a specific action. The action called when submitting the form is /config/Save. This has been defined in the struts-config.xml and validation.xml files. Server-side validation works properly and the JavaScript is generated

RE: Struts and session

2002-12-17 Thread James Childers
Doug Ogateter wrote: Thank you for reply. That's a good idea. One more question, can filter works with struts? It's not about Struts, it's about your web container. Filters are hit before each and every request, so they happen before any Struts components, servlets, or whatnot are ever

Re: Struts and session

2002-12-17 Thread Justin Ashworth
Hi Doug, The filter does work with Struts - it just doesn't make use of it. Your request goes through the filter even before the Struts ActionServlet is invoked, so all of this happens before Struts comes into the picture in a request. You really don't need struts for this - you are basically

RE: Re: Struts and session

2002-12-17 Thread shirishchandra . sakhare
Hi Doug/Justin, Actually we had similar problem..We wanted to use a global forward if the user is not logegd in so that he can be thrown to login page or any other page which is configurable..And that is the reason we choose to include the login check in our applications abstract action as you

Problem with Struts Template and proxy caching

2002-12-17 Thread dumps
Hi everyone, we are facing a problem with Struts templates (Struts 1.02) and proxy caching : The response headers we are setting in jsp files are not being sent back to the browser whenever a template:insert tag is used : ... template:insert template='Template.jsp' template:put

not getting right ActionMapping class with StrutsTestCase

2002-12-17 Thread Afshartous, Nick
I noticed the following when trying to use StrutsTestCase (latest version of StrutsTestCase with Struts B2). It seems that when a request is sent via StrutsTest that RequestProcessor,processMapping does not find the ActionMapping class that has been configured in web.xml. Instead it finds

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
Thanks edgar.. For those folks who are starting out or don't read binary Context and InitialContext are part of the javax.naming package So you'll need to import javax.naming.Context; import javax.naming.InitialContext; The javadocs are less cryptic.. Sometimes is just knowing which ones

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
Okay.. We're almost there, but the env.lookup(yourconnection) bit is the key that is specified in config.xml 'right?' data-source key=yourconnection Doesn't work like this it throws an exception It tells be yourname is not bound in this context... While I'm sure , in fact i know there's a

html:rewrite and JavaScript

2002-12-17 Thread Iris
Hello, I want to populate an html:select following the value of an html:text. My idea was to reload the same page with the value of the html:text in parameter. I saw there is an html:rewrite tag that perhaps can help me but I don't know how to use it. Someone has an example to show me how to

RE: Struts and session

2002-12-17 Thread Edgar P. Dollin
You don't forward from the filter, you send an error to the container. The container has a configurable login page i.e. from web.xml. error-page error-code401/error-code location/WEB-INF/jsp/requestUserLogin.jsp/location /error-page Edgar -Original Message- From:

Re: Problem with Struts Template and proxy caching

2002-12-17 Thread Cedric Dumoulin
Hi, I think that once the response is committed, you can't change the response's header (check the spec). So, if you set the header after the template is inserted, the change has no effect because the insert commit the response. Cedric dumps wrote: Hi everyone, we are facing a

Re: request.getContextPath() and Tiles

2002-12-17 Thread Cedric Dumoulin
What URL do you use to call the page or action in which you do the request.getContextPage() ? Cedric Susan Bradeen wrote: This is exactly what I am trying to do ... http://www.mail-archive.com/struts-user@jakarta.apache.org/msg37691.html I would like to set

RE: JDBC development

2002-12-17 Thread Tuncay Baskan (Internet Grubu)
-Original Message- From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:16 PM To: Struts Users Mailing List Subject: RE: JDBC development If you are just tired of the time it takes to code your DAO object then there is an excellent

Re: form-bean and set-property tags

2002-12-17 Thread Justin Ashworth
The beauty of DynaActionForms is that you don't need getters and setters for every property and, in fact, if you do have getters and setters for any property they won't be called...which is what you are seeing. Read the information at the following site and it should all be clear:

Server side RegExp validation fails yet client side works (using DynaValidatorForm)

2002-12-17 Thread John
I'm currently using the Struts 1.1b version. I have a problem where I define a simple form with a single field; I need to have the field validated using required, minlength and mask validation operators. I'm using DynaValidatorForm's to avoid the overhead of implementing a concrete ActionForm

Character encoding problem

2002-12-17 Thread Tuncay Baskan (nternet Grubu)
Probably I have a configuration problem with struts. Since my native language is Turkish :-), I use Turkish messages in everywhere JSPs, Action classes etc. But when ActionError (or any other tag that use MessageResources) display errors in JSPs they look unreadable. For example, (sorry,

Re: dataSources outside of actionservlet

2002-12-17 Thread J Aaron Farr
On Tue, 17 Dec 2002 17:45, Mark [EMAIL PROTECTED] wrote: Thanks edgar.. For those folks who are starting out or don't read binary Context and InitialContext are part of the javax.naming package So you'll need to import javax.naming.Context; import javax.naming.InitialContext; The

RE: form-bean and set-property tags

2002-12-17 Thread Aadithya Deshpande
Shouldn't there be a difference between set-property and form-property, however? Most other places that allow a set-property work as expected. It seems that it's not doing it for form-beans. I was hoping to use set-property to configure the (customizable) form. I don't necessarily want that

Re: request.getContextPath() and Tiles

2002-12-17 Thread Susan Bradeen
Hi Cedric, Currently, I am using an html:link from a simple navigation bar JSP tile to get to this page. snip from navbar.jsp tdhtml:link page=/showlist.dobean:message key=main.list//html:link/td /snip which correctly becomes: snip tda href=/myWebApp/myModule/showlist.doView

Re: Struts and session

2002-12-17 Thread Kris Schneider
Maybe something like the following. This is completely untested and you'd need to plug in your own logic for when the module config or forward config are null. If your action servlet is not set up to do load-on-startup, then this obviouly won't work for the initial request. import

Re: web.xml/validator question

2002-12-17 Thread David Graham
You don't need to use a different servlet to use the validator. You just need to configure the validator as a Struts plugin. David From: Louis Proyect [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject:

Internationalisation and Database/EJB data

2002-12-17 Thread Jordan Thomas
Hi, What is the best way to make the data in my Database tables/EJB's internationalised? Is there a standard pattern for having seamlessly internationalised data in a database that I can use with struts? Essentially, based on the user's locale I want different data displayed and unfortunately,

[I18N]Build messages from multiple keys

2002-12-17 Thread Sri Sankaran
Using: Struts 1.0.2 I would like to display a message which requires text from two different keys. Is this possible? For example, consider the following label.foo=You must first make a selection. When done select the {0} button button.next=Next I would like the application to display the

Re: Internationalisation and Database/EJB data

2002-12-17 Thread David Graham
You need to design multiple language ability into your database schema. I would create a view to make the queries easier. David From: Jordan Thomas [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User [EMAIL PROTECTED] Subject: Internationalisation and

Re: request.getContextPath() and Tiles

2002-12-17 Thread Susan Bradeen
Please see below ... On 12/17/2002 02:12:23 PM Susan Bradeen wrote: Hi Cedric, Currently, I am using an html:link from a simple navigation bar JSP tile to get to this page. snip from navbar.jsp tdhtml:link page=/showlist.dobean:message key=main.list//html:link/td /snip which

Validation Method Not Called

2002-12-17 Thread Weber, Jeremy
Im trying to start of simple with a custom validaton method. Currently all it contains is a system.out to verify that the method never gets called. Can some one verify that my configuration is correct? I would appreciate it. validator-rules.xml validator name=identical

RE: Internationalisation and Database/EJB data

2002-12-17 Thread Joe Barefoot
Your database schema will largely depend on the amount/type of data that you need to internationalize...are you internationalizing entire documents, paragraphs of text, just messages, all three? Do you need localized images too? Once you settle on a database schema, you can write a custom

how to send actionForm from one action to another action

2002-12-17 Thread Wasiq Hasan
Hi, how to send actionForm from one action to another action. AS i understand if we call an Action from JSP submit it automatically fills the correct ActionFom based on the settings in struts-config.xml Basically i am trying to call same Action from jsp and other actions and always pass data in

FormBean exception lies

2002-12-17 Thread Mark
Anyone ever had any problems with a FormBean's reporting null, but perhaps other foul play is afoot? Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error

restricting to a specific field length

2002-12-17 Thread Michelle Wynn
I want to validate a field that must be alphanumeric and must be a X number of characters long. Is there a clean way to leverage the basic struts validators for this or does this have to be a custom validation? I know I could use a combination of the minlength and maxlength functions but this

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
Thanks the last answer does the job, thanks jaaron.. The JNDI solution seemed a bit crack induced and a bit too cyptic for my low iq.. :) Cheers again mark On 17-12-2002 19:52, J Aaron Farr [EMAIL PROTECTED] wrote: On Tue, 17 Dec 2002 17:45, Mark [EMAIL PROTECTED] wrote: Thanks edgar..

RE: Internationalisation and Database/EJB data

2002-12-17 Thread Pat Quinn
I've done something like this. i.e. i have extended the PropertyMessageResources etc. and add extra stuff to fetch data in the relevant locale depending on the browsers locale. It works a really well for me. From: Joe Barefoot [EMAIL PROTECTED] Reply-To: Struts Users Mailing List

RE: html:rewrite and JavaScript

2002-12-17 Thread Todd Pierce
html:rewrite is essentially the same as html:link except that it doesn't generate an a element in the HTML, e.g. html:rewrite forward=some.global.forward paramId=key paramName=someBean paramProperty=someProperty / will generate something like this: myUrl.do?key=somePropertyValue -Original

Re: FormBean exception lies : solved

2002-12-17 Thread Mark
Dooh!!! I had . in my actions in it don't dig.. I found what the problem was. I did have this working before with the . but never mind.. Moral of the story don't do /something.something.do On 17-12-2002 22:44, Mark [EMAIL PROTECTED] wrote: Anyone ever had any problems with a FormBean's

RE: html:errors ActionErrors.GLOBAL_ERROR

2002-12-17 Thread Vijay Balakrishnan
Hi, I tried using saveErrors(request,errors) in the 1st action.But the 2nd action to which it is forwarded doesn't seem to get the error. Here is my code in the 2nd action: while (enum.hasMoreElements()){ Object obj = enum.nextElement(); count++;

Re: restricting to a specific field length

2002-12-17 Thread David Graham
You could give the field a maxlength attribute and then use the minlength validator to make sure it's the given number of characters. David From: Michelle Wynn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject:

Re: restricting to a specific field length

2002-12-17 Thread Michelle Wynn
Thanks -- I ended up creating a mask for the number of characters I need then used a custom msg attribute to override the default make error. But I could do the same with what you propose as well.

resolving message resources

2002-12-17 Thread John . E . Gregg
Hi all, This is more of a note for posterity than anything else. Being a newby to Struts, I was frustrated for a while by this message: Cannot find message resources under key org.apache.struts.action.MESSAGE. I found just enough in the archives and docs to know what it was but couldn't

RE: resolving message resources

2002-12-17 Thread Joe Barefoot
This has come up so many times that the message should just be changed to: Cannot find message resources under key org.apache.struts.action.MESSAGE, probably because your ActionServlet isn't initialized. Have a nice day. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: resolving message resources

2002-12-17 Thread Eddie Bush
Actually ... seeing as how the ActionServlet places a reference to itself in scope, tags could actually determine if that is the culprit. As I recall though, the docs strongly suggest (if not require) that the servlet me marked as load on startup. half-serious-half-joking ... 'course, who

struts-config action-mapping how to set custom attribute

2002-12-17 Thread Steve Vanspall
Hi there I was wondering if there is a way to set a custom attrbiute to an action mapping, and then retieve it using the ActionMapping class. I notice that the ActionMapping class has a getAttribute(String s) method, but I am not sure if there is a way to set that attribute in the struts-config

How to display the database query result?

2002-12-17 Thread frank
Hi, all I'm a new in struts. And I am writing a struts test. I made two actionforms, one is for the queryform, and another is showform. The business logic is written in the testAction, it query the database and put the data into the showform, , then put the showform into the session, the next

re: how to send actionForm from one action to another action

2002-12-17 Thread Taylor Cowan
Hi, how to send actionForm from one action to another action. If the form is specified as session scope in struts-config, it will always be available to you from req.getSession().getAttribute(key). I don't know exactly what key struts uses, but it could be found out by reading the source code or

Re: how to send actionForm from one action to another action

2002-12-17 Thread Eddie Bush
It's actually a combination of the module name and the form name. Now that we have modules, a strategy has to be used which allows each module to have forms of the same name. The source code would definitely be the place to see exactly how the name is arrived at - I'd tell you, but I haven't

Re: How to display the database query result?

2002-12-17 Thread Eddie Bush
most property names start with a lower-case letter - at least, that's convention. Have you tried using requirement instead of Requirement? frank wrote: Hi, all I'm a new in struts. And I am writing a struts test. I made two actionforms, one is for the queryform, and another is showform. The

RE: how to send actionForm from one action to another action

2002-12-17 Thread Steve Vanspall
The key in session for a form will be the name defined for that form in the struts-config form-bean tag -Original Message- From: Taylor Cowan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 18 December 2002 3:28 PM To: [EMAIL PROTECTED] Subject: re: how to send actionForm from one action to

Multiple forms in session [WAS: RE: how to send actionForm from one action to another action]

2002-12-17 Thread Andrew Hill
One thing Ive never understood about forms in session scope, is how does struts deal with the situation where there are two concurrent requests in the same session both of which are for the same action (and form type)? As far as I can make out however, the key for a form is fixed without a way to

Re: how to send actionForm from one action to another action

2002-12-17 Thread Eddie Bush
It seems that is currently correct. The form either exists in request or session scope - under the name you give it in the mapping - or you can also retrieve it via the o.a.s.Globals.BEAN_KEY key in the page context (the form tag copies it there). There has been much talk of moving to the

  1   2   >