Piece of cake. You can define forwards that point to actions. The syntax
below defines a forward to an action named 'myaction' defined in your
struts-config.xml file.
forward name=someforward path=/myaction.do/
I haven't done it, but I think you can do the same thing by creating an
Insert this into b.jsp:
%
aForm form = (aForm)request.getSession().getAttribute(aForm);
%
The parameter passed to getAttribute() is whatever name you gave the form in
struts-config.xml.
-Original Message-
From: sanjeev_dutt [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002
Your struts-config.xml is not valid xml according to the DTD. You misplaced
a tag, or didn't close a tag properly.
-Original Message-
From: Dua, Amit [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 9:47 AM
To: 'Struts Users Mailing List'
Subject: error on starting the weblogic
Because your ApplicationResources file does not define errors.footer and
error.header. The html:errors tag is looking for those values to wrap your
error messages in.
-Original Message-
From: Maris Orbidans [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 12:55 PM
To: Struts
The solution is simple - don't use the html:submit tag. Use plain old
HTML, which allows you to give it a different name.
-Original Message-
From: Guido Schmutz [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 1:21 PM
To: Struts Users Mailing List
Subject: AW: JavaScript
If you've done your *.do extension mapping in web.xml, you just need to
append '.do' to the page parameter:
html:link page=/logout.do
bean:message key=mainMenu.logout /
/html:link
-Original Message-
From: Phil Rice [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 4:21 PM
To:
When I've gotten that error, it's because my struts-config.xml file was
invalid: missed closing tag, whatever.
-Original Message-
From: Sher_A [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 12:16 PM
To: Struts Users Mailing List
Subject: Need Help: clues to an error message
I'm interested in the answer to this one myself. I was wondering if you
could use the Response object to stream status messages out to the user.
Has anybody done anything like that?
-Original Message-
From: Thomas Bednarz [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 11:58 AM
Insert this:
saveErrors(request, errors);
before your return statement.
-Original Message-
From: MARK NICHOLS [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 4:07 PM
To: [EMAIL PROTECTED]
Subject: Can't get ActionError back from Action class
I know it must be late on
I've been using the DataSource for a while without any problems, but I never
explicitly specified the key or type properties in the data-source tag, or
the context-param in web.xml. I just copied it right from the example app
and put in my settings, but I'm using Tomcat 3.2.4 and 4.0.1. Also,
I haven't used it yet, but take a look at Matthias Bauer's announcement of a
Struts workflow extension package.
http://www.livinglogic.de/Struts/
-Original Message-
From: subhendukumar mohanty [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 6:41 PM
To: [EMAIL PROTECTED]
Agreed. It also doesn't complain if you misspell the type in the form-beans
section, but that's my fault. There is a point at which we as developers
have to take responsibility for our own code...
-Original Message-
From: David A. D. Konrad [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
You need to specify the collection name. I've been fighting with this one
all afternoon myself.
Try this:
form:options collection=list/
I'm assuming in your taglib import you are using 'form' as the prefix for
the struts-html.tld tag library.
-Original Message-
From: Honman Lee
That's pretty much how it works. If you look at the code in the LogonAction
in the example, they check for the existence of the database and also
compare the supplied password with the password in the database. If there's
a problem in either case, they save the errors and redirect to the input
Is that the only functionality of input tag or it is used for anything else.
-Original Message-
From: Kanoza, Douglas (NCI) [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 3:50 PM
To: 'Struts Users Mailing List'
Subject: RE: Help needded on Struts-config file
That's pretty much
Maybe something like this?
put name=menu value=/jsp/common/menu.jsp?MeaningOfLife=42/
-Original Message-
From: Zeltser, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 3:54 PM
To: [EMAIL PROTECTED]
Subject: Passing a parameter to tiles definition
Hi,
I have
I've been using Struts for all of a week now, and think it's the coolest
thing since sliced bread (however, that also means there's a ton I don't
know about it).
That being said, I'm seeking opinions on the best way to prevent users from
jumping into the middle of an app. Right now, I have
Visual SlickEdit (http://www.slickedit.com/home.php). In my experience,
every IDE I've ever worked with (JBuilder, JDeveloper, Visual Café) forces
you to do things their way, which is usually not the way I want to do it.
Plus, they're expensive, take up a lot of disk space, and are usually
18 matches
Mail list logo