Error handling (ServletException)

2002-12-15 Thread Pete Gieser
Is there something special I have to do to handle a ServletException? No matter what I try, the stack trace always seems to be sent to the standard Tomcat error page. I've tried configuring global-exceptions in struts-config, but that doesn't seem to work. What's the secret?

Re: [FRIDAY] Best error message ever

2002-12-15 Thread Max Cooper
I don't think this will trump any of the fine examples posted so far, but I have always found this gsu error message amusing: gsu: you won't be doing that today. This is what you get if you try to gsu to an account that you don't have access to. -Max - Original Message - From: Nelson,

Re: Error handling (ServletException)

2002-12-15 Thread Dan Tran
Your action throws an Exception which got rethrow as ServletException by the controller if the original exception is not caught by your handler. So you need to change your configuration to catch Exception ( or whatever the real one is) not ServletException. Hope this helps. -D - Original

html:select question

2002-12-15 Thread William Miles
Howdy folks, I am having some problems and hope somebody can help. Using struts-example as a starting point, I would like to move the following decalration out of the jsp page and into the ActionBean(for the sake of this example, we add it there): java.util.ArrayList list = new

Re: html:select question

2002-12-15 Thread William Miles
Figured it out, I needed to add: session.setAttribute(list, list); To my ActionBean Cheers William William Miles wrote: Howdy folks, I am having some problems and hope somebody can help. Using struts-example as a starting point, I would like to move the following decalration out of the

RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-15 Thread Jerome Jacobsen
If I specify a Tiles definition file I must supply at least one definition. Otherwise I get this: org.xml.sax.SAXParseException: The content of element type tiles-definitions is incomplete, it must match (definition)+. So my Tiles definition file looks like: tiles-definitions definition

logic:iterate

2002-12-15 Thread Cathy
Hi: Have you used pager tag library from http://jsptags.com/tags/navigation/pager/ with logic:iterate tag? I am using them together, and I have a problem. Please help me if you know what's going on in the following problem. I really appreciate your help.(Rick suggested me to use display tag

Iterate tag Tomcat 4.1.12, issue or no?

2002-12-15 Thread Mark Conlin
After much scanning of the user-list archive I have seen some mentions of a problem with tomcat 4.1 and the logic:iterate tag. I have also seen mentions of Tomcat 4.1.12 working fine with the logic tag. Does a problem exist? I am getting the following error, my code matches the example code in

struts-example 1.1b installation on Webshphere 5.0

2002-12-15 Thread Yaoxun Li
Hello,I installed struts-sample on Webshpere 5.0 application server and only took me 10 minutes. I used Administrative Console from web browser. Go to Applications - Install New Application. Browse the struts-example.war in my Local Path and type in struts-example in Context Root. Click next.

Re: Iterate tag Tomcat 4.1.12, issue or no?

2002-12-15 Thread Rick Reumann
On Sun, 15 Dec 2002 15:39:23 -0500 Mark Conlin [EMAIL PROTECTED] wrote: %= messages.size() % logic:iterate id=myMessage collection=%=messages% %= myMessage.getSubject() % /logic:iterate Try collection=messages (without the scriplets). -- Rick -- To

RE: Iterate tag Tomcat 4.1.12, issue or no?

2002-12-15 Thread Mark Conlin
I am afraid that still does not work. None of these work logic:iterate id=myMessage collection=%=messages% logic:iterate id=myMessage collection=%=messages% logic:iterate id=myMessage collection=messages -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent:

Re: Iterate tag Tomcat 4.1.12, issue or no?

2002-12-15 Thread Kris Schneider
% SessionUtility su = new SessionUtility(); ArrayList messages = (ArrayList)su.getAttribute(session, HomeConstants.MESSAGE_ARRAY); pageContext.setAttribute(messages, messages); % logic:iterate id=myMessage name=messages Mark Conlin wrote: I am afraid that still does not work. None of

RE: Iterate tag Tomcat 4.1.12, issue or no?

2002-12-15 Thread Mark Conlin
Thanks folks, but that does not work either. So I tried the code from the example in the struts developers Guide. It doesn't work either. % java.util.ArrayList list = new java.util.ArrayList(); list.add(First); list.add(Second); list.add(Third); list.add(Fourth); list.add(Fifth);

Re: Iterate tag Tomcat 4.1.12, issue or no?

