RE: Overriding the init() method in the Action Servlet.

2005-08-19 Thread Mark Benussi
In the web.xml your servlet for handling struts requests should currently be org.apache.struts.actions.ActionServlet. Change this class to you own that extends this class and then you can override any methods -Original Message- From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED] Sent: 20 A

Overriding the init() method in the Action Servlet.

2005-08-19 Thread Anuradha S.Athreya
Hello, I understand it is possible to override the init() method in the Action Servlet class. How can I go about achieving this? What are the changes that I need to make in the web.xml. I need to introduce this in my application, since I need to initialize certain parameters during application

Re: - bis

2005-08-19 Thread Glenn Deschênes
Thanks so much for your reply!!! I will certainly try your suggestions out. Greatly appreciated, Glenn On 8/18/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Heh: even more of a hack, provided you're OK keeping with lists rather than > tables as in your original example: > > > > >

Re: Shale/JSF examples?

2005-08-19 Thread Craig McClanahan
The existing use cases are pretty simplistic and don't really need much of the event services that ViewController provides. Here's some thoughts on where they are going to be the most relevant, in descending order on how likely I think they are to be used. * prerender() -- Go grab information out

Re: html:form not generating name="" attribute

2005-08-19 Thread Don Brown
You probably enabled xhtml output rendering, which renders an "id" attribute instead. Unfortunately, client-side validation in xhtml is currently broken in Struts 1.2.7, so you can either checkout and build commons-validator or wait until the next release. Don On 8/19/05, Morris Jones <[EMAIL PR

html:form not generating name="" attribute

2005-08-19 Thread Morris Jones
This is an odd problem I haven't run into before ... The tags in my HTML are coming out without a name="formName" attribute. I haven't yet looked at the source code for the tag to see what might cause the name attribute to be excluded, but I've triple checked my struts-config to be sure th

Re: Using custom tags and struts together

2005-08-19 Thread Craig McClanahan
On 8/18/05, Murray Collingwood <[EMAIL PROTECTED]> wrote: > Hello all > > Has anybody successfully used Stuts tags and Custom tags together? > > For example: > Consider a custom tag with the following code: > out.println("" + entry[ix] + > ""); > Your question doesn't really describe what yo

[Friday] [somewhat-ajax-related] XMLHttpRequest scoping problems

2005-08-19 Thread David Durham
Hi -- There's been some traffic on this list involving XMLHttpRequests and javascript, and since it's Friday ... My problem: How to use multiple asynchronous requests simultaneously without using the global namespace. For instance, I'd like to create a little DirectoryTree widget that I can

Re: Struts with XSLT

2005-08-19 Thread Craig McClanahan
On 8/18/05, Eduardo Ribeiro da Silva <[EMAIL PROTECTED]> wrote: > Anybody knows how I can generate JSP with struts tags with XSLT and pass JSP > to > JSPProcessor, for compile them? Because I have tags that client browse simple > don't known. The strategy you are asking for is essentially:

RE: [OT] How to load a csv file into java

2005-08-19 Thread Paranj, Bala
Parsing CSV files in 5 minutes or less! CsvJdbc - a JDBC driver for CSV files Rocks! I was looking for an utility which can read and parse the CSV files. The open source utility CsvJdbc was perfect for my requirements. It parses the given CSV file with no problem. Just include the csvjdbc.jar in

Shale/JSF examples?

2005-08-19 Thread Rick Reumann
I'm venturing more into the world of JSF again and I'm looking MyFaces examples and Shale examples. The only Shale stuff I found was the shale-usecases examples, yet I haven't found those examples handling any of the basic stuff the docs seem to mention. For example http://struts.apache.org/sha

Re: dynamic forward path?

2005-08-19 Thread Laurie Harper
Karin Schellner wrote: I am new to Struts and would appreciate your ideas for a solution to the following problem: In my webapplication I have a login-form with a submit and cancel button. When the user clicks the cancel-button I would like to return him to the page he previously visited (bef

Re: Login Problem

2005-08-19 Thread Laurie Harper
d d wrote: I am working on a struts web application with oracle as back end.I use tomcat. I am using filter so that if user has not logged in he cannot access any of the pages.I have a problem for logging.. I login into my application..Use the application..Now if suddenly i close Tomcat Serv

Re: Using custom tags and struts together

2005-08-19 Thread Laurie Harper
Murray Collingwood wrote: Hello all Has anybody successfully used Stuts tags and Custom tags together? For example: Consider a custom tag with the following code: out.println("" + entry[ix] + ""); > The custom tag appears to write the output directly to the socket without further Struts tag

Re: [OT] Tomcat, JAAS and Kerberos

2005-08-19 Thread Wendy Smoak
From: "Adam Hardy" <[EMAIL PROTECTED]> Yes that's more or less what I did when writing a JBoss login module. Unfortunately the JBoss stuff was really still in beta and I had to do a fair amount of debugging to work out how to make it work. Same here... after hours spent with JSwat stepping th

Re: [OT] How to load a csv file into java

2005-08-19 Thread Dave Newton
Richard Reyes wrote: Hi All, Thanks for the response. I think I can use this... http://ostermiller.org/utils/CSV.html It mostly works; I vaguely recall having to tweak it a bit, but nothing serious. Dave - To unsubscr

Re: [OT] How to load a csv file into java

2005-08-19 Thread Joe Germuska
At 12:12 AM +0800 8/20/05, Richard Reyes wrote: Hi All, Thanks for the response. I think I can use this... http://ostermiller.org/utils/CSV.html I've had good results with this library. Despite what some posters have indicated, if you're talking about true CSV as exported from Excel, for

Re: [OT] How to load a csv file into java

2005-08-19 Thread Wendy Smoak
From: "Richard Reyes" <[EMAIL PROTECTED]> I need to load exported information ( csv file ) into POJOs. How do I do this? Check the archives of commons-user and commons-dev; there have been recent discussions about a Jakarta Commons CSV component. There were links to several existing librar

Re: [OT] How to load a csv file into java

2005-08-19 Thread Richard Reyes
Hi All, Thanks for the response. I think I can use this... http://ostermiller.org/utils/CSV.html What do guys think? On 8/20/05, Stéphane Zuckerman <[EMAIL PROTECTED]> wrote: > Hi Richard, > > > > I need to load exported information ( csv file ) into POJOs. How do I do > > this? > > Well, j

Re: [OT] How to load a csv file into java

2005-08-19 Thread Stéphane Zuckerman
Hi Richard, I need to load exported information ( csv file ) into POJOs. How do I do this? Well, just use the tag (and don't forget tu use the correct attributes in your tag). Then converting your CSV file'll only be a matter of split()ing the resulting data... Well, more or less ;-)

Re: [OT] How to load a csv file into java

2005-08-19 Thread DGraham
Lesson: I/O: Reading and Writing (but no 'rithmetic) http://java.sun.com/docs/books/tutorial/essential/io/ -Dennis Richard Reyes <[EMAIL PROTECTED]> 08/19/2005 12:01 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject [OT] How to load a csv file into

[OT] How to load a csv file into java

2005-08-19 Thread Richard Reyes
Hi Guys, I need to load exported information ( csv file ) into POJOs. How do I do this? Thanks Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Ann: Book softcopy in wiki

2005-08-19 Thread netsql
http://wiki.apache.org/struts/StrutsBook A donation. Hopefully people jump in and maintain, w/o defacing it (Jack). .V click http://roomity.com/launch.jsp?club=struts%20user to go to Struts mail list.

Re: Using custom tags and struts together

2005-08-19 Thread Jeremiah Johnson
Normally it doesn process html:link. Did you put the tld for html:link on the page? Does your tag extend BodyTagSupport? I think I remember having to execute the print in doEndTag() as well. Murray Collingwood wrote: Hello all Has anybody successfully used Stuts tags and Custom tags together?

Re: Using custom tags and struts together

2005-08-19 Thread Wendy Smoak
From: "Murray Collingwood" <[EMAIL PROTECTED]> Has anybody successfully used Stuts tags and Custom tags together? For example: Consider a custom tag with the following code: out.println("" + entry[ix] + ""); I haven't done anything with custom tags in a while, but isn't this the same as wr

RE: Resizing output image from a Struts Action

2005-08-19 Thread James Neville
Wendy, >I've used Marco Schmidt's ImageInfo http://schmidt.devlib.org/image-info/ >in the past to retrieve height/width information from JPG files in order to >calculate the size for a "max 600 pixels on the long side" smaller version. Looks very useful, hadn't seen this before. Thanks for th

Re: Resizing output image from a Struts Action

2005-08-19 Thread Wendy Smoak
From: "C.F. Scheidecker Antunes" <[EMAIL PROTECTED]> I guess I have most of it done but I would like advise on how to: 1) Construct a JPG, GIF or BMP object with the ByteArray 2) Resize this object and produce a resided ByteArray so that I can send it to the browser. I've used Marco Schmidt'

Re: logic:lessThan problem

2005-08-19 Thread James Neville
Peter, I'm no expert in the logic tags, preferring standard JSTL. Less than 5! Greater or equal 5! always both messages are shown! Is there something I am missing? However, if the list size is 5, then both will be shown. Sorry if i'm stating the obvious ;) As Glenn ju

