RE: Defining a forward path- not to a JSP, but to another Action

2002-03-13 Thread Kanoza, Douglas (NCI)
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

RE: Reading values from a form bean

2002-03-11 Thread Kanoza, Douglas (NCI)
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

RE: error on starting the weblogic server

2002-03-11 Thread Kanoza, Douglas (NCI)
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

RE: html:errors/ prints null at both ends of message

2002-03-11 Thread Kanoza, Douglas (NCI)
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

RE: JavaScript Form/submit Function

2002-03-11 Thread Kanoza, Douglas (NCI)
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

RE: Newbie question. Can action mappings intercept requests that are not part of forms?

2002-03-07 Thread Kanoza, Douglas (NCI)
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:

RE: Need Help: clues to an error message

2002-03-05 Thread Kanoza, Douglas (NCI)
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

RE: ActionForward question

2002-03-01 Thread Kanoza, Douglas (NCI)
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

RE: Can't get ActionError back from Action class

2002-03-01 Thread Kanoza, Douglas (NCI)
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

RE: Database Access Problem.Need Help?

2002-02-28 Thread Kanoza, Douglas (NCI)
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,

RE: Session Control

2002-02-28 Thread Kanoza, Douglas (NCI)
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]

RE: Slight misunderstanding regarding Form-beans

2002-02-28 Thread Kanoza, Douglas (NCI)
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,

RE: New Struts User - Pick list help

2002-02-27 Thread Kanoza, Douglas (NCI)
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

RE: Help needded on Struts-config file

2002-02-22 Thread Kanoza, Douglas (NCI)
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

RE: Help needded on Struts-config file

2002-02-22 Thread Kanoza, Douglas (NCI)
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

RE: Passing a parameter to tiles definition

2002-02-22 Thread Kanoza, Douglas (NCI)
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

How to prevent users from jumping into the middle of a series of pages

2002-02-21 Thread Kanoza, Douglas (NCI)
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

RE: Development Environment

2002-02-21 Thread Kanoza, Douglas (NCI)
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