Re: Submitting forms to alternate actions

2000-12-04 Thread Michael Westbay
Richards-san wrote: > With JavaScript you can specify the form action, so you'd have > something like: > > > > onClick="document.aForm.action='otherAction.do';"> > I tried that in a web application a long time ago. Worked great with Netscape, the action neve

Re: Submitting forms to alternate actions

2000-12-04 Thread Jim Richards
With JavaScript you can specify the form action, so you'd have something like: You can also mess around with the form onSubmit action, but I was having trouble trying to determine which button was clicked through that method. This seemed a lot cleane

Submitting forms to alternate actions

2000-12-04 Thread Steven Peterson
Hi all: I have used struts to set up a simple application. My problem comes up when I want to submit a form to different actions, depending on which button the user presses. If the contents of the form were not important, I could simply GET a different URL (each mapped to a different action) fo

RE: path info

2000-12-04 Thread David Noll
Thanks for the response. The path mapped servlets didn't work when I tried them; the same error was thrown, which I think makes sense. In a url like this: /do/action/whatever the path info starts at the second slash, and struts is setup to expect a leading slash in an action path. An eventua

Re: Article on JavaWorld

2000-12-04 Thread Ted Husted
On 12/4/2000 at 5:30 PM Craig R. McClanahan wrote: > I do have a problem with the way the example is coded -- it utilizes two techniques (posting back to the same JSP page, and embedding functional logic as scriptlets rather than custom tags) that are really not in the spirit of what Struts tries

Re: Article on JavaWorld

2000-12-04 Thread Craig R. McClanahan
Jean-Baptiste Nizet wrote: > Hi all, > > I just noticed that there is an article talking about Struts on JavaWorld, at > http://www.javaworld.com/javaworld/jw-12-2000/jw-1201-struts.html, written by > Thor Kristmundsson, from ATG. This shows, once again, that Struts is more and > more used and re

Re: bundle attribute of message tag

2000-12-04 Thread Craig R. McClanahan
Paul Hendley - Sun Microsystems wrote: > OK so I'm running a bit slow today. > Does this mean that if I have the following file: > WEB-INF/classes/com/foo/ResourceBundle.properties > > Then for getting at my resource file, it is not enough to just have the > following tags in my login.jsp

Re: Struts on Dynamo 5.0

2000-12-04 Thread Craig R. McClanahan
Thanks for your report, David. See comments below. David Winterfeldt wrote: > Is anyone running Struts on Dynamo 5.0? I can't the > latest build to run correctly. > > I've listed the errors I was getting below. Any help > would be apprectiated. > > David > > A few errors are XML errors that I

Re: Newbie Question - Wjy not use JSP to handle beans?

2000-12-04 Thread Craig R. McClanahan
Eric Wu wrote: > I am new to this list and new to J2EE (and Struts) in general. After > looking at some of the sources for Struts, I have one big question (its a > big question to me anyways): Why does Struts go through all this trouble to > initialize and introspect FormAction beans when mecha

Re: path info

2000-12-04 Thread Craig R. McClanahan
David Noll wrote: > Hello, > > Hopefully this is a no-brainer. How can I configure struts to call an > action, and include the path info? EG - my normal action is called at: > >server/action.do > > I would like to call this action like this: > > server/action.do/some/extra/random/parameters

Re: term mvc model-2

2000-12-04 Thread Craig R. McClanahan
Malcolm Davis wrote: > Thanks, I understand the differences. > I just wanted to know who coined the term or where it originated. > Did someone at Sun say “lets call it model 2”, or > did it actually have some significance? > Thanks, > Malcolm > The first place that I saw the terms "Model 1" and

Re: bundle attribute of message tag

2000-12-04 Thread Paul Hendley - Sun Microsystems
OK so I'm running a bit slow today. Does this mean that if I have the following file: WEB-INF/classes/com/foo/ResourceBundle.properties Then for getting at my resource file, it is not enough to just have the following tags in my login.jsp file: ... <%@ taglib uri="/WEB-INF/struts-bean

example app and ActionFormBean

