Re: using tiles with dynamic links

2004-08-11 Thread Michael McGrady
At 05:16 PM 8/10/2004, you wrote: Haven't done it myself but if your using Tomcat, then you should be able to do it without Apache: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html Niall To quote Vic Chekvenich You can get very dynamic w/ tiles, and use tilesaction for each tilee

Re: Re: Database connectivity

2004-08-11 Thread vineesh . kumar
my database connection class looks like package com.c2rmnet.struts.database; import org.apache.struts.action.Action; import javax.servlet.http.HttpServletRequest; import java.sql.SQLException; import java.sql.Connection; import java.sql.Statement; import javax.sql.DataSource; import

tiles and mupltiple modules

2004-08-11 Thread Hariharan
Hi friends, is it be possible to configure layouts using tiles-defs.xml when using struts multiple modules feature? I have two modules having it's own struts-config files. Is there any example app which uses this feature? thanks -Hari

Re: using tiles with dynamic links

2004-08-11 Thread teknokrat
Jim Barrows wrote: -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 4:33 PM To: Struts Users Mailing List Subject: Re: using tiles with dynamic links At 04:12 PM 8/10/2004, you wrote: But he used the keyword 'dynamic'. So presumably it's

Re: using tiles with dynamic links

2004-08-11 Thread David Stevenson
On 11/8/04 6:18, Michael McGrady [EMAIL PROTECTED] wrote: I loved those competitions in perl that tried to be the hardest to understand. Competitions? I've seen C ones (the 12 days of Xmas one is a classic), but truly idiomatic Perl is self-obfuscating! Let's not get into language wars, eh?

RE: I have a form spread over several pages. The user fills out each section in progression. I am using a dispatch action and each page calls the same function i.e. processForm. I want struts to validate each submission but I cannot change the input page

2004-08-11 Thread Kataria, Satish
Hi, Instead of having a single function what I would suggest in ur case is a session scoped action form And each page having same actionform but different action mapping. Thus using this you can specify approiate page as the input page. For code examples refer to struts documentation of using

HTTP Compression (Struts)

2004-08-11 Thread Shailender Jain
Hi, Has anybody used Http Compression technique for a web application developed using Struts Framework. Please provide the information Shailender Jain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: I have a form spread over several pages. The user fills out each section in progression. I am using a dispatch action and each page calls the same function i.e. processForm. I want struts to validate each submission but I cannot change the input page

2004-08-11 Thread teknokrat
Kataria, Satish wrote: Hi, Instead of having a single function what I would suggest in ur case is a session scoped action form And each page having same actionform but different action mapping. Thus using this you can specify approiate page as the input page. For code examples refer to struts

RE: I have a form spread over several pages. The user fills out each section in progression. I am using a dispatch action and each page calls the same function i.e. processForm. I want struts to validate each submission but I cannot change the input page

2004-08-11 Thread Kataria, Satish
I am suggesting that you should have a single action having a method for each of the page. This can be configured by using DispatchAction class and configured in struts-config.xml using the attribute parameter for finding which of the method to execute. Thanks, Satish -Original Message-

Re: Should every Action have an associated form?

2004-08-11 Thread Matthew J. Vincent
Thanks everyone! Much appreciated. Matt Michael McGrady wrote: I have lots of actions without forms. They are useful when you don't have forms. LOL Seriously, that is the reason. Michael At 07:51 PM 8/10/2004, you wrote: Hey everyone! I hope to not get flamed, but it's getting late here and

Intermittent problem with DispatchAction

2004-08-11 Thread Michael Searles
Hi Folks, I am using a DispatchAction which switches between several methods depending on the value of the forwarding parameter which is set in the JSP(see code snipet below). The DispatchAction is fine approx 80% of the time, but ocassionally and without warning, I get the following

Re: Servlet help for a Struts programmer

