Yeah, I know what I am saying would be like reinventing the wheel, and
thus
the point of using a framework (to not reinvent the wheel). However, my
main concern is that learning to use this 'wheel' might take longer than
building one myself.
And with the great books coming soon, you will
Summary: Can a page override a sub-definition?
Im trying to do breadcrumb, whee. I've made a page definition with
over-riddes... works great. Having a subLayout definition SEEMED to
work ok, until I tried to override parts of the sub-definition.
In other words, the body definition for
if I use a tag ...html:form action=/FieldList focus=
%=sFirstFocusedField%... for a variable sFirstFocusedField who can be
the name of any generated input field of my html form;
the javascript exception:
document.forms.FieldListForm.elements.field4.focus is not a
function happend when
Contributing to the documentation isn't any different than contributing
to the codebase. Just figure out where it should go and submit a patch
or enhancement request through bugzilla. A list of which classes must be
extended and which can be used as-is (whitebox vs blackbox) could be
handled
So Im guessing tiles doesnt support overriding child definitions?
Yes, you are correct.
If you are trying to use trail in page.arc to over-ride trail in
page.tile.crumb, that's not going to work.but thenyou already know
that :)
James Mitchell
Software Engineer\Struts Evangelist
Does anyone have had experience on converting an existing oracle forms 6.0
application to Struts.
The important factor to keep in mind is the model in (MVC) should be the
same
currently residing on forms.
Thanks
Naga
-Original Message-
From: mailinglist [mailto:[EMAIL PROTECTED]]
Sent:
Is there a description, dtd or schema for the documentations?
regards
Alexander
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Montag, 19. August 2002 13:08
To: Struts Users Mailing List
Subject: Re: Struts Community is going crazy! :-))
Contributing to the
Hey,
You kinda confused me about what your problem was. Could you maybe explain
it better if I'm wrong about it?
It sounds like you just want to know which rows are checked. You need to
specify the 'indexId' attribute in the logic:iterate ... tag to create a
variable that stores the index of
Sorry, I forgot to mention that the corresponding property would be a
String[] that will be filled with all the checked indexes.
Is this what you're trying to do?
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL
Hi there,
I need to do exception handling if the instance of userSession that i get
in my action classes is a null. (For e.g. it would be null if the session
timed out)
But i happened to stumble on the code for Struts Action.java from struts
jar. Now this file has the following code
Neal,
We've been using Struts for about 4 months now. I originally started with
1.0, then went to 1.1b1, and now 1.1b2. The initial learning curve was
fairly easy; learning some of the new features of 1.1 has taken some time
(some of the new things I haven't even had time to try!). Once you
Hi,
Is there a way to avoid getting the response from the browser cache when
using the tag html:link.
Some tag libraries provide an attribute to add a unique parameter (some
random value) in the URL request. This is a workaround that prevents the
browser from finding a page in the cache.
The
I'm gone trough this problem whith checking the paramaters recieved in the
request, againt the array used to iterate.
Unchecked checkboxes are not in the request; so I'needed to check any field
expected (so many as the length of the collection used for the iteration)
, tried to find a parameter
In my web.xml, I'm loading the properties file (RSVPResources) using the
Action servlet:
servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameapplication/param-name
param-valueRSVPResources/param-value
/init-param
Hi,
I apologize because this is probably a newbie question but I couldn't find
any answers in the archives, so I'm posting here:
I'm looking for a way to display all my bean properties.
So I have this bean that holds all this user information and might change
sometimes.
but I don't want to change
On Sun, 18 Aug 2002, neal wrote:
In the short term, it may take longer. It really depends on how easily you
can learn, which nobody here can really gauge. The best way to determine
that would be to read through the User's Guide on the Struts website, take
a peek at the Javadocs, and run through
What I did was passing another bean as an arrayList with the names of all
the properties.
After:
logic:iterate name=NamesBean id=name
bean:write name=bean property=%=name%/
/logic:iterate
Not too acurate, but if i did not mistake, it works. If you find I cleaner
solution, let me know. I
Hmmm
I'm confused, but probably just because I'm new to all this. I just started
developing web applications this summer.
There is one little trick that I came up with concerning checkboxes. I had
problems reseting the boolean values in my bean to false when the user hit
the form, so I
Hi Cliff and Adolfo,
Thanks very much for your rapide responses. I have just returned to this
list after being very busy to debug and deliver the application, excuse me.
The problem is due to that there is a accent in in the URL (more precisely,
in a html:link element). The problem is when I
Ok, I'll give that a try .. thanks.
At 13:44 16/08/2002 -0700, you wrote:
I guess you can do this as long as variables myCollection, x are in the
script context(you need to put braces before getId()):
((elementType)myCollection.elementAt(x)).getId();
Mei
-Original Message-
From: Ray
Hello there again.
I have a small problem with users hitting the refresh button whilst doing
things with my application. Here's the scenario:
User accesses view.do - an action which displays a list of data items,
along with buttons to add, delete and edit data. If the add information,
and
Hi all,
I am trying to implement Internationalization based validation using the
Struts Validator. The validation works fine when I just have the language
and the country code as attributes for formset in validation.xml but it
fails when I include a variant attribute in the formset. I am using
Try changing the forward to your view.do in the struts-config to have
redirect=true.
This should result in refresh refreshing the url you end up at rather than
the save.do
ie:
forward name=mysteryMachine path=/scooby.do?where=ru redirect=true/
(nb: redirecting this way will result in no
If got everything rigjht I have to create that NamesBean.
That shouldn't such a great Problem. Would share youre code ?
But I still wonder if there isn't an easier standard struts way.
I thought that was a common problem ?
thanx adolfo
What I did was passing another bean as an arrayList
I'm trying to set up a basic program to perform a logon action...I get said
error:
javax.servlet.ServletException: Cannot retrieve definition for form bean Logon
the line it falls over on is in index.jsp:
html:form action=logon.do method=GET
Am using JBuilder v6, with struts 1.0 and tomcat
Thanks,
-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 18, 2002 2:38 PM
To: Struts Users Mailing List
Subject: Re: Config Tiles Plugins with Sub-Module
Hi,
You need the Tiles plugin in each sub-module using the tiles
definitions.
The framework might not be able to create the Logon
form bean. Is the Logon class in the classpath and have
you specified the correct package? All you have
is Logon, which seems to indicate you're using the
default package. If it's something like com.foo.Logon,
then you need to specify the
hi
html:form action=/logon method=GET
ciao
chriz
Darren McGuinness wrote:
I'm trying to set up a basic program to perform a logon action...I get said
error:
javax.servlet.ServletException: Cannot retrieve definition for form bean Logon
the line it falls over on is in index.jsp:
I am guessing you are trying to get the bean in scope by directly accessing
index.jsp. This will not associate your Logon bean with the page because no
ActionMapping has yet occured (you have not invoked a path and associated
bean in strutsconfig yet). Try having the initial URL go to
Chriz,
I thought about that, but Darren's using extension
mapping. The docs for Form tag say that if extension
mapping is being used (see his web.xml), that the
extension should be included. I was half way through my
email when I realized it and thought about the Form bean
issue.
Chuck
I had the same problem with Weblogic 6.1 SP 2 for Struts 1.1b1.
It could not find the MessageResource file at runtime. Here is the error
message:
Aug 16, 2002 6:08:16 PM EDT Error HTTP
[WebAppServletContext(593524,strut
s-example,/struts-example)] Root cause of ServletException
I hope someone can point me in the right direction on how to resolve the
following issue. Our environment is
Windows NT (Service Pack 5 and 6); have also seen this on Solaris
5.8
Apache 1.3.26
Tomcat 3.3.1
Struts 1.1 Beta 2
Java 2 SDK 1.4.0_01
We have an
index.jsp doesn't access the bean ? here's my index.jsp:
--
%@ page language=java%
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean%
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html%
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic%
html:html
I have a fairly simple problem, but can't figure out how to resolve it
within the Struts framework.
What I want to do is link to a page on a different server / domain.
Normally, you just put like a href=http://www.otherdomain.com/page?q1=v1
tag (or the struts link tag). This circumvents the
Hi:
I have some question about DynaBeanForm declarations, for example, in this code
question 1:
struts-config.xml
...
form-bean
name=insertNotebookForm
dynamic=true
type=org.apache.struts.validator.DynaValidatorForm
form-property name=startDate
Let's see your struts-config.xml
-Original Message-
From: Darren McGuinness [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 12:14 PM
index.jsp doesn't access the bean ? here's my index.jsp:
--
%@ page language=java%
%@ taglib
Mike,
If you don't know what the parameters are when you have the opportunity to
write the link URL, that means you need the user to submit the form. You
could have them submit the form directly to the other domain. If you need to
see their choices first, you could do your processing and then
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 1.0//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
struts-config
!-- == Form Bean Definitions
Change your action to /logon and see if that helps.
Mark
-Original Message-
From: Darren McGuinness [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 12:14 PM
To: Struts Users Mailing List
Subject: Re: javax.servlet.ServletException: Cannot retrieve definition
for form bean Logon
On Mon, 19 Aug 2002, Jerry Jalenak wrote:
Chances are you are not releasing your database resources correctly. I may
be wrong, but you should explicitly close your statement, resultset, and
connections using the close() method instead of setting them to null. You
can use the isClosed() method
What if you want to put a success message in the request so your view.do can
display the message when they've successfully added information? Then you
have to use the forward method (not redirect) and the refresh problem still
exists. Is there a way around this?
Thanks,
Dave
Try changing
XP is great, but it's not necessarily new. People have been doing rapid
agile development for years and just might not know it by that name. The
real value is the fact that it can be molded for any situation and it's not
the type of methodology where you MUST follow every step. If you can't do
Darren,
I'm not sure where you are with this (if you've fixed
it or not), but the new error messages is telling you
that the requestId attributes are different. Notice in
your Logon form, the attribute is requestId and in the
tag attribute, you have requestid. The i capitalization
is
This may or may not be what you're looking for, but I've been trying to
organize patterns in the following diagram that's meant to show, among other
things, where all the routine http request sub-activities should be coded.
I color coded the activities to identify those that can be coded in more
Melissa,
Thanks for the response - it caused of those DOH! (slap head here)
realizations! I added the code to close the resultset, preparedstatement,
and connection objects, compiled the class, and was able to go through about
30 queries without seeing the increase in memory that I was
Dan,
That is a great diagram. It will save me LOADS of time explaining or
training people on Struts...
Thanks for the contribution,
Tim
I have exhausted the message board(s) and online resource.
Problem with an extra slash / being added to the front of my form action
and links, examples
from little app i wrote and struts-example app:
Example 1: form name=panelForm method=POST
action=//do/panelForm;jsessionid=
Example 2:
Hi All,
I've been attempting to upgrade a web app from jakarta-struts-1.1-b1 to
jakarta-struts-1.1-b2.zip and it appears to be breaking some code.
Specifically a piece of code 'Using the Indexed Attribute in the Scope of
the Iterate Tag' (as in 'Using Struts' by Maturo).
jsp:-
logic:iterate
-Original Message-
From: Jason Muse [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:32 PM
To: '[EMAIL PROTECTED]'
Subject: iPlanet and Struts 1.02 problem
I have exhausted the message board(s) and online resource.
Problem with an extra slash / being added to the front of
Jason:
I had the same problem and I finally gave up. What I did is I put my
application in a context and everything from there worked fine.
If anyone else can shed some light on this, I would greatly appreciated.
Otherwise the context solution is the way to go I think.
iPlanet web serve and
I will take a look at it and get back with you. -Mark
-Original Message-
From: Jason Muse [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:32 PM
To: '[EMAIL PROTECTED]'
Subject: iPlanet and Struts 1.02 problem
I have exhausted the message board(s) and online resource.
That is a great diagram! I like the color-coding and best-practices of
where to implement specific types of functionality. Great Job!!
Jason
-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 10:17 AM
To: 'Struts Users Mailing List'
Subject:
ditto - and it prints out great on an HP plotter.
Mark
-Original Message-
From: Jason Rosen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:57 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts Community is going crazy! :-))
That is a great diagram! I like the
I've noticed with the online version of the struts config dtd file that the
plug-in element is not defined? Is there a scheduled time where this will
be updated? Here is the url that I'm using:
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;.
Thanks,
Mike
--
To unsubscribe,
If you are looking to catch the session timeout, then you could implement
HttpSessionBindingListener and wrap your session in it. When the session
expires, the HttpSessionBindingListener can execute some code. For example,
if you need to log a user out of a database or other network resource
Michael,
I ran into this problem myself and the online review chapters of Chuck
Cavaness' Struts book provided the answer. According to the chapter on the
Struts Validator,
There was some confusion in one of the earlier beta releases for the
Validator that used multiple set-property
Hey Mike,
I'm confused about what you think is wrong about the
online version of the DTD? I looked at the file and
the plug-in definition starts on line 612. Perhaps
you overlooked it.
-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/
--- Benson, Mike [EMAIL PROTECTED] wrote:
The second choice sounds better. Is there a substantive difference between
using redirect vs. using URLConnection? They seem very similar to me.
Mike
Mike,
If you don't know what the parameters are when you have the opportunity
to write the link URL, that means you need the user to submit
It may be a problem with our proxy. It looks like the file is not complete.
Thanks,
Mike
-Original Message-
From: James Holmes [SMTP:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:40 PM
To: Struts Users Mailing List
Subject: Re: Struts-config_1_1.dtd
Hey Mike,
Excellent diagram. Thanks!
-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 11:17 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts Community is going crazy! :-))
This may or may not be what you're looking for, but I've been trying to
This should essentially be the same as using Swing client or other
client-server model, some discussion of which you can find here:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg35786.html
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg38308.html
Does anyone
Hi,
I have following problem:
I have an application which works fine, if only one users is active.
If two users act at nearly the same time I always get following error:
Unexpected Exception: java.sql.SQLException message given: Communication
link failure: java.net.SocketException.
It seems to
Hi all,
Sorry to send this message again...haven't got any response as yet...hoping
that this mail would trigger some response/ideas to my problem.
I am trying to implement Internationalization based validation using the
Struts Validator. The validation works fine when I just have the language
Hi,
I want all my jsps to be called through the ActionServlet instead of
directly through a url. I've subclassed ActionServlet and overridden the
process() method to do authentication. So, on every request it will check
if the user is logged in and then provide the page they asked for. How
Take a look at your source code (view jsp source)
The source being generate for the submit button is
input type=submit name=cmd[0] value=Edit
where the [0] is outside the quotes.
The generated code should be
input type=submit name=cmd[0] value=Edit
With the currently generated
What could cause this type of error in my index.jsp? It started after I
upgraded to Struts 1.1-b2, but I get this message even after going back to
the previous version. I'm sure it some configuration on this workstation
because my other workstation was fine after the upgrade.
Any hints or
David,
Look at using a filter or the better yet the SecurityFilter project by Max
Cooper which mimics container managed
security.
SecurityFilter information can be found at:
http://securityfilter.sourceforge.net
Hope that helps.
Regards,
Todd G. Nist
-Original Message-
From: David
Mike,
The redirect will make the user's browser issue the request directly, which
may be important if they are logged in or simply have session data there.
Redirects are easy to code and will reduce the network load on your server.
Unless you have a really good reason to use a URLConnection, the
Is thare any way to make struts handle Exceptions thrown from
JSP custom tags?
My goal the to make my application behave exactly as if the
error was thrown from a Action object.
thanx
Good link.
Thanks,
Vic
Todd G. Nist wrote:
David,
Look at using a filter or the better yet the SecurityFilter project by Max
Cooper which mimics container managed
security.
SecurityFilter information can be found at:
http://securityfilter.sourceforge.net
Hope that helps.
Regards,
My day is awful, I'm sick, I'm behind schedule, my wife is sick, my baby is
sick, I'm behind schedule, I'm sick...
It won't make any difference because I have to work this weekend anyway but
can we pretend today is Friday?
rjsjr
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Greetings,
A question I thought I'd run by the group here; surely someone else has
found the appropriate approach.
The plan is to build a struts-based site that has a standard templated
layout. I've got a standard template.jsp which is a table that imports a
header, footer, navigation
I would like to know how to use the validate function on nested beans in
conjunction with the nested tags.
Using multiple nested loops in the top level bean's validate methond doesn't
seem like an elegant what to do itIn fact, it is downright crazy, I think,
particularly if you have more
There a simple XLS stylesheet under doc/stylesheets. But for the most
part, you should be able to learn through example. There is a build
target that does the XML to HTML transformation.
-Ted.
Jesse Alexander (KADA 11) wrote:
Is there a description, dtd or schema for the documentations?
Take a look at tiles.. Its part of Struts 1.1 (currently in beta 2 I
believe) or can be obtained separately.. The link to the current tiles
docs are at http://www.lifl.fr/~dumoulin/tiles/, unless they got moved
to the struts contrib directory recently..
James
-Original Message-
Anyone have experience with Struts Connection pooling? If so, was it a
positive experience? Easy to use? Stable? Fast? How does it compare to
something such as Poolman? And, does any MySQL driver out their provide
comparable connection pooling?
Thanks.
Neal
--
To unsubscribe, e-mail:
I'm trying to build a simple prototype appliction which is using both Tiles
and Validator. I got my Tiles code working pretty well, and then I started
integrating Validator. I've also gotten this working, but I'm wondering if
there's a better way to do some of the things I did.
I have a
We're starting a new Struts app, and it might be nice to use IFrames in it.
Are there any gotchas with iframes in a J2EE / Struts app that I should be
aware of? For example, the WebLogic documentation states that normal frames
can cause problems with the session id getting lost if improperly
Probably the most glaring problem (IMO) is lack of support in pre-6.x
Netscape browsers. See this URL for more details on IFrames:
http://www.blooberry.com/indexdot/html/tagpages/i/iframe.htm
Note the Tips Tricks and Browser Peculiarities at the bottom.
chris
-Original Message-
Stephen,
As to the first part of your question, I can not say for certain if WebLogic
will have the same problem with IFrames, I do not encounter any with JBoss,
and since they are inline as part of the main HTML document I don't believe
that you will have an issue. As for updating the
Thanks very much ... :-)
At 22:35 19/08/2002 +0800, you wrote:
Try changing the forward to your view.do in the struts-config to have
redirect=true.
This should result in refresh refreshing the url you end up at rather than
the save.do
ie:
forward name=mysteryMachine path=/scooby.do?where=ru
Here's what I have done in the past:
(This describes the source code written for the hyperlink below my name.
The source code is available by request.)
Here is what my layout looks like on a web page:
| .
Sorry you didn't have any takers till now.
BTW. I'm also sick.
If I don't sound like it, its because I'm typing so you can't hear me, so
there! ;)
It's been one of those my head peels dike iss gudda esplode days.
Hab a dice priday.
James Mitchell
Software Engineer\Struts Evangelist
Unfordunetlee my ole family is mouse breeding wid hedaches...
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 10:09 PM
To: Struts Users Mailing List
Subject: RE: Bad Day
Sorry you didn't have any takers till now.
BTW. I'm also
I hv a dynamic form and having problems to create array property in
DynaActionForm. The following exception thrown when i reference to it.
Could anyone help out!!
regards,
Stephen
form-bean name=InventoryEnquiryForm
dynamic=true
LOLya. It hasn't hit the entire family yet.
Hope you feel better.
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From: Robert J. Sanford, Jr. [mailto:[EMAIL
hey...
Other than the problem with struts and the same file-name... I need the same
implementation for an
application I'm writing.
I wrote a prototype where you choose at run-time how many upload boxes you want on a
form which
will get set in an indexed property FormFile[]), then the struts
Hi all,
I have just shifted from servlets to jsp + struts. I am still new to both.
I have to create some jsp pages corresponding to some user actions.
For example, the application administrator can click on add user link ( from left band
menu which is in a separete frame ) and will be presented
88 matches
Mail list logo