RE: iterate tag

2003-02-15 Thread mech
What you plan to do looks like a join to me. So if you can't do it directly with SQL, I would do that join in the Action class to populate one joined collection that you simple iterate once over. If you really need to do it in your jsp, try similar to: logic:iterate id=master name=myform

logic:iterate does not iterate more than once, although collection definitely contains more elements

2003-02-13 Thread mech
Hi, I have been using logic:iterate for quite a while, but now I'm stuck. Using Struts 1.1b2 on Tomcat 4.1.18. This code makes me crazy: bean:size id=test name=EditAccountForm property=roles/ bean:write name=test/ logic:iterate id=userRoles name=EditAccountForm

RE: Model and Controller Components

2003-02-10 Thread mech
-Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Montag, 10. Februar 2003 08:26 To: Kashinath Cc: Struts Users Mailing List Subject: Re: Model and Controller Components If you find documentation in Struts that talks about form beans being model

RE: What is the best practice for reseting dynamic lists?

2003-02-08 Thread mech
I had a similar question recently. Maybe I asked too complex or unclear so i didn't get an answer yet. But I tried to find an answer myself. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Samstag, 8. Februar 2003 11:30 To: Struts Users Mailing List Subject:

RE: SSL and Struts

2003-02-08 Thread mech
Hi, I mix http and https protocol in my current webapp development. My container and form based login is switching to https by a container security constraint. Afterwards I'm also using session beans and almost everything struts offers. So far I encountered not special difficulties with regards

RE: Design question: Model component using Business logic beans

2003-02-04 Thread mech
Thanks for all that help. Anyway I guess I'll opt for using custom exception, like mentioned in an early post, in my business logic components. Seems easier to do in the interim and I wonder why i didn't think of that solution myself in the beginning... light...light... throw new

RE: HTML entities (general Struts taglib problem with language entities)

2003-02-04 Thread mech
You can usually use the attribute (e.g. with bean:write): filter=true if you want special characters converted into html substitutions or filter=false if you like to format your view with br tags. Unfortunatally, i hate converting all my German language Umlaute into auml; uuml; etc. in my

RE: HTML entities (general Struts taglib problem with language entities)