2004-08-11 Thread Denis Avdic
Wow. I unleashed a beast. Next time I'll ask the question way before I have to leave work. I have to thank you all for your input. The discussion on Servlets and Struts and how they relate (or don't) was in itself very helpful to understanding how the things work. I will take your

Re: I have a form spread over several pages. The user fills out each section in progression. I am using a dispatch action and each page calls the same function i.e. processForm. I want struts to validate each submission but I cannot change the input page

2004-08-11 Thread teknokrat
Kataria, Satish wrote: I am suggesting that you should have a single action having a method for each of the page. This can be configured by using DispatchAction class and configured in struts-config.xml using the attribute parameter for finding which of the method to execute. I get you. This is

Re: I have a form spread over several pages. The user fills out each section in progression. I am using a dispatch action and each page calls the same function i.e. processForm. I want struts to validate each submission but I cannot change the input page

2004-08-11 Thread Michael McGrady
At 06:15 AM 8/11/2004, you wrote: the problem is that when the validation ( on say page 5 ) fails the user gets sent back to page one because only one input page parameter is allowed per action definition (in struts-config). Don't get stuck on what the XML does. Use those values as a tool

STRUTS ONLINE TUTORIAL

2004-08-11 Thread Lin, Xinhua
Dear All, Where can I find online tutorial or example-driven documents for struts? Thanks, Xinhua - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: STRUTS ONLINE TUTORIAL

2004-08-11 Thread Erik Weber
I suggest Rick Reumann's site: http://www.reumann.net/do/struts/main Erik Lin, Xinhua wrote: Dear All, Where can I find online tutorial or example-driven documents for struts? Thanks, Xinhua - To unsubscribe, e-mail: [EMAIL

stopping threads when sever stops

2004-08-11 Thread Jignesh Patel
Hi Rick, We are developing our software using struts and quartz with tomcat. When we stop our web server it never stops the back end running threads. We tried by developing separate listener but we never able to shutdown our application properly. any suggestion will be helpful on this.

Struts security/validation

2004-08-11 Thread James Adams
Hello all, I'm in the process of trying to secure my struts application against Cross site scripting, SQL injection style attacks. One of the things I'm doing to prevent this is trying to restrict special characters (;.(){}...etc) getting beyond the validator. At the moment I'm using the

Re: Intermittent problem with DispatchAction

2004-08-11 Thread Kishore Senji
On Wed, 11 Aug 2004 13:37:40 +0100, Michael Searles [EMAIL PROTECTED] wrote: Hi Folks, I am using a DispatchAction which switches between several methods depending on the value of the forwarding parameter which is set in the JSP(see code snipet below). The DispatchAction is fine approx

Re: Intermittent problem with DispatchAction

2004-08-11 Thread Michael McGrady
At 06:52 AM 8/11/2004, you wrote: Hi Folks, I am using a DispatchAction which switches between several methods depending on the value of the forwarding parameter which is set in the JSP(see code snipet below). The DispatchAction is fine approx 80% of the time, but ocassionally and without

Re: STRUTS ONLINE TUTORIAL

2004-08-11 Thread Michael McGrady
At 06:31 AM 8/11/2004, you wrote: I suggest Rick Reumann's site: http://www.reumann.net/do/struts/main Erik I had not seen this before. This is good stuff. Great job, Rick. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: java.net.ConnectException: Connection refused

2004-08-11 Thread Shilpa Nalgonda
I am able to get it work with org.gjt.mm.mysql.Driver itself. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 6:03 PM To: [EMAIL PROTECTED] Subject: RE: java.net.ConnectException: Connection refused Sounds like you may have a different

Re: Intermittent problem with DispatchAction

2004-08-11 Thread Michael Searles
Thanks for that Kishore, I was wondering how the request parameter gets set to null. Because, we include the request parameter as a hidden property in the JSP, the javascript method is always called with a hard coded string as argument e.g. html:submit onclick=setAction('applyChanges')

Re: Multiple image tags

