SV: recursive and struts. SOS

2005-09-27 Thread Ekberg Mats KONSULT
Also, look at the "nested" struts taglib. /mats > -Ursprungligt meddelande- > Från: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Skickat: den 27 september 2005 23:29 > Till: Struts Users Mailing List > Ämne: Re: recursive and struts. SOS > > On 9/27/05, Laurie Harper <[EMAIL PROTECTED

RE: e-mail address validator

2005-09-27 Thread Wielemaker, Bram
It's a standard build in validation of the validator see http://struts.apache.org/userGuide/dev_validator.html Gr, Bram I'm looking for a regular expression or something I can plug into Struts 1.2 to validate e-mail addresses off of a DynaForms. Anyone have any pointers? Thanks. ---

Re: writing images from a database

2005-09-27 Thread Dakota Jack
Oh, wait! I did not miss your point. In fact, I did not even read your point really. Sorry, eveyone. Never mind. On 9/27/05, Mark Benussi <[EMAIL PROTECTED]> wrote: > Thanks Murray. > > Jack you missed my point, it was nothing to do with the expense of file > writing etc but with the hit of ob

Re: writing images from a database

2005-09-27 Thread Dakota Jack
He doesn't care about overhead, Frank. He just wants to do it. If it is slow, ugly, etc. that does not matter to him. On 9/27/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > The Wiki is your friend: > > http://wiki.apache.org/struts/StrutsFileDownload > > Specifically, you will be interested

Re: writing images from a database

2005-09-27 Thread Dakota Jack
Sorry, Murray, he just wants to do it. All the performance, etc. stuff is just not relevant to his coding. On 9/27/05, Murray Collingwood <[EMAIL PROTECTED]> wrote: > I went through the process recently - the performance of MySQL handling > images was > soo bad I immediately changed all my think

Re: writing images from a database

2005-09-27 Thread Dakota Jack
Sorry, Ross, he doesn't care about doing this well. Only just doing it somehow. On 9/27/05, Ross Gibb <[EMAIL PROTECTED]> wrote: > I'm using DB2 with pictures stored as blobs. We have a system similar > to what Wendy suggested. When the image is retrieved from the database > it is sent to an im

Re: e-mail address validator

2005-09-27 Thread Bryon Lape
> I'm looking for a regular expression or something I can plug into Struts > 1.2 to validate e-mail addresses off of a DynaForms. Anyone have any > pointers? > > Never mind. I found this one on an ASP.Net page: [EMAIL PROTECTED],3} it is good enough for my needs.

Re: writing images from a database

2005-09-27 Thread Dakota Jack
Okay. Your point was you don't know how to write a response? Okay. I will let the others know that we were wrong that you wanted to do this right. On 9/27/05, Mark Benussi <[EMAIL PROTECTED]> wrote: > Thanks Murray. > > Jack you missed my point, it was nothing to do with the expense of file > w

Re: "dir" Attribute in HTML Tag library

2005-09-27 Thread Michael Jouravlev
On 9/27/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Niall Pemberton wrote: > > There is already an enhancement request for this, no patch though :-( > > > > http://issues.apache.org/bugzilla/show_bug.cgi?id=21171 > > The discussion on the linked bug is rather entertaining reading though ;-) Ind

Re: "dir" Attribute in HTML Tag library

2005-09-27 Thread Laurie Harper
Niall Pemberton wrote: There is already an enhancement request for this, no patch though :-( http://issues.apache.org/bugzilla/show_bug.cgi?id=21171 The discussion on the linked bug is rather entertaining reading though ;-) L.

[ANN] Informecial: how Struts Dialogs changes the way you write Struts apps

2005-09-27 Thread Michael Jouravlev
I hope that this short intro to Struts Dialogs is informative enough not to be considered as just an advertisement. It tries to explain the main concepts that Struts Dialogs is based on: * tighter integration of JSP markup with Java action * event handling, based on DispatchAction * tw

e-mail address validator

2005-09-27 Thread bslstruts
I'm looking for a regular expression or something I can plug into Struts 1.2 to validate e-mail addresses off of a DynaForms. Anyone have any pointers? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Nested Dynavalidator forms

2005-09-27 Thread Hubert Rabago
You wouldn't be able to in one declaration, but you could do several then combine them in your Action. In your pre-population action: DynaValidatorForm childForm = childFormBeanConfig.createActionForm(getServlet()); parentForm.set("child", childForm); // use session scope so th

Re: ActionMessage and bundle choice

2005-09-27 Thread Niall Pemberton
From: "Laurie Harper" <[EMAIL PROTECTED]> Sent: Tuesday, September 27, 2005 10:34 PM > emre akbas wrote: > > Hi, > > We know that ActionMessage class has a field to store the key of the message > > but not the bundle name of the key. For (error) messages that are not in the > > default message-reso

Re: writing images from a database

2005-09-27 Thread Ross Gibb
I'm using DB2 with pictures stored as blobs. We have a system similar to what Wendy suggested. When the image is retrieved from the database it is sent to an image servlet that will cache the image. The browser then asks the image servlet for the image. The image servlet is also smart enoug

Re: Nested Dynavalidator forms

2005-09-27 Thread Laurie Harper
raghu wrote: How do we build dynavalidator forms that have as one of their fields another dynavalidator form? My first thought was but of course you can't configure the nested dyna form that way. Maybe lazy dyna forms would work here? L. --

RE: writing images from a database

2005-09-27 Thread Mark Benussi
Thanks Murray. Jack you missed my point, it was nothing to do with the expense of file writing etc but with the hit of obtaining a database connection and writing the bytes to file (In whatever highly efficient method you recommend) -Original Message- From: Murray Collingwood [mailto:[EM

Re: i18n and l10n issue - need help

2005-09-27 Thread Laurie Harper
Balasubramaniam, Sezhiyan wrote: Thanks a lot Laurie. I have the ApplicationResources_zh.properties in WEB-INF/classes along with other locale property files. The issue is, always I am seeing the default locale, even when I am explicitly changing the browser locale setting to Chinese. The thi

Re: "dir" Attribute in HTML Tag library

2005-09-27 Thread Niall Pemberton
From: "Laurie Harper" <[EMAIL PROTECTED]> Sent: Tuesday, September 27, 2005 10:18 PM > yogi wrote: > > Hi All, > > > > This is regarding "dir" attribute is Struts HTML tag library. The HTML taglib contains tags used to create Struts input forms, as well as other tags generally useful in the creati

Re: Re: i18n and l10n issue - need help

2005-09-27 Thread Michael Jouravlev
On 9/27/05, Balasubramaniam, Sezhiyan <[EMAIL PROTECTED]> wrote: > Thanks a lot Laurie. > > I have the ApplicationResources_zh.properties in WEB-INF/classes along > with other locale property files. > The issue is, always I am seeing the default locale, even when I am > explicitly changing the brow

Re: writing images from a database

2005-09-27 Thread Murray Collingwood
I went through the process recently - the performance of MySQL handling images was soo bad I immediately changed all my thinking and put the images in a sub-directory in my file system. The code I was using was buffering (32k) and the images were only about 100k and still I had to wait 8 sec

Re: JSF or Struts Classic (was Vs)

2005-09-27 Thread Dakota Jack
There is a fundamental problem with talking about the "definition" of words in other than a "lexical" sense. Words do not have definitions like you find, for example, in biology but, rather, have meanings and the meaning is, as Ludwig Wittgenstein loved to say, "the use". People who look for and

Re: How to reference pages external to a webapp using Tiles

2005-09-27 Thread Laurie Harper
Ekberg Mats KONSULT wrote: I am working on an export coltrol system for the swedish customs. We are using struts and the tiles framework. We would like to have a separate webapp (or even a plain html site) with some standard templates for mainly menus. I have placed some images and standardized j

Re: ActionMessage and bundle choice

2005-09-27 Thread Laurie Harper
emre akbas wrote: Hi, We know that ActionMessage class has a field to store the key of the message but not the bundle name of the key. For (error) messages that are not in the default message-resources, we can do the trick in the jsp file by giving the bundle of the key like: So far so go

RE: Re: i18n and l10n issue - need help

2005-09-27 Thread Balasubramaniam, Sezhiyan
Thanks a lot Laurie. I have the ApplicationResources_zh.properties in WEB-INF/classes along with other locale property files. The issue is, always I am seeing the default locale, even when I am explicitly changing the browser locale setting to Chinese. The things I did are, I created the Applica

Re: Struts action servlet mapping, getPathInfo() returns null

2005-09-27 Thread Laurie Harper
Remember that servlet mapping and action paths are two entirely seperate things. For servlet mappings, *.do/** would be infix, not suffix -- and infix is not allowed. Suffix means, roughly, 'at the end'. In other words, you can either have 'text*' (prefix mapping) or '*text' (suffix mapping). I

Re: change the language

2005-09-27 Thread Dakota Jack
Do you understand how the i18n works with the properties files in Struts? On 9/27/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Struts Mailreader Demonstration application is included into Struts > bundle as struts-mailreader.war. > > Also check out my implementation: > http://www.superinte

change the language

2005-09-27 Thread Michael Jouravlev
Struts Mailreader Demonstration application is included into Struts bundle as struts-mailreader.war. Also check out my implementation: http://www.superinterface.com/mailreader The link on the bottom of the home page explains how it works. Unlike original version, this one has more messages loca

Re: "dir" Attribute in HTML Tag library

2005-09-27 Thread Laurie Harper
yogi wrote: Hi All, This is regarding "dir" attribute is Struts HTML tag library. The HTML taglib contains tags used to create Struts input forms, as well as other tags generally useful in the creation of HTML-based user interfaces. The output is HTML 4.01 compliant or XHTML 1.0 when in XHTML mo

Re: recursive and struts. SOS

2005-09-27 Thread Michael Jouravlev
On 9/27/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Carlos de la Flor Egiluz wrote: > > hello y have one java object like this (the object name is adressesObj: > > String name > > String surname > > List list = new ArrayList() > > set/get methods > > well into the list (arrayList) there are

Re: writing images from a database

2005-09-27 Thread Dakota Jack
The way I do this is to dynamically control caching on the CLIENT. Some clients have one cache time and others have a different time. Also, for different images, you can use different caching times on the same client. There are lots of ways to fry this fish. On 9/27/05, Frank W. Zammetti <[EMAI

Re: recursive and struts. SOS

2005-09-27 Thread Laurie Harper
Carlos de la Flor Egiluz wrote: hello y have one java object like this (the object name is adressesObj: String name String surname List list = new ArrayList() set/get methods well into the list (arrayList) there are several elements, objects, that are like the same object (adressesObj)... an

Re: recursive and struts. SOS

2005-09-27 Thread Carlos de la Flor Egiluz
i dont see any thing for the recursively... can you say me where is? thanks 2005/9/27, Hubert Rabago <[EMAIL PROTECTED]>: > > Try the tutorials on http://www.keyboardmonkey.com/next/index.jsp > > > Hubert > > > On 9/27/05, Carlos de la Flor Egiluz <[EMAIL PROTECTED]> wrote: > > hello y have one j

RE: [OT] question about XSL and XPATH

2005-09-27 Thread Christopher Chan
Your XSL should be something like: Basically, match the node you are interested in and get the text value for that node. -- Christopher Chan SpikeSource, Inc. [EMAIL PROTECTED] http://developer.spikesource.com - To unsu

Re: i18n and l10n issue - need help

2005-09-27 Thread Laurie Harper
Balasubramaniam, Sezhiyan wrote: We were giving locale support for English, Spanish, French and German in one of our STRUTS 1.0.1 intranet application. So far, it went smooth as all the resource bundles are ASCII based. Recently we got some requirements on double byte characters (CHINESE and JA

Re: recursive and struts. SOS

2005-09-27 Thread Hubert Rabago
Try the tutorials on http://www.keyboardmonkey.com/next/index.jsp Hubert On 9/27/05, Carlos de la Flor Egiluz <[EMAIL PROTECTED]> wrote: > hello y have one java object like this (the object name is adressesObj: > String name > String surname > List list = new ArrayList() > set/get methods >

[OT] question about XSL and XPATH

2005-09-27 Thread Ashish Kulkarni
Hi suppose i have a XML file as below, i want to print only value where id = name. I want to do this using XSL, not java program for example once i read throug all the XML file, i should get output as 123 and 456 abc xyz abc 123 xyz 456 jkl 998 This is the XSL i have been trying *

Re: How to make img response to a click?

2005-09-27 Thread Laurie Harper
梁炳場 wrote: How to make html:img or other html tag response to a click? As in straight HTML, you need to wrap the image (or other content) with a link ( tag in HTML, tag in Struts).

Re: change the language

2005-09-27 Thread Michael Jouravlev
See MailReader Demo Application. On 9/27/05, Carlos de la Flor Egiluz <[EMAIL PROTECTED]> wrote: > hello > can anybody helps me to write one action for changin the language? > i want to cahge the org.apache.struts.actions.LocaleAction to "en" or "es" > but i dont know how to programe it. > can any

Re: Dynamicform field type

2005-09-27 Thread Laurie Harper
Oleg wrote: I found a bunch of posts and articles on dynamic forms but I havent found any tips on how one can dynamically define wheter the field will be html-el:text, html-el:img, .. Bascially something like: There's no way to that in JSPs; there's no 'eval' mechanism. Of course a di

Re: Help needed urgent

2005-09-27 Thread Hubert Rabago
You skipped over my other questions: > When I tryed this way it worked: > > href="/ExemploStruts/CadastroClienteDispatchAction.do..." > > But it did not populate my form with the values in the bean Did you include the parameters you wanted to populate? Also, you said: > and it seems t

Re: tag within tag

2005-09-27 Thread Laurie Harper
Catherine wrote: I thought rahul wanted to invoke someAction and passing a parameter, id. What will happen if you click ? Exactly what you'd expect: the browser with load the resource at /foo. I still can't figure out how to solve my problem, that is get tag evaluated as the parameter of

change the language

2005-09-27 Thread Carlos de la Flor Egiluz
hello can anybody helps me to write one action for changin the language? i want to cahge the org.apache.struts.actions.LocaleAction to "en" or "es" but i dont know how to programe it. can anybody helps me or say me where can i find one example? thanks

Re: ValidWhen and string comparison

2005-09-27 Thread Niall Pemberton
What you have should work - but its always going to give an error unless statut is set to "Doctorant". Are you sure "statut" is in your bean and getting populated? Niall - Original Message - From: "Emmanuel.Leguy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, Septe

recursive and struts. SOS

2005-09-27 Thread Carlos de la Flor Egiluz
hello y have one java object like this (the object name is adressesObj: String name String surname List list = new ArrayList() set/get methods well into the list (arrayList) there are several elements, objects, that are like the same object (adressesObj)... and eah obj has severeal objs...

Re: Authentication base on Form

2005-09-27 Thread Martin Gainty
Buenos Dias López Díaz Also it would be helpful to know the authentication algorithm (jetspeed/oracle single signon) that you are implementing.. Saludos, Martin- - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, September 27

iPlanet 6 and Struts 1.2

2005-09-27 Thread bslstruts
Platform: iPlante 6.0 (sp2 on Solaris, sp1 on Windows for dev) JVM: 1.2 Struts: 1.2 IDE: IntelliJ 5 I have structs running, but some things don't seem to work (like the JSTL support), but a more important break is the reading of the message properties file. In my struts config I have the following

RE: problem with html:form tag action property

2005-09-27 Thread David G. Friedman
Jane, If I recall correctly, struts overrides the pattern each time, only using the LAST url pattern. So be careful! Regards, David -Original Message- From: Jane Eisenstein [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 27, 2005 2:10 PM To: Struts Users Mailing List Subject: RE: pro

RE: problem with html:form tag action property

2005-09-27 Thread Jane Eisenstein
Problem solved. The problem was due to the ordering of tags in our web.xml. When I rearranged the servlet-mappings for our action servlet so the *.do pattern is specified last, the form tag generates a correct action property: action Main.jsp action

ValidWhen and string comparison

2005-09-27 Thread Emmanuel.Leguy
Hello, I try to use the validator with validwhen. I want to use a string comparison but it fails. I use struts 1.2.7 and here is my validators.xml: "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN" "http://jakarta.apache.org/commons/dtds/v

Re: Authentication base on Form

2005-09-27 Thread Dave Newton
López Díaz wrote: I am trying to switch on the authentication based on Form, but it isn't possible... the redirection to the Login page no work. Could anyone help me Not yet. In order to help I suspect we'd need a bit more information, like... what specifically happens. Things like

Authentication base on Form

2005-09-27 Thread López Díaz , Alicia
Hi! I am trying to switch on the authentication based on Form, but it isn't possible... the redirection to the Login page no work. Could anyone help me Alicia

Re: writing images from a database

2005-09-27 Thread Frank W. Zammetti
The Wiki is your friend: http://wiki.apache.org/struts/StrutsFileDownload Specifically, you will be interested in the downloadapp.zip sample I posted there... it has an example of serving a BLOB from a database. All you need to do is have a mapping to this Action, and use it as the src attribute

Re: writing images from a database

2005-09-27 Thread Dakota Jack
You need to put in a bit more buffering, etc. in this code, Mark. I recommend you read up on how to read and to write to files more efficiently. Also, due to the nature of how computers work, I would highly recommend you create a multi-threaded application to do this. You will find that your per

Re: writing images from a database

2005-09-27 Thread Wendy Smoak
From: "Braun, James F" <[EMAIL PROTECTED]> Goal: Read a blob image from an Oracle database and render it on an html page using the struts framework. I have no trouble getting the image from the database. However, I wonder if there isn't a better way to display it rather than writing it to a phy

Re: CactusStrutsTestCase working problem with tiles extension

2005-09-27 Thread Carl Smith
Thank you Richard for the answering... Since my app is written in a lower J2EE version so I have to use strutstest_2.0.0.jar which doesn't support verifyTilesForward() method. Any other suggestions? Thanks. Richard Yee <[EMAIL PROTECTED]> wrote: Carl, Check the CactusStrutsTestCase javadoc.

Re: using html:option tag

2005-09-27 Thread glenn . deschenes
The tag has an attribute value. http://struts.apache.org/userGuide/struts-html.html#select The value to compare with for marking an option selected. [RT Expr] HTH, Glenn <[EMAIL PROTECTED]> 27/09/2005 12:08 PM Please respond to "Struts Users Mailing List" To cc Subject using html:option

Re: using html:option tag

2005-09-27 Thread Wendy Smoak
From: <[EMAIL PROTECTED]> This works fine and I can save the correct value to the database. The question I have is how do I display the same option tag when updating the user and the details are returned from a database. The same JSP snippet you posted should work in both the 'add' and 'edit'

RE: writing images from a database

2005-09-27 Thread Mark Benussi
I've seen this conversation before so I don't think I am saying anything outlandish here. There is a performance overhead from reading a database to present to the JSP page, however you look at it. There is nothing wrong with writing the image once to the file system, and storing a reference to th

writing images from a database

2005-09-27 Thread Braun, James F
Goal: Read a blob image from an Oracle database and render it on an html page using the struts framework. I've never found a good way to do this and I was hoping someone had a "best practice" suggestion. I have no trouble getting the image from the database. However, I wonder if there isn't a bet

using html:option tag

2005-09-27 Thread faisal.shoukat
Hi All, I am using the html option tag embedded within the html select tag to select a value from a drop down list as follows: Mr Mrs This works fine and I can save the correct value to the database. The question I have is how do I display the same option

Re: ActionMessages with redirect

2005-09-27 Thread Michael Jouravlev
Messages are cleaned automatically in Struts 1.2.6+ On 9/27/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > No, it gets cleaned up by the RequestProcessor after you've displayed > the messages. > > Hubert > > On 9/27/05, rahul <[EMAIL PROTECTED]> wrote: > > do I need to clean up session after displ

RE: problem with html:form tag action property

2005-09-27 Thread Jane Eisenstein
Yes I have that mapping. The form tag is not working irrespective of whether the .do suffix is there. -Original Message- From: Catherine [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 27, 2005 10:02 AM To: user@struts.apache.org Subject: Re:problem with html:form tag action property

Re: update a data base record

2005-09-27 Thread Dave Newton
Thibaut Lassalle wrote: User currentUser = (User) request.getSession().getAttribute(ControllerConstant.USER); currentUser.getLastName();//nullPointerExeption if user not logged. *shudder* what is the taglib i have to use in my jsp in this case ? is that the most efficience way

Re: Help needed urgent

2005-09-27 Thread Francisco - São Paulo - Brazil
My guess is the problem lies outside your Action code, since you specify "acao=editar" in your request, "acao" is the parameter for your DispatchAction, and you have an "editar" method. Are you able to call normal Struts actions okay? Yes, I am able, for example, to save data from the form, as

Re: Help needed urgent

2005-09-27 Thread Hubert Rabago
On 9/27/05, Francisco - São Paulo - Brazil <[EMAIL PROTECTED]> wrote: > When I tryed this way: > href="CadastroClienteDispatchAction.do..." > > HTTP Status 400 - Invalid path /pages/CadastroClienteDispatchAction was > requested This is because your JSP and your actions are in different paths.

Can I replace the "link" jsp file with an action path in Tiles definition file?

2005-09-27 Thread 梁炳場
Can I replace the "link" jsp file with an action path? thnx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ActionMessages with redirect

2005-09-27 Thread Hubert Rabago
No, it gets cleaned up by the RequestProcessor after you've displayed the messages. Hubert On 9/27/05, rahul <[EMAIL PROTECTED]> wrote: > do I need to clean up session after displaying ActionErrors > saved using saveErrors(request,actionError) method? > > > > -Original Message- > > From:

Re: Help needed urgent

2005-09-27 Thread Francisco - São Paulo - Brazil
When I tryed this way: href="CadastroClienteDispatchAction.do..." HTTP Status 400 - Invalid path /pages/CadastroClienteDispatchAction was requested *type* Status report *message* _Invalid path /pages/CadastroClienteDisp

RE: ActionMessages with redirect

2005-09-27 Thread rahul
do I need to clean up session after displaying ActionErrors saved using saveErrors(request,actionError) method? > -Original Message- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 27, 2005 7:09 PM > To: Struts Users Mailing List > Subject: Re: ActionMessages wi

update a data base record

2005-09-27 Thread Thibaut Lassalle
hi i'd like to update a record from a table from my data base : for exemple, the object "Client" I used struts 1.0 and now use struts 1.2.6 that why i'm a little bit lost. The action i call is /accessToUpdateClient.do?id=9 In the action i do : public ActionForward execute(ActionMapping mapp

Re: tag within tag

2005-09-27 Thread Catherine
I thought rahul wanted to invoke someAction and passing a parameter, id. What will happen if you click ? I still can't figure out how to solve my problem, that is get tag evaluated as the parameter of a javascript call. Like the following: )"> Some time I also need to pass a java variable a

RE: Re: using el to assign value of collection attribute in

2005-09-27 Thread Lim Hock-Chai
optionsCollection works! Thanks. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, September 26, 2005 2:35 PM To: Struts Users Mailing List Subject: Re: Re: using el to assign value of collection attribute in "The collection attribute is interpreted as the

Re:problem with html:form tag action property

2005-09-27 Thread Catherine
Check if you have the following entry in your web.xml. ... action *.do Then in your form, you don't need to suffix .do, Struts will do that for you: Cheers, Catherine - http://Struts_User_List.roomity.c

Re: how to retain prepopulated values in ActionForm

2005-09-27 Thread Joe Germuska
If the form is returned after validation, the fields should be refilled with whatever the user submitted, unless your input somehow causes a new request to be created. After validation, Struts has done exactly what you did to prefill the form: instantiate a form bean, populate properties, and

Re: Help needed urgent

2005-09-27 Thread Hubert Rabago
Instead of href="/CadastroClienteDispatchAction.do..." Try one of the ff: href="CadastroClienteDispatchAction.do..." (relative) href="/ExemploStruts/CadastroClienteDispatchAction.do..." (absolute) Hubert On 9/27/05, Francisco - São Paulo - Brazil <[EMAIL PROTECTED]> wrote: > Hi all, > I

Re: how to retain prepopulated values in ActionForm

2005-09-27 Thread Hubert Rabago
When a validation error occurs, the usual intention is to allow the user to correct his/her mistakes by presenting the values that were entered. If you wish to override this behavior, you can manually call validate() by applying some of the techniques Rick Reumann demonstrates in the section "Manu

Re: ActionMessages with redirect

2005-09-27 Thread Hubert Rabago
There are saveErrors() and saveMessages() that accept a session instead of a request object. The items saved here are removed after the request that accesses them. Hubert On 9/27/05, rahul <[EMAIL PROTECTED]> wrote: > Hi all, > > Just before creating an ActioForward in my Action class, i am stor

How to reference pages external to a webapp using Tiles

2005-09-27 Thread Ekberg Mats KONSULT
I am working on an export coltrol system for the swedish customs. We are using struts and the tiles framework. We would like to have a separate webapp (or even a plain html site) with some standard templates for mainly menus. I have placed some images and standardized jsp-files there, these files s

Re: Why the message in ApplicationResources cannot be retrieved?

2005-09-27 Thread He Chao
Hi all, I got the error message of "Cannot find ActionMappings or ActionFormBeans collection", Can anyone tell me how to handle this kind of question. btw, I am a newbie of Struts. A piece of struts config file is as following: .. Thanks in advance.

how to retain prepopulated values in ActionForm

2005-09-27 Thread rahul
Hi all, I need to show some prefilled value in a html form then take new inputs from the user and save the changes. I am doing this by prepopulating an ActionForm, putting it into request as an Attribute then displaying it onto the jsp. Its working fine and the changed value are also available in

Re: How to make work in Tiles?

2005-09-27 Thread Graham Reeds
梁炳場 wrote: In the header.jsp, I try to add something like "About Us", "Contact Us". Make them align to the right. But it does not work. I spread across the header section. I do this in the header.jsp (and use classLayout.jsp). ... How can I make it work? Thnx I guess you did

Re: error using struts.

2005-09-27 Thread Ed Griebel
There could be a problem with in your struts-config.xml file, the parameter="" must refer to a file in your WAR file. Also, check that files referenced in struts-config.xml are included in your WAR file too. -ed On 9/27/05, Carlos de la Flor Egiluz <[EMAIL PROTECTED]> wrote: > Hello i am bigning

Help needed urgent

2005-09-27 Thread Francisco - São Paulo - Brazil
Hi all, I am trying to list some names (with and ID code) and I want for each name listed create a link, then when the user clicks on the link I want to edit the record (the bean). With this I have my list there with all the names: http://localhost:8080/ExemploStruts/ListagemClientes.do Th

Re: How to remove the unwanted ???en_US string from ActionMessages

2005-09-27 Thread Martin Gainty
when you construct your ActionMessage the first parameter is the key into the MessageResource.. the second parameter is the resource assuming in this case if resource is true then your app will reference the key value ("name") located within $webapp_home/classes/com/OrganisationName/app_en

Re: Why the message in ApplicationResources cannot be retrieved?

2005-09-27 Thread Martin Gainty
Hello P.C. I found an example (unfortunately text strings are in mandarin) for you located at tiles-defs.xml . later in /layouts/classicLayout.jsp http://translate.google.com/translate?hl=en&sl=zh-CN&u=http://www.cn-java.com/target/news_print.php%3Fnews_id%3D2397&prev=/se

ActionMessage and bundle choice

2005-09-27 Thread emre akbas
Hi, We know that ActionMessage class has a field to store the key of the message but not the bundle name of the key. For (error) messages that are not in the default message-resources, we can do the trick in the jsp file by giving the bundle of the key like: So far so good. But, what we sha

Re: How to remove the unwanted ???en_US string from ActionMessages

2005-09-27 Thread Aladin Alaily
Hi Amin, Writting this: >ActionMessage message = new ActionMessage("Username/Password cannot > be empty"); will not solve the problem. What you need to do to get rid of the following: > ???en_US.Username/Password cannot be empty??? is: 1) Add a key/value pair to your application.propertie

Re: The mailreader example, database access

2005-09-27 Thread Ted Husted
Some parts of the MailReader are well designed. Others not so much. Quoting from the Struts 1.2 documentation: * http://struts.apache.org/userGuide/building_controller.html The MailReader example application included with Struts stretches [the MVC] design principle somewhat, because

Re: How to remove the unwanted ???en_US string from ActionMessages

2005-09-27 Thread Kaizar Amin
Hi Atta, As per your suggestions, I changed the code to if (username == null || username.trim().length() ==0 ){ ActionMessages messages = new ActionMessages(); ActionMessage message = new ActionMessage("Username/Password cannot be empty"); messages.add(ActionMessages.GLOBAL_MESS

error using struts.

2005-09-27 Thread Carlos de la Flor Egiluz
Hello i am bigning using struts. i have made one aplication, little application and i have the first error: [27/09/05 12:26:04:688 CEST] 0027 PropertyMessa I Initializing, config=' org.apache.struts.util.LocalStrings', returnNull=true [27/09/05 12:26:04:719 CEST] 0027 PropertyMessa I Initi

Re: Struts action servlet mapping, getPathInfo() returns null

2005-09-27 Thread emre akbas
Again, thank you very much Laurie. I couldn't understand how ** wildcard mapping could work with suffix mapping (*.do). I have tried, in web.xml, *.do/** but tomcat said "invalid url-pattern". If I manage to get ** wilcard mapping work with *.do, I will be able to correctly process a request like

Re: How to remove the unwanted ???en_US string from ActionMessages

2005-09-27 Thread atta-ur rehman
Hi there, try this: if (username == null || username.trim().length() == 0){ ActionMessages messages = new ActionMessages(); ActionMessage message = new ActionMessage("credentials.empty"); > messages.add(ActioneMessages.GLOBAL_ERROR, message); > saveMessages(request,messages); } Basically, the

How to remove the unwanted ???en_US string from ActionMessages

2005-09-27 Thread Kaizar Amin
Hello all, I am facing a wierd problem in my application. I want to add an ActionMessage in the ACTION (LoginAction) class and then display the message in the JSP page. In the JSP page, the messages are found without a problem (so my ApplicationResources.properties configuration is fine), however

ActionMessages with redirect

2005-09-27 Thread rahul
Hi all, Just before creating an ActioForward in my Action class, i am storing some messages using SaveErrors(). And I am using ActionForward(String path, boolean redirect) for creating the ActionForward with 'true' value for redirect parameter. My question is by doing this can I display the Acti