Hi, I am new to struts. I have a problem here. I installed Tomcat 4.0.4 on
my Windows 98. It works fine. Then I downloaded struts binary code version
1.1 beta2 and try to test struts-example.war. I followed the documentation
to copy the struts-example.war file to Tomecat/webapps directory and
You can too use the DBCP from jakarta, I'm using it and works perfectly:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how
to.html
-Mensaje original-
De: Steve McLeod [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 02 de septiembre de 2002 2:10
Para: '[EMAIL
Xerces1.4.4 and JAXP1.0.1???
Struts1.1b needs JAXP1.1.
and You shouldn't set the CLASSPATH.
jw z wrote:
Hi, I am new to struts. I have a problem here. I installed Tomcat
4.0.4 on my Windows 98. It works fine. Then I downloaded struts binary
code version 1.1 beta2 and try to test
Steve McLeod writes:
I am using:
Tomcat 4.0
Struts 1.0.2
The problem
I have successfully used the Struts database connection pooling in a trial
web app, but as far as I can tell, a reference to the datasource can only be
obtained from within an Action class (or directly
How can I cascade actions correctly?
The following seems to be working:
action name=myAction ...
forward name=success path=myAction2.do /
/action
action name=myAction2 ...
forwar name=success path=myPage.jsp /
/action
The response is gzip-ed by the gzip-filter of
Hi Jenny,
In case no one else answered this, you need to put
some errors in your session before they can be
captured and displayed by the errorpage.jsp.
Try the following code in your action:
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, new
Hi
This isn't a compile problem. The pages performance are consistently slow
even after the first access.
I've heard that tag libraries can cause performance problems.
Does anyone have strategies for dealing with this?
Is it related to the nested tag library in particular?
We've put traces in to
i am using Struts 1.1b2 with tiles on BES 5.0.2(tomcat 4.0.1). i ve got the
following form:
public final class fw_MenuItemAdminForm extends ActionForm {
private List parmsAL = new FastArrayList();
private Collection parms = col1.lazyList(parmsAL, fw_MenuItemParmVO.class);
public
Hi,
Do you have the full stack trace of the error ? This will help to
understand what happen.
Cedric
Michael wrote:
When I try to use controllerClass:
definition name=plant_list
path=/jsp/status/plant_list.jsp
Hi John,
I'm stil not able to figure it out.
I've put in the stack trace if you might want to take a look. Apart from
the logic:iterate tag, i'm using logic:equal, logic:notEqual,
logic:present.
/*** stack trace starts here **/
java.lang.ArrayIndexOutOfBoundsException
Anoop, I did it by iterating through a collection of beans, each bean in the
collection for eg had a getKey() and getValue() method then the jsp looks
like this.
logic:iterate name=attrib id=collElem
tr
td
input name=bean:write name=collElem property=key//
/td
/tr
I did by a similar approach:
logic:iterate name=Data indexId=index id=item
html:text property=textFieldName%=index%//td
...
/logic:iterate
In tha way you can take advantage of the iteration to set different property
names to your input: textFieldName1, textFieldName2
Just another
Hi All,
I might be wrong, but I thought the nested tags (when in a nested:iterate)
did this automatically for you ie name0, name1, name2 etc.
Jon Ridgway
-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
Sent: 02 September 2002 12:22
To: [EMAIL PROTECTED]
But, the same case arrises here, as in defining number of beans. How will be
the number of beans be pre-defined??
-Anoop.
-Original Message-
From: Darryl Nortje [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 02, 2002 4:19 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic name
Hi Andrew,
Thanks a lot for being so elaborate.
I have another question. I need to implement single sign on based on
what user ID one logs into their windows workstation. I have written the
code
to get the userID, now I need to put it in ActionServlet/RequestProcessor.
My question is which
How am I supposed to insert a few script into the head part of my page if
I use tiles?
The
html
head.../head
body.../body
/html
is in the template file.
Tia,
Tib
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Well, the way I did it was select from a table and in the while (rs.next())
loop build up the collection.
I don't know your particular scenario so can't help you there, other than to
say that you build up the collection as part of an action, or from a
database, depending on what you want to do
Hi,
How do I go about accessing a form bean associated with a JSP from my
own custom tag?
Also from within the JSP page -For example,
I wish to use the html:radio tag but with the 'value' set to an
attribute from a form bean which was associated with the action that
called the JSP.
So say i
Hi,
I am new to Struts. I am referring the struts-example to build a prototype resembling
our application which is right now using only servlets.
I need to authenticate each request that comes to the webapp ( though the action
servlet ). There are two parts to the authentication scheme.
1.
In Struts 1.1, you can assign a list of roles to each ActionMapping. By
default, this uses the same JAAS scheme used by the container. However,
you can also provided your own RequestProcessor that can override this
and use whatever scheme works for your application.
-- Ted Husted, Husted dot
I've been playing with Tiles for several days, getting some simple
examples to work. I've read all the documentation several times but I'm
missing a key part of the definition inheritence I think. Can somebody
please clarify this for me? Here's what I'd like to do:
I'd like to have a main
A quick announcement for any Struts users who might be using
(or might want to evaluate) Oracle's JDeveloper Java IDE.
We've just published a Developer's Preview of our new 9.0.3 major release
on our Oracle Technet website:
http://otn.oracle.com/products/jdev/content.html
List of new
Hi everybody,
I'am working on the Struts Example supplied with Struts 1.1b1 with Visual Age 3.5.3.
I've just a little problem with the global exception:
exception
key=error.password.expired
type=org.apache.struts.webapp.example.ExpiredPasswordException
I agree with you, Tiago. Since the tools are not well integrated, they must have one
JVM each to run, what
makes it very painful. I think 256MB is the least ammount of memory that makes it
comfortable to delete. So we
have a lot to do in terms of tools in order to make Java development more
I have found a way to do this using an intermediate definition:
definition name=plant_status_page
extends=default_layout
put name=body value=plant_status_body/
/definition
definition name=plant_status_body
extends=default_layout
you r right anoop. Ive faced this difficulty many times, when you have a
table containing textfiled in a row which can be increased dynamically.
The only solution i found was to have the number of rows in a hidden field
and append the index to each textfield in a row and extract the data from
A form bean is just an object placed within one of the scopes. The
attribute name is specified in the Struts configuration. (The formbean
name attribute.) So you can refer to it like any other object. For
more, see the source code for the Struts custom tags.
The searchAction should create the
You should put your script tag in the tiles declaring your header.
I think your question is: how to put the script tag inside the header
when the script tag is associated to an inserted tiles ? Tiles don't
provide facilities for such problem. But, putting the script tag right
into the
Hi Michael,
When you extend a definition, all attributes from ancestor are
inherited, and then overloaded by attributes specified in the new
definition. In your case, you overload the 'path' attribute with a new
value, disguarding the previous value.
The way to go is to have an
2002. szeptember 2. 16:48 dátummal Cedric Dumoulin ezt írtad:
You should put your script tag in the tiles declaring your header.
I think your question is: how to put the script tag inside the header
when the script tag is associated to an inserted tiles ?
Yes.
Tiles don't
provide
I'm trying:
nested:root name=categoria
nested:iterate property=subArticulosIds
...
/nested:iterate
/nested root
where subArticulosIds is of class java.util.HashSet.
This fails. It gives:
java.lang.IllegalArgumentException: Property 'subArticulosIds' is not
indexed at
Hi,
How do achieve the following:
In some cases I want to get a connection at the beginning of a request
(request scope), pass the same connection to all the java beans that are
called in the request and return the connection at the end of the request.
Where do I put the code to return the
Is it possible to nest a tiles:getAsString tag inside a struts
bean:message tag? This is what I'm trying to do:
definition name=plant_status_page
extends=default_layout
put name=body value=plant_status_body/
put name=title value=plant_status_page.title /
Hi all,
I would like to implement tree folder navigation for my project. However, i
am quite clueless as to how this is to be done via struts. Has anyone tried that
before or anyone know any resources tat i can refer to? thanks.
regards
alex
--
To unsubscribe, e-mail: mailto:[EMAIL
I think there's a struts menu at source forge, I'm not sure of the link,
but it would be easy to search.
| -Original Message-
| From: alex hun [mailto:[EMAIL PROTECTED]]
| Sent: Monday, September 02, 2002 11:20 AM
| To: Struts Users Mailing List
| Subject: Tree Folder navigation
|
|
|
Hi, All:
I would like to implement web pages using struts. the page layout consist of four
parts: top menu, side bar, main content area, and footer. Depend on the role of users,
the top menu will change accordingly--some button wii be disappeared, some buttons are
added. I think this should
Adrian and Aaron:
Thank you very much for answering my question.
But I haven't gotten there. It seems that errorpage.jsp is never been
called.
The details is as following:
I am practising struts-example1.1-b2. I tried to have errors displayed in
different page(errorpage.jsp)(The example itself
Hi, All:
I would like to implement web pages using struts. the page layout consist of four
parts: top menu, side bar, main content area, and footer. Depend on the role of users,
the top menu will change accordingly--some button wii be disappeared, some buttons are
added. I think this should
Looks to me like it's originating in EvermindJSPWriter, not from struts.
Shashikiran M wrote:
Hi John,
I'm stil not able to figure it out.
I've put in the stack trace if you might want to take a look. Apart from
the logic:iterate tag, i'm using logic:equal, logic:notEqual,
logic:present.
I overrode the ActionServlet's initOther() method and put this code in
there:
// this code runs when the servlet gets initialized
DataSource ds =
this.findDataSource(org.apache.struts.action.DATA_SOURCE);
Database.setSystemDatabase(new Database(ds));
// now anywhere in the system you can
Struts implements the Front Controller pattern. You have to implement your
own value beans to pass between the tiers. Yes your value bean approach is
right, at least in today's best practices.
Dave
From: Mohan Radhakrishnan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL
You can solve this problem by providing a business service framework for
your application (There has been a lot of talk about this sort of thing
on this list...I can't think of a particular thread to reference for you
so you may just want to go through the archives). My approach to this
problem
Thanks to Troy,
But I read a lot of Java literature and the struts archive over the past
weeks but in the all the examples the connection is retrieved and returned
is the same class. I know it is the easiest and the best way to handle the
problem.
In most cases it provides a solution.
I would
If you haven't already, you might make certain that your Xerces.jar exists
in either (or both - whatever works) your WEB-INF/lib and your
JAVA_HOME/jre/lib/ext directory.
jw
- Original Message -
From: jw z [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 02, 2002 2:24 AM
A big problem that you will encounter is reliably trapping the end of
the request lifecycle. I haven't looked at filters to see if they
provide a 100% reliable solution for this, they may (I don't know what
happens in this scenario when some component decides to redirect the
request...), or there
Hi, All:
I have a template jsp called template.jsp. The content of template.jsp is:
% taglib uri=/WEB-INF/struts-template.tld prefix=template %
html
head
titletemplate:get name='title'//title
/head
frameset rows=20%,*
FRAME src=template:get name='header' flush='true'/
FRAME
Hey Kevin,
I think I know what is going on here.
When you are doing template:put name='header' content='/welcome.html'
direct='true'/ you are using direct=true which directly outputs the string
/welcome.html as the file to be used for the header. This would mean that
any contextPath that you
Eddie Bush wrote:
James Mitchell wrote:
Sorry guys... for not responding earlier.
super-mega-snip/
Sorry I should have filled you in, James. I forwarded him the relevant
part of your discussion.
Also, I'm not sure how many passes I would make over the list, you
certainly
J
Another interesting twist -- what if you are using data from the resource
bundle to make your connectin to the database? and now you are wanting to
use JDBCMessageResourceshm.
What if you rely on another plugin as your persistence layer?
How would ensure that it gets called
Ian Vellosa wrote:
But what do you do each time you add a new language, say German? you need to
update the database structure adding a new column? Surely any solution
should be generic enough not to need that.
Unfortunately you would need the table to look something more like:
key
Sean:
Thank you for your reply.
I removed direct='true'. So the index.jsp is look like:
%@ taglib uri=/WEB-INF/struts-template.tld prefix=template %
template:insert template='/template.jsp'
template:put name='title' content='Templates' direct='true'/
template:put name='header'
Hi All,
How to Create a Map object using bean:define tag or any other tag in
Struts
This is my code snipplet,
bean:define id=param1 name=ele property=score/
bean:define id=param2 name=ele property=color /
%
java.util.HashMap params = new java.util.HashMap();
params.put(regno, param1);
Kevin,
Firstly let me apologise for giving you slightly incorrect information about
your problem initially. Never fear though I have a working solution for you.
Using the direct=true is correct in this case as you are putting the output
into a frameset (I missed this initially) and not
Hi Keven,
Struts templates do not work with HTML frames; I believe that's the
cause of your problem. (If anyone has gotten them to work with frames,
please holler). When I originally developed templates, I tried to get
them to work with frames, but it was very difficult. If I remember
correctly
Hi,
I have red hat 7.1 and I have apache2 and tomcat and mysql..
If some one could show me how to make a simple web site works
with these stuff for consulting help I would really appreciate it...
All I need is basic form to be saved to a datbase
If it is simple to do it in tomcat end to
Do NOT save the request into the session. That's why there is a connection
pool (DataSource), you take one out, use it, and put it back. If you don't
return it you will ruin the whole point of the pool. The connection pool
idea was created to avoid the situation you described. You should
Hi,
Do anyone has a startup example of how to use DynaActionForm instead of
customary ActionForm bean. Would appreciate if anyone could provide with an
end to end working example with jsp implementation and the form beans. And,
which is the jar file to be used for the same. As, the
Hi,
I had also issues with this. But in fact, I use DynaActionForms and manage
the validating
from the StrutsAction without problem including selecting page only
validating.
Use DynaForm.setPage(pagenumber) before DynaForm.validate(...,...).
The 'struts-validator' example bundled with Struts
Hi,
Where can i find tomcat 4.1 or upward version
that talks about tomcat-apache how to??
Thanks
Anand
_
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
To unsubscribe, e-mail: mailto:[EMAIL
Hi,
Does DynaActionForm works only with struts v1.1 and later? Cause it is not
been bundled along with v1.0.2 struts.jar. Is there any alternative for this
in v1.0.2?
Thanks,
Anoop.
-Original Message-
From: Jean Pierre Pawlak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September
Are there special considerations for integrating pop-up windows with struts, such as a
small overlapping login dialog?
I would like to preserve a static browser page, while it pops up the overlapping login
popup dialog. The popup should interact with a database to validate the userid and
I got the message and I will use the sessionFacade pattern and use the
connection pool as you advised.
Nevertheless I would like to know where the request cycle ends in the struts
framework?
I didn't find any diagram regarding the request cycle.
I would like to store (among other things) the time
Thanks John,
Will try to check the code on a different engine. After some debugging,
i guess that the EvermindJSPWriter might be skipping the bounds of the
string[] containing the static HTMLs.
--Shashi.
-Original Message-
From: John Raley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
i am using Struts 1.1b2 with tiles on BES 5.0.2(tomcat 4.0.1). i ve got the
following form:
public final class fw_MenuItemAdminForm extends ActionForm {
private List parmsAL = new FastArrayList();
private Collection parms = col1.lazyList(parmsAL, fw_MenuItemParmVO.class);
public
Hi Steve,
I am great fan of JDeveloper and downloaded the stuff.
Whatever I have looked so far, looks awsome! I have a
small problem that I have a small problem that I am
not able to solve. I have configured, a database
connection to connect to Cloudscape database. In the
wizard, connection test
65 matches
Mail list logo