Hi,
All you have to do is to use the following statement in your action class.
//Create a new ActionForward object with arbitrary URL (context relative for
forward)
return new ActionForward(/logon.jsp);
- Original Message -
From: Mark Woon [EMAIL PROTECTED]
To:
There is a new version of the Digester in the jakarta-commons project.
You may want to look there also.
I'm using the Digester from CVS (updated in December 2001) with:
Tomcat 4.0.1
JDK1.3.1
struts from CVS (updated in December 2001)
And I had had no problem.
Note, the Digester in the release
If this is solely a cosmetic thing, why not make an index.jsp your
welcome file, and have it requestDispatcher.forward into your struts
frameworkPut it in a bean if it makes you happy.
I haven't tried this, but I don't see why it wouldn't work
-Original Message-
From: [EMAIL
Well, the simplest solution is in hardware.
Many hardware load-balancers (such as Cisco LocalDirector) and high-end
software ones have a feature colloquially referred to as sticky-bit,
that will qualify its typical round-robin with a rule:
If a connection from IP address X is dispatched to
Does anyone else find that the struts xml config file is just a pain? Why
not put this information in the code. It is not like a non-programmar is
going to know enough to modify an xml file and change the app around.
Just my 2 cents.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
It's an irritation at first until you become familiar with it, then its no
problem. What I see in various applications is a move to place more and
more information in XML files. For example, all the XML files described in
the J2EE spec. I mean, if you don't like XML descriptors, you've
Very well put, Peter.
The Struts configuration does actually create a database of sorts, that
represents the model for the Controller.
You could write Java classes that did the same thing, but they would be
much harder to write and maintain.
The Struts configuration is a script that the
I am using an apache mod_proxy like this:
ProxyPass/bea http://conn6m.toms.net:7001
ProxyPassReverse /bea http://conn6m.toms.net:7001
So if I run a form like:
http://toms.net/bea/learnStruts/logon/logon.jsp
The form action= comes out like:
form name=logonForm
Note- if it would do a _complete_ absolute address, I'd be ok, because the
ProxyPassReverse would fix it.
action=logon/logon.do
- OK, browser will keep the /bea/learnStruts... URL that proxies
action=http://conn6m.toms.net:7001/learnStruts/logon/logon.do;
- OK, reverse proxy changes it
Hi all
I have a problem reloading a page in a frameset
Here is the issue:
I am using JDBCRealm Form based authentication
Frame1 contains a number of struts-menus within logic:present role=admin
logic:present role=guest tags etc.
Frame2 contains the /formlogin.jsp page which is presented to the
I asked about this on the dev list, but I'd like to see what the regular
users think (and because I didn't get any response from the dev list).
I've often been frustrated by some details of the radio and checkbox tags.
I have some issues with the rules for producing the name of the resulting
Using an Action as a welcome doesn't work, but you can use an index.jsp
to forward to a welcome Action.
%@ page language=java %
%@ taglib uri=/tags/struts-logic prefix=logic %
logic:forward name=welcome/
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with
There are standard Actions for including and forwarding, but they are
not used much in practice.
The can be useful for interacting with other systems, but not so much as
part of a typical Struts application.
Typically, you write your own Actions, and return an ActionForward at
the end to
You may want to say
html:text property=userId size=20 name=login property=userId/
-Ted.
Jack wrote:
What would be the syntax needed to cause the output of a bean:write tag to
be written into the value property of an html:text tag? I tried the
following, but it never made it past the
Assuming you mean page where the message says site, you might want
to take a look at this:
http://husted.com/struts/resources/struts-simple.zip
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web
David's validator generates Javascript.
http://home.earthlink.net/~dwinterfeldt/
This is also in the contrib folder, though David is in the process of
contributing it to the Commons instead.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel
You may want to say
logic:equal name=projectCollection property=value
name=projectCode/
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/
To, Wilson wrote:
Hi Struters,
I have a
It should work the way you describe.
You might try changing the method to get, and see what shows up in the
query string.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/
Kuntz Peter,
The html:message tag was added to the nightly build.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/
Peter Pilgrim wrote:
I want to customise the errors messages for invalid data
I'm looking for guidance on the patterns used to handle composite patterns in
struts.
If there is a document I should have read ... please feel free to tell me to
RTFM :)
The in side of things I understand (I think :)), the output side of things
starts to get a little shady for me when we
Freek Segers wrote:
Hello,
I'm currently working on my first Struts application and I'm facing two problems.
First, I've created a custom tag that creates different types of HTML form fields.
The number of fields generated varies and the names of the fields are dynamic.
I can't figure
Mapped properties are supported in the nightly build.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/
Freek Segers wrote:
Hello again,
I've partially solved my problem. I found
With html:link, you have to include it yourself, since the tag has no
idea of whether you are referring to an Action.
If you use forwards throughout, this puts everything in the Struts
config, so you do not have to embed these sorts of details in your page.
-- Ted Husted, Husted dot Com,
Antoine Gibson wrote:
Hello,
I am trying to find a nice/easy way from a list (table) to edit or delete an element
of the list.
I looked at the LinkSubscriptionTag in the struts-example (I'm new to Struts)
I am a bit confused.
I have a list of users (userID, userFirstName,
The html:messages tag is in the nightly builds (after
v1.0). The Validator package has a custom JSP tag
that iterates through errors. It is in the nightly
build in the contrib/validator directory and it is
also posted here
(http://home.earthlink.net/~dwinterfeldt).
validator:errors id=error
Hi all,
Struts XSLT Code Generator, an XSLT based code generator for Struts just
released its version 0.85. Although it's still in beta stage in terms of
functionality,
it's rather stable. Basically, it provides similar functions like Struts SourceCode
Generator
made by Ravi Ramaiah.
26 matches
Mail list logo