2004-08-11 Thread Michael McGrady
Let me try again on this, Leandro, as much for myself as for you. The LookupDIspatchAction, which I don't care for, only gives you one thing: a promise that the page author will have to use a particular name for the parameter name to be used in the Action for deciding which method to use.

JDK version to be used with Struts 1.1

2004-08-11 Thread Christopher Kwiatkowski
What is the earliest version of the JDK that can be successfully used with Struts 1.1. We are currently operating at JDK 1.3 and I am experiencing difficulty running a simple Struts 1.1 application. I get the following error. [8/11/04 10:32:42:414 EDT] 4a850b15 WebGroup I SRVE0180I:

Re: Intermittent problem with DispatchAction

2004-08-11 Thread Michael McGrady
At 07:23 AM 8/11/2004, you wrote: I was wondering how the request parameter gets set to null. Because, we include the request parameter as a hidden property in the JSP, the javascript method is always called with a hard coded string as argument e.g. html:submit onclick=setAction('applyChanges')

[OT] hidden submit button

2004-08-11 Thread Barnett, Brian W.
Does anyone know how to create a hidden submit button? We're using images for the buttons, but still want the enter key to submit the form. Is there a better way to handle this? We tried a few things with css but it didn't seem to work. (visibility:hidden and display:none will hide the button, but

Re: HTTP Compression (Struts)

2004-08-11 Thread Nathan Maves
Yeah a lot of people. There was a thread on this very topic last week please check the archive before posting :) http://marc.theaimsgroup.com/?l=struts-userm=109183678222344w=2 Nathan On Aug 11, 2004, at 4:17 AM, Shailender Jain wrote: Hi, Has anybody used Http Compression technique for a web

RE: java.net.ConnectException: Connection refused

2004-08-11 Thread Jim Barrows
Sorry, I was supposed to do this last night, but here' my config. hibernate.connection.username=test dao.type=hibernate hibernate.connection.password=test hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect

Re: Struts security/validation

2004-08-11 Thread Kishore Senji
On Wed, 11 Aug 2004 14:45:05 +0100, James Adams [EMAIL PROTECTED] wrote: Hello all, I'm in the process of trying to secure my struts application against Cross site scripting, SQL injection style attacks. One of the things I'm doing to prevent this is trying to restrict special characters

Re: Excel File Conversion

2004-08-11 Thread Rick Reumann
Viral_Thakkar wrote: Data is available on the jsp page. I need to convert this to excel file on click of a button. Is there any way in struts to do this? If it you just want the page to display as is in Excel either 1) Use Tiles or Sitemesh and make sure your content opens in the Excel layout

[OT] DAO ... where to draw the line?

2004-08-11 Thread Matthew J. Vincent
[OFF TOPIC] I know this is a struts forum, but as struts developers using DAOs, where do your DAO implementation draw the line? For example: Let''s say I have three tables: Employee (contains employee_id, employee_name, and dept_id) Department (contains dept_id, dept_name, loc_id) Location

RE: [OT] DAO ... where to draw the line?

