Re: About Action Form

2004-10-18 Thread Koon Yue Lam
ok, I get your point now, ^^ thank for help ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[article] JavaServer Faces (JSF) vs Struts

2004-10-18 Thread Matthias Wessendorf
Hi list, this weekend I found this *interessting* article on Struts and JavaServer Faces. http://www.sys-con.com/story/?storyid=46516DE=1 Perhaps it is helpful for somebody of you guys. Greetings, Matthias -- Matthias Weßendorf Aechterhoek 18 DE-48282 Emsdetten Germany Email: matthias AT

Locale problem: can't find bundle

2004-10-18 Thread Ian van der Neut
Hello all, I'm getting the following error when I want to change the language of my webapp. I searched the archives and google, but can't really find anything that helps me. I get the following error: javax.servlet.ServletException: Can't find bundle for base name application, locale en_US I

RE: Locale problem: can't find bundle

2004-10-18 Thread Hiran.Chaudhuri
Hi, Ian. Have you tried to use a different package (directory name) for your bundle? The java and javax packages should be sealed by the JVM classloader to prevent abuse of standard classes. Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße

Indexed list validation

2004-10-18 Thread Vclavk Radek
Hi all, this is probably a constantly discussed topic and I have surely found a load of inromation concerning this,but it still did not solve my problem. I have a web page which displays multiple records, each record representing one person. I am using index to retrieve each record. The person

Using StrutsTestCase with 1.2, wildcards and MappingDispatchAction

2004-10-18 Thread Laurent Duperval
Hello, Does anyone have experience using (Mock)StrutsTestCase to test wildcard actions (actions that end in *) and MappingDispatchActions? Does it work? Are there any particular issues to be aware of? Thanks, L - To unsubscribe,

Re: Where is the html:label tag???

2004-10-18 Thread Jeff Beal
You need to use html:hidden to create an invisible control that will be submitted along with the form and then use html:text to display that value to the user. Leandro Melo wrote: Actually, i just would like to use a label inside one form, instead of a readonly field. But if i don't use the

Struts-Faces - URGENT

2004-10-18 Thread Ratnakar Parakala
Hi, Added to the below list is one more question: 7. How can I call a struts action in s:form .. tag. The action redirects to a JSP(with JSF tags) under WEB-INF (say /WEB-INF/jsp/xyz.jsp). When I tried to achieve this, the s:form ... tag generated form action=/appl/WEB-INF/jsp/xyz.faces ...

Where Is a Proper Place To Store TEMPORARY Files?

2004-10-18 Thread Caroline Jen
Now, I have this situation: While the web application is running, I need a place to store an uploaded file temporarily and then write this file out. Where is the proper place to create a directory to store a temporary file? Is any place in the application OKay?

Re: Where Is a Proper Place To Store TEMPORARY Files?

2004-10-18 Thread Shinobu Kawai
Hi Caroline, Now, I have this situation: While the web application is running, I need a place to store an uploaded file temporarily and then write this file out. Where is the proper place to create a directory to store a temporary file? Is any place in the application OKay? I usually

Re: Where Is a Proper Place To Store TEMPORARY Files?

2004-10-18 Thread Shinobu Kawai
Oops... I meant I usually use System.getProperty(java.io.tmpdir). http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties() Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED] - To

Re: Using StrutsTestCase with 1.2, wildcards and MappingDispatchAction

2004-10-18 Thread Bill Siggelkow
Laurent Duperval wrote: Hello, Does anyone have experience using (Mock)StrutsTestCase to test wildcard actions (actions that end in *) and MappingDispatchActions? Does it work? Are there any particular issues to be aware of? Thanks, L I haven't tested mapping dispatch action with StrutsTestCase,

Collections in ActionForm

2004-10-18 Thread Ivan Vasquez
Is is OK to use Collections (or sets, lists, maps for that matter) inside an ActionForm? We are trying to represent fairly complex multiple-choice items in our forms. Ivan - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Collections in ActionForm

