Using non struts-config.xml MessageResource in the Validator

2004-11-11 Thread Christian Bjørnbak
Hi I'm currently migrating a system from some homemade XML framework to Struts. The system is an application service provider where lots of companies have the own db driven ResourceBundle for i18n. All the companies use the same struts-config.xml as they all share the same Actions, Forms and

Validator - Redirects or Forwards?

2004-11-11 Thread Yagiz Erkan
When the validation fails, does the Validator use redirect or forward? Because I can't see my JSP when the validation fails and I keep my JSPs under WEB-INF. Do you have an idea what may go wrong? Thanks, - Yagiz - - To

Re: how to pass values selected in a html select tag to a javascript function when a page loads

2004-11-11 Thread Srilatha Salla
Hi, I call a javascript function when a option is selected in a drop down list. onchange=showTextField(actionselected,index). and display a textfield for some options. logic:iterate name=autoForm property=menuEntriesid=menuEntries indexId=idx html:select name=menuEntries property=menuAction

How to iterate neseted beans?

2004-11-11 Thread sebastian . steinfeld
Hi, I want to iterate through a nested bean, it is 3D. The first bean contains an ArrayList, of the second bean. Each second bean contains an ArrayList of the third bean. Each Third bean contains different attributes. I want to print Attributes of the third bean in text-field and the user

Re: talking about paradigms

2004-11-11 Thread Mark Lowe
I don't think EL breaks the MVC pattern. Although it leaves you free to do so if you so wish. I don't see a world appart from using bean:write name=person property=name / jsp:getProperty name=person property=name / c:out value=${person.name} / ${person.name} More to he point the fmt tag lib

Re: How to iterate neseted beans?

2004-11-11 Thread Niall Pemberton
try... nested:iterate property=resultList name=kombinationForm nested:iterate property=resultList nested:text property=oneAtribute/ /nested:iterate /nested:iterate Niall - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 11, 2004 9:57 AM

AW: talking about paradigms

