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
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
-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
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:
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
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
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
-
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
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.
, 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
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
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
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
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
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
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
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
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
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.
? 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
$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
: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
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
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
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
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
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
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
28 matches
Mail list logo