Re: FileUpload: Stream ended unexpectedly

2004-03-17 Thread Dan Tran
Last time I check, isapi_redirect2.dll can not handle file upload bigger then 100K. You may try to check this bug with tomcat list. -Dan - Original Message - From: JoAnn Lemm [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 8:08 AM

Re: preview form

2004-02-16 Thread Dan Tran
select does support readonly , unfortunaely it does not understand readonly attribute, but only disabled -Dan - Original Message - From: Janice [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 16, 2004 1:03 PM Subject: preview form Hi Gang, I have a form that the

Re: how to configure the filter

2003-09-11 Thread Dan Tran
You can configure your filter to accept a set of URI pattern. Please refer to servlet 2.3 fitlter specification on how to set them up in web.xml -D - Original Message - From: Siva [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 11:20 PM Subject: how to

Re: [OT] Scheduling

2003-09-01 Thread Dan Tran
check out this link http://demo.jgsullivan.com/struts/index.html -Dan - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 31, 2003 10:36 PM Subject: [OT] Scheduling Hi All, What would be the best implementation for scheduling a job in

Re: Muliple Tomcats

2003-09-01 Thread Dan Tran
Yes as long as they listen on different ports -Dan - Original Message - From: Kannan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, August 31, 2003 10:34 PM Subject: Muliple Tomcats Hi ,Is it possible to have two tomcats, one is tomcat4.1.24 and

Re: Java Question

2003-08-24 Thread Dan Tran
Try to import only what you need, not the whole package. It can help you to trouble shoot this problem -D - Original Message - From: Kapadia Mitesh-C23457 [EMAIL PROTECTED] Newsgroups: Struts Sent: Sunday, August 24, 2003 11:32 AM Subject: Java Question I've been trying to compile my

Re: struts test info

2003-08-22 Thread Dan Tran
http://strutstestcase.sourceforge.net/ -Dan - Original Message - From: ronanoc [EMAIL PROTECTED] To: Struts List [EMAIL PROTECTED] Sent: Friday, August 22, 2003 6:13 AM Subject: struts test info Can anyone point me in the direction of good examples and info about using/writing

Re: Security and Roles related

2003-08-20 Thread Dan Tran
@ 98404-65630 Dan Tran [EMAIL PROTECTED]To: Struts Users Mailing List .com [EMAIL PROTECTED] cc: 08/19/2003 06:02 Subject: Re

Re: force servlet read re-read init parameters

2003-08-20 Thread Dan Tran
Helo Harm, 1. Most containers support hot deployment where your app automatically reload when one of its properties or classes is altered, ie web.xml other a propreties file in class path 2. You can add a method in servlet and callit from browser to call init -D - Original Message -

Re: Security and Roles related

2003-08-19 Thread Dan Tran
You can assign a role attribute with multiple role names in the action configuration. Underneath, struts uses isUserInRole to check against the list you provided. However, checking security is better off to let container do it for you. -D - Original Message - From: [EMAIL PROTECTED]

Re: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException

2003-08-18 Thread Dan Tran
Jason, take a look at the below discussion link. It may help http://article.gmane.org/gmane.comp.jakarta.struts.user/24178 -Dan - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, August 18, 2003 5:11 AM Subject:

Re: Bean:message to fmt:message

2003-08-17 Thread Dan Tran
Yes it does. - Original Message - From: Erez Efrati [EMAIL PROTECTED] Newsgroups: Struts Sent: Sunday, August 17, 2003 9:57 AM Subject: Bean:message to fmt:message I have a very small question: I have message keys that uses '.' like for instance 'myform.hello'. I read something but I

Re: uploadfile path

2003-08-14 Thread Dan Tran
Folow the Struts upload example, you can trace thru how Struts gets the client file and upload to server where you have to do extra work to copy data from FormFile (its stream buffer) to the your choice of server location. -Dan - Original Message - From: Yansheng Lin [EMAIL PROTECTED]

Re: image as link in diaplay taglib?

2003-08-14 Thread Dan Tran
Here is an example display:column title=Edit value=img src=../images/edit.gif border=0 href=./load.do paramId=id paramProperty=student.id / -D - Original Message - From: Rick Col [EMAIL PROTECTED] Newsgroups: Struts Sent: Tuesday, August 05, 2003 9:25 AM Subject: image as link in

Re: Has anyone used Hibernate with Struts?

2003-08-09 Thread Dan Tran
Victor, The beauty of Struts (MVC2) is that it does not care on how you persist you model objects. Struts' action object is the place you glue your view and model together. With that, all you need is to learn how to work with Hibernate. The following link will give you a good introduction to

Re: uploadfile path

2003-08-06 Thread Dan Tran
=org.apache.struts.upload.DiskMultipartRequestHandler set-property property=inputForward value=true/ /controller Regards Alok --- Dan Tran [EMAIL PROTECTED] wrote: Folow the Struts upload example, you can trace thru how Struts gets the client file and upload to server where you have to do extra work to copy

Re: Transaction Token

2003-07-29 Thread Dan Tran
Do a search on archive and look for transaction token. The struts-example in the distribution also uses transaction token as well -D - Original Message - From: Joshua White [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 5:12 PM Subject: Transaction Token I have

Re: problem with dbcp and database restart

2003-07-09 Thread Dan Tran
Meissa, When your database restarts, all your dbcp connections (in the pool) become staled connection. In order to resolve this problem, dbcp needs to do a ping to database server to make the connection is still up before giving to your app. Looking into dbcp configuration doc, it should have a

Re: Action forward to another action without form

2003-07-06 Thread Dan Tran
Yes;) - Original Message - From: Benjamin Stewart [EMAIL PROTECTED] Newsgroups: Struts Sent: Sunday, July 06, 2003 6:59 PM Subject: Action forward to another action without form Greetings, I have a form that submits values. From the Action class I would (in some circumstances)

Re: readonly - select box

2003-07-04 Thread Dan Tran
Use disabled=true -D - Original Message - From: sriram [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:04 PM Subject: readonly - select box How to make a html:select readonly (not disabled). For html:text, I can use 'readonly' but this does not exist for

Re: readonly - select box

2003-07-04 Thread Dan Tran
, then on submission of the form, this field does not have any value and so I am getting a validation error (this is a mandatory field). My requirement is to make it read-only instead of making it disabled. Any clue? -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Saturday

Re: Initialize Struts form with request parameters

2003-07-01 Thread Dan Tran
Adam's answer is absolutely correct, however let me add more details to make your job a little bit easier. 1. Create and action called loadTrainee.do and associate this action with your form. with a forward to chooseTraineePage.jsp 2. Invoke chooseTranies.do?traineeId=, struts, will

Re: Tag to remove jsp from cache???

2003-07-01 Thread Dan Tran
question: can I just configure the controller .. and dothing on the page? -D - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] Newsgroups: Struts Sent: Tuesday, July 01, 2003 5:41 AM Subject: Re: Tag to remove jsp from cache??? You can configure Struts to ad HTTP no-cache

Re: Tag to remove jsp from cache???

2003-07-01 Thread Dan Tran
: James Childers [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 9:29 AM Subject: RE: Tag to remove jsp from cache??? -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 11:20 AM To: Struts Users Mailing

Re: Release of HTMLTable 0.4-rc1

2003-06-29 Thread Dan Tran
Cool product and similar to Display tag with added feature like editing table. Can it work with html-el and jstl? -Dan - Original Message - From: Yuriy Zubarev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 29, 2003 12:24 AM Subject: Release of HTMLTable 0.4-rc1 Hello

Re: Release of HTMLTable 0.4-rc1

2003-06-29 Thread Dan Tran
Also, can it export the table to excel fomat like display tag? -Dan - Original Message - From: Yuriy Zubarev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 29, 2003 12:24 AM Subject: Release of HTMLTable 0.4-rc1 Hello everyone, I'm pleased to inform you that the first

Re: JSTL- el - nested beans from a map used in a form?

2003-06-28 Thread Dan Tran
see this link http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt -Dan - Original Message - From: Rick Reumann [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 28, 2003 9:35 AM Subject: JSTL- el - nested beans from a map used in a form?

Re: common-logging, Struts, Log4j

2003-06-26 Thread Dan Tran
Rabih, You place the properties files at the wrong place. Move them to WEB-INF/classes -D - Original Message - From: rablists [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 5:50 AM Subject: common-logging, Struts, Log4j Hi. I have problem in using the

Re: How To Render Binary Output - spreadsheet - from Struts

2003-06-25 Thread Dan Tran
use display tag, it can do it for you transparently http://edhill.its.uiowa.edu/display/ -Dan - Original Message - From: douglas reames [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 11:24 AM Subject: How To Render Binary Output -

Re: file upload and unicode

2003-06-23 Thread Dan Tran
Just upload the file as normal binary file. When you read this file at the server side, make sure to read it with correct encoding of unicode type (like UTF8,UTF16, etc) You probably need to allow the user to enter the upload file encoding type, and pass along this info to server -Dan -

Re: Access to MessageResources instance

2003-06-23 Thread Dan Tran
MessageResources messages = this.getResources(request); - Original Message - From: Duma Rolando [EMAIL PROTECTED] Newsgroups: Struts Sent: Monday, June 23, 2003 3:29 AM Subject: Access to MessageResources instance I would like to know if it's possible to access an existing struts

Re: Error when using ValidatorForm when having indexed property

2003-06-22 Thread Dan Tran
post a snipet of your actionform and your validation file -D - Original Message - From: Kelvin wu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 21, 2003 11:15 PM Subject: Error when using ValidatorForm when having indexed property Help, when i use Validator form with

Re: Validator Framework Questions

2003-06-15 Thread Dan Tran
change your strut config to use org.apache.struts.validator.DynaValidatorForm -Dan - Original Message - From: Thomas Miskiewicz [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, June 15, 2003 9:42 AM Subject: Validator Framework Questions Hello!

Re: Validator Framework Questions

2003-06-15 Thread Dan Tran
Thomas, I have seen may developers struggling with Struts Validation (IMHO, it is a GIFT to us). The best way is to read some good book like the one from Chuck Cavaness. I read it once and my validation never fail me. Or you can view his article

Re: Login and security checks

2003-06-14 Thread Dan Tran
if role check fails, Struts sets HttpResponse code 400 (Bad Request) -D - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 14, 2003 2:44 AM Subject: Re: Login and security checks What happens if you don't put a

Re: UML diagrams in Struts source

2003-06-13 Thread Dan Tran
do a google search struts +uml ;-) -D - Original Message - From: Rahul [EMAIL PROTECTED] To: Struts Users [EMAIL PROTECTED] Sent: Friday, June 13, 2003 6:54 PM Subject: UML diagrams in Struts source Greetings All, First of all, I take this opportunity to congratulate Ted, Cedric,

Re: a jsp question:how to get the web application's directory?

2003-06-12 Thread Dan Tran
Cant you just create a stream on the fly and ship it back to the user thru HTTPResponse? In you insist on writting to a webapp directory, look up getRealPath(). -Dan - Original Message - From: lcl [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 7:41 PM Subject: a

Re: OT FRIDAY: Take a break with struts users

2003-06-12 Thread Dan Tran
They are active during the week ;-) -D - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 8:31 PM Subject: RE: OT FRIDAY: Take a break with struts users Bah! Theres nobody there! ... boring...

Re: Best practive for presenting a search result to a user

2003-06-10 Thread Dan Tran
http://edhill.its.uiowa.edu/display/ ? - Original Message - From: Marc BEGUIGNEAU [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 9:14 AM Subject: Best practive for presenting a search result to a user Hello, I would like to know what is for you the best practice

Re: Struts Dependencies

2003-06-10 Thread Dan Tran
http://jakarta.apache.org/struts/userGuide/release-notes-1.1-rc2.html But it does not have ORO info -D - Original Message - From: Doyle, Michael J [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 10:21 AM Subject: Struts Dependencies Hi, Does anyone know what

Re: Struts Dependencies

2003-06-10 Thread Dan Tran
, 2003 12:53 PM Subject: RE: Struts Dependencies Thanks for the pointer. Does this mean that Struts is not really dependent on ORO?? -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 1:59 PM To: Struts Users Mailing List Subject: Re: Struts

Re: commons-logging problem in 1.1 RC2

2003-06-09 Thread Dan Tran
same here, I had to replace an older version to common-loggin to get my app working ing rc2 -D - Original Message - From: Raible, Matt [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, June 09, 2003 3:10 PM Subject: commons-logging

Re: debugging bean populate

2003-06-09 Thread Dan Tran
add this line to your log4j.properties file log4j.logger.org.apache.commons.beanutils=DEBUG -D - Original Message - From: Nathan Coast [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 6:41 PM Subject: debugging bean populate Hi, I'm

Re: should I use struts

2003-06-07 Thread Dan Tran
How complex is complex? Struts is here to solve complex problem unless the problem is so complex that struts cannot solve ;-) -Dan - Original Message - From: Hariharan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 06, 2003 9:18 PM Subject: should I use struts Hello guys,

Re: adding / creating new collection elements in a form

2003-06-07 Thread Dan Tran
I just implemented myself, so let me throw a shot at this. In my case, I make my action derived from LookupDispatchAction which can handle multiple button submission handlers. One of the button is called something like addRow. When you hit this addRow button, struts will repopolate what ever on

Re: How Smart is DynaActionForm?

2003-06-07 Thread Dan Tran
bean should always be there, but know it won't self populate just like a standard action form. You can scope the form to session or repopulate as part of the action invoked via the form submission. cheers mark On Thursday, Jun 5, 2003, at 07:35 Europe/London, Dan Tran wrote: hmm, I thought

Re: How Smart is DynaActionForm?

2003-06-07 Thread Dan Tran
, Jun 7, 2003, at 19:02 Europe/London, Dan Tran wrote: Hi Mark, thanks for reply. I knew it is a popular topic but at the time, I was not able to think of good search key for looking into the archive. Until I tumbled on a old post regarding lazyList. and the answer is there just like you

Re: how to submit Unicode text in Struts/JSP?

2003-06-07 Thread Dan Tran
http://www.anassina.com/struts/i18n/i18n.html I heard Struts 1.2 may incorporate this in the future. -Dan - Original Message - From: Dimitar Georgievski [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 11:41 AM Subject: how to submit

Re: Re: struts validator

2003-06-06 Thread Dan Tran
I must give Chuck a Kudo here, since the day I read his book review, Strut's validator never fail me. -Dan - Original Message - From: Chuck Cavaness [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 8:53 AM Subject: Re: Re: struts validator

Re: Action Form Bean required ???

2003-06-06 Thread Dan Tran
Ba?o, what kind of problem do you see? Here is example of action without actionForm action path=/nextYearReport scope=request type=org.glvnsjc.action.student.NextYearReportActionforward name=success path=/nextYearReport.jsp?page=1 redirect=false //action Note, there is no name attribute and

How Smart is DynaActionForm?

2003-06-05 Thread Dan Tran
Hello, I have an ArrayList as a element of an DyanActionForm. The list contains elements of another bean that has properties as strings. I can populate the DynaActionForm in my action and have the JSP to display it . The question here is does DynaActionForm has the intelligent to reconstruct

Re: How Smart is DynaActionForm?

2003-06-05 Thread Dan Tran
hmm, I thought the topic was designed to catch attention ;) -D - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:40 PM Subject: How Smart is DynaActionForm? Hello, I have an ArrayList as a element

Re: ArrayList as an element of DynaActionForm

2003-06-04 Thread Dan Tran
? On Tuesday, Jun 3, 2003, at 08:58 Europe/London, Dan Tran wrote: Hello, I define an ArrayList as an element of my DynaActionForm. I set up my form and load it up on my jsp using c:foreach But when I submit the form back to the server, my ArrayList always empty. What did I do wrong

ArrayList as an element of DynaActionForm

2003-06-03 Thread Dan Tran
Hello, I define an ArrayList as an element of my DynaActionForm. I set up my form and load it up on my jsp using c:foreach But when I submit the form back to the server, my ArrayList always empty. What did I do wrong? Thanks -Dan

Re: Yahoo for the late night junkies

2003-05-31 Thread Dan Tran
Why? -D - Original Message - From: Brandon Goodin [EMAIL PROTECTED] To: Struts User List [EMAIL PROTECTED] Sent: Friday, May 30, 2003 9:27 PM Subject: Yahoo for the late night junkies Hey all. I set up a temporary room on Yahoo chat at: Computers Internet Users Rooms Struts

Re: Yahoo for the late night junkies

2003-05-31 Thread Dan Tran
-Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 11:17 PM To: Struts Users Mailing List Subject: Re: Yahoo for the late night junkies Why? -D - Original Message - From: Brandon Goodin [EMAIL PROTECTED] To: Struts User List [EMAIL PROTECTED

Re: Too many session scoped form beans!

2003-03-31 Thread Dan Tran
Nicolas, thank your for all great suggestions. But I think I will stick with the original session implementation. It is much simpler ... -D - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:00

Re: Populate options with integers

2003-03-31 Thread Dan Tran
Take alook at Struts-example.war in the distribution It uses html:select/html:options and LabelValueBean to do what you need. -Dan - Original Message - From: Dhruva B. Reddy [EMAIL PROTECTED] To: Struts User Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 9:43 AM Subject:

Re: It's late and I'm feeling stupid

2003-03-30 Thread Dan Tran
not this step in the problem. Or am I missing something? Any other suggestions? Jefficus - Original Message - From: Dan Tran [EMAIL PROTECTED] It is late too and my mind also slowing down as well ;-) So here is my vague ans. Use Struts-el tag lib, it works well with JSTL -Dan

Re: Validation for anything other than html:text

2003-03-30 Thread Dan Tran
Required select works for me! do you have the normal text file validation working ? -Dan - Original Message - From: Steven Citron-Pousty [EMAIL PROTECTED] To: struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 1:43 PM Subject: Validation for anything other than

Re: Setting up JSTL---How?

2003-03-30 Thread Dan Tran
suggestion!! download Struts-el example, load and run it. And use it as template for your new jstl work. -Dan - Original Message - From: joni santoso [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 11:15 PM Subject: Setting up JSTL---How?

Re: Too many session scoped form beans!

2003-03-30 Thread Dan Tran
Of course, your newest solution is better, but it still does not feel right regarding the MAX_INDEX allowed ;-) -D - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 10:44 PM Subject: Re: Too many

Re: Setting up JSTL---How?

2003-03-30 Thread Dan Tran
30, 2003 11:24 PM Subject: Re: Setting up JSTL---How? where can i get that struts-el? still i am curious why the jstl didn't work :(. On Sun, 30 Mar 2003 23:20:03 -0800 Dan Tran [EMAIL PROTECTED] wrote: suggestion!! download Struts-el example, load and run it. And use it as template

Re: Bitmechanic JDBC Connection Pool or Struts Connection Pool

2003-03-29 Thread Dan Tran
http://jakarta.apache.org/struts/faqs/database.html -D - Original Message - From: niksa_os [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 29, 2003 2:28 AM Subject: Bitmechanic JDBC Connection Pool or Struts Connection Pool I search the [EMAIL PROTECTED] but I didn't find

Re: Do Struts increase developer productivity?

2003-03-29 Thread Dan Tran
James Michell is out of work? Me too. How many good ppl are in the same situation these days? Sorry for breaking out of the rythm. -D - Original Message - From: Micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, March 29, 2003 12:05 AM Subject: RE:

Re: initialize application-scope variables

2003-03-29 Thread Dan Tran
I dont think there is a way. You can refactor it by moving the JSP init code to a java bean and have both JSP and PlugIn to call the java bean is it okie? -D - Original Message - From: Brian Buckley [EMAIL PROTECTED] To: Struts Users [EMAIL PROTECTED] Sent: Saturday, March 29, 2003

Re: application.getRealPath(/) from ActionForm???

2003-03-29 Thread Dan Tran
If you deploy your app as a WAR file, then it is the correct result since there is no real directory to return But you can use this code InputStream is = servlet.getServletContext().getResourceAsStream(pathName); where pathName is the context path to your file in the WAR archive. (ie

Re: Setting externally JNDI properties

2003-03-29 Thread Dan Tran
The following snippets may help snippet //place your jndi under your WEB-INF/classes ClassLoader classLoader = getClass().getClassLoader(); InputStream in = classLoader.getResourceAsStream(jndi.properties); if ( in == null ) throw new

Re: application.getRealPath(/) from ActionForm???

2003-03-29 Thread Dan Tran
Exception { this.load(); } ... ... } -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 8:25 PM To: Struts Users Mailing List Subject: Re: application.getRealPath(/) from ActionForm??? If you deploy your app as a WAR file

Re: how to logic:iterate throu serveral collections at once ?

2003-03-29 Thread Dan Tran
The answer is yes. Please check struts doc However, by place your id and label into LabelValueBean. It will make your code easier write thru logic:iterate -Dan - Original Message - From: Slava_L [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, March 29,

Re: example of PlugIn for java.sql.Date Converter registration

2003-03-29 Thread Dan Tran
registration Hi all, as a follow-up to my question, wanted to thank Dan Tran for his help and also Rick Reumann for his. I was trying to add a PlugIn in the struts-config.xml file to augment the functionality of the BeanUtils.copyProperties function to handle java.util.Date going from a form

[OT] Test

2003-03-29 Thread Dan Tran
I keep seeing double messages sending to me when I make a post to this group Please ignore this mail -Dan _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus

[OT] Test

2003-03-29 Thread Dan Tran
Please ignore -D _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail:

Re: application.getRealPath(/) from ActionForm???

2003-03-29 Thread Dan Tran
. Jason Long - CEO and Chief Software Engineer Supernova Software - supernovasoftware.com BS Physics, MS Chemical Engineering -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 10:29 PM To: Struts Users Mailing List Subject: Re

Re: how to logic:iterate throu serveral collections at once ?

2003-03-29 Thread Dan Tran
collections at once ? Struts doc says that only one object can be iterated inside on logic:iterate - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 12:39 PM Subject: Re: how to logic:iterate throu

Re: It's late and I'm feeling stupid

2003-03-29 Thread Dan Tran
It is late too and my mind also slowing down as well ;-) So here is my vague ans. Use Struts-el tag lib, it works well with JSTL -Dan - Original Message - From: Jeff Smith [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, March 29, 2003 9:47 PM Subject:

Re: how to logic:iterate throu serveral collections at once ?

2003-03-29 Thread Dan Tran
of the values on this option which I have stored as another boolean[]. Now in my UI, I want to have each of these options to appear in two different colors depending on the corresponding value in my boolean[]. How can I implement this. -Shilpi -Original Message- From: Dan Tran

Re: application.getRealPath(/) from ActionForm???

2003-03-29 Thread Dan Tran
it to load when ActionForm is loaded. Is there no way to load form values from an external source? Jason Long - CEO and Chief Software Engineer Supernova Software - supernovasoftware.com BS Physics, MS Chemical Engineering -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED

Test,please ignore

2003-03-29 Thread Dan Tran
-D _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Too many session scoped form beans!

2003-03-28 Thread Dan Tran
Nicolas, Your great suggestion makes me nervous ... It is possible for a hacker to change the index so big that it can hog the CPU, which busy creating empty node, for each request. However, I cant come up with another solution Any comments? anyone? -D - Original Message - From:

Re: tags within tags i18n

2003-03-28 Thread Dan Tran
try this snippet bean:define id=myVar bean:message key=myKey / /bean html:link title=%=myVar % forward= ... / /snippet -D - Original Message - From: Vivian, Nigel (N.) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 28, 2003 7:04 AM Subject: tags within tags i18n

Re: Actions based on Role

2003-03-27 Thread Dan Tran
http://securityfilter.sourceforge.net/ click on File item on the top right cornor. -Dan - Original Message - From: Mike Duffy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 27, 2003 8:55 PM Subject: Re: Actions based on Role

Re: Scope and Action objects (struts 1.1)

2003-03-26 Thread Dan Tran
You need to put the count var in your actionForm, and increment it in your action class. But if you put the actionform in request, the increment has no effect. The action instance itself is cached by struts. -D - Original Message - From: Chai Ang [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: validate= true destroys form defaults

2003-03-25 Thread Dan Tran
This is my be a long shot, but I encountered it before. Makesure to make all your actions to have the same scope In this case: request. Do not leave it blank. ]-D - Original Message - From: Carsten Hammer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 12:01 PM

Re: take over an existing HttpSession

2003-03-24 Thread Dan Tran
Just an idea!! Store all your sessions's reference in the servelt context and when a new session is create, check against the session list in the servelt context, copy over data from old session to new session, and destroy the old session Then You have to deal with all kind of multithreaded

Re: take over an existing HttpSession

2003-03-24 Thread Dan Tran
?? Dan Tran [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Just an idea!! Store all your sessions's reference in the servelt context and when a new session is create, check against the session list in the servelt context, copy over data from old session to new session

Re: case study with security

2003-03-23 Thread Dan Tran
In your case, you can make administrator is a 'user' itself so that /EditAccount.do works for both roles. However, I strongly suspect your action/view you have to do lots of if else block to determine what to do and what to display. Encapsulation is the key here, I would provide 2 separate

Re: case study with security

2003-03-23 Thread Dan Tran
BTW,the current login user can only change his/her own login/acount profile -D - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, March 23, 2003 11:16 AM Subject: Re: case study with security In your case, you can make

Re: Validation - Require One of Multiple Fields

2003-03-20 Thread Dan Tran
http://jakarta.apache.org/struts/userGuide/dev_validator.html may help. Look for twofield example. -D - Original Message - From: Joey Ebright [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:54 PM Subject: Validation - Require One of Multiple Fields Hello,

Re: design concern

2003-03-15 Thread Dan Tran
According to Struts, every thing should go to action. It is a good habit consistent with MVC2 frameword/pattern. -Dan - Original Message - From: santhosh [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Saturday, March 15, 2003 5:01 AM Subject: design concern

Re: design concern

2003-03-15 Thread Dan Tran
oops, I misread the question. Please see the answers from both David and Dan Alen - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, March 15, 2003 4:47 PM Subject: Re: design concern According to Struts, every thing

Conditional Displaying form properties - Seek Advice

2003-03-12 Thread Dan Tran
Hi I would like to display/disable a set of form's properties base on another properties in the form. some thing like this html-el:form table if ( theForm.aProperty) { tr td html-el:text property=myprob / /td /tr } /table

Re: Conditional Displaying form properties - Seek Advice

2003-03-12 Thread Dan Tran
Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:27 PM Subject: Re: Conditional Displaying form properties - Seek Advice You can use the c:if JSTL tag to perform conditional logic. David From: Dan Tran [EMAIL PROTECTED] Reply

Re: Conditional Displaying form properties - Seek Advice

2003-03-12 Thread Dan Tran
in the request or session scope so you can access it just like any other bean: c:if test=${myForm.action == 'add'} myForm is the name you gave your form in struts-config.xml David From: Dan Tran [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing

Re: Conditional Displaying form properties - Seek Advice - Solved

2003-03-12 Thread Dan Tran
The actual syntax for DynaForm is myForm.map.mypropertiy Thank you for everything -Dan - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 3:14 PM Subject: Re: Conditional Displaying form properties - Seek

Re: Advice on File Uplaod

2003-03-12 Thread Dan Tran
I have the same problem but unable to find solution yet, except to validate as much as I can in the browser side so that I can retain the file field. -Dan - Original Message - From: John Brayton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 5:48 PM Subject:

Re: Accessing DynaActionForm fields within custom tag

2003-03-12 Thread Dan Tran
Use the combination of JSTL and Struts-el Here is an example, where based on a property in my form, the submit button is displayed differently. The formName is defined in your struts config file Good luck -Dan %@ page contentType=text/html; charset=utf-8 % %@ taglib

Re: Accessing bean in JSP but w/in java

2003-03-12 Thread Dan Tran
your actionForm should be already placed in your session or request object based on yours strut config file. To access the a field in the field your can accessit using yourFormName.yourFieldName if you are using regular java bean or yourFormName.map.yourFieldName if you are using DynaForm type

Re: Accessing DynaActionForm fields within custom tag

2003-03-12 Thread Dan Tran
not to know what loginForm is. Argh. - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:17 PM Subject: Re: Accessing DynaActionForm fields within custom tag Use the combination of JSTL and Struts

Re: Advice on File Uplaod

2003-03-12 Thread Dan Tran
. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 7:09 PM To: Struts Users Mailing List Subject: Re

  1   2   3   >