2004-10-18 Thread Michael McGrady
Ivan Vasquez wrote: Is is OK to use Collections (or sets, lists, maps for that matter) inside an ActionForm? We are trying to represent fairly complex multiple-choice items in our forms. Ivan - To unsubscribe, e-mail: [EMAIL

Re: Using StrutsTestCase with 1.2, wildcards and MappingDispatchAction

2004-10-18 Thread Michael McGrady
Bill Siggelkow wrote: Laurent Duperval wrote: Hello, Does anyone have experience using (Mock)StrutsTestCase to test wildcard actions (actions that end in *) and MappingDispatchActions? Does it work? Are there any particular issues to be aware of? Thanks, L I haven't tested mapping dispatch

RE: Collections in ActionForm

2004-10-18 Thread Ivan Vasquez
Have you ever deployed them in a clustered environment? Yes, all underlying objects are serializable and session replication is properly configured. -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Monday, October 18, 2004 10:06 AM To: Struts Users Mailing List

The one Action multiple jsps/tiles-problem with a twist.

2004-10-18 Thread Bent André Solheim
Hi Struts users, I am developing a web based reporting system using Struts, and one requirement is that each customer can have their own tailored version of the reports. I use tiles to define each report page for each customer, and for each page for each customer I define a forward element in

Re: Tomcat 5 Struts

2004-10-18 Thread James Mitchell
It works fine for last 5 projects I've worked on. (all 1.1 and up) -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Le Goff, Yoann [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED]

RE: Tomcat 5 Struts

2004-10-18 Thread Le Goff, Yoann
Kind of ide ? It doesn't work onto ñy jbulder 8, but i think it's a configuration problem, i've ever meet a Servlet dismatch between tomcat 4 tomcat 5 Is there something else ? All is workimg onto Tomcat 4, but wanna work onto bigger cat ;o) Y. -Message d'origine- De : James

Work Effort application based on Struts/iBATIS/Spring released

2004-10-18 Thread Antony Joseph
We have released a Work effort application. It is based on an open source stack. The frameworks used are Struts/iBATIS/Spring along with a whole bunch of other open source frameworks. Even though the application is a commercial application, the full source code is available publicly. If you are

New Search Engine - Try it with Struts

2004-10-18 Thread dwatson
We are developing a search engine that crawls through source code and provides a powerful semantic search capability. As a test, we have crawled through Struts and several other java development frameworks (JDK, Eclipse, NetBeans, JUnit). If you are interested in trying it, send an email to

Does Tiles JSP go in pair?

2004-10-18 Thread PC Leung
I use two JSP to form a page. Is it necessary? Welcome.jsp: tiles:insert definition=erp.mainLayout flush=true tiles:put name=body value=/WelcomeBody.jsp / /tiles:insert WelcomeBody.jsp: bean:message key=main.welcome/ html:link action=login bean:message key=main.login/ /html:link

why it fires immediately?

2004-10-18 Thread PC Leung
WelcomeBody.jsp calls LoginBody.jsp. There is a submit button in LoginBody.jsp. When LoginBody.jsp is shown, the submit button seems to be pressed at the same time. Do I have to define global-forward login? WelcomeBody.jsp: bean:message key=main.welcome/ html:link action=login bean:message

Re: Does Tiles JSP go in pair?

2004-10-18 Thread Jeff Beal
Read http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292381. It describes how to move your Tiles definitions (the part in Welcome.jsp) into an XML file and using definition names for your Struts forwards. -- Jeff PC Leung wrote: I use two JSP to form a page. Is it necessary?

RE: Help ! Question regarding Action and Form Bean(Rewrite the problem )!

2004-10-18 Thread t t
Hi, Joe, Thank you for your patience. Let me describe the problem again. I have JSP file J1 with form F1 inside. It is used to accept user's input. And I will display the result in JSP file J2 with form F2. And there are a checkbox and multibox in F2. At first, I didn't associate F2 with Action

Re: why it fires immediately?

2004-10-18 Thread Jeff Beal
When the RequestProcessor receives the request from clicking on the link in WelcomeBody.jsp, this is (roughly) the sequence of events that it follows: - Populate the ActionForm with request parameters (in your case, there are none) - Validate the ActionForm (it fails; required fields are

Re: validation question

2004-10-18 Thread Yves Sy
Hi, Struts doesn't have anything like that. IMHO, I also think that using validator on the login page is not good practice as it would give malicious users a good idea on how your app handles authentication. Usually, you'd just return a generic error message such as Username/password invalid

Re: The one Action multiple jsps/tiles-problem with a twist.

2004-10-18 Thread Bent André Solheim
Thank you, Jeff, for the detailed explanation - it was exactly what I was looking for! This puts me on track to reduce code complexity and increase maintainability quite a bit. The custom RequestProcessor did the trick. Thanks again! Best Regards, Bent. On Mon, 18 Oct 2004 11:01:25 -0400, Jeff

Nesting html:selec with logic:iterate in a strut application

2004-10-18 Thread Au-Yeung, Stella H
Hi: I have a struts application that allows me to update a list of employees data. The following is a 'desired' Update screen to update all employees information on 'one' screen: Employee Name Employee AgeDepartment (this is a drop down) Anderson, John 30 a drop-down

RE: validation question

2004-10-18 Thread Durham David R Jr Contr 805 CSPTS/SCE
The validation works fine however, when I just type the http://localhost:8080/login.do in my browser (no submit), the validation error will show up at once. I understand that it's just like I submit a form to login.do action without any parameter. My question is, do struts provide any simple

Re: Locale problem: can't find bundle

2004-10-18 Thread Craig McClanahan
On Mon, 18 Oct 2004 11:38:12 +0200, Ian van der Neut [EMAIL PROTECTED] wrote: ResourceBundle bundle = ResourceBundle.getBundle(application); Change this to: ResourceBundle bundle = ResourceBundle.getBundle(java.resources.application); since you're required to specify the

single redirect.

2004-10-18 Thread Matt Higgins
I have a few cases in my app where I would like to redirect instead or the default forward. I have an Action that process a query sting then I would like to redirect back to the page that called the action. I have tried to set the redirect flag on the ForwardConfig for the calling page but it

RE: single redirect.

2004-10-18 Thread Durham David R Jr Contr 805 CSPTS/SCE
Basically I would like to temporarily set redirect on a given forward, is this possible? The ActionServlet freezes the configuration of Forwards in ActionServlet.init(), so you're better off creating 2 forwards, IMO. - Dave

Extending DynaValidatorActionForm... or using something else?

2004-10-18 Thread Laurent Duperval
HI, We've created a bunch of forms to allow users to create new object in our database. All the forms have a name property in them, and depending on the object, there are other properties. Most of our validation is just a simple required. However, we have a business rule which states that two

Re: Where Is a Proper Place To Store TEMPORARY Files?

2004-10-18 Thread Craig McClanahan
On Mon, 18 Oct 2004 06:27:18 -0700 (PDT), Caroline Jen [EMAIL PROTECTED] wrote: Now, I have this situation: While the web application is running, I need a place to store an uploaded file temporarily and then write this file out. Where is the proper place to create a directory to store a

Re: Validation

2004-10-18 Thread Jay Chandran
Hello Ankur, I think u are getting the error page only because u did not define the output page. ie in action tag we should specify an output page (.jsp etc) Please check the below code . form-bean name=logonForm type=org.apache.struts.validator.DynaValidatorForm form-property

Re: Latest Struts Install Problem

2004-10-18 Thread James Mitchell
Are you using the Template library? What version of Struts are you moving from? That class was deprecated and removed after 1.1. (BTW, it has been recommended to use Tiles instead of templates for about 2 years now) -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc.

Re: Latest Struts Install Problem

2004-10-18 Thread e-denton Java Programmer
Yep, using templates. Are they no longer supported? - Original Message - From: James Mitchell [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; e-denton Java Programmer [EMAIL PROTECTED] Sent: Monday, October 18, 2004 2:10 PM Subject: Re: Latest Struts Install Problem

AspectJ question

2004-10-18 Thread struts Dude
Hi Does Struts work well with AspectJ? Sorry if this is a stupid question. Thanks Duuude - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Extending DynaValidatorActionForm... or using something else?

2004-10-18 Thread Eddie Bush
Application-specific exceptions are one of the least used and most useful tools. That's exactly how I'd go about doing it, and I dare say it's the right way. - Original Message - From: Laurent Duperval [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 18, 2004 1:42 PM

Re: validation question

2004-10-18 Thread Justy Wong
Thx for your suggestions. 1) 2 action mappings -- 1 with validation turned off (welcome.do) and 1 with it on (login.do). that means for every action, I've to create 1 more action. but it will almost double the maintainence affort. 2) Turn validation off, and handle that in the action: then

help with actionform issue (page refresh)

2004-10-18 Thread Biggie Bendra
Hello, I'm having trouble doing what I want with a struts; I've read through the documentation and examples but haven't found anything quite like what I want to do. However, it seems like a common problem so perhaps someone can help me. I have two pages, one of which I will call query.jsp, and

Re: validation question

2004-10-18 Thread Joe Germuska
At 10:28 AM +0800 10/19/04, Justy Wong wrote: Thx for your suggestions. 1) 2 action mappings -- 1 with validation turned off (welcome.do) and 1 with it on (login.do). that means for every action, I've to create 1 more action. but it will almost double the maintainence affort. In practice, it's

Re: validation question

2004-10-18 Thread Eddie Bush
- Original Message - From: Justy Wong [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, October 18, 2004 9:28 PM Subject: Re: validation question Thx for your suggestions. 1) 2 action mappings -- 1 with validation turned off (welcome.do) and 1 with it on

Re: validation question

2004-10-18 Thread Eddie Bush
Nice trick, Joe - hadn't thought of doing that :-) - Original Message - From: Joe Germuska [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, October 18, 2004 9:40 PM Subject: Re: validation question At 10:28 AM +0800 10/19/04, Justy Wong wrote: Thx for your

RE: html:hidden values are null

2004-10-18 Thread David G. Friedman
Rosemary, I had a long day at work so bear with me.. Are you using the JavaScript 'onClick' event to go to the new form which is resulting in missing hidden fields? If so, that is your problem: It isn't changing the action on the from (And then submitting the form) but changing the web page in

Re: validation question

2004-10-18 Thread Justy Wong
Thanks for all!! From Joe: On the other hand, if you actually have this situation, you don't have to turn off validation -- simply implement your validation rules so that they can recognize the distinction. For example, have all your forms submit a hidden field, and have your validation

RE: validation question

2004-10-18 Thread Joe Hertz
Joe, do u mean checking the field with validwhen using validation.xml or implement the actionForm.validate() ? I really want to use the basic struts validation framework instead of implementing validate() function to minimize the maintainence cost. You can do it both ways. Use

Multiple Struts Config!!

2004-10-18 Thread Krishna Srinivasan, ISDC Chennai
HI, In my project i want to use multiple struts-config.xml file. how to use? i know struts 1.1 supports multiple struts config files. can anyone help me in this problem? Regards, Krishna Srinivasan. HCL Technologies Ltd. Insurance Solutions Development Center (ISDC).

Re: Multiple Struts Config!!

2004-10-18 Thread Biggie Bendra
Just use comma seperated file names; e.g. servlet servlet-namego/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml,/WEB-INF/struts-config2.xml/param-value /init-param ...etc

RE: Multiple Struts Config!!

2004-10-18 Thread Krishna Srinivasan, ISDC Chennai
ok. thanx. but how can i use in different modules?. can u give me small example? Regards, Krishna Srinivasan. HCL Technologies Ltd. Insurance Solutions Development Center (ISDC).

Re: Multiple Struts Config!!

2004-10-18 Thread anurag shinde
Multi configuration actually encompasses two different styles of usage: Peer configurations - where one large application struts-config.xml file has been arbitrarily split up into two or more peer configuration files. The struts-example application is an example of this. servlet

RE: Multiple Struts Config!!

2004-10-18 Thread Krishna Srinivasan, ISDC Chennai
I will explain my doubt. i hav 5 modules in my project. so i want to use 5 different config files. shall i hav all the files in web-inf package or i hav to keep it inside the modules. Regards, Krishna Srinivasan. HCL Technologies Ltd. Insurance Solutions Development Center (ISDC).

Re: validation question

2004-10-18 Thread Justy Wong
Thanks!!! I tried your last suggestion and it works fine!!! public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { if (getCheck()==null) { return null; } else { return super.validate(actionMapping,