Hi All,
Is there place where I can find struts example projects? I need to see
the coding style and whether null checking in Action class is required
or not.
I am not using ActionForm in my project.
Regards,
Viral
-
To
http://struts.sourceforge.net/
-Original Message-
From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 11:11 AM
To: Struts Users Mailing List
Subject: Struts Example for standards
Hi All,
Is there place where I can find struts example projects? I need to see
the
Try Jdeveloper. Great support for Struts.
sebastian
On Thu, 2004-07-15 at 13:10, Navjot Singh wrote:
hi,
I am starting a j2ee app(servlets,jsp.taglibs,ejb,jms,jaxp) with struts
as web framework and i need to decide on the IDE that i should use.
May i have your inputs on pros/cons on
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 6:46 PM
To: Struts Users Mailing List
Subject: RE: Access to message properties from within application
-Original Message-
From: Jan Behrens [mailto:[EMAIL PROTECTED]
Sent:
What the heck, I'll add a few comments as well:
1) Oracle's JDeveloper10G (AFAIK it requires a 10G
database) has support for Struts as well as JSF.
Since the latter is kinda-sorta the recommended
future direction by Craig McLanahan, JDeveloper
is probably a very good choice
2) Eclipse supports
Hi Struts Users
I'm trying to get the InputStream to read the binary contents of the
request within an Action's execute method. E.g.
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
Hi,
I am wondering if somebody tries the easystruts plugin for eclipse V3.
http://easystruts.sourceforge.net only talk about eclipse V2
Do u know other plugin for developing struts based application using Eclipse V3
Thank u
Denis
-Message d'origine-
DeĀ : Robert Shields
http://struts.apache.org/learning.html#Examples
But, it's not required.
This check was made in earlier versions of the Struts Mailreader and justified as
defensive programming. If the ActionForm was missing, the Action created one. Later,
the check was removed, since the Action should not be
Thanks Ted. Where can i get the mailreader webapp again?
Ted Husted wrote:
This is kind of a trick question, or at least a trick subject.
In a Struts application, the best practice for database access is for Struts to be unaware that there is even such a thing as a database. If you are using the
I've been doing a bit of work on PropertyUtils bugs recently and discussing
some discrepencies with how simple/mapped properties are handled between the
different methods with a couple of the other beanutils committers.
Quoting from Craig McClanahan
The standard implementations of expression
Nitrox from M4 ... best that I've seen (for struts) . Better than
MyEclipse but does not support code completion within JSP's
or debugging ( from what I can see ) .
--b
Navjot Singh wrote:
hi,
I am starting a j2ee app(servlets,jsp.taglibs,ejb,jms,jaxp) with
struts as web framework and i need to
http://aerlingus.com http://aerlingus.com
The finest of Irish airlines, to be sure , to be sure !
--b
Lykins Don H Contr AFSAC/ITS wrote:
What real-world web sites are using struts?
Can someone point me to some sites and do you know which packages/classes are used?
also, which is the most
Struts Console is very similar to Easy Struts and works in ALL versions of
Eclipse (but best in 3.0). In fact, Easy Struts is based on Struts Console,
so they are very similar.
http://www.jamesholmes.com/struts/
-James
-Original Message-
From: Denis Peyrusaubes [mailto:[EMAIL
Thank you Bill, your answer was correct. I've found that
commons-validator as distibuted with the latest
1.2.1 version of struts doesn't include the
http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd
file. So despite my specifying the DTD like so
snip=
!DOCTYPE form-validation PUBLIC
sorry should have said M7
--b
Bryan Hunt wrote:
Nitrox from M4 ... best that I've seen (for struts) . Better than
MyEclipse but does not support code completion within JSP's
or debugging ( from what I can see ) .
--b
Navjot Singh wrote:
hi,
I am starting a j2ee
Ok , dunno who to report this to but this validator stuff needs to be
looked at before this
is released to the public cause it's a bit of a mess.
Just noticed that the version of validator-rules that is distributed is
for the validator_1_1.dtd version.
I think somebody needs to take a little
At 03:52 AM 7/15/2004, you wrote:
There are currently some discrepencies in beanutils where the above
statement isn't followed - but, from the discussion over on commons, its
likely that in a future version of beanutils it will be changed so that it
is always consistent with the above statement.
Hi list,
I am coding an app where I rely on a background service to check regularly
for new mail. I want to instantiate my service component (the one checking
for mail) when the context is loaded and have it running in a background
thread. I have done only very limited coding with threads so far
better idea , integrate the spring framwork and use the built in support
for quartz scheduling.
http://www.springframework.org/docs/reference/index.html
http://www.springframework.org/docs/reference/scheduling.html
--b
*
*
Jan Behrens wrote:
Hi list,
I am coding an app where I rely on a
No I see no difficulty in relying on it. I was just saying the same as Joe
had already said but I just thought it would give you more comfort to know
the principle that the beanutils committers are working on.
Just for information, the inconsistency issue currently in beanutils is
where you have
Hi all Eclipse and Struts fans,
What free plugins for eclipse 3 do you recommend to build a complete enviroment to
develop J2EE applications using Struts?
A complete enviroment includes:
UML modeling
DataBase connection
J2EE development
Struts framework
Thanks,
Henrique Viecili
Robert, I found the following link that discusses this:
http://archives.java.sun.com/cgi-bin/wa?A2=ind0106L=jsp-interestF=S=P=49196
It sounds like you are correct -- if request.getParameter() has been
called you cannot get the input stream -- have you considered using a
Servlet instead?
Robert
tell me the url for JDeveloper.
-Original Message-
From: Amjad Shahrour [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 1:14 PM
To: 'Struts Users Mailing List'
Subject: [faked-from] RE: [OT] Editor for Struts/J2ee apps
I agree JDeveloper 10g is GREAT.
Amjad
-Original
finally solved it.
When you have the following DTD definition in your validation.xml file
snip=
!DOCTYPE form-validation PUBLIC
-//Apache Software Foundation//DTD Commons Validator Rules
Configuration 1.0//EN
http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd;
=snip
It
Jan,
Bryan's recommendation of Spring and Quartz sounds good though I have
not had a chance to work with these yet. If you want to roll your own
I suggest you look at the java.util.Timer and java.util.TimerTask
objects -- they work well for these type of services. See
I am using this DTD declaration in my validation.xml and
validator-rules.xml files:
!DOCTYPE form-validation PUBLIC
-//Apache Software Foundation//DTD Commons Validator Rules
Configuration 1.1//EN
http://jakarta.apache.org/commons/dtds/validator_1_1.dtd;
It lets me access
I got confused recently about validator versions - validator 1.1.3 has just
been released and thats what Struts 1.2.1 uses - validator 1.2 is still in
development so you need to be using
!DOCTYPE form-validation PUBLIC
-//Apache Software Foundation//DTD Commons Validator Rules
Hello,
If u r familiar with JMX, there is a Timer service
That does exactly what you want (emit notifications at certain
Interval)
Regards
marco
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
Sent: 15 July 2004 14:29
To: [EMAIL
Quartz is very easy to use. No need for thread programming.
But Job classes are created as and when they are needed (so no
initialisation and shared object).
Create a struts plug-in which initialises quartz, and sets up the jobs (very
little code needed).
Daniel.
-Original Message-
The mailreader app is included with the 1.2.1 distribution.
http://cvs.apache.org/dist/struts/v1.2.1/
--- Richard Reyes [EMAIL PROTECTED] wrote:
Thanks Ted. Where can i get the mailreader webapp again?
Ted Husted wrote:
This is kind of a trick question, or at least a trick subject.
In
Hello,
Sorry for 'OT' for asking questions about Quartz..
Is it so that I have to start a separate 'process' for Quartz to run?
So, at the end I will have my application server running as well as a
Quartz process running 'outside' the application server?
Regards
marco
NitroX DOES support code completion:
http://www.m7.com/appxray.jsp
If you get a moment, you should view
the video of the demo. However, I've heard that the new offering
from Sun is good as well:
http://www.demosondemand.com/clients/m7/001/page/demo.asp
To be fair, I'm _still_ using Idea (and
Hi,
I would like to know if it's possible to indicate a validation of
type date indicating as a dattePatern/datePatternStrict a key from
an application resource message file. I mean, instead of:
field property=fechaCierre depends=date
arg0 key=field.mantdimensionescg.fechaCierre /
arg1 name=date
h ... if i put that in mine I get a file not found exception the
commons-validator jar doesn't include that one.
with this definition it seems to be working ok for the time being
!DOCTYPE form-validation SYSTEM
http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd;
curse these dtd's
Its in the commons-validator.jar that I downloaded with Struts 1.2.1
Fair enough if it works - still the wrong one though.
Niall
- Original Message -
From: Bryan Hunt [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 3:14 PM
Subject: Re:
Hi Bill
Thanks for your response.
I've tried with a servlet too, but even without calling
request.getParameter the stream is still empty:
public class TestServlet extends HttpServlet {
ResourceBundle rb = ResourceBundle.getBundle(LocalStrings);
public void doGet(HttpServletRequest
Nope, you dont need to start another process - i use a struts plugin to load
and initialise Quartz. It will run in other threads, but this will all be
done for you behind the scenes.
The code for my struts plugin is below (if it's of any help). Add the
following entry to the
Hello.
I'm trying to do what the Struts docs mention here (scroll down to
section 5.4.3.1):
http://struts.apache.org/userGuide/configuration.html#dd_config_taglib
which is, do away with declaring the struts taglibs in my web.xml
altogether and just use an absolute URI for the taglib declaration
Can I ask why you are after the binary content of the request?
Paul
-Original Message-
From: Robert Shields [mailto:[EMAIL PROTECTED]
Sent: 15 July 2004 16:02
To: Struts Users Mailing List
Subject: RE: calling request.getInputStream() within Action
Hi Bill
Thanks for your
Are you using the nightly build (or 1.2.1?) The taglib directive
%@ taglib uri=http://struts.apache.org/tags-html; prefix=html %
works fine for me. Maybe you have an old jar or TLD lying around in your
classpath or WEB-INF?
Eliot Stock wrote:
Hello.
I'm trying to do what the Struts docs mention
Well, I have the TLDs in my WEB-INF/lib -- I haven't tried removing them
to see what happens ...
Eliot Stock wrote:
Hello.
I'm trying to do what the Struts docs mention here (scroll down to
section 5.4.3.1):
http://struts.apache.org/userGuide/configuration.html#dd_config_taglib
which is, do away
Hi Paul
I'm trying to pass it to HttpClient - I'm writing a screen scraper
(proxy).
At the moment I have to enumerate the request parameters and pass them
one by one to HttpClient - I have a feeling this won't work when I test
it with a multipart encoded form (although I may be able to make use
Hello All,
I've tried to search the list archives for previous threads on this topic,
but it appears the search feature is not working.
We are building a simple website that offers about a half dozen products for
sale.
We have one dedicated page layout (the product page) that contains
-Original Message-
From: Josh Holtzman [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 9:43 AM
To: 'Struts Users Mailing List'
Subject: Tiles, Validation and reuse of HTML Form
snip/
In the struts config file we created an Action element for
each of the 6
product
Robert Shields wrote:
Hi Bill
Thanks for your response.
I've tried with a servlet too, but even without calling
request.getParameter the stream is still empty:
One way to paint yourself into this particular corner is if you're
trying this on a POST request. As soon as you call a method like
-Original Message-
From: Bryan Hunt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 10:03 AM
To: Struts Users Mailing List
Subject: Re: Tiles, Validation and reuse of HTML Form
I do it with a separate action for each use case. I find it
tedious but
have not found a
Eric,
I am using Struts 1.1 and use the following:
%@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html %
Notice the host is jakarta.apache.org not struts.apache.org.
Paul Spencer
Eliot Stock wrote:
Hello.
I'm trying to do what the Struts docs mention here (scroll down to
section
Brian,
I agree.
In our case, the site is actually designed in that there is one page that
functions as both the catalog and item page. Don't ask...
But yes, /showItem.do?item=1 is a better approach in my opinion than 6
action mappings.
I think we have resolved our issue, simply by taking a
ron1, Jim
thank you for your help.
i think part of my problem was that i was trying to use a
DynaActionForm instead of just creating and using my own ActionForm.
now it appears to be working... for the most part. :)
andy
On Wed, 14 Jul 2004 12:02:27 -0700, Jim Barrows [EMAIL PROTECTED]
-Original Message-
From: Josh Holtzman [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 10:30 AM
To: 'Struts Users Mailing List'
Subject: RE: Tiles, Validation and reuse of HTML Form
Brian,
I agree.
In our case, the site is actually designed in that there is
one
How can I switch usual buttons, address line and references off?
regards,
Sergey mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
alrighty, i've got this half figured out. i can populate my
dropdowns, but my form doesn't seem to be scrapping the values back
off the page.
i have an action that gets a collection of beans and puts them in
session for the JSP to use. the JSP renders and displays those
objects correctly in the
Rick Reumann wrote:
On Mon, 12 Jul 2004 10:31:29 -0400, Erik Weber
[EMAIL PROTECTED] wrote:
(speaking of add form versus update form that are similar but not
exactly the same . . ) I'd reuse the same form, even if it means
some JSTL c:choosec:when test=${userAction == 'update'}.../..
I
Hmmm ... looks pretty darn hairy. You didn't show the JavaScript thats
called by the onchange -- I would verify first that getGroups is
being called.
Andrew Close wrote:
alrighty, i've got this half figured out. i can populate my
dropdowns, but my form doesn't seem to be scrapping the values
How can I pass parameters in a html:image tag.
I have four of these that will basically do the same thing, issue a
query. But, the query is parameterized.
It make little sense to do it the Husted way and have multiple image
bean buttons to represent which html:image
was selected. IMHO, that
Hi all :-)
I am wondering how some of the experienced users use roles with struts.
I saw there is a query for roles in the API (getRoles()), but could not
figure out how to configure ACLs with struts, or more specific: where to
define which action is allowed for which role, and, and I guess that
sl_getGroups is being called. i printed out alerts when i was writing
it. and i have Sys.outs in the action. besides, my JSP wouldn't show
up if it wasn't :)
the javascript is fairly simple: (i know there is a more Strutsy way
to do this, i'm getting there...)
function sl_getGroups(frm) {
if
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of ron1
Sent: Thursday, July 15, 2004 11:51 AM
To: [EMAIL PROTECTED]
Subject: How to use roles with Struts
Hi all :-)
I am wondering how some of the experienced users use roles
with struts.
I saw there is a
That's it - it works. Thanks very much.
So the docs at http://struts.apache.org/userGuide/configuration.html#dd_config_taglib
are wrong, or at least very misleading, because they use
struts.apache.org. They do say to use the uris above, but everyone is
going to do what I did and just cut and
-Original Message-
From: Andrew Close [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 11:57 AM
To: Struts Users Mailing List
Subject: Re: html:selecthtml:optionsCollection
sl_getGroups is being called. i printed out alerts when i was writing
it. and i have Sys.outs
Hi all:
I have a question regarding the use of plug-ins. According to the docs,
For PlugIns that require configuration themselves, the nested set-property element
is available.
My question is simply this: how do I retrieve the value that I set in a set-property
tag? I am sure this is dead
Thanx Jim :-)
Am I wrong on that one canonly configure web.xml roles on a servlet
base? which will mean, I set roles for a servlet mapping? so all my
struts actions will map to the same Permission...
Or did I miss something in the web.xml?
Cheers,
Ron
Jim Barrows wrote:
-Original
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of ron1
Sent: Thursday, July 15, 2004 12:08 PM
To: [EMAIL PROTECTED]
Subject: Re: How to use roles with Struts
Thanx Jim :-)
Am I wrong on that one canonly configure web.xml roles on a servlet
base? which will
Jim:
egg-on-faceYes that worked. I actually read .. which will all have been called
before the init() method is invoked. as which will have to be called before the
init() method is invoked. and got stumped..
/egg-on-face
Thank you so much!
Geeta
P.S I can see now why writing to the list
-Original Message-
From: Andrew Close [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 12:30 PM
To: Struts Users Mailing List
Subject: Re: html:selecthtml:optionsCollection
the weird thing is that i just added a textfield to the form and my
form/action picks that up.
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 12:21 PM
To: Struts Users Mailing List
Subject: RE: Configuring plug-ins using set-property tag (in
struts-config.xml)
Jim:
egg-on-faceYes that worked. I actually read .. which
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 3:35 PM
To: Struts Users Mailing List
Subject: RE: Configuring plug-ins using set-property tag (in
struts-config.xml)
P.S I can see now why writing to the list before googling is
On Thu, 15 Jul 2004 12:10:49 -0700, Jim Barrows [EMAIL PROTECTED] wrote:
Just to make sure I understand what's happening.
You display a page, user selects from first list, the page submits, the action does
it's thing, and populates the second list, then the user selects from that list,
Ron,
You can associate roles with each action mapping so that only users with
certain roles can access that action.
action
path=/admin
type=com.company.action.AdminAction
roles=administrator/
Hubert
--- ron1 [EMAIL PROTECTED] wrote:
Thanx Jim :-)
Am I wrong on that one canonly
-Original Message-
From: Andrew Close [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 1:08 PM
To: Struts Users Mailing List
Subject: Re: html:selecthtml:optionsCollection
On Thu, 15 Jul 2004 12:10:49 -0700, Jim Barrows
[EMAIL PROTECTED] wrote:
Just to make sure I
-- Jim wrote:
I don't think there is a better way, I'm just suggesting maybe hardcoding those to
drop downs for testing purposes, and eliminate the JS. You're JSP looks right, and
I'm assuming that your form bean has the return values as arrays if their
multi-select, or single strings and
-Original Message-
From: Andrew Close [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 1:40 PM
To: Struts Users Mailing List
Subject: Re: html:selecthtml:optionsCollection
-- Jim wrote:
I don't think there is a better way, I'm just suggesting
maybe hardcoding those
ahh. yeah, i added just plain html:options to the page and that
didn't work. i'll see if i can get rid of the javascript and just
submit with a button to test this out...
Thanks Jim
andy
On Thu, 15 Jul 2004 13:43:18 -0700, Jim Barrows [EMAIL PROTECTED] wrote:
-Original
Blah! it works fine with a submit button. :)
i guess i'll have to find another way to make the onchange work...
On Thu, 15 Jul 2004 15:49:05 -0500, Andrew Close [EMAIL PROTECTED] wrote:
ahh. yeah, i added just plain html:options to the page and that
didn't work. i'll see if i can get rid of
At 11:53 AM 7/15/2004, you wrote:
How can I pass parameters in a html:image tag.
http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript
If you do the coding on this one time, you merely have to add a new button
when you want one in command class ButtonOperation. After
At 02:26 PM 7/15/2004, you wrote:
crackwillow:image
button='GO.gif'
mapBean='host'
bgClr='FF'
txtClr='00'
font='Eurostile'
italic='false'
At 11:53 AM 7/15/2004, you wrote:
It make little sense to do it the Husted way and have multiple image
bean buttons to represent which html:image
was selected. IMHO, that approach is too much like hard coding.
I for one cannot imagine why you would want a button value to be dynamic
other than to
All right, i'm a real idiot.
it was a javascript issue. after i check to make sure the dropdown
value wasn't -1, i set it to -1 and then submit the form. must've
been one of those hasty cut paste mistakes...
everythings fine. nothing to see here. move along...
On Thu, 15 Jul 2004 16:06:21
Hi,
I tried adding a context parameter to web.xml:
context-param
param-nametestparam/param-name
param-valuehello/param-value
/context-param
and access it in a jsp:
html
body
%
out.print(getServletContext().getInitParameter(testparam));
-Original Message-
From: Phyl [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 3:04 PM
To: Struts Users Mailing List
Subject: Re: webapp deployment
Hi,
I tried adding a context parameter to web.xml:
context-param
param-nametestparam/param-name
When I try to search the archives for this list at:
http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]
I intermittently get this message:
Text search not available for this list
which must be a bad error message, because I'm sure I've searched it before.
Also, it looks like the
Hi,
I have downloaded jakarta-struts-1.1 and installed it as per the
installation instructions. When I try to run the tutorial I get the
following message Missing message for key welcome.title. I did search
the archives and tried all the fixes available for this problem, but
nothing works.
Make sure that the properties file (Resource Bundle file) is set properly in
the struts configuration file (usually, struts-config.xml) and check that
welcome.title property is defined in the resources file.
The entry for the Message Resources looks like the following in the struts
config file:
http://www.reumann.net/do/struts/ibatisLesson1
Richard Reyes wrote:
Hi Guys,
Newbie question, where can i get struts sample application using
database components like DAO, JDO or Hibernate samples.
Thanks
Richard
-
To
Robert Shields wrote:
Hi Craig,
Yes, I thought as much.
Do you know if it's possible to exactly recreate the binary HTTP body from parsed parameters, or elsewhere for that matter?
The only thing I could think of would be a Filter -- requires Servlet
2.3 or later -- that would be able to scrape
Hi !
I have successfully use struts to connect MySql but I wonder do I
using the database connection pool, or just a new connection for each
request??
All I did is very simple stuffs and I follow strict to the database
How-To section of struts doc.
How can I know I am actually using a connection
Koon Yue Lam wrote:
Hi !
I have successfully use struts to connect MySql but I wonder do I
using the database connection pool, or just a new connection for each
request??
All I did is very simple stuffs and I follow strict to the database
How-To section of struts doc.
How can I know I am actually
Hi,
I want to validate an attribute, the rule is that the input should
not start with 'Test',
how to write the regular expression for this validation. Please help me
guys.
Thanks and regards
Subramaniam Olaganthan
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website:
Hi,
I am trying to use a controllerClass with Tiles. I am mentioning the
controllerClass in one of my definition tags. The controller does nothing
but put a varible in ComponentContext. On the JSP I just use the
importAttribute tag to get that value. But when i access the page, I keep on
getting
Fahd,
I've successfully implemented heaps of controller classes, but I'm
having trouble visualising what you have done.
Any chance of a code example?
Mark
On Fri, 16 Jul 2004 10:35:13 +0500, Fahd Ahmed [EMAIL PROTECTED] wrote:
Hi,
I am trying to use a controllerClass with Tiles. I am
90 matches
Mail list logo