2004-11-11 Thread Rosenberg, Leon
-Ursprüngliche Nachricht- Von: Mark Lowe [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 11. November 2004 11:04 An: Struts Users Mailing List Betreff: Re: talking about paradigms I don't think EL breaks the MVC pattern. Although it leaves you free to do so if you so wish. I

AW: How to iterate neseted beans?

2004-11-11 Thread sebastian . steinfeld
Hi Niall, I tryed, but it doesn't working... When I call the page, the getter of the attributes are called and the values are shown in the input-fields. But when I am pushing the submit button there is no setter called. Thanks, Sebastian Steinfeld -Ursprüngliche Nachricht- Von: Niall

Pre-populate form

2004-11-11 Thread Roland Carlsson
Hi! I am looking for a better way to pre-populate my (html)forms when building to allow the users to edit data from a database. I know that I can create an populate a DynaValidatorBean but I don't know where to put it so that I can use it from my (html)from. Thanks in advance Roland Carlsson

AW: How to iterate neseted beans?

2004-11-11 Thread sebastian . steinfeld
I found my mistake... in the tag html:form I specified the wrong Form. Sorry, Sebastian Steinfeld -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 11. November 2004 11:51 An: 'Struts Users Mailing List' Betreff: AW: How to iterate neseted

Re: A new paradigm of Struts development

2004-11-11 Thread Adam Hardy
A lightweight framework must be simple to implement, for RAD or for prototyping or for web newbies. Given a large complicated application, should an architect choose a lightweight framework? No. She / he must recognise the limitations of the framework. JSF seems to be lightweight. It

RE: Pre-populate form

2004-11-11 Thread Mark Benussi
Roland, I dont know if this solution is not the approved way but I do the following. I have a CreateForm which extends the ActionForm. It contains all the properties that map to the database and the validation rules. I then have an UpdateForm which extends the CreateForm and implements its

The Future of Struts Validation

2004-11-11 Thread William Ferguson
Now that I've had a year or so or heavy Struts use, I've come to believe that (IMHO) validation within Struts is a little less clear and concise than it could otherwise be with a few small changes. Currently, validation is defined by specifying a true/false value for the 'validate' attribute

indexed property and checkbox (may be newbye question)

2004-11-11 Thread Ryan julius
Hi, I have investigated the indexed properties as follows. structure of my jsp page: === html:form action=/DisplayNestedPropertiesAction.do logic:iterate name=nestedPropertiesForm property=skills id=skillBean TABLE border=1 borderColor=cyan cellpadding=0 cellpadding=0

RE: Validator - Redirects or Forwards?

2004-11-11 Thread Daniel Perry
It uses forward (otherwise the errors get lost between requests!). Do you get an error? Daniel. -Original Message- From: Yagiz Erkan [mailto:[EMAIL PROTECTED] Sent: 11 November 2004 09:34 To: [EMAIL PROTECTED] Subject: Validator - Redirects or Forwards? When the validation

Indexed Properties, checkbox

2004-11-11 Thread Ryan julius
Hi, I have investigated the indexed properties as follows. structure of my jsp page: === html:form action=/DisplayNestedPropertiesAction.do logic:iterate name=nestedPropertiesForm property=skills id=skillBean TABLE border=1 borderColor=cyan cellpadding=0 cellpadding=0

SV: Pre-populate form

2004-11-11 Thread Roland Carlsson
Hi Mark! I belive that there must be a simpler solution to this. I know that I can creata a DynaActionForm and then pupulate that by calling the set-method. So shouldn't it be possible to create a DynaActionForm in a populateAction and then put it into a scope with a key and then forward to the

contrib/struts-shale-mailreader

2004-11-11 Thread Dakota Jack
I got the latest CVS using a command line for jakarta-struts but it did not contain the folder contrib/struts-shale-mailreader which I expected based on a recommendation by Craig. Is the CVS available from: cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-struts

Re: Why stick with struts.

2004-11-11 Thread Mark Lowe
On Wed, 10 Nov 2004 21:41:53 -0800, Craig McClanahan [EMAIL PROTECTED] wrote: A lot of my feelings on this have been posted on another thread, so I just want to ask one question from Mark's message. On Wed, 10 Nov 2004 10:55:25 +0100, Mark Lowe [EMAIL PROTECTED] wrote: [snip] As an

Re: contrib/struts-shale-mailreader

2004-11-11 Thread Niall Pemberton
Struts has moved from CVS to subversion - the old cvs repository still exists, but its out of date now as its not being maintained. http://svn.apache.org/viewcvs.cgi/struts/trunk/?root=Apache-SVN http://www.apache.org/dev/version-control.html Niall - Original Message - From: Dakota

Re: Indexed Properties, checkbox

2004-11-11 Thread Rafael Cardoso
I might be missunderstood your idea, but here you start navigate with JSP and then go to the Action /DisplayNestedPropertiesAction.do. You can set your checkbox in two ways: if you need to set up all checkboxes to false (or true, or fixed values) on the initialization of the ActionForm, you

Re: Pre-populate form

2004-11-11 Thread Jeff Beal
Every JSP page in my application is going to have two actions associated with it. One action will always be called prior to displaying the JSP page. The other will be called to process the user's input. In the struts-config, both of these actions are configured with the same form bean.

Struts app to be passed a parameter (of some kind)

2004-11-11 Thread John Vincent
Need one Struts app, but must have multiple URLs. Thus http://www.jv.com/company1 http://www.jv.com/company2 actually start the same Struts app, say http://www.jv.com/myApp but must pass something into the Struts app so that it knows who, or rather, which URL invoked it. Thoughts:

RE: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-11 Thread t t
Hi, David, Thanks. I think I know where is the problem after reading your last email again. I will try it later. Tong --- David G. Friedman [EMAIL PROTECTED] wrote: Tong, When you say automatic validation, do you mean client side or server side? What class does your ActionForm extend?

SV: Pre-populate form

2004-11-11 Thread Roland Carlsson
Hi Jeff! When you say that the newinsurance.jsp just see it where do you store it? In request.setAttribute() with some key? Session? I'm using DynaValidatorBean but I guess that it should work in a simular way. Thanks in advance Roland Carlsson Den 04-11-11 14.14, skrev Jeff Beal [EMAIL

How to change Tiles's tab?

2004-11-11 Thread PC Leung
For a page or summary tab, a tab is a label of words. Can I change it to an image file? If not, can I add an image file? Moreover, there is a purple border after clicking a tab. Can I change the border color and even remove it? Thanks

Re: A new paradigm of Struts development

2004-11-11 Thread Vic
Adam Hardy wrote: What I want to see in the future for big apps is a DTD or xml schema that brings JSP code and XHTML mark-up under control. Something that is easily editable by my editor of choice, using syntax-highlighting to show me where my XHTML is up the swanny. Just in case you missed

Re: talking about paradigms

2004-11-11 Thread Craig McClanahan
On Thu, 11 Nov 2004 10:42:27 +0100, Rosenberg, Leon [EMAIL PROTECTED] wrote: Hi, since we started talking about paradigms... how does JSTL and especially EL fit into MVC paradigm? Much of JSTL is clearly about view tier stuff -- things like conditionals and looping to dynamically include

Re: Struts app to be passed a parameter (of some kind)

2004-11-11 Thread Craig McClanahan
On Thu, 11 Nov 2004 08:14:12 -0500, John Vincent [EMAIL PROTECTED] wrote: Need one Struts app, but must have multiple URLs. Thus http://www.jv.com/company1 http://www.jv.com/company2 Why not just configure your servlet container to treat both context paths as the same app? For example, in

Re: contrib/struts-shale-mailreader

2004-11-11 Thread Craig McClanahan
You can also get nightly snapshots of the entire Struts SVN repository from: http://cvs.apache.org/builds/jakarta-struts/nightly/src/ Craig On Thu, 11 Nov 2004 21:40:46 +0800, Peng Tuck [EMAIL PROTECTED] wrote: Probably because it's in svn ? Well the link from theserverside.com seems to

debugging with Struts

2004-11-11 Thread Yaroslav Novytskyy
Hi all! Can anyone say how setup debugging in Eclipse 3.0.1 for useing with Struts under Tomcat 5. Thanks Yaroslav Novytskyy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Override default locale per application

2004-11-11 Thread Chris Searle
Struts 1.2.4 - running under jboss 3.2 The localization works just fine - if the user has set preferred languages in the browser. However - if this is not set the application will use the default locale of the VM. This seems to mean (under jboss where the vm is shared amongst apps AFAIK) that

Re: A new paradigm of Struts development

2004-11-11 Thread BaTien Duong
Craig McClanahan wrote: Intermixed. On Tue, 9 Nov 2004 10:47:34 -0800, Dakota Jack [EMAIL PROTECTED] wrote: Thanks, Joe, Some thoughts below: On Tue, 9 Nov 2004 12:26:22 -0600, Joe Germuska [EMAIL PROTECTED] wrote: Aren't Struts and JSF in the end really competitors? Seems so to me. I

[OT] Re: A new paradigm of Struts development

2004-11-11 Thread Erik Weber
Vic, why we would want to continue to write apps for Internet Explorer and Netscape after discovering a technology like this is beyond me. My chips are in with you. I have been pushing my web-app minded clients toward Swing all along, but technologies like Java Web Start and now JDNC are

Re: About *.do

2004-11-11 Thread Erik Weber
Use path mapping instead of extension mapping on your controller Servlet. Erik Koon Yue Lam wrote: Hi ! How can I access an action of its name instead of its name.do ? eg. localhost/MyApp/login I don't want the .do at all thanks -

Re: contrib/struts-shale-mailreader

2004-11-11 Thread Dakota Jack
Never a dull moment. I am sure there must have been a reason for this. Jack On Thu, 11 Nov 2004 12:37:56 -, Niall Pemberton [EMAIL PROTECTED] wrote: Struts has moved from CVS to subversion - the old cvs repository still exists, but its out of date now as its not being maintained.

RE: [OT] Re: A new paradigm of Struts development

2004-11-11 Thread Daniel Perry
To me JDNC seems like a halfway house between webapps and rich client apps. I personally like the way that webapps work (everything is written for the server and executed on the server then merely displayed at the client), but I hate the interface (html - and browser). The web interface lacks

Re: [OT] Re: A new paradigm of Struts development

2004-11-11 Thread Vic
Erik Weber wrote: I have invested a lot in writing custom UI classes, custom paint methods, custom UI defaults properties, etc., to get my Swing components looking the way I want (I'm sorry but, changing the background colors, and other easily-scriptable stuff, doesn't cure Swing's

Re: contrib/struts-shale-mailreader

2004-11-11 Thread Dakota Jack
Thanks, Craig, This allows me to do what I needed to do without taking the day to learn this new stuff about subversion right away. I assume that the CVS will permanently be out of date? Why not scrap it? I thought the blurb on this stuff gave the impression that the CVS would be kept up to

RE: debugging with Struts

2004-11-11 Thread Paul McCulloch
I think it is actually the source path of the *debug* configuration you are using. I just spent a good 20 minutes figuring this out - I've just upgraded to 1.2, but my debug source was pointing to 1.1 which caused a bit of confusion. Paul -Original Message- From: Adam Hardy

Re: [OT] Re: A new paradigm of Struts development

2004-11-11 Thread Erik Weber
First, thanks Vic for your feedback. Second, right after I posted, I felt like I might have come across as insulting to people on this list with my web apps/browsers remark, especially considering that this IS a Struts list. I apologize if I offended anyone. I don't mean to undermine people's

Re: contrib/struts-shale-mailreader

2004-11-11 Thread Niall Pemberton
I'm using TortoiseSVN - which is really straight forward for any one in a windoze environment (expecially if you've used TortoiseCVS!): Its available here: http://tortoisesvn.tigris.org/ Once you install it theres a pretty reasonable help file to guide your through the basics Niall -

Re: A new paradigm of Struts development

2004-11-11 Thread Vic
Craig McClanahan wrote: Struts needs to do something useful in the *application controller* tier ... the view has been done. Struts is already proved most useful for coming on 5 years and will continue to have html tags for a very long time. It's the corporate standard ( one recent way of

RE: session variable in struts

2004-11-11 Thread Daniel Perry
Its the same in struts as in servlets! The execute method of Action is passes an HttpServletRequest. Daniel. -Original Message- From: Milson Fredy Cardona Echeverri [mailto:[EMAIL PROTECTED] Sent: 11 November 2004 17:26 To: [EMAIL PROTECTED] Subject: session variable in struts

how to replace return in a string while use nested:write and bean:write

2004-11-11 Thread Shen, Lei
Hello, all: I have some code like this: script data = use bean:write or nested:write here alert(data); /script The problem is that javascript does not allow: data =ab c; How to replace return in a string while use nested:write and bean:write

Re: how to replace return in a string while use nested:write and bean:write

2004-11-11 Thread Erik Weber
alert(this message\nwill appear on two lines); Does that help? Erik Shen, Lei wrote: Hello, all: I have some code like this: script data = use bean:write or nested:write here alert(data); /script The problem is that javascript does not allow: data =ab c; How

RE: how to replace return in a string while use nested:write and bean:write

2004-11-11 Thread Shen, Lei
Thanks for your hint. Essentially I want nest:write and bean:write to smart enough to convert ab c to ab\nc byitself. nest:write is already be able to convert to lt; if you set filter=true. I am trying to find something similar to convert real return to \n. I am hoping the convertion list is

Using Forward and Include using RequestProcessor

2004-11-11 Thread Sanjay Choudhary
On Fri, 5 Nov 2004 10:49:25 -0800, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi All, I have an application which contains 100+ jsp's. Use case is to inject the Javascript conditionally into the JSP's. Condition is - If a cookie is present in the request, inject the Javascript else leave it

Re: [ANN] Eclipse - Struts,Tiles JSP, FREE Trial

2004-11-11 Thread Rolf C. Graulich
Am Dienstag, 26. Oktober 2004 19:09 schrieb Carlos Chang: [...]NitroX Advertising[...] I just downloaded the Trial, but it say during installation on a Suse Linux 9.1, that it needs the Java SDK greater than 1.5. So what does this mean? I do not know such a relase of the Java SDK. It doen't

Does Javascript Validation work with mapping path as key?

2004-11-11 Thread Niall Pemberton
I'm trying to get javascript validation working using the action mapping's path as the validation key with Struts 1.2.4. I don't usually use js (I'm trying to test something) but the generated javascript doesn't appear to work - from where I'm sitting it looks broken - can anyone confirm if they

Re: [ANN] Eclipse - Struts,Tiles JSP, FREE Trial

2004-11-11 Thread peter maas
On top of the java pages by sun: http://java.sun.com/j2se/1.5.0/download.jsp has been out for a while... Rolf C. Graulich wrote: Am Dienstag, 26. Oktober 2004 19:09 schrieb Carlos Chang: [...]NitroX Advertising[...] I just downloaded the Trial, but it say during installation on a Suse

Re: Does Javascript Validation work with mapping path as key?

2004-11-11 Thread bmf5
One other thing to check, I think name=myForm has to be type of ValidatorActionForm, not the usual ValidatorForm. Bart Niall Pemberton

Re: Does Javascript Validation work with mapping path as key?

2004-11-11 Thread Matt Bathje
Niall - some comments inline and other stuff below... Niall Pemberton wrote: I'm trying to get javascript validation working using the action mapping's path as the validation key with Struts 1.2.4. I don't usually use js (I'm trying to test something) but the generated javascript doesn't appear to

Re: Struts app to be passed a parameter (of some kind)

2004-11-11 Thread Craig McClanahan
What app server are you running? The setup to accomplish this is going to be specific to that app server, if it is possible at all. The example I gave, as I stated in the response, was specific to using Tomcat. Craig On Thu, 11 Nov 2004 11:03:45 -0500, John Vincent [EMAIL PROTECTED] wrote: I

Re: contrib/struts-shale-mailreader

2004-11-11 Thread Craig McClanahan
On Thu, 11 Nov 2004 08:15:00 -0800, Dakota Jack [EMAIL PROTECTED] wrote: Thanks, Craig, This allows me to do what I needed to do without taking the day to learn this new stuff about subversion right away. I assume that the CVS will permanently be out of date? Why not scrap it? I thought

Re: contrib/struts-shale-mailreader

2004-11-11 Thread BaTien Duong
Hello Craig: I downloaded struts-src-2004.tar.gz and try to get the struts-shale-mailreader program to run. Here are some issues with the build: 1) The struts-shale was built ok to get shale.jar 2) The struts-shale-mailreader has issue at the docs target. so I make the dist target