2000-12-04 Thread Boulatian, Misak
I have downloaded nightly binary dated 12/04/2000. I've tried to run the example in Orion 1.3.8. I've got the same error as Mr. Juan Gargiulo. Even though in the installation there were notes about this error, I followed all the suggestions about moving action.xml (by the way, it seems that struts

Re: term mvc model-2

2000-12-04 Thread Eduardo Pelegri--Llopart
I inherited the term, but I assume it was in a whiteboard. Model-1 was first in the whiteboard, Model-2 second. Ted Husted wrote: > > It originated with Sun, and probably has no real significance outside > of being a convenient shorthand. I imagine it was first related to the > term "Java 2". >

example app

2000-12-04 Thread Juan Gargiulo
I just started my transition from 0.5 to 1.0 so I downloaded today's binary version of struts. I'm trying to run the example app and it's displaying the following error on the browser: javax.servlet.jsp.JspException: Missing resources attribute org.apache.struts.action.MESSAGE at org.apac

Struts on Dynamo 5.0

2000-12-04 Thread David Winterfeldt
Is anyone running Struts on Dynamo 5.0? I can't the latest build to run correctly. I've listed the errors I was getting below. Any help would be apprectiated. David A few errors are XML errors that I assume are typos (see below). Struts.tld has the value of 'name' instead of true for the pr

Newbie Question - Wjy not use JSP to handle beans?

2000-12-04 Thread Eric Wu
I am new to this list and new to J2EE (and Struts) in general. After looking at some of the sources for Struts, I have one big question (its a big question to me anyways): Why does Struts go through all this trouble to initialize and introspect FormAction beans when mechanisms exist within JSP t

RE: term mvc model-2

2000-12-04 Thread Ted Husted
It originated with Sun, and probably has no real significance outside of being a convenient shorthand. I imagine it was first related to the term "Java 2". The trend now is to use the term MVC instead. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. --

RE: term mvc model-2

2000-12-04 Thread Malcolm Davis
Thanks, I understand the differences. I just wanted to know who coined the term or where it originated. Did someone at Sun say “lets call it model 2”, or did it actually have some significance? Thanks, Malcolm > -Original Message- > From: Nicolas Noël [mailto:[EMAIL PROTECTED]] > Sent: Mo

path info

2000-12-04 Thread David Noll
Hello, Hopefully this is a no-brainer. How can I configure struts to call an action, and include the path info? EG - my normal action is called at: server/action.do I would like to call this action like this: server/action.do/some/extra/random/parameters/etc and later on, in my action cl

RE: Article on JavaWorld

2000-12-04 Thread Ted Husted
On 12/4/2000 at 2:50 PM Kevin Wang wrote: > I did something similar in our project to handle "extended properties", which include "automatic properties" as a special case when not a single property (and methods) is defined in the ActionForm bean. I tried extend Struts as much as possible and had t

RE: does struts examples work on NT platform?

2000-12-04 Thread Ted Husted
On 12/4/2000 at 2:51 PM Sharda, Anshum wrote: >> (i tested with both Struts0.5 and 10/20/2000 build with Tomcat 3.1) I have tStruts 0.5 examples running fine on NT 4.0 (SR6) with Tomcat 3.2 -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 425-

RE: Re[2]: Article on JavaWorld

2000-12-04 Thread Thor Kristmundsson
Hi Oleg Thanks for sharing your thoughts on this. How do you support the point you are making? Why should source code not be changed? What is the harm, within a specific project, to change the source code to add functionality? How would an open source project ever evolve if all experiments where b

RE: Article on JavaWorld

2000-12-04 Thread Kevin Wang
I did something similar in our project to handle "extended properties", which include "automatic properties" as a special case when not a single property (and methods) is defined in the ActionForm bean. I tried extend Struts as much as posible and had to only change BeanUtils in a similar fashion.

RE: does struts examples work on NT platform?

2000-12-04 Thread Sharda, Anshum
Cherie, I have it working on Struts-Weblogic on NT, if that is any help. It looks like a Tomcat bug. - Anshum > -Original Message- > From: Cherie Yoon [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 30, 2000 12:34 PM > To: Struts-User (E-mail) > Subject: does struts examples work

Re: Re[2]: Article on JavaWorld

2000-12-04 Thread Mike Campbell
> It is wrong solution, for my mind, to rewrite source instead of extend > struts classes to incorporate your own functionality. Of course, you > CAN do it, but it is wrong. I speak about tags not about BeanUtils > class - all tag classes can extended to implement additional > functionality (thank

Re: hangs, cpu-busy ...

2000-12-04 Thread Till Nagel
> Could it be just that? (But if I tried, it didn't consume 100% ) Regards, Till

Re[2]: Article on JavaWorld

2000-12-04 Thread Oleg V Alexeev
Hello Thor, It is wrong solution, for my mind, to rewrite source instead of extend struts classes to incorporate your own functionality. Of course, you CAN do it, but it is wrong. I speak about tags not about BeanUtils class - all tag classes can extended to implement additional functionality (th

Re: hangs, cpu-busy ...

2000-12-04 Thread Pierre Métras
Hi Andris, > If anyone has some ideas about where I can start debugging this problem, > please let me know and I will be very grateful. Have you tried to look at the generated java file for your form? Have a look into the directory /tomcat/work/YourApp/YourJspFile.java... You'll be able to follo

hangs, cpu-busy ...

2000-12-04 Thread NESTORS Andris (AC-Creation)
I'm terribly sorry for in effect spamming the group with a noddy question, but I'm trying to get Struts working so the team can start trying it out for some internal projects. I can't find much in the way of FAQ or "Questions For Idiots" - I'm not complaining, but I did try to RTFM first, honest

Re: Jetspeed on Struts

2000-12-04 Thread Ted Husted
On 22 Nov 2000 Phil Grimm wrote: > Is it even reasonably possible? Any interest in this? I'd be very interested in working on a news portal application (e.g. jGuru) based on the Struts framework, if that made sense I'm already committed to do something like this for our local Public Broadcasting

Re: 1.0 taglibs

2000-12-04 Thread Pierre Métras
Hi Matthew, > Am I right in thinking that classes that appear both in taglibs and taglibs. > packages are migrating to the taglibs. packages and will be deprecated in > taglibs? You are right... Use the taglibs.XXX tags for v1.0 Pierre Métras

Re: Article on JavaWorld

2000-12-04 Thread Ted Husted
On 12/4/2000 Jean-Baptiste Nizet wrote: > This shows, once again, that Struts is more andmore used and recognized in the Java community. On 11/3/2000 Nikolaus Rumm wrote: > but go to http://www.informit.com/, Programming/Java and look for Maneesh Sahu's article on struts. I checked the archive

1.0 taglibs

2000-12-04 Thread Matthew Harrison
Apologies if this has been answered before: Am I right in thinking that classes that appear both in taglibs and taglibs. packages are migrating to the taglibs. packages and will be deprecated in taglibs? Or is there a conscious design decision to have them in both places? thanks in adva

RE: Article on JavaWorld

2000-12-04 Thread Thor Kristmundsson
You have a point, the article doens't make use of all of Struts feature. I was simply trying to convey the experience I got during a recent project of using the Struts JSP tag libraries. This project didn't lend itself to using the rest of Struts so I had nothing to report there. IMHO the methods

Article on JavaWorld

2000-12-04 Thread Jean-Baptiste Nizet
Hi all, I just noticed that there is an article talking about Struts on JavaWorld, at http://www.javaworld.com/javaworld/jw-12-2000/jw-1201-struts.html, written by Thor Kristmundsson, from ATG. This shows, once again, that Struts is more and more used and recognized in the Java community. Unfortu

Re: Problem with ServletExec 3.0C/E

2000-12-04 Thread Wong Kok Wai
Hi, I believe this is a bug in Struts. In the original code, the null pointer exception is caused by the following line in ActionServlet.java: request.setAttribute("org.apache.struts.action.mapping.multipartclass", mapping.getMultipartClass()); mapping.ge

RE: term mvc model-2

2000-12-04 Thread Nicolas Noël
you can see the differences between model 1 and model 2 at: http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html -Message d'origine- De : Ted Husted [mailto:[EMAIL PROTECTED]] Envoyé : lundi 4 décembre 2000 13:31 À : Struts List Cc : [EMAIL PROTECTED] Objet : Re: term mvc

Re: term mvc model-2

2000-12-04 Thread Ted Husted
According to Marty Hall, "In early JSP specifications, this approach was known as the model 2 approach to JSP." (Core Serlets, pg 354). *** REPLY SEPARATOR *** On 12/3/2000 at 9:20 PM Malcolm Davis wrote: Does anybody know where the term Model-2 originated? thanks, malcolm

Problem with ServletExec 3.0C/E

2000-12-04 Thread Wong Kok Wai
Hi, I've written my own action forms and beans and have encountered the following exception in ServletExec 3.0C and 3.0E. Anyone got a clue on where the problem lies? TIA! java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java, Compiled Code) at com.unify.ewave

Change to ActionServlet.processPreprocess()

2000-12-04 Thread Howard Moore
How about changing the method signature of this function to include the ActionMapping that is about to be used? e.g.protected boolean processPreprocess(ActionMapping mapping, HttpServletRequest request,

Re: Stable 1.0 and deployment ....

2000-12-04 Thread Matthew Harrison
Sorry to be picky, but when you say "current", I assume you mean current development (1.0)? I have the same concerns as Allton. cheers, Matthew Harrison. [EMAIL PROTECTED] writes: > > Date: Thu, 30 Nov 2000 11:50:18 -0800 > To: [EMAIL PROTECTED] > From: "Craig R. McClanahan" <[EMAIL PROTE

example application does not working on ServletExec for both NSAPI and ISAPI plugin

2000-12-04 Thread Ji Rong Hu
Hi, We got this error when try to install the example web application on ServletExec. Both testing and documentation application are working. Tomcat can run all of them. This is the error we got: Error. The server encountered an unexpected condition which prevented it from fulfilling the requ