On 2005-01-24, Larry Meadors [EMAIL PROTECTED] wrote:
Maybe we are approaching this from the wrong direction. what is
the problem you are trying to solve?
Perhaps I am. I have an action which retrieves a couple of values
from a database. If the retreival fails, it return some reasonable
Since this is rather OT, I have marked the subject as such.
Rather than use mod_jk, I have been in the habit of using mod_proxy and have
httpd.conf as follows:
It works fine for me - but I'm unsure - are there performance disadvantages
with mod_proxy?
Ah - yes and to answer the original
Finally I could get the things running.
The things are working when i specified into GlobalResources and GlobalContext
inside server.xml
My server.xml is something like below..
-
GlobalNamingResources
Resource auth=Container name=mspool
hi
unfortunately i still miss something. i use struts 1.1 , j2ee1.3 container ,
jdeveloper10g,
i tried jim's sample and mine but i got the same error.page opens with blank
page.
i dont want my table sortable or another utility just export future.
i use export filter.but when i click it opens
Hi friends,
I have a method like this, the 3rd param, category contains
ArrayList of classes Category.
Here I am copying the Category class from the ArrayList to
lALCategories (Line 11) and storing its property name into a
local variable lsName (Line15) and doing some processing and
writing
Hi,
You can clone the Category object implementanting the
java.lang.Cloneable interface (see the java api documentation) and
correct the code in the following way:
12. for (Iterator iterator = lALCategories.iterator();
iterator.hasNext(); )
13. {
14.lCCategory = ((Category)
Hi,
i have been trying to create a table on my form from a single property in my
actionForm. the property is a List (actually an ArrayList) containg the rows of
the table, each element (i.e row on the table) is represented by a List of
Strings representing the fields of the list. i can code my
OK, I think i understand what you are trying to do. You could override
the constructor of your action to read in a properties file. If you
have multiple actions, you could make it a base class that uses some
common naming convention, that may simplify things.
On Mon, 24 Jan 2005 08:02:04 +
Hi
I have the requirement to perform server side validation on a form, no
probs. The problem is that i have a set of error rules and a set of
warning rules. There is no problem defining the errors in my
validation.xml and returning the user to the page to correct them,
however at some point
Hi,
Can anyone suggest the best way to order data in a JSP (from mysql
database) using struts? i.e. list of names and address, can click a
column to order by first name, or last name or address etc
Thanks
Suzy
On Mon, 24 Jan 2005 15:01:37 +0800, Nathan Coast [EMAIL PROTECTED] wrote:
Hi,
Does the validator support max file size for an uploaded file? I have
found various threads covering how to specify the max file size and how
to check if it is exceeded but this all seems to be server-side and
On Mon, 24 Jan 2005 09:00:56 + (GMT), Metin Erksan
[EMAIL PROTECTED] wrote:
hi
unfortunately i still miss something. i use struts 1.1 , j2ee1.3 container ,
jdeveloper10g,
i tried jim's sample and mine but i got the same error.page opens with blank
page.
i dont want my table sortable or
On Mon, 24 Jan 2005 14:29:21 +0530, Sudheer [EMAIL PROTECTED] wrote:
Hi friends,
I have a method like this, the 3rd param, category contains
ArrayList of classes Category.
Here I am copying the Category class from the ArrayList to
lALCategories (Line 11) and storing its property name
Another possible approach is to create a DefaultValues class, something along
these lines:
public class DefaultValues {
private HashMap defaultValues;
{
setDefaultValues();
}
public static HashMap getDefaultValues() {
return defaultValues;
}
private static void
On Mon, 24 Jan 2005 06:13:23 -0700, Larry Meadors
[EMAIL PROTECTED] wrote:
OK, I think i understand what you are trying to do. You could override
the constructor of your action to read in a properties file. If you
have multiple actions, you could make it a base class that uses some
common
On Mon, 24 Jan 2005 13:34:50 +, Andy Richards [EMAIL PROTECTED] wrote:
Hi
I have the requirement to perform server side validation on a form, no
probs. The problem is that i have a set of error rules and a set of
warning rules. There is no problem defining the errors in my
On Mon, 24 Jan 2005 09:17:03 -0500, James Mitchell [EMAIL PROTECTED] wrote:
Please ask on the user list. The dev list is for issues with the actual
framework, not how to use it.
Thanks.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM:
Hello Suzy,
You could use the display tag library: it does excatly what you are
looking for; sorting by clicking on column headers.
See http://displaytag.sourceforge.net/
HTH
Renaud
Suzy Fynes [EMAIL PROTECTED]
24/01/2005 15:23
Please respond to
Struts Users Mailing List
Take a look at the nested tags.
In your case, your code may end up looking like:
nested:form action=/myAction
table
nested:iterate property=listOfRows
tr
nested:iterate property=listOfFields
td
nested:text property=myField
/td
/nested:iterate
tr/
Thanks Jim, this was along the lines off what i was thinking.
Can i not just say validate=true in my struts config for my error
validation, or must i call super.validate from my action form before i
do my warning logic?
cheers
Andy
Jim Barrows wrote:
On Mon, 24 Jan 2005 13:34:50 +, Andy
At 3:01 PM +0800 1/24/05, Nathan Coast wrote:
Hi,
Does the validator support max file size for an uploaded file? I
have found various threads covering how to specify the max file size
and how to check if it is exceeded but this all seems to be
server-side and outside of the validator mechanism
Thanks for your response. It was helpful since it brought up some
other instances that I hadn't really thought of, such as allowing a
double submit for certain actions.
Here is the flow we have for this application.
1. User searches for a profile
2. List of matching profiles is
Eddie Bush's solution is the right one. The ActionMapping is
specifically intended for the purpose you have in mind, and is
available every time an Action's execute method is called. Even if
the Action will not be called from different action mappings, it will
always have one action mapping.
Its to do with the browser security manager, in i.e. anyway,
you can't script the File field in any fashion with regards to file
location, size etc..
You'll need to write an applet and do some io to do the checking if you need
to validate client
side.
In Netscape their are ways round this with
The answer is to clone the Category object prior to setting the name
and add that clone to the IALOutpPut object. I know you have not
asked, but I think you might want to make things a bit more readable
for others by doing at least something *like* as follows. Your
present code is very hard to
Hi All,
I need help about struts and tiles.
I have an application using tiles and I have a jsp page that can be used as
output page for several different actions. In this page I'd like to have a
link to recall the input action (with different parameters). Something like
ActionMapping.getPath()
Hi All,
I need help about struts and tiles.
I have an application using tiles and I have a jsp page that can be used as
output page for several different actions. In this page I'd like to have a
link to recall the input action (with different parameters). Something like
ActionMapping.getPath()
There will be a request attribute under the name
org.apache.struts.action.mapping.instance. Call getPath() on that (after
casting to an ActionMapping). I'd take a look around to see if there's a
static method somewhere that gets this for you rather than coding the name of
the attribute
On Mon, 24 Jan 2005 16:54:49 +0100, Gianpiero Caretti
[EMAIL PROTECTED] wrote:
Hi All,
I need help about struts and tiles.
I have an application using tiles and I have a jsp page that can be used as
output page for several different actions. In this page I'd like to have a
link to recall
[EMAIL PROTECTED] wrote:
There will be a request attribute under the name org.apache.struts.action.mapping.instance.
Call getPath() on that (after casting to an ActionMapping).
It works!
Thanks to all,
Gianpiero
-
To unsubscribe,
Good news! :)
FYI, all of my Actions call a common setup function at the start of execute(),
and one of the things it does is set an attribute command in the request with
the value of getPath() called on the ActionMapping. I use that in JSPs
sometimes as you are doing, but I didn't want to
[EMAIL PROTECTED] wrote:
FYI, all of my Actions call a common setup function at the start of execute(),
and one of the things it does is set an attribute command in the request
with the value of getPath() called on the ActionMapping.
FYI, that's exactly what I am doing rigth now!
As I use Jakarta
Gianpiero Caretti wrote:
If you use jakarta velocity, another easy and probably less restricted
solution could be to extend the StrutsLinkTool and register it into
toolbox.xml instead of the standar link tool
And using into the VM files directly the methods:
$link.inputAction
and
These sites are littering my mailbox. Can the administrator do
something about them.
Jack
--
--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~
You can't wake a person who is pretending to be asleep.
~Native Proverb~
Each
On Mon, January 24, 2005 12:37 pm, Gianpiero Caretti said:
FYI, that's exactly what I am doing rigth now!
Great minds think alike :)
The only think I don't like with this solution is that the JSP writer has
to
know the existence of the command attribute into request. Moreover if
the
On Mon, 24 Jan 2005 18:37:35 +0100, Gianpiero Caretti
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
FYI, all of my Actions call a common setup function at the start of
execute(),
and one of the things it does is set an attribute command in the request
with the value of getPath()
On Mon, 24 Jan 2005 10:05:08 -0800 (PST), [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
On Mon, January 24, 2005 12:37 pm, Gianpiero Caretti said:
FYI, that's exactly what I am doing rigth now!
Great minds think alike :)
The only think I don't like with this solution is that the JSP
Gianpiero Caretti wrote:
[EMAIL PROTECTED] wrote:
FYI, all of my Actions call a common setup function at the start of
execute(),
and one of the things it does is set an attribute command in the
request
with the value of getPath() called on the ActionMapping.
The only think I don't like with
I thought of something similar too Jim, but my thought was that now they are
coding classes that don't truly adere to the general form of an Action. I
would rather have the basic structure remain the same and just make them have
to remember to call the setup code.
Think of it this way... the
On Mon, 24 Jan 2005 10:24:56 -0800 (PST), [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I thought of something similar too Jim, but my thought was that now they are
coding classes that don't truly adere to the general form of an Action. I
would rather have the basic structure remain the same
Hi
I was working on a Applet in which i had some static
methods in a class with some applet data, it was
working great untill i had to develop another applet
which uses these static methods, now the problem is
the data is getting mixed when i open both the
applets.
i want to know if i can open the
I had posted earlier concerning this, and haven't gotten any response,
but I think it got lost in all the spirited discussions about
constants interfaces, leadership voting, etc. over the past week.
I've done a lot of searching, and AFAICT, I'm trying all the right
things, but it's still not
I have ActionForm's that contain String array variables like:
private String[] parmTypeCd = null;
With the normal:
public String[] getParmTypeCd() {
return parmTypeCd;
}
public void setParmTypeCd(String parmTypeCd[]) {
this.parmTypeCd = parmTypeCd;
}
My form has:
html:select
On Mon, 24 Jan 2005 12:57:49 -0800 (PST), Ashish Kulkarni
[EMAIL PROTECTED] wrote:
Hi
I was working on a Applet in which i had some static
methods in a class with some applet data, it was
working great untill i had to develop another applet
which uses these static methods, now the problem is
THANKS! After all that work, I *think* BeanUtils was having issues
with setNumber(int, String) for some reason - when I took out the
setters for indexed values, and just have setters/getters for the
arrays - it works like a champ!
Thanks a TON!
Will Stranathan
On Mon, 24 Jan 2005 15:16:55
On Mon, 24 Jan 2005 15:16:55 -0600, Brad Balmer [EMAIL PROTECTED] wrote:
I have ActionForm's that contain String array variables like:
private String[] parmTypeCd = null;
With the normal:
public String[] getParmTypeCd() {
return parmTypeCd;
}
public void setParmTypeCd(String
It's related to a difference in how the HTTP request parameters are
built. With the indexed properties that you had, the BeanUtils
classes are going to look for parameters whose names include the index.
That is 'bar[1]', 'bar[2]', etc.
HTML:select with multiple=true sends multiple
I'm switching back to using Tiles instead of Sitemesh and I remember one
issue that I found annoying with Tiles and I'd be curious how you guys
handle it. Say I have a form that is going to be reused for both Edit
and Add. I want the title attribute to read something like Add
Employee or Edit
Well, I understand the way HTTP is working there, it just SEEMS to be
that having the additional method (setBar(int, String)) confused
BeanUtils or something - because removing those methods (making no
other changes) cleared the problem up.
w
On Mon, 24 Jan 2005 17:15:01 -0500
Jeff Beal
From: Will Stranathan [EMAIL PROTECTED]
Well, I understand the way HTTP is working there, it just SEEMS to be
that having the additional method (setBar(int, String)) confused
BeanUtils or something - because removing those methods (making no
other changes) cleared the problem up.
Your
Rick,
Did you consider making your Action a TilesAction so you can put the title
into the context however you want? That way, if you do a CRUD methodology,
you could do a context.putAttribute(title,new String(Edit)); or Add
depending on your Action's CRUD method.
Heck, you could also do that to
Hello All,
Long time lurker, first time poster. I'm trying integrate our Java
Struts webapplication with an existing web app. After logging into
the Java site, I want to redirect to outside the webapp, but struts
keeps prepending the webapp name.
For example. in my struts-config.xml I have the
From: Jesus M. Rodriguez [EMAIL PROTECTED]
I want to be sent to http://hostname/index.pxt after the LoginSubmit
action has been executed. But we always get sent to
http://hostname/webappname/index.pxt which causes a 404.
IIRC, from execute you can either create your own ActionForward (rather
If you create your own ActionForward, and you redirect with a string
that starts with /, the result will still be the same. You can
either do the redirect yourself as Wendy suggested or put the entire
URL on the path you've configured:
forward name=success path=http://hostname/index.pxt;
There are 1.1 to 1.2.4 Upgrade notes which should also work for 1.1 to
1.2.6:
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124
The only additional things for 1.2.6 (as far as I know) is that the
dependencies for Struts changed - so make sure you also upgrade to BeanUtils
1.7.0 and
Hi,
Thank u very much for all the support and your valuable advise.
Sudheer
-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Monday, January 24, 2005 9:21 PM
To: Struts Users Mailing List
Subject: Re: OT newbie - java class question
The answer is to clone the
Rick Reumann wrote:
I'm switching back to using Tiles instead of Sitemesh and I remember one
issue that I found annoying with Tiles and I'd be curious how you guys
handle it. Say I have a form that is going to be reused for both Edit
and Add. I want the title attribute to read something like
You need to send some parameter to the page in order to determine what
to display. The determination logic can be put into tile controller class.
Phil Steitz wrote:
Rick Reumann wrote:
I'm switching back to using Tiles instead of Sitemesh and I remember
one issue that I found annoying with
It looks like they are set-up, but nothing happens. It goes
right into my dispatch action method.
If I submit the form with nothing entered, it goes into the add
method. It was working last night, but
Here is my form action: (it works)
watchActionAdd.do?method=add
Here is the form
Using nested properties can be an issue with LazyDynaBeans (but it can
also be an issue using a POJO Beans or regular DynaBeans).
Say you have a property named foo.bar - in order to set this value
BeanUtils populate method will try to do the following:
* call the get(foo) method to retrieve the
Sorry, late to this discussion.
One thought from this (and oither) thread - did you upgrade BeanUtils to
version 1.7.0? LazyValidatorForm depends on LazyDynaBean which is only in
Version 1.7.0 of BeanUtils. What makes me think that is it doesn't seem that
LazyValidator form works for you in any
Hello Rick. Happy New Year to you. I'm just curious. Why are you
switching? I remember you advocating Sitemesh (I think it was on your
site) instead of Tiles at some point. I haven't tried either one yet,
but was going to try Sitemesh based largely on your recommendation, next
time I saw a
+1 on Erik's request.
I sometimes go about things the wrong way. I was thinking I should use
SiteMesh to figure out which HTML page to use as the final layout for each
virtual host (the SiteMesh decorator I'm going to write will figure that out
and make sure it exists) OR use tiles with div's
Nope, actually, it is bean-utils that is at fault here (something all
struts developers should be accustomed to saying - IMO, bean-utils is
the single weakest component in struts).
According to the javabeans specification
(http://java.sun.com/products/javabeans/docs/spec.html), indexed
properties
I am using validator framework. But for some business logic - i need to some
other validation depending on some conditions.
I want to keep validation of validator framework as it is + after that i want
to add my own.
First of all is it possible If yes, then how ?
regards
Manisha
The Expresso team is proud to announce the newest release of its Struts
based architectural framework. See the press release at:
http://www.jcorporate.com/html/news/Press/ExpressoRelease5.6.html
Expresso 5.6 release reflects over 1000 cvs code commits. This release
integrates several new open
From: Larry Meadors [EMAIL PROTECTED]
Nope, actually, it is bean-utils that is at fault here (something all
struts developers should be accustomed to saying - IMO, bean-utils is
the single weakest component in struts).
I stand corrected, it even _says_ (8.3.3) that 'an indexed property might be
On Mon, 24 Jan 2005 18:38:18 -0800 (PST), Norris Shelton
[EMAIL PROTECTED] wrote:
It looks like they are set-up, but nothing happens. It goes
right into my dispatch action method.
If I submit the form with nothing entered, it goes into the add
method. It was working last night, but
I
Hi friends ,
Could somebody give some feedback on Expresso 5.6 , if they have used or
evaluated the product ...
Does it really helps to shift to this framework ..?
Has it overcome some problems faced by struts ..?
Is it equally flexible as struts where we can modify some source ( Like
Please ask on the user list. The dev list is for issues with the actual
framework, not how to use it.
Thanks.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: Suzy Fynes [EMAIL PROTECTED]
To:
Erik Weber wrote the following on 1/24/2005 10:47 PM:
Hello Rick. Happy New Year to you. I'm just curious. Why are you
switching? I remember you advocating Sitemesh (I think it was on your
site) instead of Tiles at some point. I haven't tried either one yet,
but was going to try Sitemesh based
On Mon, 24 Jan 2005 20:17:12 -0800 (PST), Manisha Sathe
[EMAIL PROTECTED] wrote:
I am using validator framework. But for some business logic - i need to some
other validation depending on some conditions.
I want to keep validation of validator framework as it is + after that i want
to add
Phil Steitz wrote the following on 1/24/2005 7:25 PM:
tiles:put name='title' type=string
logic:equal name=bookForm property=action
scope=request value=Create
bean:message key=book.title.create/
/logic:equal
logic:equal name=bookForm property=action
I just have a c:out value='state.title'/ and feed the appropriate
value to the request. State is a class as follows:
public class StateContainer
implements Map {
private Map map;
public StateContainer() {
int size = 89;
this.map = Collections.synchronizedMap(new HashMap(size));
finally i could figure it out as
ActionErrors errors = super.validate(...) ( i am new to java too)
With this i could get the server side validation + my own validation.
The same thing i want to do it for Javascript validation. I want to make use of
JavaScript validation created by
75 matches
Mail list logo