2004-08-11 Thread Jim Barrows
-Original Message- From: Matthew J. Vincent [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 8:21 AM To: Struts Users Mailing List Subject: [OT] DAO ... where to draw the line? [OFF TOPIC] I know this is a struts forum, but as struts developers using DAOs, where

RE: Taglibs generating lots of warning messages

2004-08-11 Thread Jim Barrows
-Original Message- From: Andy Schmidgall [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 7:06 PM To: Struts Users Mailing List Subject: RE: Taglibs generating lots of warning messages Does anyone know anything about this? This is generating HUGE catalina.out files,

RE: java.net.ConnectException: Connection refused

2004-08-11 Thread Shilpa Nalgonda
Thanks Jim, I got it, now my application is working, i am using loaclhost:3306 though. But i turned off the security option, it is no, if i make it yes i still have accesControlException on getClassLoader. -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: Should every Action have an associated form?

2004-08-11 Thread Jim Barrows
-Original Message- From: Matthew J. Vincent [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 7:51 PM To: Struts Users Mailing List Subject: Should every Action have an associated form? Hey everyone! I hope to not get flamed, but it's getting late here and I'm tired

Re: HTTP Compression (Struts)

2004-08-11 Thread Michael McGrady
At 08:08 AM 8/11/2004, you wrote: Yeah a lot of people. There was a thread on this very topic last week please check the archive before posting :) http://marc.theaimsgroup.com/?l=struts-userm=109183678222344w=2 Nathan If you do a search on compression in the user messages, at www.servlets.com,

RE: Importing context with Struts

2004-08-11 Thread Jim Barrows
-Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 8:29 PM To: struts jakarta Subject: Re: Importing context with Struts Well guys, i'm just a beginner here, so i couldn't some points. I'll expose my situation in details, so maybe

RE: stopping threads when sever stops

2004-08-11 Thread Jim Barrows
-Original Message- From: Jignesh Patel [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 4:05 PM To: Struts Users Mailing List Subject: stopping threads when sever stops Hi Rick, We are developing our software using struts and quartz with tomcat. When we stop our

Problem depoying struts-blank.war

2004-08-11 Thread Kenneth Litwak
I am trying to teach myself Struts while writing a real application. I followed an tutorial that said to start by putting the struts-blank.war in the webapps directory of Tomcat 5. Unfortunately, here's what I got: Aug 11, 2004 8:24:50 AM org.apache.struts.util.PropertyMessageResources

RE: Struts security/validation

2004-08-11 Thread Jim Barrows
-Original Message- From: James Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 6:45 AM To: Struts Users Mailing List Subject: Struts security/validation Hello all, I'm in the process of trying to secure my struts application against Cross site scripting,

RE: Problem depoying struts-blank.war

2004-08-11 Thread Jim Barrows
-Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 8:45 AM To: [EMAIL PROTECTED] Subject: Problem depoying struts-blank.war I am trying to teach myself Struts while writing a real application. I followed an tutorial that

html:options with HashMap

2004-08-11 Thread Laran Evans
I have an ActionForm with a method: public HashMap getSelectFieldOptions() { return ExampleBO.mySelectFieldOptions; } How do I create an html:options tag that displays: option value=_map key__map value_ TIA - To unsubscribe,

RE: Problem depoying struts-blank.war

2004-08-11 Thread Kenneth Litwak
I used the download I got yesterday: struts-20040803.zip. Thakns. Ken -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 8:54 AM To: Struts Users Mailing List Subject: RE: Problem depoying struts-blank.war -Original Message-

RE: html:options with HashMap

2004-08-11 Thread Jim Barrows
-Original Message- From: Laran Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 8:57 AM To: [EMAIL PROTECTED] Subject: html:options with HashMap I have an ActionForm with a method: public HashMap getSelectFieldOptions() { return

RE: Problem depoying struts-blank.war

2004-08-11 Thread Jim Barrows
-Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 8:59 AM To: Struts Users Mailing List Subject: RE: Problem depoying struts-blank.war I used the download I got yesterday: struts-20040803.zip. Thakns. Looks the validation file

Re: Scriptlet in html:img

2004-08-11 Thread Mark Lowe
Um.. img src=%= request.getContextPath() %/images/a.gif ... Might just do it for you.. On 10 Aug 2004, at 08:56, ashwini jagtap wrote: me error can anyone correct this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Problem depoying struts-blank.war

2004-08-11 Thread Kenneth Litwak
Here is the validation.xml file. Do I need this? A lot of this is new to me. What would I do to rebuild the war without this file, if I can get away with not using it? Thanks. ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons

RE: Problem depoying struts-blank.war

2004-08-11 Thread Hubert Rabago
- Resend: Not sure why the first one didn't show; apologies if this becomes the second one - It could be just what the error says -- formset needs a form. Since you don't have any yet, you can comment out the validator plugin for now by opening struts-config.xml and commenting out the last very

html base tag

2004-08-11 Thread Travis Stevens
I have been using the struts html base tag. Unfortunately, our new staging machine is done with a proxy pass. This means that the URL being sent to the box in which the tomcat is located is changed and the base is then wrong. For example: www.outside_firewall.com/tomcat is proxy passed to

RE: Problem depoying struts-blank.war

2004-08-11 Thread Jim Barrows
-Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 9:27 AM To: Struts Users Mailing List Subject: RE: Problem depoying struts-blank.war Here is the validation.xml file. Do I need this? A lot of this is new to me. What would I

RE: html base tag

2004-08-11 Thread Jim Barrows
-Original Message- From: Travis Stevens [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 9:31 AM To: [EMAIL PROTECTED] Subject: html base tag I have been using the struts html base tag. Unfortunately, our new staging machine is done with a proxy pass. This means

RE: Problem depoying struts-blank.war

2004-08-11 Thread Hubert Rabago
It could be just what the error says -- formset needs a form. Since you don't have any yet, you can comment out the validator plugin for now by opening struts-config.xml and commenting out the last very last entry there, which starts with: plug-in

Re: Struts and Websphere security - best practice

2004-08-11 Thread Ruth, Brice
Craig McClanahan wrote: On Tue, 10 Aug 2004 09:15:49 -0400, Tom McCobb [EMAIL PROTECTED] wrote: One thing to double check is that your welcome page really does do a *redirect* to sessionStart.do, rather than a jsp:forward. The latter will not kick in the container managed security,

RE: [OT] DAO ... where to draw the line?

2004-08-11 Thread Wiebe de Jong
When it comes to app architecture, I always recommend the Core J2EE Patterns book. The Second Edition is now available and you can get an overview of it at http://corej2eepatterns.com/Patterns2ndEd/BusinessObject.htm In response to your question: A DAO should only contain the SQL code for the

html:errors /

2004-08-11 Thread Laran Evans
When I use html:errors / I get a ClassCastException. So I used html:messages id=x / which displayed nothing, but worked. ActionErrors doesn't accept ActionError objects any longer (deprecated), just ActionMessage objects. What's the consensus on the correct way to display html:errors /

Re: html base tag

2004-08-11 Thread Travis Stevens
I have been using the struts html base tag. Unfortunately, our new staging machine is done with a proxy pass. This means that the URL being sent to the box in which the tomcat is located is changed and the base is then wrong. This has been discussed before on this list... might want to

RE: html:errors /

2004-08-11 Thread Jim Barrows
-Original Message- From: Laran Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 10:08 AM To: Struts User Mailing List Subject: html:errors / When I use html:errors / I get a ClassCastException. So I used html:messages id=x / which displayed nothing, but

Re: Struts security/validation

2004-08-11 Thread Craig McClanahan
On Wed, 11 Aug 2004 14:45:05 +0100, James Adams [EMAIL PROTECTED] wrote: Hello all, I'm in the process of trying to secure my struts application against Cross site scripting, SQL injection style attacks. One of the things I'm doing to prevent this is trying to restrict special characters

Re: html base tag

2004-08-11 Thread Craig McClanahan
On Wed, 11 Aug 2004 10:30:58 -0600, Travis Stevens [EMAIL PROTECTED] wrote: I have been using the struts html base tag. Unfortunately, our new staging machine is done with a proxy pass. This means that the URL being sent to the box in which the tomcat is located is changed and the base is

RE: Struts security/validation

2004-08-11 Thread Jim Barrows
-Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 10:21 AM To: Struts Users Mailing List Subject: Re: Struts security/validation On Wed, 11 Aug 2004 14:45:05 +0100, James Adams [EMAIL PROTECTED] wrote: Hello all, I'm

RE: Struts security/validation

2004-08-11 Thread Wiebe de Jong
I had a similar problem, which I discovered when one of my users tried to enter a street address containing an apostrophe. Since I use apostrophes to delineate my text strings in my SQL statements, this caused a database error. I fixed it by not allowing apostrophes to be entered into any of the

RE: Struts security/validation

2004-08-11 Thread Jim Barrows
-Original Message- From: Wiebe de Jong [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 10:32 AM To: 'Struts Users Mailing List' Subject: RE: Struts security/validation I had a similar problem, which I discovered when one of my users tried to enter a street address

Re: Struts security/validation

2004-08-11 Thread Craig McClanahan
On Wed, 11 Aug 2004 10:32:04 -0700, Wiebe de Jong [EMAIL PROTECTED] wrote: I had a similar problem, which I discovered when one of my users tried to enter a street address containing an apostrophe. Since I use apostrophes to delineate my text strings in my SQL statements, this caused a database

RE: Struts security/validation

2004-08-11 Thread Zhang, Larry \(L.\)
Oracle sql insert needs to escape apostrophes so that you can insert apostrophes. So in your case you may need a utility method to convert all your text containing apostrophes to some thing like ''. Example: If your user enters I like he's idea, when inserting to data base you need to convert

RE: Struts security/validation

2004-08-11 Thread Wiebe de Jong
Craig, both you and Jim suggested that I make use of prepared statements. I implemented my SQL using strings because it is easier to tweak during the development phase. Now that the project is in maintenance, moving to prepared statements is a good idea. Probably help a bit in performance as

RE: Taglibs generating lots of warning messages

2004-08-11 Thread David Friedman
I used to turn on/off the logging for various modules (or everything) using the commons logging. Check that out. I used SimpleLog and turned everything off. Then, I used debug or info for the modules I'm interested in. http://jakarta.apache/org/commons/logging I think I turned it all off in

RE: Problem depoying struts-blank.war

2004-08-11 Thread Martin Gainty
Jim- found this on the archives- validation.xml does not conform to your DTD http://www.mail-archive.com/[EMAIL PROTECTED]/msg01486.html HTH, Martin Gainty (cell) 617-852-7822 (e) [EMAIL PROTECTED] From: Jim Barrows Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing

extending the html:select tag

2004-08-11 Thread Wiebe de Jong
I am having trouble extending the struts html:select tag, and I hope somebody can help me. Naill's example at http://www.niallp.pwp.blueyonder.co.uk/#errortag shows how to extend the text tag. I used it to extend the password tag with no problem. However, when I use the same method to extend

Re: Struts security/validation

2004-08-11 Thread Kishore Senji
Jakarta commons lang String Escape Utils has a set of utility methods for escaping xml, html, sql, java, javascript ... http://jakarta.apache.org/commons/lang/apidocs/org/apache/commons/lang/StringEscapeUtils.html Kishore Senji. On Wed, 11 Aug 2004 10:41:13 -0700, Jim Barrows [EMAIL PROTECTED]

RE: html:errors /

2004-08-11 Thread Tom Kane
-Original Message- From: Laran Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 10:08 AM To: Struts User Mailing List Subject: html:errors / When I use html:errors / I get a ClassCastException. So I used html:messages id=x / which displayed nothing, but worked.

Re: using tiles with dynamic links

2004-08-11 Thread Brett Connor
David Stevenson wrote: On 11/8/04 6:18, Michael McGrady [EMAIL PROTECTED] wrote: I loved those competitions in perl that tried to be the hardest to understand. Competitions? I've seen C ones (the 12 days of Xmas one is a classic), but truly idiomatic Perl is self-obfuscating! Let's not get

RE: html:errors /

2004-08-11 Thread Hubert Rabago
--- Tom Kane [EMAIL PROTECTED] wrote: My questions are: 1) Do I need to put errors in the session so that it survives the redirection long enough to be displayed? That's one way to do it. In support of this, Struts 1.2.x has what's called Session-scoped ActionMessages. See the release

RE: html:errors /

2004-08-11 Thread Jim Barrows
-Original Message- From: Tom Kane [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 11:38 AM To: [EMAIL PROTECTED] Subject: RE: html:errors / -Original Message- From: Laran Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 10:08 AM To:

Re: html:errors /

2004-08-11 Thread Niall Pemberton
Since ActionError extends ActionMessage then I don't think this is true. When I converted a current app to Struts 1.2.x I'm sure it all still worked with ActionError - I have now changed all ActionError to ActionMessage so that I don't get all the deprecated warnings. Can you post your stack trace

Re: html:errors /

2004-08-11 Thread Laran Evans
So would it be my best bet to follow http://husted.com/struts/tips/017.html? Jim Barrows wrote: -Original Message- From: Tom Kane [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 11:38 AM To: [EMAIL PROTECTED] Subject: RE: html:errors / -Original Message- From: Laran

RE: html:errors /

2004-08-11 Thread Jim Barrows
-Original Message- From: Laran Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 12:15 PM To: Struts Users Mailing List Subject: Re: html:errors / So would it be my best bet to follow http://husted.com/struts/tips/017.html? More then likely. If you look at

ot: pgSQL goes windows native

2004-08-11 Thread Vic Cekvenich
My favirite SQL engine on the level of Oracle but free: http://developer.postgresql.org/beta.php .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: using tiles with dynamic links

2004-08-11 Thread Brett Connor
Brett Connor wrote: David Stevenson wrote: On 11/8/04 6:18, Michael McGrady [EMAIL PROTECTED] wrote: I loved those competitions in perl that tried to be the hardest to understand. Competitions? I've seen C ones (the 12 days of Xmas one is a classic), but truly idiomatic Perl is

Re: custom transactions

2004-08-11 Thread Brett Connor
Woodchuck wrote: hihi, this is my scenario: - container managed pooling (Tomcat 4.1.24) - jdbc (PreparedStatement objects) - wrapping my own transactions by autoCommit(false), and issuing commit() manually i'm running into a table-lock situation after DELETE statements. i'm using the same

Re: Struts security/validation

2004-08-11 Thread Brett Connor
Craig McClanahan wrote: On Wed, 11 Aug 2004 10:32:04 -0700, Wiebe de Jong [EMAIL PROTECTED] wrote: I had a similar problem, which I discovered when one of my users tried to enter a street address containing an apostrophe. Since I use apostrophes to delineate my text strings in my SQL

Re: html:errors /

2004-08-11 Thread Kishore Senji
You might be getting a ClassCastException, because, you might be using Struts 1.1, and adding a ActionMessage to ActionErrors and using the html:errors/ tag. The tag assumes ActionError object, so, when it tries to cast your ActionMessage to ActionError, that's where you run in to

Re: Multiple image tags

2004-08-11 Thread Leandro Melo
Michael, i think i understand your point now! If my english let get the point correctly, i realized that if i have an ordinary Action, and have such method that finds out what was the value of the image tag (using your getCommand function) and delegate (probably with an if) the processing of the

Re: Importing context with Struts

2004-08-11 Thread Leandro Melo
Jim, as i said i have a page with only one line of code, wich is the error page. It only has this: html:errors/ Suppose now we want to register a company in the application, i got then an form with all the necessary inputs in a page registercompanycustominforeq.jsp. Here's the page for

Re: Multiple image tags

2004-08-11 Thread Michael McGrady
You got it, Leandro. You end up doing with this solution what the LookupDispatchAction does with less overhead, less of a footprint, and without all the coupling to the framework. I put the solution on the Struts wiki, and a pretty good programmer actually suggested using this solution and

RE: Importing context with Struts

2004-08-11 Thread Jim Barrows
-Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 2:13 PM To: struts jakarta Subject: Re: Importing context with Struts Jim, as i said i have a page with only one line of code, wich is the error page. It only has this:

html:javascript problem

2004-08-11 Thread Erik Weber
I am using the validator plugin, specifying all my validation in validation.xml. I want to use the automatic javascript generation feature to add client-side validation. My form page is basically like this: . . . html:javascript formName=fooForm/ . . . form action=${myAction} onsubmit=return

RE: html:javascript problem

2004-08-11 Thread Jim Barrows
-Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 3:51 PM To: Struts Users Mailing List Subject: html:javascript problem I am using the validator plugin, specifying all my validation in validation.xml. I want to use the

Re: html:javascript problem

2004-08-11 Thread Erik Weber
Jim, I assume you meant html:javascript formName=blah/ and not validator:javascript formName=blah/ right? I tried this to no effect. I have html:form action=${myAction} onsubmit=return validateFooForm(this) . . . /html:form html:javascript formName=fooForm/!-- this renders the function

RE: html:javascript problem

2004-08-11 Thread Jim Barrows
-Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 4:17 PM To: Struts Users Mailing List Subject: Re: html:javascript problem Jim, I assume you meant html:javascript formName=blah/ and not validator:javascript formName=blah/

[OT] test

2004-08-11 Thread Michael McGrady
test - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[OT] HTML and Email Client: Eudora

2004-08-11 Thread Michael McGrady
I am trying to see the tags in list emails, but the code is not showing up. I am using Eudora. As much as I scout around I cannot find the problem. Anyone know what it is? Michael - To unsubscribe, e-mail: [EMAIL

test

2004-08-11 Thread BOU Hou
test __ GANBARE! NIPPON! Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE http://mail.ganbare-nippon.yahoo.co.jp/ - To unsubscribe, e-mail: [EMAIL

Re: [OT] HTML and Email Client: Eudora

2004-08-11 Thread Shinobu Kawai
Hi Michael, I am trying to see the tags in list emails, but the code is not showing up. I am using Eudora. As much as I scout around I cannot find the problem. Anyone know what it is? Sorry, I don't know anything about Eudora. But are you talking about HTML email? Then my advise is to

Re: test

2004-08-11 Thread Shinobu Kawai
Hi all, test You know what? I was thinking about that too. ;-) http://sourceforge.net/project/showfiles.php?group_id=39190 # Haven't really got the knack of it yet, though... Have fun, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED], [EMAIL PROTECTED]

Page expired warning on history.go(-1) Internet Explorer

2004-08-11 Thread Ajay Katre
I have a struts action URL http://myhost.mydomain.com/myapp/myaction.do It is a non-secure page. The form action is HTTP-POST. On submitting this form it displays the results. On results page I've a Back button with javascript: window.history.go(-1); Sometimes it gives Warning: Page has

FileUpload questions

2004-08-11 Thread Victor.T.Ying
Hi all, I have a question about the controller parameters for file upload,I have to upload a file upto 100M,but when I use the following settings to upload a small file,the App server seems to be slow and consume a lot of memory so that I have to set JVM heap to a larger size,I am not sure

Re: Struts and encoding

2004-08-11 Thread Masoud Kalali
hi friends, I add (request.setCharacterEncoding(UTF-8); to my action before reading parameter from it , also i add two difinition on my jsp page %request.setcharacterEncoding(UTF-8);% and meta .../ which both of them set content and encoding of my jsp pages to utf-8 but i istill could not use

RE: I have a form spread over several pages. The user fills out each section in progression. I am using a dispatch action and each page calls the same function i.e. processForm. I want struts to validate each submission but I cannot change the input page

2004-08-11 Thread Kataria, Satish
Ok I got what u r saying. What I am trying to say is that you have a single Action class but multiple action mappings(one per page) and since you can configure input setting at action mapping level therefore it will solve ur problem Structure of code will be public class Actionclass extends

Struts - passing unicode parameter from jsp to action

2004-08-11 Thread Masoud Kalali
hi friends, i have problem with sending unicode parameter to my action from jsp page I use post for sending parameter to action and also add (request.setCharacterEncoding(UTF-8); to my action before reading parameter from it , also i add two difinition on my jsp page

  1   2   >