Is there any parameter that can be set to timeout datasources, or to
re-init them after a specified period of time? We recently bounced our
Oracle database that our struts connection pool points to, and I noticed
that all the connections had hung (the app just hung while trying to
perform
Will:
Joachim Peer has an interesting project on the go called DbForm
(www.dbform.org) that is 'based' on Stuts. You basically give it an XML file
with table/field and some information regarding the field (size, data type,
etc) and it will generate the JSP forms for you. It has the searching and
Your question wasn't very precise, but I think I've been working on the
kind of thing you're talking about. In particular I couldn't get the
value parameters to input tags to work without using what looks like an
awful kludge. See the code below.
Suggestions on a better way to do this?
--
Hi Devon,
See below...
[EMAIL PROTECTED] wrote:
JSPTL allows you to do the following by using the Simplest
Possible Expression Language (SPEL) provided with the
reference implementation:
tag attribute=$foo.bar.baz/
tag attribute=$param:paramName/
The above examples make
Title: Forward request to another jsp-page with struts
Hi list
I am shure, it is possible to check by entering a jsp-page if a sertain property is set and if not to forward the to another jsp-page.
I'm looking for a tag like this
logic:equal name=nav property=page value=logon
Thanks Martin.
Your solution is actually something I considered right at the beginning.
However, I felt that there may be other ways of achieveing the same
thing - more cleanly and intuitively - ie this seems like a workaround.
And in effect, the solution I have now, does achieve the same thing.
Hallo,
I have a question that I should really know, but I honestly could not answer
without getting confirmation of other Struts users.
I have been asked many times about what is struts and I have responded it is
a open source framework useful for building web applications in Java
Servlets and
The quick way to do this is to use Javascript.
Call javascript function which shows confirmation window
when user presses submut button (onclick event) and then
depending on user selection submit your original form
from Javascript.
Good luck,
Paul Perevalov
-Original Message-
From:
Rey Francois [EMAIL PROTECTED]
If you only need the string keyed properties, then don't worry about the
mapper, just use the class com.capco.util.PropertyUtils.
Fr.
I still don't get it. Do I have to change RequestUtils.java and
BeanUtils.java?
--
gR
Hello,
The problem we have is that conirmation text
should be locale-dependent (english/french),
that's why I have to do it on server level.
Best of luck,
Yuriy Zubarev
--- Paul Perevalov [EMAIL PROTECTED] wrote:
The quick way to do this is to use Javascript.
Call javascript function which
Hi,
We've got a problem with relative urls to images in our pages due to jsps
and templates residing at different directory depths.
here's our directory structure
/images/blah.gif
/pages/MainTemplate.jsp
/pages/section1/Section1Page.jsp
/pages/section1/Section2Body.jsp
Our pages are
You might want to have a look at struts-layout
(http://struts.application-servers.com) , a library my company is using for
its struts development. It helps to build UIs very rapidly, especially UIs
with forms and list of items. You still need to write JSPs but you don't
need to write HTML
I understand that--my app does close connections (release back to the
pool). The problem is that the pool itself maintains open connections to
the database, and doesn't seem to recover very well when the databsae dies
and comes back.
-jason
[EMAIL PROTECTED]
08/02/2001 11:31 AM
Please
Struts 1.0 does not use the Commons packages, which is why you did not find
them bundled there. It uses its own versions, which in fact is where those
particular Commons packages originated.
The Struts web site reflects the latest in Struts, which is currently 1.1 in
development. Struts 1.1 does
Title: AW: Forward request to another jsp-page with struts
Thanks Ted
the logic:forward was what I was looking for. Don't ask me why I didn't realize that by reading the docu.
(If I ask I am silly, if I dont ask I stay silly)
---
Given that you've defined a session attriute named
Is there a way to reset the request in the action so that it is no longer
cancelled?
for example, I have the following clock in the beginning of my action's
perform method:
if(isCancelled(request))
{
return (mapping.findForward(cancel);
}
the cancel
Title: AW: Forward request to another jsp-page with struts
What I do is create a 'User' bean with all the
properties of a User (username,name, password, user type, etc).
When the User logs in, I put this 'User' object in
session. I check for this object in session using the logic:notPresent
What steps are required to install Struts application on WebSphere 3.5.4
Application server?
Is there something that need to be done? How did you deploy struts
application on WebShere 3.5.4?
Kind Regards
Aapo
-- Aapo Laakkonen, +358 (50) 33 99 682, ProjectCast Ltd, Helsinki, Finland.
Well, you won't be able to tell Struts how to use it without
changing/duplicating its code.
For example if you want to use it with a tag, you'll have to reimplement the
tag.
I would think that Struts should ultimately incorporate this 'string keyed
properties' feature, there as been several
Delivery Report:
From:[EMAIL PROTECTED]
To: 0787882396
Subject: AW: Forward request to another jsp-page with struts
Date:3-08-2001 13:36:34
Status: ERR Sorry - you have no access to this service
End Report
Bar³omiej Paw³owski wrote:
Thanx, for answer but when I change my form and add
enctype='multipart/form-data' I receive another exception:
Internal Servlet Error:
java.lang.ArrayIndexOutOfBoundsException
at javax.servlet.http.MultipartHandler.readLine(MultipartHandler.java:139) at
Excuse me but... can EJB (entity) be managed by Tomcat?
Regards
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 03, 2001 8:31 AM
Subject: Re: Struts ActionServlet
The container is a Web or Application server, like Tomcat, Resin,
Hi,
i have a select list box, which is populated
bases on the value the user selects a second list box gets filled up
i tried firing the onclick event on the first select box..but there was no
way with which i can call the database method passing in the value id for
the list to get
Rishi,
It depends how complicated you application is. If it is pretty complex,
then you should have other beans that access the database instead of writing
the code into the action.
I used a database bean to retrieve information and display it on a JSP.
i.e.
jsp:useBean id=bob scope=request
The only time your form bean's validate() method will be called by Struts is
when Struts has populated the form bean from a request and is about to call
your action's perform() method. So if validate() is being called, then a
request is being processed for an action mapping which specifies an
You want to use the second one. Just remember that the WEB-INF
directory has to be at the root of your web application directory, which
in your case is /helloworld.
Calvin
On 03 Aug 2001 15:22:16 +0100, chuck amadi wrote:
Hi , Im back again - unfortunately i am left to my own devices thus
Hi There
Excuse my ignorance, but what is JSPTL?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 11:08 AM
To: [EMAIL PROTECTED]
Subject: RE: Re: Embedded bean/param values
Using your example:
tag attribute=bean:message key=...
Hello,
I am modifying the example app for struts, just adding another profile
property to see how things fit together. My problem is that I can't compile
any of the java files that reference other classes, even ones I haven't
modified. I know somehow that the solution to this is easy and that
Title: RE: UN-SUBSCRIBE ME
NO
---Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 4:48 PM
To: [EMAIL PROTECTED]
Subject: UN-SUBSCRIBE ME
Plese remove my email for sturts mailing list.
Title: refresh and Struts Action problem
Hi all,
Here is my problem:
I have the the following line for automatic refresh :
META http-equiv=Refresh content=2;/jsp/GetMaps.jsp /
The above line is conditionally added to the html output depending on some session variable.
That session variable is
The ActionMessage and ActionMessages classes are recent additions for
Struts 1.1, which is why they're not in the Struts 1.0 jar file. If you'd
like to use those classes, you'll need to download a recent nightly build
of Struts.
--
Martin Cooper
At 11:25 AM 8/3/01, Fletcher, Ken wrote:
Has
I'm using Tomcat.don't know if it'll work using something else. Maybe
if you show some of your code I can help.
-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href
1) You need to use flush=true on your template:get tags in the template.
2) Did you deploy your WAR correctly? -- Check to make sure you don't have
an extra folder app folder under app in default_host.
3) Haven't used Struts' DataSource functionality, I'm afraid I can't help
you there - it
Thanx, for answer but when I change my form and add
enctype='multipart/form-data' I receive another exception:
Internal Servlet Error:
java.lang.ArrayIndexOutOfBoundsException
at javax.servlet.http.MultipartHandler.readLine(MultipartHandler.java:139)
at
The best place to do this is, as you suspected, in an Action before the
form is displayed. Your user should be coming through an action first in
any case, to make the request for that view page.
If you are bypassing actions and having the user go directly to a JSP, then
you are really
I don't believe I can use this approach because my original JSP has many
links that all lead to the EditProduct action, but each link specifies a
different productId, corresponding to a different product. I need to wait
until the user clicks on a specific product before I can populate the bean,
Now I'm really confused! Your original problem was that you wanted to have
a link forward to an action. Your clarification shows how to do it from a
form (form action=SomeAction), but then you say that using a link or
href will not work. That doesn't seem to solve your original problem, does
I'm wondering if there is a best practice or standard Struts way of
handling repopulation of request attributes needed for a page after an
error.
For instance, I have a list of contacts with a checkbox next to each one.
The list is generated by the logic:iterate and multibox tags using a vector
Martin Cooper wrote:
You might have more luck with this if you ask on the tomcat-user list.
I would also recommend providing a bit more information about the
problem - for example, which
Hi , there - is your problem (out of memeory or out of environment space ).
Cheers Chuckie now using
Another clarification on this one...
I have noticed that the web.xml file that comes with the struts-logon.war includes a
reference for
the \WEB-INF\app.tld, however the app.tld file wasn't a part of the extract...Can
anybody shed some
light on this one? Any input will be appreciated?
I really
I'm
not sure, the only class that was changed was FormTag. You may want to
make the changes yourself and run the ant script.
-Original Message-From: Luis Olivares
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 31, 2001 11:57
AMTo: [EMAIL PROTECTED]Subject: struts.jar for
Hi,
I am a big fan of your Components, it woks very
pretty. But since you rename Component to Tiles
things are not pretty any more:)
I have hard time switching one Components to Tiles
, I did every things following your instrcutions, and
it is still not working.
Even when I just copy directly
Hello Greg,
Struts encourages you to use slight different yet powerful
approach. If you have a jsp page with a form it's nice to
have two actions to serve this form. One action is used
to prepare data for form (direct db access, ejb, xml, text file,
whatever you want) and another to collect info
Hello everyone,
I have a form (in request scope) with submit and cancel
buttons and after pushing either of them I should display
a confirmation dialog (Are you sure?) and depending on user's
choice I have to perform the actual action 'submit' or 'cancel'
if user clicks 'yes' and have to return
If you use the Struts html:form tag, the value of the 'action' attribute
is used to look up the corresponding action mapping, and Struts will append
the .do if you are using extension mapping for your servlet.
If you use the Struts html:link tag with the 'href' attribute, then that
value is
Yes, that's correct. Using extension mapping with Struts, and .do in
particular, is just a Struts convention. I suspect that most people are
probably following that convention, but it is not a requirement. You are
free to use a different extension, such as .act or .cmd or whatever, or
to use
jsp:useBean id=info class=logon.InfoForm scope=session /
bean:write name=info property=moreInfo/
In addition, If you set the variables from your bean into an ActionForm you
won't even have to use the jsp:useBean neither.
-Original Message-
From: Fletcher, Ken [mailto:[EMAIL PROTECTED]]
Nicky,
Try 2 things:
1. Remove any XML parsers from your classpath. A pre-existing xml parser
in your classpath may supercede the XML parser which comes with struts.
Struts will not work with just any XML parser...
2. Try struts with Tomcat 3.2.3 (people seem to be having better luck
with
chuck amadi wrote:
Hi , Im back again - unfortunately i am left to my own devices thus
after making good progress i fell flat when i made modifications to mt
action classes (Windows box). Nevertheless i am to try again albeit
this time on a linux box running v7.1. Thus it may sound a
test
I have a generic question. We use struts. Struts *really* doesn't help much
with rapidly building UIs. I'm sure everyone here realizes this. I do not
want to abandon struts, I've have had great experience with it but I also
would like a way to build a mechanism to rapidly automatic the building
I haven't actually worked with cookies this way, but it seems like this
should work:
bean:cookie id=the_cookie name=username_cookie value=username_cookie
not set /
bean:define id=the_value name=the_cookie property=value /
html:text property=username value=%= the_value % /
This doesn't deal
1) You need to use flush=true on your template:get tags in the template.
Thank you very much. Actually this did not solve my problem, because flush
is
only useful with get tags, but not with template:insert. I know that
jsp:include has
capability to flush, but I like using template tags. Is it
I asked a similar question on the velocity mailing list and they said look
at texen ( http://jakarta.apache.org/velocity/texen.html ). My first
reaction is similar to yours. Texen seems more about generating pages
statically not dynamically but I really don't know much about it at all
yet.
I
I tried unsuccessfully to do that. Maybe I missed something - do you still
have to add the bean to the HttpSession?
-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:41 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href
Stefan,
I've done something similar. My solution (which may not be ideal) was as
follows: define an ArrayList property (activitiesToDelete) in the Form
bean to which you are submitting this form. Then use a cell inside your
iterator like this:
td
html:multibox
Hi
After I run tomcat for couple days, I will get out of memory problem. What
can be wrong?
And how to solve it? Thanks.
Harden
Hi Hilary,
For windows I use this strutscompile.bat file. The compile ignores
the classpath environment variable, buidling it's own, which is I
think what Sun reccomend.
Hope it helps, better still can some-one post a better one?!
Keith
=
Hi Fracois,
so I've hacked a bit in the beanutils package and now struts does work
perfectly with your string based properties. No need to change struts,
it is enough to change beanutils.
What I dit was:
- I've renamed the original BeanUtils class to OriginalPropertyUtils.
- I replaced
Sorry, every one just noticed the follow up on this thread, didn't see it in
th e 112 msgs I got this morning :)
Aaron Ravenberg
-Original Message-
From: Aaron Ravenberg [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 9:01 AM
To: [EMAIL PROTECTED]
Subject: RE: Confirmation page
Yes,
I have been using struts framework in weblogic 6 since last
one month.
Prashanth.
-Original Message-
From: Kemp, James A. [Alan] [VIS] [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 2:15 PM
To: [EMAIL PROTECTED]
Subject: struts
anybody
Hi,
Has anyone seen this before:
8-01 16:51:50:739 - (E) SMSActionServlet Thread [ExecuteThread: '11' for
queue: 'default']; Exception
[weblogic.servlet.jsp.JspException: (line 3): Error in using tag library
uri='/WEB-INF/struts-html.tld' prefix='struts': The Tag class
hello all,
i posted a question regarding the Stackoverflow
error. but i got no help.
thought i will explain my problem in more
detail.
i have an adduser.jsp which is invoked thru a
href in a normal html page.
this adduser.jsp displays a form.
there is formbean and actionclass for this
I haven't played around with paramID, paramName and paramProperty in the tag
yet (still experimenting). However, I have been able to get the bean to
show up on the forwarded JSP by putting it in the HttpSession (from the
action class) and then have the JSP access the properties in regular
Delivery Report:
From:[EMAIL PROTECTED]
To: 0787882396
Subject: Forward request to another jsp-page with struts
Date:3-08-2001 07:16:55
Status: ERR Sorry - you have no access to this service
End Report
In simplest terms, Struts is a toolkit.
Or, as you say, a collection of Java classes.
Struts provides essential development mechanisms required by modern
Web applications. Without Struts, a developer needs to construct a
good number of support classes to create an application. (Java !=
Hi,
Anybody got the idea of restricting the upload file size without user
actually sending large file to the server's temporary directory?
I have known that in struts web.xml configuration file that there is a
init parameter to restrict the uploaded file size named 'maxFileSize'
something like
I've recently begun working with Struts and am looking to create a scenario
where a user can click on a link and trigger some event in an Action class
(ie the clicking of a link would be the same as clicking a form's submit
button). My understanding is that within Struts forms submit by the post
Plese remove my email for sturts mailing list.
Or get it out of the JAR file if you just want to d/l it. :)
Chris
-Original Message-
From: Anthony Xin Chen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 1:46 PM
To: Ben Gill
Subject: Re: http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd
Hello Ben,
Thursday,
Tim,
I'm not sure this will work for you, but if it does, it may be the
easiest solution. I am assuming that you have a failure forward in
the Delete action that sends the user back to the list page. Instead of
mapping this forward to the list page, map it to the list action. That
way,
71 matches
Mail list logo