dynamic forward path?

2005-08-19 Thread Karin Schellner
Hi, I am new to Struts and would appreciate your ideas for a solution to the following problem: In my webapplication I have a login-form with a submit and cancel button. When the user clicks the cancel-button I would like to return him to the page he previously visited (before calling the pa

Re: logic:lessThan problem

2005-08-19 Thread Glenn Deschênes
Hi Peter, There seems to be a typo in the closing tag. Less than 5! Should be - Glenn On 8/19/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi list! > > I have some problems comparing values with logic tags. I have searched the > mailing list archive, > but I only fou

[OT] Re: Resizing output image from a Struts Action

2005-08-19 Thread James Neville
CF, This probably isn't the best list to be asking these types of questions, but seeing as you wrote such a long mail, i figured a pointer is at least warranted ;) I don't think you can resize an image directly from a ByteArray, but someone here will probably prove me wrong. We need similar

Questions - "compound" Actions, login workflow, Struts-friendly IDEs...

2005-08-19 Thread lod
Hello, I'm currently creating my first larger project with Struts. I have several design and technical questions, unfortunately still left unanswered after a number of Google searches and reading several Struts-related resources. 1. The project contains several persistance classes, whose objects

Re: Need help using tiles taglib with JSTL

2005-08-19 Thread Michael Mattox
> > > > classname="fr.data.Inscription" > name="inscription" > scope="request" > ignore="false"/> > > > I figured it out.. the problem was the JSTL var in the forEach was limited in scope t

RE: Testing Struts With JUnit

2005-08-19 Thread Mitchell, Steven C
Luiz, Are you aware that there is an extension of Junit made for testing Struts? http://strutstestcase.sourceforge.net/ -Original Message- From: Luiz Godoy [mailto:[EMAIL PROTECTED] Sent: Thursday, August 18, 2005 3:22 PM To: Struts Users Mailing List Subject: Testing Struts With JUnit

Re: Database Best Practices

2005-08-19 Thread Larry Meadors
Here is one example: http://ibatis.apache.org/petstore.html It's use of struts is different, but the database access approach is solid. Larry On 8/17/05, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> wrote: > Hello all, > > In order to access a Database on my Model layer, which one is best? >

RE: Question on log on with SecurityFilter and JDBCRealm

2005-08-19 Thread Mitchell, Steven C
C.F., Getting Filters to run is a "set and forget" sort of thing. Once you define them in your web.xml file they will run automatically. The specs can do a better job explaining Filters than I can. Filters get invoked for ever request matching a specified URL pattern. You can also chain multipl

Re: Database Best Practices

2005-08-19 Thread Thomas Hartwig
This might overwhelm you question, but it is worth: have a look at Persistence Frameworks: Hibernate or similar. C.F. Scheidecker Antunes wrote: > Hello all, > > In order to access a Database on my Model layer, which one is best? > > 1) A DataSource declared on the struts-config.xml. Then get th