Re: Struts app to be passed a parameter (of some kind)

2004-11-11 Thread John Vincent
App Server is WebLogic 8.1. I can try SunOne Application Server also. On Tomcat, do you configure the app xml files? Or is it configured at the server level? In other words, do I need to check the app server doc or the weblogic*.xml or sun-*.xml files doc for the Struts app? John

Re: contrib/struts-shale-mailreader

2004-11-11 Thread Craig McClanahan
file that points at the dependencies ... in particular, define jsf.home, jstl.home, junit.home, and server.home appropriately. Craig On Thu, 11 Nov 2004 14:16:08 -0700, BaTien Duong [EMAIL PROTECTED] wrote: Hello Craig: I downloaded struts-src-2004.tar.gz and try to get the struts-shale

Re: contrib/struts-shale-mailreader

2004-11-11 Thread Craig McClanahan
struts-src-2004.tar.gz and try to get the struts-shale-mailreader program to run. Here are some issues with the build: 1) The struts-shale was built ok to get shale.jar 2) The struts-shale-mailreader has issue at the docs target. so I make the dist target depends only

JNDI

2004-11-11 Thread Jonathan Wright
Hi, Just a quick question about JNDI in a Struts setting. I want to reduce the dependencies between objects in my app. Some objects that are not servlet aware need access to the ServletContext and DataSources. However rather than complicating matters and increasing the number of arguments I need

