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:
>
> 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
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
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
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
>
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
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
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
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
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
://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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
36 matches
Mail list logo