Jason Long wrote:
I am still no closer to a solution to my problem with tiles. I will explain
the scenario again in hopes that someone will provide some insight into my
problem.
i can't see anything with what you've provided. you should
try getting this working with the smallest possible
You have to use some J2EE design patterns to achieve this:
http://java.sun.com/blueprints/patterns/catalog.html
1) Put all of your business logic in a Business Delegate, i.e. the code
that accesses to XML files (I am supposing that you know everything about
XML manipulation, otherwise it will be
The problem is that I am trying to use a variable defined in a loop. It
must be in page scope. I got the following to work without using any
tile:put/ or tiles:importAttribute/ in any of my pages. When I tired to
use c:set scope=page/ this approach failed. Request and Session scope
worked just
The problem is that I am trying to use a variable defined in a loop. It
must be in page scope. I got the following to work without using any
tile:put/ or tiles:importAttribute/ in any of my pages. When I tired to
use c:set scope=page/ this approach failed. Request and Session scope
worked just
Why are you trying to use page scope?
I guess it will work for session
-Original Message-
From: Jason Long [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 12:20 AM
To: 'Struts Users Mailing List'
Subject: RE: Tiles scope headache assistance still needed.
The problem is that
Thank you Erik, n Niall
As per Niall's suggestion, i changed minLength to all small
minlength...n bingo it worked
then I also used maxlenght ( with arg1, it also worked).
now this consideration that the variable name should be all small was not
something i could digest, coz we are specifying
Hi,
I have one DispatchAction type action [/Person.do] with the following
methods list,populate and update:
1) Code inside list method populates the list of all users, sets this
list inside request and redirects this request on [PersonList.jsp] page
which makes persons presentation. Each person
I tried to search the list archives on the site but it says there's no
text search available. Hopefully I'm not repeating something here.
On one machine, the following works fine but on another on Tomcat
5.0.19 the bean:message inside the html:link doesn't work. It gives the
error:
Hi! I'm trying to add an ActionMapping definition dinamically (using
ModuleConfig.addActionConfig method), but I get an IllegalStateException
(configuration is frozen). Is there a way to do what I want?
Thanks in advance.
-
To
Hi,
in order to keep it small, am I allowed to distribute my web application
only with parts of STRUTS? For example if I in my application do not use
tiles or nested taglib, am I allowed to distribute application only with
html, bean and logic taglibs or I have to take or leave the complete
Hi,
Though I couldn't get your problem completely but still I will try to clarify
your doubt. Tag libraries are provided to leverage the struts inbuilt features.
It doesn't mandate though that you should use tag library as part of your
application.
Even without using taglib, you can bring up
Hi all
I have a linux machine that has not HTTP connection so when tomcat try to
validate my struts-config.xml I got problem for the struts-config dtd header ;
I mean :
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 1.2//EN
Hi,
Try
http://struts.apache.org/dtds/struts-config_1_2.dtd
In this case, i am not sure, you will use the dtd file contained inside
the struts.jar (in particular inside the org/apache/struts/resources
directory).
BR
/Amleto
-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL
Hi everyone.
I need a way to validate a time field in a jsp page using the Struts
framework... I've already did it with dates and other formats, but I'm
searching for a way to validate time fields and found nothing.
The form have two time fields, and the format is HH:mm:ss.
If anyone can help
I need the absolute path ...cause the machine has not a IP connection.
any idea please?
- Initial Header ---
From : Amleto Di Salle [EMAIL PROTECTED]
To : Struts Users Mailing List user@struts.apache.org,[EMAIL
PROTECTED]
Cc :
Date : Mon, 21 Feb 2005
Have you tried the previous url?
I think that, if you use the
http://struts.apache.org/dtds/struts-config_1_2.dtd, the digester (used
inside struts) validates the struts-config.xml file using the dtd
contained in the struts.jar.
BR
/Amleto
-Messaggio originale-
Da: [EMAIL PROTECTED]
Dear [EMAIL PROTECTED],
If I recall correctly, discussions on this list have covered that the Struts
configuration file is parsed by a parser that knows how to check the .jar
file for the DTD IF you specify it as recommended below. IF that does not
work, you can change the DTD from PUBLIC to
I tried but i got Unknown host exception.It try to connect there without
success obviosly..no hhtp connection on that machine...
so i need an absolute path to that dtd...
-- Initial Header ---
From : Amleto Di Salle [EMAIL PROTECTED]
To : Struts Users Mailing List
Check out the datagrid library at
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
If all you are looking for is pagination, sorting and ordering from the
database this is a good fit. It does not have all the bells and whistles
displaytag has, but is a simple and clean
It can be done, but I suspect everyone on the list will tell you not to
do it, and for very good reasons.
However, I'm one of those here's your rope sir, try not to hang
yourself with it kind of guys, so here's how...
The ModuleConfigImpl has a member configured. This is what determines
if
What is your container? I'm using Struts v1.2.4 under Apache Tomcat 5.0.XX
and it worked fine after I disabled my Internet connection and started
Tomcat using this:
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 1.2//EN
tomcat 5.5.7
Still have problem on linux machine...Should I put struts.jar in my classpath?
I still have it!
Help!
-- Initial Header ---
From : David G. Friedman [EMAIL PROTECTED]
To : Struts Users Mailing List user@struts.apache.org
Cc :
Date : Mon, 21
Here's an extract from my sql config file:
###
insert id=insertModule parameterClass=com.test.dto.Module
INSERT INTO tbl_Module ( module_id, module_credits, module_semester,
module_level, module_description )
VALUES ( #id#, #credits#, #semester#, #year#, #description# )
You have two fields with the same name in the same form?
Sorry if I've misunderstood.
On Mon, 21 Feb 2005 15:35:25 +0800, Anthony Hong
[EMAIL PROTECTED] wrote:
I have two fields with same name
input name=customerName type=text/
input name=customerName type=text/
Could I use validation.xml
Putting your struts.jar in your classpath is the wrong way to go. You need
it in either your WEB-INF/lib webapp directory, or in
$TOMCAT_HOME/shared/lib. Putting it in the classpath or
$TOMCAT_HOME/common/lib should make it visible ONLY to the Tomcat base
classes, not to your webapp(s).
Exactly. I have two fields with the same name in the same form.
Do you know how to define the validation rules?
On Mon, 21 Feb 2005 15:04:59 +, Tim Christopher
[EMAIL PROTECTED] wrote:
You have two fields with the same name in the same form?
Sorry if I've misunderstood.
--
Anthony
What are the advantages and disadvantages of choosing ActionForm vs.
DynaActionForm?
I ask this because I always found DynaActionForm to be more valuable ...
until a co-worker picked my brain. He did not like the lack of type
information at compile time. I agreed. Also, I don't know how well
U write less code with dynaActionForm and u have all the form definitions
centralized in one file struts-config.xml.
Use it !
Regards
-- Initial Header ---
From : Benedict, Paul C [EMAIL PROTECTED]
To : struts-user@jakarta.apache.org
Cc :
Date : Mon,
Tim,
Without seeing the entire sqlMapConfig.xml it's going to be hard for anyone
to figure out exactly what the problem is. You can get more direct help by
posting at [EMAIL PROTECTED]
I think you also need a DataSource property in your transactionManager.
This is what I use. I don't set
I really would not give too much weight to the blog you linked to. If
you've read the comments of the readers, you'd see that some of his
arguments aren't really that strong, and some are even totally
incorrect.
Personally, I use DynaActionForm for each form that it can support.
Once I have a
Hubert,
I've had apps where I had
more ActionForm subclasses than DynaActionForm, and this was due to
requirements that DynaActionForms simply couldn't handle.
If possible, please explain when dyna forms do not meet requirements. I am
very interested in knowing their limitations, as I already
The DynaActionForm is great if you like to write scripting type code. I'd
rather use encapsulation. Otherwise you'll have the same code repeated in a
lot of your actions.
-Original Message-
From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 11:04 AM
To:
Wouldn't a parser handler that could build an ActionForm skeleton during
a parse of a form JSP be better than either one?
Erik
Hubert Rabago wrote:
I really would not give too much weight to the blog you linked to. If
you've read the comments of the readers, you'd see that some of his
arguments
Hi folks,
Three days until iteration deadline, and I have a frustrating bug! It's
almost textbook - I have a simple logon page (username/password) which
includes a html:reset button which works nicely ... unless I press
'submit' with known bad input and come back to the form with Validation
I didn't mean better than either one. I meant better than building
your own ActionForm by hand, and thus better than using Dyna form.
Erik
Erik Weber wrote:
Wouldn't a parser handler that could build an ActionForm skeleton
during a parse of a form JSP be better than either one?
Erik
Hubert
By using good frameworks like iBATIS (which has great support for pagination
and dynamic queries) and design patterns pertinent to the requirement, the code
in the layers you can be kept to a minimum. The web application at
workeffort.dev.java.net does all kinds of pagination, ordering sorting
Well, I certainly won't be able to list them all.
The one I came across is a complex structure. True, DynaActionForms
can support really complex structures, and this is especially true
when using Niall's Lazy*Forms. However, the learning curve and
maintenance can get complex as well. Mine had
Can you elaborate?
Do you mean a utility that would parse incoming form values and then
map them to my business objects? :)
On Mon, 21 Feb 2005 11:48:33 -0500, Erik Weber [EMAIL PROTECTED] wrote:
I didn't mean better than either one. I meant better than building
your own ActionForm by hand,
Any other takers? If any Struts committers have opinions, please share them.
Also, how well does Xdoclet work with dyna forms?
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 11:49 AM
To: Struts Users Mailing List
Subject: Re: ActionForm vs.
First, let me say that I understand how Dyna forms work, but I don't use
them. If I'm way off here or suggesting something that isn't possible,
or already has been done, take it easy on me. :)
I was suggesting that perhaps a parser could read a JSP that contains
html:form, and treat that form
That would only get you an object to hold values, right? You'd still
need to put validation rules somewhere. With an ActionForm, its
validate() method should contain this. Of course, it could delegate
it somewhere, but you'd be maintaining that, instead.
This also would reduce ActionForm
Hubert Rabago wrote:
That would only get you an object to hold values, right? You'd still
need to put validation rules somewhere. With an ActionForm, its
validate() method should contain this. Of course, it could delegate
it somewhere, but you'd be maintaining that, instead.
I assume you
The html:reset/ tag makes no attempt at remembering the original
values of the ActionForm itself, it just includes an HTML input element
of type 'reset'. All this does is to remove user edits from the current
page. IOTW, the behavior you are describing is exactly as expected.
-- Jeff
David
Neil Aggarwal wrote:
Graham:
I don't like depending on JavaScript for this.
I think your modification to html:base would be perfect.
I have voted for it.
Thanks.
G.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
XDoclet works great with DynaForms. Here's a link to a doc I wrote about it:
http://www.systemmobile.com/articles/XDocletDynaForms.html
On Mon, 21 Feb 2005 12:09:14 -0500, Benedict, Paul C
[EMAIL PROTECTED] wrote:
Any other takers? If any Struts committers have opinions, please share them.
snip
After update, I need forwarding/redirecting data back to
Person action with method=list.
/snip
No, you don't. Just put the required code into the update and forward
to wherever you want to forward. Why forward when you need more
processing? Do the processing, then forward.
Jack
--
On Mon, 21 Feb 2005 13:30:04 +0100, Stjepan Brbot [EMAIL PROTECTED] wrote:
Hi,
in order to keep it small, am I allowed to distribute my web application
only with parts of STRUTS? For example if I in my application do not use
tiles or nested taglib, am I allowed to distribute application only
Change scope=request to scope=session in order to remember!
Jeff Beal schrieb:
The html:reset/ tag makes no attempt at remembering the original
values of the ActionForm itself, it just includes an HTML input element
of type 'reset'. All this does is to remove user edits from the current
page.
I think you misunderstood the original problem. Here's the sequence of
events that David *wants* to happen:
1) ActionForm gets pre-populated with intial values and/or values from
database
2) User makes changes to the form that cause validation errors
3) The user sees their mistakes, hits
Ok overlooked the main problem in that case :(
Jeff Beal schrieb:
I think you misunderstood the original problem. Here's the sequence of
events that David *wants* to happen:
1) ActionForm gets pre-populated with intial values and/or values from
database
2) User makes changes to the form that
David,
What you need to do is to create your own custom handling of Reset.
In the case of your form, I would NOT use a HTML:Reset, instead make
a HTML:SUBMIT but have a javascript snippet that sets a value for a
hidden form field, lets call the hidden field action and the value
would be 'reset'.
All
I'm searching for (as the title suggests) a simple Tiles tutorial.
I have found the one by Cedric D, but I think it's assuming more
knowledge than I have
(http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf)
Can anyone point me?
--
-Dave
[EMAIL PROTECTED]
You may try this one, it it a working example.
http://www.laliluna.de/first-steps-struts-tiles-tutorial.html
This tutorial is using Eclipse with the MyEclipse plugin. If you do not
have this plugin, you may do the web project configuration and
deployment in a different way.
Kind Regards
I have two tiles related links in my favourites - one is the link you
already have and the other is
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html .
I found it to be a good introduction to Tiles when I was first looking
in to it. Note that the source code for all of the
Cheers for the advice.
I've decided I'm going to start again with iBATIS and try to follow
the jPetStore example to get it to work (instead of the one at
http://www.reumann.net/struts/ibatisLesson1/step1.do)... I just have
a quick question about your reply though:
property name=DataSource
At 3:03 PM -0500 2/19/05, David G. Friedman wrote:
Joe,
Your comment on testing CoR (Struts v1.3 or struts-chains) interests me.
How would that be done? Do you suggest JUnit, TestNG, or something else? sI
looked a little at StrutsTestCase and something about it bothers me, but
what I can't
At 12:39 PM +0100 2/21/05, Diego Manilla Suárez wrote:
Hi! I'm trying to add an ActionMapping
definition dinamically (using
ModuleConfig.addActionConfig method), but I get
an IllegalStateException (configuration is
frozen). Is there a way to do what I want?
Well, you haven't really explained
I am providing here the solution I found to my problem with tiles scope.
The variable quote and row in c:forEach are in page scope. This is not
available to other tiles. By using c:set I can either set these variables
in request or session scope and it will work just fine. Does anyone know of
a
I am providing here the solution I found to my problem with tiles scope.
The variable quote and row in c:forEach are in page scope. This is not
available to other tiles. By using c:set I can either set these variables
in request or session scope and it will work just fine. Does anyone know of
a
I defined a file ApplicationResources.properties under
com.xxx.software.xxx.resources, which contains the following lines:
prompt.password = The password you entered does not satisfy the basic
requirement
prompt.userName = You must enter a user name
in my struts-config i have
message-resources
I have the following controller class.
I would like to change the parameter of
createMenuItem dynamically based on the
user group after login.
How can the controller class of Tiles get the attribute of
of other Action class?
Thanks
public class MyMenuAction implements Controller {
I've never heard of having two fields with the same name in the same
form - what are you hoping to achieve that you couldn't do with naming
them different things? I can't see how any server process could be
expected to tell the difference either.
Tim
On Mon, 21 Feb 2005 23:19:11 +0800, Anthony
Hi folks,
I wish to construst a menu in jsp, and the menu has the following
characteristics:
1.it has a two level hierarchy,
Paren1-child1
-child2
paren2-child3
-child4...
2. some of the menu items might change/appear/not shown on different
parent jsp
The ???enUS.errors.required??? means that it's looking for an entry
in your properties file for errors.required but is unable to find one.
What you need to do is add something like:
#-- validation errors
errors.required={0} is required
#--diplay names
prompt.password = Password
prompt.userName
FYI
*
For a JavaScript menu try: http://struts-menu.sourceforge.net/
For an HTML/CSS approach (not designed for struts) try :
http://www.htmldog.com/articles/suckerfish/dropdowns/
The first link is probably the obvious choice for a Struts application
however as it stores the menu names
Will a new mail list/forum be created for Shale? If so when?
On Mon, 21 Feb 2005 20:12:11 -0700, Paul Roubekas [EMAIL PROTECTED] wrote:
Will a new mail list/forum be created for Shale? If so when?
Discussion about Shale, as with the other Struts sub-projects, is
appropriate on the dev@struts.apache.org list (for development of the
package itself) or
If you have two fields with the same name in same form.
Javascript considers that this is a array. You can get it's value from
arrayName[index].value, right? I could validate it by Javasript,
I saw strtus validation frameworks validation could generate stardard
javascript validation. So I want to
Diego,
Here is an idea: You could always set your on-the-fly actions under a
module. Then you could use the unknown=true attribute to route all
unmatched /module/*.do mappings to your new Action, which handles the lookup
and dynamic dispatching to the appropriate pages/actions, probably via a
Or use an action mapping that matches /*. I use them with
MappingDispatchAction to match /*/* where the first is the action
class and the second is the function to call.
Don
On Mon, 21 Feb 2005 22:40:17 -0500, David G. Friedman
[EMAIL PROTECTED] wrote:
Diego,
Here is an idea: You could
Tim,
I think that depends on which application server you are using. In my case,
I'm using Oracle's OC4J. It uses a file called datasources.xml to define
datasources. In Resin, the datasource is defined in the web.xml file using
the database element.
What app server are you using?
-Richard
I
Tim,
If you are using Tomcat, you would set up a resource in the server.xml
Resource name=jdbc/TestDB
auth=Container
type=javax.sql.DataSource/
.
.
.
and in your web.xml you would have a resource-ref tag like this:
resource-ref
descriptionDB
HI,
Another good simple title tutorial is available at:
http://www.roseindia.net/struts/struts_tiles.shtml
In this section shows you how to develop simple Struts Tiles Application. You
will learn how to setup the Struts Tiles and create example page with it.
Regards
Deepak Kumar
Tim
73 matches
Mail list logo