2003-02-04 Thread mech
- Von: mech [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. Februar 2003 11:42 An: 'Struts Users Mailing List' Betreff: RE: HTML entities (general Struts taglib problem with language entities) You can usually use the attribute (e.g. with bean:write): filter=true if you want special

RE: HTML entities (general Struts taglib problem with language entities)

2003-02-04 Thread mech
Hey Michael, that's right, if you define your JSP content as utf-8, it will be interpreted as utf-8. So your text comming from the DB *must* be utf-8 as well. If you use a different character set in you DB, you could use a transformer, which transforms this character set into utf-8.

RE: HTML entities (general Struts taglib problem with language entities) - solved: DB driver issue

2003-02-04 Thread mech
, it was the MySQL driver and my lack of reading the documentation (well that's an answer for nearly all question...) Anyway thx Michael -Original Message- From: mech [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 4. Februar 2003 13:08 To: 'Struts Users Mailing List' Subject: RE: HTML entities (general

RE: HTML entities (general Struts taglib problem with language entities)

2003-02-04 Thread mech
Firstly: bean:write filter=true doesn't transform ΓΌ into uuml; it only transforms , , and into its HTML encoding. You can see that in the source code of org.apache.struts.util.ResponseUtils I almost thought that ;-) Secondly: If you're using charset=ISO-8859-1 your German special

Design question: Model component using Business logic beans

2003-02-03 Thread mech
Hi, currently I'm doing all my business logic in my Action classes. So besides the execute() method I might have some helper methods like populateFormBean() or I even put those stuff in the execute() directly if it wasn't to much. I have to do quite a lot of database queries to populate the form

RE: Design question: Model component using Business logic beans

2003-02-03 Thread mech
regarding use of the ActionError object in your business logic but it could be an alternative path that you could opt for. -Original Message- From: mech [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 1:05 PM To: [EMAIL PROTECTED] Subject: Design question: Model component

RE: Help with indexId property of logic:iterate!

2003-01-29 Thread mech
What you are doing can't work. Simply because indexId is not for writting something in. Instead a scripting variable of the name you specify in indexId will be created containing the current index of the iterate loop. Suppose you have logic:iterate ...indexId=testid Then inside of the iterate tag

RE: [Newbie] ActionForm prepopulation

2003-01-29 Thread mech
I also often call a .do first and don't feel anything bad about it. How else could you prepopulate a form bean to be used by a view? By putting the database access for view creation into jsp? Most ugly. I have quite a lot of calls to .do?id=123 On these id's I query my database mostly receive a

RE: Newbie: Action class - how to make it thread safe?

2003-01-26 Thread mech
Your Action class seems to be thread-safe since you only use variables within the perform method and no Action class variables. But I guess that you encounter concurrent access to your database, although I don't know what is done in the DAO class, if it's transaction safe or whatever. If I would

bean:define, logic:equal problem with rt expr values

2003-01-24 Thread mech
Hi, I'm using Struts 1.1b and want to use logic:equal to compare values and I'm totally stuck when I try to use no constant for the value attribute... My code this: I have a formbean named ListExperimentForm with a getter method getTopics() to return a collection of Objects each containing a

RE: bean:define, logic:equal problem with rt expr values

2003-01-24 Thread mech
Thanks for saving my last hairs... that put me on track. But actually I got a compiler error this time: cannot resolve symbol symbol : method setValue (int) location: class org.apache.struts.taglib.logic.EqualTag _jspx_th_logic_equal_3.setValue( myint ); ^ 1 error Obviously there is no

RE: db connection pool question

2003-01-22 Thread mech
I can't tell for Oracle, but for MySQL and the Struts Connection Pool you have to set some kind of autoReconnect=true for your connection url setup. Otherwise your connection pool will contain only stale connections after a certain timeout. MySQL kicked me out after 8 hours of inactivity.

RE: db connection pool question

2003-01-22 Thread mech
? The advantage is that you don't need to worry about container specific datasource setup. David From: mech [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: db connection pool question Date: Wed, 22 Jan 2003 20:09

Problem with JDBC Struts Connection Pool (possible to reconnect?)

2003-01-17 Thread mech
$ControlRunnable.run(ThreadPool .java:530) at java.lang.Thread.run(Thread.java:536) (For the JDBCRealm Tomcat seems to reconnect, so authentification works on the second try again...) 2003-01-17 12:29:00 JDBCRealm[/praksis]: Username mech@praksis successfully authenticated EXCEPTION debug

FW: Problem with JDBC Struts Connection Pool (possible to reconnect?) : Solution/Fix: J/Connector kills unused connections after 8 hours

2003-01-17 Thread mech
:3307/praksis?autoReconnect=trueamp;maxRec onnects=5amp;initialTimeout=2amp;profileSql=true/ Thanks anyway. Michael -Original Message- From: mech [mailto:[EMAIL PROTECTED]] Sent: Freitag, 17. Januar 2003 12:52 To: '[EMAIL PROTECTED]' Subject: Problem with JDBC Struts Connection Pool

RE: Wanted a Good Struts Book

2003-01-08 Thread mech
for, but not really more. As far as I know on Amazon you can now find some newer books. Hopefully better. mech -Original Message- From: Alok Pota [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 8. Januar 2003 01:16 To: [EMAIL PROTECTED] Subject: Wanted a Good Struts Book I am about

RE: Struts based app. and SSL doesnt work together

2003-01-03 Thread mech
Maybe describe your enviroment more. Because I have similar situation, but have no problem with my Tomcat 4.1.18, mod_jk 1.2.0, Apache 1.3.27 setup (opensa.org Apache) I'm developing a Struts App which is using both http and https (mainly for login). I mainly use html:form - post, sometimes I use

RE: Need help for java IDE

2003-01-03 Thread mech
I tried Lomboz, but actually you need it only if you use an application server like JBOSS. Just for Tomcat's purposes you can try: Sysdeo Eclipse Tomcat Launcher Plugin http://www.sysdeo.com/eclipse/tomcatPlugin.html Not such feature overloaded like Lomboz, if just writing webapps, but does the

RE: Actions invoked by links have more flexibility than those driven by forms?

2003-01-02 Thread mech
On the other hand, with html:form I don't seem to have the same functionality. I don't see a way to refer to a parameter or set of parameters in the html:form tag so that I can pass through parameters that way. So I pretty much have to pass through anything I want to send to an action

Difficulties with form bean validate() for pre-populated form beans

2002-12-29 Thread mech
Hi, I'm using Struts 1.1b and one part of my webapp is a registration page for new users. I have to say that this thing works already somehow, but not really as I'd like to have it. Currently I'm not using the validate() method in my form bean and I'm doing all form validation in the action

RE: Use of Struts 1.0.2 template tag doesn't display jsp errors in included files

2002-12-13 Thread mech
Solved the problem myself by migrating to Struts 1.1b2 and using the tiles instead. Now I get an jsp error message in each tile and can debug more easily. Also solved some other difficulties with pathes to resources that can now be context relative instead of template relative... -Original