2002-12-15 Thread Kris Schneider
You *do* have a taglib directive for the logic taglib in the page, right? Mark Conlin wrote: Thanks folks, but that does not work either. So I tried the code from the example in the struts developers Guide. It doesn't work either. % java.util.ArrayList list = new java.util.ArrayList();

RE: Iterate tag Tomcat 4.1.12, issue or no?

2002-12-15 Thread Mark Conlin
Okay, here is what did it. logic:iterate id=myMess name=messages bean:write name=myMess property=subject/ /logic:iterate So I have to user bean taglib to access a bean inside of an interate tag ? I can't just access it by using %= myMess.getSubject() % ??? I can live with that, I

RE: Iterate tag Tomcat 4.1.12, issue or no?

2002-12-15 Thread Craig R. McClanahan
On Sun, 15 Dec 2002, Mark Conlin wrote: Date: Sun, 15 Dec 2002 19:15:48 -0500 From: Mark Conlin [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Iterate tag Tomcat 4.1.12, issue or no? Okay, here is

RE: multiple file upload

2002-12-15 Thread Daniel Joshua
2. I can create file button in loop so it can be added as per requirement. But, in this case the name of file button will be same. I do not think that you can set multiple FormFile using one name. I think it is some sort of limitation of the Strut framework, but you can always provide that

RE: [OT] Overloaded setters in JavaBeans

2002-12-15 Thread Carl Fyffe
I looked all over for an example. I read the docs and even tried to create an example, but I can not get this to work. I created a BeanInfo and defined my MethodDescriptors, here is the code: public MethodDescriptor[] getMethodDescriptors() { MethodDescriptor rv[] = null; try {

RE: Could not parse taglib

2002-12-15 Thread Shabbir Khadir Mohammed
Hi What could be the Problem for this error. Can anyone suggest me. * Parsing of JSP File '/Sample Hello.jsp' failed: /Sample

Struts-config.xml

2002-12-15 Thread usha
Hi I am new to the Struts, testing some sample applications. we want to implement the struts in our existing project. right now we have almost 50 tables and more than 200 submittion pages. what my concern about the struts is if i have to configure all the form beans and the action mappings

Iterate over form bean

2002-12-15 Thread Mohan Radhakrishnan
Hi, I am trying to iterate over the form bean found in request scope. The property 'x' is of type String[]. jsp:useBean id=bean scope=request class=myForm/ logic:iterate id=item name=bean property=x indexId=index offset=0 length=1 bean:write name=item/

Forward to a servlet

2002-12-15 Thread Billy Ng
Hi folks, In my Struts app, I am using the Action to call the jsp file. In the struts-config.xml, the action tag looks like this, action path=/accounts type=com.mydomain.AccountsAction name=accountsForm validate=false input=/WEB-INF/jsp/AccountsHTML.jsp forward

RE: Forward to a servlet

2002-12-15 Thread Andrew Hill
I thought that even with precompiling you would just point the forward at the .jsp file as normal? (Ie: shouldnt need to modify the action stuff in struts-config.xml) -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 14:45 To: Struts Users

[ANNOUNCEMENT] Commons Validator 1.0.1 Released

2002-12-15 Thread Martin Cooper
The Commons Validator team is pleased to announce the release of Validator 1.0.1. This release contains only bug fixes - there are no new features in this release. The binary and source distributions are available at:

Re: Forward to a servlet

2002-12-15 Thread Billy Ng
Interesting! Tell me if I am wrongly interpret your message. Do you mean I should deploy the precompiled jsp files to tomcat/work/standalone/localhost/myApp ? If not, how does the servlet container, tomcat, know I have already precompiled the jsp files when the forward tag points to the jsp

Re: Forward to a servlet

2002-12-15 Thread David M. Karr
Billy == Billy Ng [EMAIL PROTECTED] writes: Billy Hi folks, Billy In my Struts app, I am using the Action to call the jsp file. In the struts-config.xml, the action tag looks like this, Billy action path=/accounts Billytype=com.mydomain.AccountsAction Billy

Re: Forward to a servlet

2002-12-15 Thread Billy Ng
So, should I do this? web.xml = servlet servlet-name AccountHTML_jsp /servlet-name servlet-class com.mydomain.AccountHTML_jsp /servlet-class /servlet servlet-mapping servlet-name AccountHTML_jsp /servlet-name url-pattern