multiple resources and usage in a JSP

2005-08-19 Thread Zmitko, Jan
Hello I´ve a question how can I use multiple messages in one and the same struts modulle. I´ve tried following: configuration in struts-config usage in the JSP But these doesn´t works. Whats wrong, can anyone help me? Thanks a lot, Jan --

logic:lessThan problem

2005-08-19 Thread Peter . Zoche
Hi list! I have some problems comparing values with logic tags. I have searched the mailing list archive, but I only found solutions that look pretty the same as what I have done, but it still does not work. So perhaps someone can help. I have a bean which stores a list of projects. Because the si

Re: Need help using tiles taglib with JSTL

2005-08-19 Thread Jurn Ho
nested within the tiles:insert, I think you want a tiles:put instead of a useAttribute? Jurn At 01:59 AM 19/08/2005, Michael Mattox wrote: I'm trying to use the tiles taglib with JSTL (servlet spec 2.4).. if I use just the HTML tags they work file, and JSTL 1.1 by itself works fine. The proble

Re: How to write logic:iterate for the Collection of HashMap.

2005-08-19 Thread Jurn Ho
Hi Amol, please see http://struts.apache.org/userGuide/struts-logic.html especially the section on maps. Next element is with key Jurn At 10:06 PM 18/08/2005, Amol Yadwadkar wrote: Hello List, I need to display the results stored in the Hashmap. How can I achieve it by using logic:ite

Re: link with img and request attribute

2005-08-19 Thread Jurn Ho
replace text 'add' with or a struts You may also want to change your a href into a . cya, Jurn At 01:33 AM 19/08/2005, =?ISO-8859-2?Q?S=B3awek_Tuleja?= wrote: Hi EveryBody i have problem with this: 1) i have: property="idUser" />">add 2) and it works fine, but i want to put image button

RE: [OT] Loading data for view

2005-08-19 Thread McDonnell, Colm (MLIM)
> Are there any common guidelines that help you decide, > which approach to apply in a given situation? Nothing formal, I have only used this approach once and I used it because all of the following conditions were met: * The data was to be used for a read only, tabular display i.e. a phys

Re: Login Problem

2005-08-19 Thread C.F. Scheidecker Antunes
Take a look at O'Reilly's Struts Cookbook about this issue. d d wrote: I am working on a struts web application with oracle as back end.I use tomcat. I am using filter so that if user has not logged in he cannot access any of the pages.I have a problem for logging.. I login into my applicati