Login Problem

2005-08-19 Thread d d
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 Server.. and

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

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

Re: link with img and request attribute

2005-08-19 Thread Jurn Ho
replace text 'add' with img src=addbutton.gif/ or a struts html:img You may also want to change your a href into a html:link. 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: a

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. logic:iterate id=element name=myhashtable Next element is bean:write name=element property=value/ with key bean:write name=element property=key/ /logic:iterate Jurn At 10:06 PM 18/08/2005,

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

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

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 message-parameter=XXXMessages_de null=false key=XXX/message-resources usage in the JSP ssa:title key=key_for_text_in_bundle bundle=XXX/ But these

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 the

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 multiple

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? 1)

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: Need help using tiles taglib with JSTL

2005-08-19 Thread Michael Mattox
c:forEach items=${listeInscriptions.inscriptions} var=inscription tiles:insert name=web-inscription flush=true tiles:useAttribute id=${inscription} classname=fr.data.Inscription name=inscription scope=request

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

[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

Re: logic:lessThan problem

2005-08-19 Thread Glenn Deschênes
Hi Peter, There seems to be a typo in the closing tag. logic:lessThan name=projectListSize value=5 Less than 5! /logicLessThan Should be /logic:lessThan - Glenn On 8/19/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi list! I have some problems comparing values with

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

Re: logic:lessThan problem

2005-08-19 Thread James Neville
Peter, I'm no expert in the logic tags, preferring standard JSTL. logic:lessThan name=projectListSize value=5 Less than 5! /logicLessThan logic:greaterEqual name=projectListSize value=5 Greater or equal 5! /logic:greaterEqual always both messages are shown! Is there something

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

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 the

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(html:link action=\Update.do\ + entry[ix] + /html:link); I haven't done anything with custom tags in a while,

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

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.

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

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 user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc

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 html:file/ tag (and don't forget tu use the correct attributes in your html:form/ tag). Then converting your CSV file'll only be a matter of split()ing the resulting data...

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, just use

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

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

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

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(html:link action=\Update.do\ + entry[ix] + /html:link); The custom tag appears to write the output directly to the

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

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

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

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

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:

[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

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(html:link action=\Update.do\ + entry[ix] + /html:link); Your question doesn't

html:form not generating name= attribute

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

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

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

Re: html-el:messages - 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: logic:messagesPresent