Validator - Javascript question

2004-08-11 Thread Ratnakar Parakala
Hi, I tried to write custom validation rule called "identical". But, if I give oIdentical = new identical(); I didn't get any client side alert messages. Hope this statement doesn't generate necessary javascript code when the rule is configured and executed. I'm using Struts 1.2.1 (Beta). Cou

Re: Struts - passing unicode parameter from jsp to action

2004-08-11 Thread Pavel Kolesnikov
On Thu, 12 Aug 2004, Masoud Kalali wrote: > 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 You should better call request.setCharacterEncoding() in a filter or overriden ActionSer

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

2004-08-11 Thread Navjot Singh
hi matthew, I wont say that you go with one or other of your approaches. It depends upon type of assosciation that 2 entities may share. They may have aggregation or composition relationship. Depending on that your DAO implementation will decide that you need to get ONLY id or the composite obje

Re: HTTP Compression (Struts)

2004-08-11 Thread Navjot Singh
unless you have special reasons why do you wish to burden struts or web app with everything? why not use mod_gzip with apache and put tomcat/xyz behind apache? it gives good compression and you can define compression or no compression based on mime types. regards Navjot Singh Nathan Maves wrote

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 <%request.setcharacterEnc

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 org.ap

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 which both of them set content and encoding of my jsp pages to utf-8 but i istill could not use my pa

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 which

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 expir

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]>

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 t

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 PROTECTE

[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 PROTECTED

[OT] test

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

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 > > > > and not > > > > right? Well.. I copied mine out of Struts In A

Re: html:javascript problem

2004-08-11 Thread Erik Weber
Jim, I assume you meant and not right? I tried this to no effect. I have . . . Still no worky . . . Did I misunderstand you? Erik Jim Barrows wrote: -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 3:51 PM To: Struts Users Mailing Lis

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 th

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: . . . . . . When the page is rendered, I can view source and see the javascript funct

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:

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 addi

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: 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 registering. <%@ i

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:

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 tag. The tag assumes ActionError object, so, when it tries to cast your ActionMessage to ActionError, that's where you run in to ClassCastException. So, inste

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 statement

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 Connecti

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 self-obfusc

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:

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: > > > So would it be my best bet to follow > http://husted.com/struts/tips/017.html? More then likely. If you look at the 1.

Re:

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: -Original Message- From: Laran Evans [mailto

Re:

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 trac

RE:

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: > > > >> -Original Message- > >> From: Laran Evans [mailto:[EMAIL PROTECTED] > >> Sent: Wednesday, August 11, 2004 10:08 AM > >> To:

RE:

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 re

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

RE:

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: >> >> >> When I use I get a ClassCastException. So I used >> which displayed nothing, but worked. >> >> ActionErrors doesn't

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]>

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 the

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

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 my

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 well

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 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 data

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 stree

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 te

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

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

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

RE:

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: > > > When I use I get a ClassCastException. So I used > which displayed nothing, but worked. > > ActionErrors doesn't accept Ac

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

user@struts.apache.org

2004-08-11 Thread Laran Evans
When I use I get a ClassCastException. So I used 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 currently? IA -

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 cre

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 . The latter will not kick in the container managed security, because they are

RE: Problem depoying struts-blank.war

2004-08-11 Thread Hubert Rabago
It could be just what the error says -- needs a . 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: With that uncommented, the app should deploy. If it doesn't, send

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

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 w

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 www

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 -- needs a . 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

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. http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";> Ken

Re: Scriptlet in html:img

2004-08-11 Thread Mark Lowe
Um.. 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 commands, e-mail: [EMAIL PROTECTED]

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 validati

RE: 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: with HashMap > > > I have an ActionForm with a method: > > public HashMap getSelectFieldOptions() { > return ExampleBO.mySelectFieldOp

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- >

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 tag that displays: _map value_ TIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

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 tutoria

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 s

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 I

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

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

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-user&m=109183678222344&w=2 Nathan If you do a search on compression in the user messages, at www.servlets.com

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'

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: 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 f

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,

[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 (con

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 with

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

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 hibernate.connection.url=jdbc\:mysql\://localhost/VirtualVillage?autoReconnect\=true&use

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-user&m=109183678222344&w=2 Nathan On Aug 11, 2004, at 4:17 AM, Shailender Jain wrote: Hi, Has anybody used Http Compression technique for a web

[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, bu

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')"

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: [webapr

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. Tha

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')" value="A

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 cla

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] For

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 with

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

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

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. -Jignesh

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 PROTECT

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: 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 rathe

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 w

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 advi

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 Dispatch

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 I

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: 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 docu

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, e-mail

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 acti

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,

  1   2   >