Greetings,
I have one more doubt, if one instance per module/application, Is not a
performance bottleneck.
Rgds,
Sen
Greetings,
Thanks Mr Craig and Mr Niall.
Yes we are having sub application modules and we are having one common
action Class for some action mappings (design based on
No, remember that multiple threads for different requests are going to be
simultaneously excuting in the action. (So be sure to keep your code
thread-safe (stay away from using class member variables etc...) just like
you would with a servlet.))
-Original Message-
From: Senthivel U S
..this is the JSP that gives me the tag nesting error:
%@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html %
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
%@ taglib uri=http://java.sun.com/jstl/fmt;prefix=fmt
%
%@
I get no error, but it doesn't find the text in this resource bundle, which I declared.
I use the commons-validation-1.1.2.jar
(http://www.apache.org/~martinc/validator/v1.1.2/)
And I take a look at the dtd. arg0 is deprecated. Use arg position=0/ instead.
-Ursprüngliche Nachricht-
Hi,
the resource attribute is true or false. the bundle attribute is to use for alternate
resource bundle.
bundle The resource bundle name that the key should be resolved in.
resourceIf set to false, the key is taken to be a literal
value rather than a bundle key.
Hi
Sorry typo ! In the validation_1.1.dtd there is no bundle attribute for
the field! Where did you get this from ?
Hermod
-Opprinnelig melding-
Fra: Otto, Frank [mailto:[EMAIL PROTECTED]
Sendt: 7. april 2004 10:05
Til: 'Struts Users Mailing List'
Emne: AW: AW: AW: SV: validation with
Please take look at this url:
http://jakarta.apache.org/commons/dtds/validator_1_1.dtd
Regards,
Frank
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. April 2004 10:31
An: [EMAIL PROTECTED]
Betreff: SV: AW: AW: SV: validation with
Hi
You are right- In that dtd there is a reference to bundle. I'll have a
look at it.
Hermod
-Opprinnelig melding-
Fra: Otto, Frank [mailto:[EMAIL PROTECTED]
Sendt: 7. april 2004 10:35
Til: 'Struts Users Mailing List'
Emne: AW: AW: AW: SV: validation with struts 1.2
Please take look
I was actually asking about the DTD doctype reference - did you get it
from an example? An example validation.xml file?
I am checking my problem - my validation works client-side except that I
don't get the string from the bundle - just a en_US.blalblabla???
But server-side it is refusing
Hi,
I have this line in my jsp
table
logic:iterate id=courseDetailsLocal name=employeeDetailsForm
property=courseDetailsArray indexId=ctr
tr
tdhtml:text name=employeeDetailsForm property='%=
courseDetails[ + ctr + ].name %'//td
/tr
/logic:iterate
Hi ,all
I'm using Struts 1.1. and a Database is accessed from
both of web application(tomcat5 ,no AP server) on struts and VB client.
Message DB table is used from both,
which has message id column and message column like {0} field is required
Does anyone use Resource bundles and DB Table
Hello All,
While using logic:iterate in my JSP page if my property that I define in
my form is of type Collection rather than of type list it does not seem
to be working?
Any inputs?
Thanks,
VJ
DISCLAIMER:
This message contains privileged and confidential information and is
Hi,
you have to extend your form from ValidatorForm.
Frank
-Ursprüngliche Nachricht-
Von: Zakaria khabot [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. April 2004 12:56
An: Struts Users Mailing List; Struts Developers List
Betreff: validation.xml
Hi all,
How to call the validator
But, I am wondering what is the best way to
get message from DB using Struts functionality as much as possible.
You can always use DBMessageResources. Google is your friend!
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL
and the validate=true or was that so obvious it didn't need mentioning...
sandeep
-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 7:08 AM
To: 'Struts Users Mailing List'
Subject: RE: validation.xml
did you subclass from
Daniel Perry wrote:
This works ok for that scenario, but what about if you need each item out of
the list? eg, to iterate through a list of names:
logic:iterate name=names id=name
trtdbean:write name=name//td/tr
/logic:iterate
Gives one column
trtdname1/td/tr
trtdname2/td/tr
trtdname3/td/tr
I am not sure, but there is a type attribute in the config file. Maybe the suffix of
the what you put there is how it defaults?
sandeep
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 8:45 AM
To: Struts Users Mailing List
Subject: Re:
So, are there implied catches in there for SQLException (I assume there
are)?
In the innermost try block, does the catch rethrow the SQLException so that
it cascades to the outer blocks?
Just trying to understand the model.
Dean Hoover
Larry Meadors wrote:
Yes.
You really might want to
If you're using Tomcat 5, and you use the Servlet 2.4 schema in your
web.xml, then you can just do this:
forum:hasContent content=${attribute}/forum:hasContent
If you're not using Tomcat 5 (or some other JSP 2.0 container), then
it's a little harder.
-Original Message-
From: Ricky
Just to be up front, I will tell you now that I am NOT an O/R fan. :-)
I think that when you have 50 tables in your db and your app is just a big
gui front end Hibernate is very good. Suppose in one of this 50 tables
a field is added. With iBatis you have to re-write 4 methods (update,
insert,
Hi all,
Closing all ResultSets, Statements, Connection in the finally block fixed my app that
stops crashing.
Thanks everybody...
Marcelo
On Wed, 07 Apr 2004 09:00:16 -0400, Dean A. Hoover [EMAIL PROTECTED] escreveu:
De: Dean A. Hoover [EMAIL PROTECTED]
Data: Wed, 07 Apr 2004 09:00:16
Hi Stjepan,
From what I understand, you will have a much easier time implementing
validation for your forms if you use only strings. For example, receiving an
integer value ABCDEFG might cause unexpected results.
This is just my understanding. If theres more to it, them I'm happy to learn
:)
[EMAIL PROTECTED] 04/07/04 6:11 AM
Just to be up front, I will tell you now that I am NOT an O/R fan.
:-)
I think that when you have 50 tables in your db and your app is just a
big
gui front end Hibernate is very good. Suppose in one of this 50 tables
a field is added. With iBatis you have
Depends on your situation.
If the SQL Exceptions are expected (i.e., a trigger could fail) then
yes, you will want to catch that and send the message back to the user.
However, if you are thinking JDBC is the way to go, you really should
use something like iBATIS that hides this kind of stuff
lazy loading
...which has been in iBATIS for a long time. You can define those in
your sql map and it will do it just fine. :-)
Ops, I missed that! In fact, it has been added May 21, 2003 ( 1.2.5-Beta2)
Very good! i'm going to download the manual (again) and read it because now
iBatis
Hi!
I've been working for two entire days trying to move my Struts RC1/Tiles
based apps (I have to use struts RC1 from Feb 22 2003) from Tomcat 4.0.24 to
Tomcat 5.0.19 but I'm having performance problems related to Tiles
includes.
Tomcat 5 is taking about 3-4 seconds to render each tile from my
Andreas Solarik wrote:
Hi Stjepan,
From what I understand, you will have a much easier time implementing
validation for your forms if you use only strings. For example, receiving an
integer value ABCDEFG might cause unexpected results.
This is just my understanding. If theres more to it, them
I have j2sdk1.4.2. Exact version information as follows.
java version 1.4.2
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
On Tomcat 4.0-b7, Tomcat 5.0.7 Tomcat 5.0.19 JSP pages couldn't
compile while servlets works
Two comments:
1) I'm using Ibatis SQLMaps on a smallish web project and they're great. I
had a basic persistence layer working in an hour. I think they're a good
middle ground between JDBC and full-on O/R mapping. Sometimes working
directly with the SQL is an advantage, especially when dealing
Why are you storing the message resources bundle under the MESSAGE key?
I am not sure what impact this would have. Try removing that line (so
that the default key gets used). Also make sure that resources file is
in the correct location/classpath.
[EMAIL PROTECTED] wrote:
I'm having a problem
A quick question, have you set validate=true in your action mapping?
Saul
-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 11:31 AM
To: 'Struts Users Mailing List'
Subject: Problem with struts validator
Hi all,
I am
Hi,
I am a newbie to using the struts framework and am trying to get Validation
framework to work. It seems to be working fine,ie if error checks fail it redirects me
to the page where it should but does not display the errors. I have read over the
archives and corrected couple of things I
Yes
I have also done some modifications, to try to write my own validate
method, and it gets called successfully.
I made my form extends DynaValidatorForm , I am calling super.validate
as well as doing some processing afterwards..
Well, It seems that super.validate results in nothing...
I
Hi all,
Is there a way to simply print out session values, such as through the
bean:write tag or something like that? If there is, could you please
share? It seems like it should be easily done, but I can't find
anything that describes how to.
Thanks!
Andy
One thing I noticed is you're missing the argument for the required
message, ie.
arg0 key=.. resource=true/false / in your validation.xml file.
-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 11:57 AM
To: 'Struts Users Mailing
IMO, O/R is ok for small projects with few users, or for hello world.
Once you have a complex system or lots of users, one should use E/R
(such as iBatis) so that you can have fine grain control of the SQL.
Some developers think that one can solve data model layer issues in
Java. The more
Hi,
Two thoughts. First, do you have the struts tag declaration in your jsp?
second, if you want to display error messages, I think you should set
message=false in your logic:messagesPresent tag. And lastly, try to
use a simple jsp to make it work first, then use xsl.
HTH,
Saul
-Original
Saul Q Yuan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
One thing I noticed is you're missing the argument for the required
message, ie.
arg0 key=.. resource=true/false / in your validation.xml file.
And as per my earlier post with this same problem, do you have the
HI,
Yes, also the html:error tag is there.
Regards
marco
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Skip Hollowell
Sent: 07 April 2004 17:29
To: [EMAIL PROTECTED]
Subject: Re: Problem with struts validator
Saul Q Yuan [EMAIL PROTECTED] wrote
Andy,
Put this in your jsp page. If you create a JSP
template file that includes this code and then use it
as a basis for developing new JSP pages, you will be
able to see what is in your request, session and
ActionMessages. I found it in this article on
javaboutique by Keld H. Hanson:
Hi all,
I have a question regarding tiles. One of my page uses a layout like
body leftmargin=0 rightmargin=0 bottommargin=0 topmargin=0
marginwidth=0 marginheight=0 bgcolor=#E6E6E6
onUnload=closeAllSubwindows()
onLoad=initWin(document.forms[0])
table border=1 frame=void
After reading lots of online docs and parts of 'Struts in Action' I decided to stay
with my implementation of application managed security. However I like to make use of
a new feature introduced in Struts 1.1: role checking for actions.
As far as I understand it, I need to make my own
Hello,
Is the api for 1.1 available anywhere other than in the source? I can find 1.2 dev
and 1.0, but not 1.1.
Thanks,
Janice
I have need for every page in my web app to be secure. What I originally did
was extend the Action class to make a secure action class. The
SecureAction's perform method validates that the user is logged in and if
not, sends them to the login page. All actions in my app extend
SecureAction. To
Many thanks for that information. Exactly what I was looking for!
Tom
- Original Message -
From: Saul Q Yuan [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 7:29 PM
Subject: RE: Container vs application managed security - Role checking
Is there an easy way to check that at least one of multiple fields is
filled in with the validator? Kind of like:
if(username != null || firstname != null || lastname != null)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
It isn't clear what you have to work with. Is services a map of some sort,
or is it a collection.
Either way you should use the iterate tag in the logic tag set.
If you could explain the data structure better, it would be easier to help.
-Original Message-
From: Amin Lalji
On Wednesday, April 07, 2004, at 01:40PM, Janice [EMAIL PROTECTED] wrote:
Hello,
Is the api for 1.1 available anywhere other than in the source? I can find 1.2 dev
and 1.0, but not 1.1.
AFAIK you have to download it as a package from Sun's site... that's how we do it,
anyways.
I got it to work by using the following as action
action path=/logon forward=/WEB-INF/jsp/index.jsp/
And adding http://localhost:8080/loa/logon.do
However the global forward did not work. Am I doing something incorrect
I am doing with that or is it supposed to work only with
If you are using struts, why go back to a .jsp page? You should be going
back to a .do page.
Since the .do is a struts action it will be able to get to your jsp page.
Todd Bryant [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have need for every page in my web app to be secure.
Make your input action an error page, which just has the error and no
sensitive data and make a success forward that you only send the user to
if everything checks out.
Todd Bryant wrote:
I have need for every page in my web app to be secure. What I originally did
was extend the Action class
That is a good question. The problem is the way struts processes requests.
The first thing struts does when receiving a request to an action is to fill
in the formbean associated with the action. Then it runs the validate()
method of the formbean. If the method returns a non-empty ActionErrors
That is a good suggestion, and I had thought of that, but the problem is
that a user would have to go from the error page back to the page they were
on. This would make it prohibitively difficult to interact with this
particular app (too many clicks).
-Original Message-
From: Paul Barry
How do I say continue In the
Logic:iterator tag
Thanks
Panchasheel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Maybe you should be handling your security in the request processor.
Have a method like this:
protected ActionForward processActionPerform(
HttpServletRequest request,
HttpServletResponse response,
Action action,
ActionForm form,
ActionMapping mapping)
Im not sure how to do it with the iterate tag, I use the c:forEach tag in
the jstl taglib.
It goes something like this:
Assume service is a bean with accessors getDocuments ( ) and getId ( )
Assume document is a bean wit accessors getId ( ) and getName ( )
c:forEach var='service'
Interesting. I have never looked at the request processor before. The main
question I have is - is the formbean populated BEFORE the request processor
runs or after? If the form bean is populated before the method you mention,
then the request process will still be circumvented by the formbean.
Panchasheel,
Use the Logic: testing tags (equal, notEqual,
lessEqual, etc.) or the JSTL if tag.
Regards,
Richard
--- Gandle, Panchasheel [EMAIL PROTECTED] wrote:
How do I say continue In the
Logic:iterator tag
Thanks
Panchasheel
Why don't you tell your action not to validate, and call validate yourself
in your action. Seems like you will have all of the control you need.
-Original Message-
From: Paul Barry [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 3:18 PM
To: Struts Users Mailing List
Subject:
In our Struts-/Tile-based web application, we have troubles navigating between
modules. A simplified scenario looks like this:
Default module - Portal page, login,...
Module users - User management
Module admin - Administration settings
...
All pages are based on one basic Tiles definition,
Try this :
tiles:insert definition=tiles.content.common.downloadHeader
tiles:put name=category value=Webpage /
/tiles:insert
-Original Message-
From: Mark Mandel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 5:50 PM
To: [EMAIL PROTECTED]
Subject:
Hi,
I have this line in my jsp
table
logic:iterate id=courseDetailsLocal name=employeeDetailsForm
property=courseDetailsArray indexId=ctr
tr
tdhtml:text name=employeeDetailsForm property='%=
courseDetails[ + ctr + ].name %'//td
/tr
/logic:iterate
Hi,
I have this line in my jsp
table
logic:iterate id=courseDetailsLocal name=employeeDetailsForm
property=courseDetailsArray indexId=ctr
tr
tdhtml:text name=employeeDetailsForm property='%=
courseDetails[ + ctr + ].name %'//td
/tr
/logic:iterate
David Friedman wrote:
What is the contents of your hibernate.properties file (or hibernate.cfg.xml
file) and in what directory did yout place it? Also, how did you
create/instantiate the SessionFactory?
Regards,
David
I used the hibernate.properties file as per the exemple :
Personally I prefer using a ServletContextListener myself.
Mark
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Thursday, 8 April 2004 12:06 PM
To: Struts Users Mailing List
Subject: Re: Application Context Variables
Sounds good to me.
- Original Message
It sounds like you didn't configure the primary key generation
correctly. I believe that MySQL supports identity keys, not
sequences. Your generator tag should look like:
generator type=identity/
OR
generator type=native/
Go here for more:
Nick Heudecker wrote:
It sounds like you didn't configure the primary key generation
correctly. I believe that MySQL supports identity keys, not
sequences. Your generator tag should look like:
generator type=identity/
OR
generator type=native/
Go here for more:
The next thing I'll suggest is changing your mapping to:
id name=id column=id type=java.lang.Long unsaved-value=null
If that still doesn't work, your best bet is to hit the
Hibernate forums: http://forum.hibernate.org/
hibernate-mapping
class name=com.edhand.hibernate1.Item table=item
Please someone help me on this.
kamakshya mishra [EMAIL PROTECTED] wrote:Hi,
The action name is the same as in the xml. Actually there are lot of string fields in
the form. If i remove this particulat code and submit then it works fine. The form
comes back prepouplated with the values in the
Nick,
Your problem is the type set in your id.../ tag. From (RTFM) the page:
http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping-
s1-4--generator
See the identity description, which reads:
identity - supports identity columns in DB2, MySQL,
MS SQL Server, Sybase and
David Friedman wrote:
Nick,
Your problem is the type set in your id.../ tag. From (RTFM) the page:
http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping-
s1-4--generator
See the identity description, which reads:
identity - supports identity columns in DB2, MySQL,
MS
David Friedman wrote:
Nick,
Your problem is the type set in your id.../ tag. From (RTFM) the page:
http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping-
s1-4--generator
See the identity description, which reads:
identity - supports identity columns in DB2, MySQL,
MS
HI All,
Is there any way of avoiding struts.jar entry in the weblogic start
up script.Even through the struts.jar is present in the part of war file to
load some plug-in files it requires an entry in start up command.Can any one
help me out, do deploy the ear without any entry in the start
73 matches
Mail list logo