No form parsing when file upload exceeds maxFileSize

2002-08-31 Thread Wellie W. Chao
I have a form with several input fields and a couple of input fields. In web.xml, I also specify a value for maxFileSize (currently set to a really small value of 5K for testing). Here is the portion of my JSP with the input form: - Job Name: Job Type: Due Date: Thumbnail 1: Thumbnail 2:

Re: Tiles scope issue with 'tile' scope

2002-06-24 Thread Wellie W. Chao
> > The error occur during an insert, so it can be sent by the inserted jsp page. > The "tile" scope can only be used in tiles tags. Check if you don't use it with > other kind of tags. > Also, you can try to replace "tile" by a synonym "template" or

RE: StrutsTiles Design: Model2 and authorization

2002-04-13 Thread Wellie W. Chao
7;s putting too much logic into them. -Original Message----- From: Wellie W. Chao [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 10:13 PM To: Struts Users Mailing List Subject: RE: StrutsTiles Design: Model2 and authorization I have my pages separated into directories by role, and

Struts design question re: form action

2002-04-13 Thread Wellie W. Chao
I'm just curious about a design issue with Struts 1.1. The tag has a "forward" attribute that lets you specify an entry from struts-config.xml as the destination of the link. That way you aren't tied to a particular action or a particular JSP/HTML page. Why isn't there a similar attribute for ? Y

RE: StrutsTiles Design: Model2 and authorization

2002-04-13 Thread Wellie W. Chao
Behalf Of Mark Woon Sent: Saturday, April 13, 2002 12:05 AM To: [EMAIL PROTECTED] Subject: Re: StrutsTiles Design: Model2 and authorization "Wellie W. Chao" wrote: > I have the layout tiles and > common tiles (e.g. nav bars, footers, etc.) protected so that they are >

RE: /do/* instead of *.do in web.xml

2002-04-13 Thread Wellie W. Chao
I don't think *.do forces a filesystem type of approach. It's equivalent in flexibility to /do/* in fact. You don't have to have a file or even a set of directories that match the path of the /x/y/z/file.do path specification, so you could do the same things you do with /do/*. It's just a matter o

RE: StrutsTiles Design: Model2 and authorization

2002-04-12 Thread Wellie W. Chao
I have my pages separated into directories by role, and I have a shared directory called security that provides login, logout, forgot-password, register, and other security-related functions. I have the layout tiles and common tiles (e.g. nav bars, footers, etc.) protected so that they are inacces

RE: DynaBeans documentation

2002-04-12 Thread Wellie W. Chao
working. I filed a bug on it. But, I don't know if I am doing it correct or not. If, yes, then can you spare a copy of code. Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message----- From: Wellie W. Chao

Re: Good process for develop/build/deploy/test cycle

2002-04-11 Thread Wellie W. Chao
I'm not exactly sure what you mean by "incorporate user authorization into selected a 'forward' view mapping." If you want container-managed security, just add it to your web.xml like so: Admin Admin functions /admin/* GET POST admin

RE: DynaBeans documentation

2002-04-11 Thread Wellie W. Chao
There is javadoc documentation for the DynaBean class in the Jakarta Commons project (beanutil group). As for examples, I just experimented until I got it working. Here's some code from an application I'm building: DynaProperty[] dynaProps = null; Vector dynaPropNames = null; dynaPropNames = new

RE: Security Question getRemoteUser() or getUserPrincipal()

2002-04-09 Thread Wellie W. Chao
://www.phase.ws -Original Message- From: Wellie W. Chao [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 4:04 PM To: Struts Users Mailing List Subject: RE: Security Question getRemoteUser() or getUserPrincipal() A Principal can be more than just username. For example, it could be

RE: Security Question getRemoteUser() or getUserPrincipal()

2002-04-09 Thread Wellie W. Chao
A Principal can be more than just username. For example, it could be driver's license number, social security number, etc They're alternate ways to identify the same user. Username is just that -- username. -Original Message- From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]] S

RE: bean:write and date formatting - doesn't work for me

2002-04-09 Thread Wellie W. Chao
I think the class has to match. I had problems with a date that got converted to the String class as well. If you use String, I think it gets converted from a Date to a String once and for all. After that, the formatKey attribute won't work because it relies on the format method of SimpleDateForma

RE: tiles question

2002-04-09 Thread Wellie W. Chao
What version of struts are you using? I'm using 1.1 beta 1, and the forward to tiles definition feature works just fine. My action tags look just like what you specified. You may need to check and make sure you have the proper settings in web.xml. In web.xml, you should have: action org.apache.s

RE: Tiles, definitions and roles

2002-04-06 Thread Wellie W. Chao
I had the same issue with certain pages (e.g. a change password page that applies to three different roles). The way I solved it was to put the role="{x}" restrictions in the put tags like so: You end up having to extend a page at a higher level in the inheritance hiera

Tricky javascript problem performing programmatic form submit with struts

2002-04-06 Thread Wellie W. Chao
I spent a good hour hunting down the source of my problem with trying to programmatically submit a form and thought I'd share the solution for others who are using struts. I wanted to have a select list automatically cause its containing form to submit when the value of the select list changed. Th

RE: Good process for develop/build/deploy/test cycle

2002-04-05 Thread Wellie W. Chao
cle Use Ant. Mark -Original Message----- From: Wellie W. Chao [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 7:51 AM To: Struts Users Mailing List Subject: Good process for develop/build/deploy/test cycle I started using JBoss with Tomcat a few weeks ago doing development with

Good process for develop/build/deploy/test cycle

2002-04-05 Thread Wellie W. Chao
I started using JBoss with Tomcat a few weeks ago doing development with Struts and Tiles and find that I spend a lot of time in the deploy portion of the application development process waiting for an EAR to deploy, which dramatically slows down development since the build/deploy/test parts of th

Accessing Hashtable / Map entries with bean library

2002-04-04 Thread Wellie W. Chao
Is there a way to access Hashtable (or Map) entries with the bean tag library? Normally I would use a regular bean and just do bean:write, but I want to have several derived values as well that are not in the bean, so I have to copy the bean properties to a Hashtable and add the derived values. R

RE: No action instance for path

2002-04-04 Thread Wellie W. Chao
I don't think you actually need the ".do" extension when using the html:form tag. I don't have it in my forms and it works. I think the struts-html tag library searches through the actions and automatically appends the correct extension. If you were using standard HTML form tags, you'd have to app

RE: How to avoid a separate .jsp page for body definition when us ing Templates?

2002-04-03 Thread Wellie W. Chao
Hi Alex, I agree with Mark. I had your same problem a while back and decided to switch to Tiles, which is much more flexible. For each page, I have an entry in struts-config.xml and one in tiles-defs.xml. A really simple page looks like this: struts-config.xml: tiles-defs.xml: /security/auth

RE: storing data beyond single page scope without commiting to database

2002-04-03 Thread Wellie W. Chao
Why don't you store the temporary object in the session object and check to see if the object exists when rendering the form? -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 9:55 AM To: [EMAIL PROTECTED] Subject: storing data beyond si

RE: Problem with org.apache.struts.util.PropertyMessageResources

2002-04-02 Thread Wellie W. Chao
saying, "could not find the ApplicationResources.properties file specified as parameter in ." -Original Message- From: Wellie W. Chao [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 3:37 PM To: Struts Users Mailing List Subject: Problem with org.apache.struts.util.Prope

Problem with org.apache.struts.util.PropertyMessageResources

2002-04-02 Thread Wellie W. Chao
I'm using struts 1.1-b1 and am having problems getting properties from my ApplicationResources.properties. I have placed it in my classpath at com/mycompany/myproject/ApplicationResources.properties and have configured struts to use com.mycompany.myproject.ApplicationResources as the message-resou

RE: ApplicationResources.properties

2002-04-02 Thread Wellie W. Chao
Is the "application" parameter a relic from 1.0 or is it required in 1.1? I have an entry in struts-config.xml that seems to serve the same purpose: The reason I ask is that I recently began having problems accessing entries in ApplicationResources. I'll try adding it to web.xml. -Original

Bug in html:errors and html:messages? Problem with printing errors.

2002-04-02 Thread Wellie W. Chao
I am having some weird problems with the html:errors and html:messages tags in struts-html from the 1.1-b1 version. I am certain the Request object has an attribute named "org.apache.struts.action.ERROR" because I have printed out all attributes in the Request object on the page footer. Also, the

RE: Weird problem with tiles and struts forward.

2002-03-31 Thread Wellie W. Chao
n I forward to different page depend on the result? Jack "Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Looking at the struts-config.xml file you posted in your original message, I > note that you have forward entries within the action block

RE: Weird problem with tiles and struts forward.

2002-03-31 Thread Wellie W. Chao
with forward to a jsp, it works fine, just can not forward to a tiles definition. Jack "Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Wow. I just tried it again and it works beautifully. You learn something new > every day. It simplifies thi

RE: Weird problem with tiles and struts forward.

2002-03-31 Thread Wellie W. Chao
the references to Tiles definitions. I'm using the 02/05/2002 nightly. -Original Message- From: Wellie W. Chao [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 30, 2002 7:41 AM To: Struts Users Mailing List Subject: RE: Weird problem with tiles and struts forward. Are you sayin

Prevention of reposting username/password

2002-03-30 Thread Wellie W. Chao
I've seen several posts on using tokens to prevent someone from going back in the history and resubmitting old username/password information to log in again. That seems to work fine with manual authentication. How would this work with container-managed security, since the container performs the au

RE: Weird problem with tiles and struts forward.

2002-03-30 Thread Wellie W. Chao
truts 1.1. Try getting one of the newer nightly builds of Struts, or vist Cedric's Tiles web site. There, I think he specifically points to versions that operate with each other. -Original Message----- From: Wellie W. Chao [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 30, 2002 5:13 AM To:

RE: Weird problem with tiles and struts forward.

2002-03-30 Thread Wellie W. Chao
I don't think you can use a tiles definition in . You need to specify a context-relative path to an action -- in other words, a URL. You could say , then include the following in /register.success.jsp: <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> -Original Message- From: Struts

RE: This hopefully is a simple question that has been dealt with

2002-03-30 Thread Wellie W. Chao
Have you looked at the validator that comes with struts 1.1 beta? You can look at validator.xml and validator-rules.xml in the blank application's WEB-INF. It's for input though, as opposed to output. I haven't heard of anything similar for output. -Original Message- From: Vladimir Levin

Re: Tiles and struts action

2002-03-28 Thread Wellie W. Chao
s and part of the page out before loading the layout? Can I disable this behavior somehow? On Thu, 28 Mar 2002, Wellie W. Chao wrote: > Date: Thu, 28 Mar 2002 22:23:58 -0500 (EST) > From: Wellie W. Chao <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PR

Re: Tiles and struts action

2002-03-28 Thread Wellie W. Chao
Did you ever figure out the solution to the Response has been committed problem? I am now having a similar problem with a custom tag. I have a tag called checkLogin that I place in a page like so: - <%@ taglib uri="/WEB-INF/app.tld" prefix="app" %> <%@ taglib uri="/WEB-INF/struts-html.tld" pr

RE: OReilly Struts book

2002-03-19 Thread Wellie W. Chao
When is the book due out? -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 10:31 AM To: 'Struts Users Mailing List' Subject: RE: OReilly Struts book I'm definitely going to cover some design patterns/strategies related to Struts and EJB