Re: Struts app to be passed a parameter (of some kind)

2004-11-11 Thread Craig McClanahan
On Thu, 11 Nov 2004 17:16:14 -0500, John Vincent [EMAIL PROTECTED] wrote: On Tomcat, do you configure the app xml files? Or is it configured at the server level? Both are supported. For more info start at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/index.html and, in

Re: JNDI

2004-11-11 Thread Craig McClanahan
On Fri, 12 Nov 2004 11:46:22 +1300, Jonathan Wright [EMAIL PROTECTED] wrote: Hi, Just a quick question about JNDI in a Struts setting. I want to reduce the dependencies between objects in my app. Some objects that are not servlet aware need access to the ServletContext and DataSources.

Re: JNDI

2004-11-11 Thread Jonathan Wright
Craig, Thanks for the prompt reply. I have in the past set up DataSources in Tomcat's server-config.xml. However, due to the nature of our production environment I don't want to edit this file. It's relatively important that my web apps are completely self contained. Jonathan Wright -

Re: contrib/struts-shale-mailreader

2004-11-11 Thread BaTien Duong
a build.properties file that points at the dependencies ... in particular, define jsf.home, jstl.home, junit.home, and server.home appropriately. Craig On Thu, 11 Nov 2004 14:16:08 -0700, BaTien Duong [EMAIL PROTECTED] wrote: Hello Craig: I downloaded struts-src-2004.tar.gz and try to get the struts

Re: A new paradigm of Struts development

2004-11-11 Thread Tak Yoshida
Craig McClanahan wrote in [EMAIL PROTECTED] I think page-driven development frameworks would exacerbate this problem unless they clarify with eloquence up-front how to make a clear seperation of the POST processing from the page preparation required for the next page. Yep, that is

Re: About *.do

2004-11-11 Thread Koon Yue Lam
so I need to map all actions of my webapp? something like /login map to /login.do ??? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: About *.do

2004-11-11 Thread Koon Yue Lam
ok, I got it, thanks a lot ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: About *.do

2004-11-11 Thread David G. Friedman
See section 5.4.1 and 5.4.2 on the Struts site for how to map your action path such as /login to be either /login.do or /do/login on http://struts.apache.org/userGuide/configuration.html Again, the do (/do/* or *.do) part is customizable. Some people posted about messing with people's heads by