Hi!
I was assessing the current tools that we are using for our project.
There are some views that suggest that Struts with JSF is a good
combination if a new project is being made.
Currently, we are using Pure Struts approach and I am given to believe that
JSTL is a better approach
than the
hi, there is something under the sun
http://developers.sun.com/dev/edu/camps/demos/j2eestruts/download.html
it shows howto use
struts and J2EE-Desing-Pattern
cheers,
matthias
-Original Message-
From: Far Naq [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 7:42 AM
To: Struts
Hi, I'm using a custom solution using Websphinx as the spider and Lucene
as the indexing and search engine. This results in an all-java solution
that can be deployed in any hosting provider. It requires very very
little coding, request if you want to see our code.
I'm right now having some
From: Ashish Kulkarni [EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 10:30 PM
Subject: stop user from clicking the submit button twice
Hi
I have a process which takes about 30 seconds, i want
to show some kind of image or disable the submit
button untill the process is complete and tell
Hi all,
where can I set a time limit for a session?
I want the session's to be invalid after 10
minutes! How can i archive this?
Thanks
Oliver
--
+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail
You must change the file web.xml, the next line:
session-config
session-timeout10/session-timeout
/session-config
Alvaro
- Original Message -
From: Oliver Thiel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 30, 2004 11:30 AM
Subject: session timeout --
session.setMaxInactiveInterval(int interval);
Specifies the time, in seconds, between client requests before the
servlet container will invalidate this session. A negative time
indicates the session should never timeout
-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Or use the Struts Workflow extension...
Sean
On Fri, 2004-01-30 at 10:26, Simon McCaughey wrote:
From: Ashish Kulkarni [EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 10:30 PM
Subject: stop user from clicking the submit button twice
Hi
I have a process which takes about 30 seconds, i
session.setMaxInactiveInterval(int interval); would this override the
session-timeout set in the web.xml for the application??
-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 4:04 PM
To: 'Struts Users Mailing List'
Subject: RE:
U can also use the struts token functions to detect when a page has been
submitted twice in the actionclass and not start the processing twice.
-Original Message-
From: Simon McCaughey [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 10:26
To: Struts Users Mailing List
Subject: Re: stop
i think yes...
(perhaps you need a special session.life-time (e.g. for admin...))
from dtd:
The session-timeout element defines the default session timeout
interval for all sessions created in this web application. The
specified timeout must be expressed in a whole number of minutes.
If the
Yes session.setMaxInactiveInterval gets called against a specific
session, so it only effects that session. The session-timeout in web.xml
sets the default timeout for a session unless it is overriden by
session.setMaxInactiveInterval
Chris
On Fri, 30 Jan 2004, Anirudh Jayanth wrote:
Thanks! Matthias and Alvaro.
i think yes...
(perhaps you need a special session.life-time (e.g. for admin...))
from dtd:
The session-timeout element defines the default session timeout
interval for all sessions created in this web application. The
specified timeout must be expressed in a
Thank you guys,
appartently it was just that in my index page i was reffering to
/tags/struts-logic
rather than /WEB-INF/struts-logic.tld The strange thing is that I did not
make ANY changes between deleting the temp file and reaccessing my app !
Theo
- Original Message -
From:
Hi Steve,
it sound very interesting. Can you provide some info how to use these
struts token functions?
Zsolt
-Original Message-
From: Hunt, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 11:59 AM
To: 'Struts Users Mailing List'
Subject: RE: stop user from clicking
EnterInfoAction
--
saveToken(request);
enterInfo.jsp
-
nothing required - the html:form tag places an input type=hidden tag for
you
ProcessInfoAction
-
if ( !isTokenValid(request, true) ) {
//incorrect token
}
I'm pretty
We use:
1) Struts token to prevent reload (F5) problems,
2) page redirection in a in process page for long transactions
(usually with JMS)
3) javascript to prevent user doubleclicking buttons.
We use Xkins and our buttons are images generated by xkins, and have
taglibs to generate this buttons
Hi,
I try to integrate SecurityFilter 1.1 in my struts app. I understand that I
have to use j_security_check in my form action to setup SecurityFilter.
But how does it work within a html:form? Because j_security_check always
gets populated to j_security_check.do the SecurityFilter will never be
If you use %@ taglib uri=/tags/struts-logic prefix=logic %
in your jsp files, then you have to specify the mapping in your web.xml file since
there is no /tags/ folder (in general) since the *.tld normally located in /WEB-INF/
folder.
if you use %@ taglib uri=/web-inf/struts-logic
Hi everybody. After working on this for a bit, I figured it out for myself.
The problem was that in the variable definition, I was using
var-jsTyperegexp/var-jsType. This is wrong - the proper way to do it is
var-jstyperegexp/var-jstype.
Hopefully this will help somebody else out at some point.
Now that I understand my problem a little better, maybe I can explain it a
little better.
My form bean, named ItemList, contains a collection of objects named
itemList. Each member of itemList contains a collection of objects named
prices. Each member of prices contains a string named price,
regarding entity includes in tiles-defs.xml (again) -- both
struts-config and tiles-definitions files can be specified using a
comma-separated list of files (in web.xml for struts-config, and in
the plugin descriptor in struts-config for tiles) -- isn't that a
simpler way to solve the same
Google for strutsejb and feel lucky...
- https://strutsejb.dev.java.net/
hth
Alexander
-Original Message-
From: Far Naq [mailto:[EMAIL PROTECTED]
Sent: Freitag, 30. Januar 2004 07:42
To: Struts Users Mailing List
Subject: Re: StrutsEJB
Hi,
i want to develop a solution using Struts
I think this might work:
%@ taglib prefix=html uri=http://jakarta.apache.org/struts/tags-html; %
%@ taglib prefix=nested uri=http://jakarta.apache.org/struts/tags-nested; %
...
%-- assuming ItemList is the form for this action --%
html:form action=...
nested:iterate property=itemList
tr
I'm using validator for my pages. Searching the mailing list I found
that I should use 2 actions:
If there are 2 actions, one to prepare the page and one to process the
user input, we define the input attribute value of the process action
mapping to be the URL of the prepare action.
I think
Maybe you need to register a custom EntityResolver on the Digesters?
Struts doesn't really expose this in a graceful way right now, for
tiles and validator you could probably look at either subclassing the
plugins and taking charge of how the Digester is configured.
See
Hi list,
here is a nice article on choice of
ActionForm or DynaActionForm.
http://weblogs.java.net/pub/wlg/964
cheers,
Matthias Weßendorf
Email: mailto:[EMAIL PROTECTED]
URL: http://www.wessendorf.net
-
To unsubscribe,
Why DynaForms attributes have to be declared in struts-config file?
Doesn't it inivalidates the Dynamic feature of the form? Maybe I'm
misunderstanding the concept of dynamism of this. If so, Can anyone
explain?
I would like to have a really dynamic form so I could reuse it in many
actions that
If you're using a servlet 2.3 container (most recent servers) you
doesn't need to configure taglibs in web.xml, they're automatically
searched by container in your webapp jars.
Just use this in your JSP :
%@ taglib prefix=logic
uri=http://jakarta.apache.org/struts/tags-logic%
The URI
Hi all,
I am using displaytag in a Struts app that I am working with, and so
far it seems to be all good, except when I incorporate pagination into
one of my actions. I have an ArrayList of objects that I am getting
from the database, which I am placing in session scope when I get the
list
It's a setting in web.xml:
session-config
session-timeout10/session-timeout
/session-config
-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 10:31
To: [EMAIL PROTECTED]
Subject: session
Here's a bit of JS to disable all the buttons etc on a form
function disablesubmit (forma) {
for (var frm = 0; frm document.forms.length; frm++) {
for (var i = 0; i document.forms[frm].elements.length;
i++) {
thisform = document.forms[frm];
Between versions 1.47 and 1.48 of conf/share/validator-rules.xml, the
javascript block for validateRequired was removed. Now when I drop
that file into my webapp, my form which only has required validations
comes up with this as the entirety of its JavaScript block:
script
You may also want to check out
http://www.javaworld.com/javatips/jw-javatip136_p.html
Summary
Struts, from the Apache Jakarta Project, implements
the Synchronizer Token pattern to prevent duplicate
form submission. Applying this pattern, you can detect
this situation and follow an alternate
Joe - this is working fine for me with the 1/13/2004 nightly build. I have
tried with commons-validator-1.1.1.jar and with whatever version the
commons-validator.jar in the 1/13 nightly build of struts is.
Validation worked right out of the box - all I did to install the nightly
build was copy
Javascript is a good suggestion, except I was looking for the Struts way
to do it for various reasons (no Javascript guarantee on browser, etc.)
I may end up having to go this way if I can't figure it out, so thanks.
Don't know if this helps or not but I'm using the onclick event of the
input
Hello All,
I am trying to get a multi page validation working right.
Before my page even load I get a 500 error from tomcat 4.1.29:
java.lang.NullPointerException
at
org.apache.struts.validator.DynaValidatorActionForm.validate(DynaValidatorActionForm.java:115)
I am using struts release 1.1. I
Um, you might want to try java.io.IOException instread of
java.lang.IOException... ;-)
--
Martin Cooper
Song Qiu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I use error-page to do global error handling. It works perfectly for
ServletException. I can see the eror page displayed
Greetings,
What does *do* mean in *.do files.
Regards,
Nushin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
do
[EMAIL PROTECTED] 1/30/2004 11:53:36 AM
Greetings,
What does *do* mean in *.do files.
Regards,
Nushin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
What does *do* mean in *.do files.
It's a just a suffix that you tell the container to look for in your web.xml
file, with this language:
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
Elsewhere in web.xml you've defined the action
And the .do aren't files, these are actions
it's like saying Do User Update. or something like that.
ciao.
On January 30, 2004 1:56 pm, Brandon Goodin wrote:
do
[EMAIL PROTECTED] 1/30/2004 11:53:36 AM
Greetings,
What does *do* mean in *.do files.
Regards,
Nushin
How can I compare a parameter in my URL (someAction.do?type=Alteração) with
the tag logic:equal name=type value=Alteração do something
/logic:equal
The problem is the ção . How can I sove this ???
thanks
-
To unsubscribe,
I haven't been able to confirm this first hand, but one of my team members
(who is not on this list) is trying to do a bean:write.
The problem is that sometimes, the bean that is being displayed is null. My
question is what is the proper way to handle this?
We tried to play with the
How can I compare a parameter in my URL (someAction.do?type=Alteração) with
the tag logic:equal name=type value=Alteração do something
/logic:equal
The problem is the ção . How can I sove this ???
thanks
hi Mauricio,
logic:equal parameter=type value=Alteração
yes it is Alteração :-)
/logic:equal
cheers,
-Original Message-
From: Mauricio T. Ferraz [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 11:25 AM
To: Struts Users Mailing List
Subject: parameter
How can I compare
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Subject: Re: Form beans with nested arrays
I think this might work:
html:form action=...
nested:iterate property=itemList
tr
nested:iterate property=prices
td
nested:text property=price/
/td
and note,
that in some cases you should use
(trouble with firewalls)
servlet-mapping
servlet-nameaction/servlet-name
url-pattern/do/*/url-pattern
/servlet-mapping
instead of *.do
look at Book: Struts Fast Track:
by Vic Cekvenich
-Original Message-
From: Nushin Nushin
oh...
saw the special char...
sorry...
-Original Message-
From: Mauricio T. Ferraz [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 11:25 AM
To: Struts Users Mailing List
Subject: parameter
How can I compare a parameter in my URL (someAction.do?type=Alteração)
with the tag
Greg: you could alternatively use the JSTL Core tags, if the bean is null it
doesn't write anything I believe. The format is c:out
value=${yourbean}/
otherwise if you really want to use bean:write you could enclose it in a
logic:notEmpty name=mybean property=bean property/logic:notEmpty or
just
There are still some places where Struts tags trump JSTL ;-). I think you're
understanding is pretty accurate. If you haven't checked it out before, see the
author's (Arron Bates) site:
http://www.keyboardmonkey.com/
Quoting Slattery, Tim - BLS [EMAIL PROTECTED]:
From: Kris Schneider
Hi:
I get the following exception while validating the mask part of a field.
Exception:
[ERROR] Validator - -reflection: null
java.lang.reflect.InvocationTargetExceptionjava.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: org/apache/oro/text/perl/Perl5Util
at
The do stands for nothing. Since it is used to get the server to forward
the request to an action in Struts, they used do. In my site, wanting to
use the advertising space, I use .MichaelMcGrady. This all reminds me of
that old wonderful saw: That's not a symbol, it stands for
something.
Well Put Mr McGrady
I am old enough to remember when Mark Zibykowski used to stamp every DOS
executable with MZ
To extend that thought should'nt we suffix a forward with .fo and and
commensurately suffix a redirect with .re or at least clasify the forwards
foa OR .fox?
-Martin Gainty
-
Pani - it looks like you may be missing jakarta-oro.jar from your
WEB-INF/lib directory. (Or have an older version of it possibly).
Make sure it exists, and if not get it from either your struts
distribution's lib directory or from the apache website and put it into
WEB-INF/lib.
If it does
I am old enough to remember when Mark Zibykowski used to
stamp every DOS executable with MZ
Umm..look again. Every *.exe file *still* begins with the letters MZ.
--
Tim Slattery
[EMAIL PROTECTED]
-
To unsubscribe, e-mail:
Hi All:
I have 3 validation for a field: required, minLength all alphabets (mask)
I get the following exception while validating:
[ERROR] Validator - -reflection: null
java.lang.reflect.InvocationTargetExceptionjava.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError:
did you add
the oro-jar-file
from
http://jakarta.apache.org/oro/index.html
to
WEB-INF/lib ?
java.lang.NoClassDefFoundError
--
org/apache/oro/text/perl/Perl5Uti
cheers,
-Original Message-
From: Pani R [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 8:23 PM
To: [EMAIL
On Jan 30, 2004, David Erickson [EMAIL PROTECTED] wrote:
|Greg: you could alternatively use the JSTL Core tags, if the bean is null it
|doesn't write anything I believe. The format is c:out
|value=${yourbean}/
|
|otherwise if you really want to use bean:write you could enclose it in a
Use a regular form tag for the login page. The form will not be submitted to
a Struts action but rather it will be processed by the filter. There is no
way to call an Action during the authentication process. This is very
similar to how container-managed security works.
One difference between
Oops, this isn't entirely true: There is no way to call an Action during
the authentication process.
You can have your login page be an action (/login.do) -- I just meant that
you can't execute an action when that page is submitted. In other words, you
can't process the login request with an
Hello,
We are trying to implement common master-detail records using indexed
properties and beans.
We would like take a single bean with various data and place in a
dynaform bean as multiple occurrences.
The single bean was created with all the getters and setters. And the
dynaform bean was
Thanks Guys.
It fixed the problem. But I dont how WSAD missed this JAR file. Anyway, it works now.
Thank you all.
Regards,
Pani
--
- Original Message -
DATE: Fri, 30 Jan 2004 13:49:29
From: Matt Bathje [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc:
I started this on the taglibs group and looks and have narrowed
the problem down to its use inside a struts/tiles application.
*** from the emails in the other group
I'd like to add that I moved the two files to the webroot and
called them directly (not through struts) and it works. So there
It's a typo in the email. But I did use java.io.IOException in the
error-page. It just give me the blank page back.
Thanks.
Song
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper
Sent: Friday, January 30, 2004 10:05 AM
To: [EMAIL PROTECTED]
Subject:
What type of formatting are you looking to do?
-David
- Original Message -
From: Gregory F. March [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 30, 2004 1:42 PM
Subject: Re: bean:write
On Jan 30, 2004, David Erickson [EMAIL PROTECTED] wrote:
On Jan 30, 2004, David Erickson [EMAIL PROTECTED] wrote:
|What type of formatting are you looking to do?
We are formatting dates, currency, and numbers.
I think we will extend the bean:write in a custom tag and just check for null
ourselves - very minimal code change this way (which is
Greg the answer to your question is yes, jstl has a fmt: tag library for
formatting text.. Good luck though, I've many times thought about extending
that bean to check for null as well :)
-David
- Original Message -
From: Gregory F. March [EMAIL PROTECTED]
To: Struts Users Mailing List
The following are the errors I got when deploying our Struts application to
JBOSS. I think it is related to taglibs. In web.xml it is like:
taglib
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/struts-bean.tld/taglib-location
/taglib
Has anyone experienced the
Slattery, Tim - BLS [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am old enough to remember when Mark Zibykowski used to
stamp every DOS executable with MZ
Umm..look again. Every *.exe file *still* begins with the letters MZ.
Yep. Mr. Zibykowski has now been reduced to This
Vic,
Would you elaborate on *.do? What does do stand for?
Regards,
Nushin
-Original Message-
From: Matthias Wessendorf [EMAIL PROTECTED]
Sent: Jan 30, 2004 11:27 AM
To: 'Struts Users Mailing List' [EMAIL PROTECTED],
'Nushin Nushin' [EMAIL PROTECTED]
Subject: RE: What does do
It just means that any URL that ends with a .do OR starts with /do would
be processed by
the struts RequestProcessor servlet.
The do is insignificant, its just what all the sample applications use and
has somehow stayed on.
*.do OR /do Or /struts OR *.struts OR /timbaktoo you could use
just
Hello Nushin,
Foo Bar :) (Greetings)
Lazy programmers. People were tired of using .html, so they started using
.do. Its smaller to write, less code, so your code executes much faster. One
of the way java can run much faster than other competing technologies.
This is also another way to staying
:-)
and of course in times of myDoom and other stuff,
using the *.exe-pattern could really bring trouble
with firewalls!
:-)
cheers!
-Original Message-
From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 11:37 PM
To: 'Struts Users Mailing List'
Cc:
Why don't you simplify the problem and have it go to an html page. We had a
problem where a forwarding jsp page had errors, resulting in a blank page.
-Original Message-
From: Song Qiu [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 3:43 PM
To: 'Struts Users Mailing List'
Quite so.
And never underestimate the space savings that come from using a lower-case oh instead
of a zero and a lower-case i instead of a one. Being smaller, the o and the i take
up less space than the 0 and 1 ... in large programs this can result in quite
significant space savings.
This
Hi,
I am creating my first Struts app which will have as many as 10 logical
services (i.e. catalog, customer, etc). Considering performance, should
some services be combined if they are called by the same action? Also,
should singleton's be a consideration or should each instance of an
action
No, I can't. The GenericErrorForward.jsp adds some parameters to the
request and forwards the request to an Action which executes some logic
before displaying the real error page.
Thanks for your input though.
Song
-Original Message-
From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
Just as a test, forward to a HTML page.
May be the blank page is because of errors in the
GenericErrorForward.jsp...due to IOException.
Is there a stacktrace being logged anywhere..?
Also arent you supposed to have the jsp within a location element in your
web.xml?
trying to help.
-jayash
-Original Message-
From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 4:21 PM
To: Struts Users Mailing List
Subject: RE: error-page does not work with IOException?
Just as a test, forward to a HTML page.
May be the blank page is because of
I am working on a multi-step work flow web app and need to give the users the ability
to navigate back to the previous screen by use of a button within the app. I've heard
others do this by creating a stack and placing each previous request into the stack.
I would like to know if this is the
Could your struts-bean.tld file be damaged? It seems like the exceptions you
posted are ocurring when the .tld file is being parsed, rather than when the
server is reading your web.xml specifically.
WILD GUESSES: Look for urn in the .tld file -- the parser seems to think
there is an XML element
82 matches
Mail list logo