On 6/17/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Good info Craig... So do I understand correctly then that you can specify
> multiple config files for an app regardless of module usage (well, one with
> just the "default" module really)?
Yep.
> I thought I saw someone mention a CSV li
In addition to all of the good suggestions earlier in this thread, you
might also want to take a look at Commons Digester -- which Struts and
Tomcat, among others, use to parse their configuration XML documents
(typically turning the result into a tree of JavaBeans).
http://jakarta.apache.org/comm
Good info Craig... So do I understand correctly then that you can specify
multiple config files for an app regardless of module usage (well, one with
just the "default" module really)? I thought I saw someone mention a CSV list
in the ActionServlet init param, is that all there is to it?... If
Good info Craig... So do I understand correctly then that you can specify
multiple config files for an app regardless of module usage (well, one with
just the "default" module really)? I thought I saw someone mention a CSV list
in the ActionServlet init param, is that all there is to it?... If
On 6/17/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> The longest I have is 173 action mappings. I haven't noticed any
> performance problems with it. Struts basically loads it once at startup
> and from then on it's in-memory, so the only potential problem I could
> imagine is lookup speed,
It's not just an issue of name collisions (although that is certainly possible).
* Legal issues -- for example, the "java.*" and "javax.*" namespaces are
reserved for APIs that have gone through the JCP process.
* Misrepresentation issues -- if you use "com.foo.*" packages, you are
implying t
1. Displaying errors on the JSP page is not differnt from the normal action
form validation. You could add whereever you need to display
the error. In addition you could add a in your JSP along with adding onsubmit="return
validateYourFormName(this)" in the html:form would give you an additiona
You could probably try using JAXB... That API is given by sun for Java for
XML binding... gives you option to create java objects from an XML schema so
that converting xml to java and vice-versa can be done without much work!
Take a look at
http://java.sun.com/xml/jaxb/
Nitesh
- Original
On 6/17/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> getPathInfo() might be interesting for this. Have you tried it Michael?
> I have use getPathInfo in my code but without setting up my appserver
> and running it I can't tell.
No, getPathInfo does not work. I guess I will just stick my own key
val
Ok, but even if that is what she was wanting, it could still use the
same struts config syntax I pointed out:
...
Then in PathInfoForwardAction:
for (Iterator i = mapping.getProperties().entrySet().iterator();
i.hasNext(); ) {
Map.Entry entry = (Map.Entry)i.next();
String key = (
On 6/17/05, Don Brown <[EMAIL PROTECTED]> wrote:
> Ok, what about this:
>
> I added the ability to pass multiple request-time values to the Action
> using the ActionConfig properties. This means, in your case, your
> struts config would look like:
>
> type="...PathInfoForwardAction"
Ok, what about this:
I added the ability to pass multiple request-time values to the Action
using the ActionConfig properties. This means, in your case, your
struts config would look like:
...
In your PathInfoForwardAction, you can now access those values using:
... = mapping.get
The longest I have is 173 action mappings. I haven't noticed any
performance problems with it. Struts basically loads it once at startup
and from then on it's in-memory, so the only potential problem I could
imagine is lookup speed, but that doesn't seem to be an issue.
Breaking it up makes sens
Hello,
I don't know how to display errors in the jsp input page when using Struts
Validator. This is my case:
- validation.xml
...
mask
^(\d{3}-\d{3}-\d{4})|(\(\d{3}\)
?\d{3}-\d{4})$
I ended up writing an action which let me do this:
The action splits the parameter, builds a map from the name=value pairs
and sticks it in request scope then resets parameter. Except it doesn't;
ActionMapping.setParameter() throws a runtime exception, so I have to
painfully construct a du
Hi,
I'm using Struts 1.0 and have defined two data sources in the
struts-config.xml:
I'm using these data sources in my acti
search castor on goggle
Dave Newton <[EMAIL PROTECTED]> wrote:Michael Jouravlev wrote:
>I'd love to see a package name built from GUID.
>
>
What, you don't want to name your packages
013f891c58a842f1ba17a3954dded562.utils.StringUtils?
Pansy!
Dave
---
Michael Jouravlev wrote:
I'd love to see a package name built from GUID.
What, you don't want to name your packages
013f891c58a842f1ba17a3954dded562.utils.StringUtils?
Pansy!
Dave
-
To unsubscribe, e-mail: [EMAIL PROTE
On 6/17/05, Emmanouil Batsis <[EMAIL PROTECTED]> wrote:
> Adam Hardy wrote:
>
> > I'd love to drop the whole top-level domain but why on earth is it
> > there in the first place?
>
>
> Domain names are used as identifiers and are controlled by the or
> authority that owns them; as such they are
On Jun 17, 2005, at 15:13, David Gagnon wrote:
Sorry for this OT. I'm looking for a way to output an object into
XML for debugging purpose.
I'm pretty sure I can do it myself with beanUtils and xml-api ..but I
hate reinventing the whell and pretty sure there is a simple tool
somewhere.
El
Hi all,
Sorry for this OT. I'm looking for a way to output an object into XML
for debugging purpose.
I'm pretty sure I can do it myself with beanUtils and xml-api ..but I
hate reinventing the whell and pretty sure there is a simple tool somewhere.
Thanks for your help!
Have a nice week-e
Zarar Siddiqi wrote:
Let's give credit where credit is due:
http://www.michaelmcgrady.com/button/
- Original Message - From: "Michael Jouravlev" <[EMAIL PROTECTED]>
Yep, a lot of work. SimpleDispatchAction indeed looks much simpler:
http://wiki.apache.org/struts/StrutsCatalogDispatch
Let's give credit where credit is due:
http://www.michaelmcgrady.com/button/
- Original Message -
From: "Michael Jouravlev" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Friday, June 17, 2005 1:57 PM
Subject: Re: HTML:LINK
Yep, a lot of work. SimpleDispatchAction indee
Yep, a lot of work. SimpleDispatchAction indeed looks much simpler:
http://wiki.apache.org/struts/StrutsCatalogDispatchActionImproved
On 6/17/05, Zarar Siddiqi <[EMAIL PROTECTED]> wrote:
> Link looks like:
> hi
>
> Make sure you have following in ApplicationResources.properties:
> whatever.dispat
Yuniar and Nitesh, Thanks for replies.
There are two possibilities struts could do with struts-config.xml.
1. load this file from server start up. save it in memory. or 2. read
when it use it.
The second possibility would have performance issue. So I assume struts
use first possibility.
The pro
Hubert Rabago wrote:
The problem about unique names doesn't apply to JAR files because you
can just rename them.
The JAR names are irrelevant even for your classpath. The Java VM will
load classes of which the full class name may be in conflict with
another, unless you use something you c
Adam Hardy wrote:
I'd love to drop the whole top-level domain but why on earth is it
there in the first place?
Domain names are used as identifiers and are controlled by the or
authority that owns them; as such they are an excellent choice for
namespaces/packages as well.
ecoworks.forum
Yuniar and Nitesh,
Thank you for your thinking about the problem.
Do you have web link of web sites that has used struts for 200+ jsp
pages?
Thanks.
- Original Message -
From: Nitesh
To: "Struts Users Mailing List"
Subject: Re: long struts-config.xml file
Date: Fri, 17 Jun 200
Link looks like:
hi
Make sure you have following in ApplicationResources.properties:
whatever.dispatch=Do Something
When you load the method Map, make sure something like this happens:
public Map getKeyMethodMap() {
// stuff
map.put("whatever.dispatch", "Do Something");
On 6/17/05, Janek Ziniewicz <[EMAIL PROTECTED]> wrote:
> SimpleDispatchAction inherits from Action class not from DispatchAction.
> At http://wiki.apache.org/struts/StrutsCatalogDispatchActionImproved you
> can read:
> "You can use a dispatch action without requiring configuration of a
> parameter
I've always heard that you java developers are such prima donnas ;-)
OMG, and I thought I was on some bad projects!! Actually, add some
cusses and bodily references and it's worthy of being a BileBlog.
It sounds like a gold mine if you're a consultant, and a living
nightmare if you're not billing
On 6/17/05, Harland, David <[EMAIL PROTECTED]> wrote:
> Hi,
>
> How do you make the form remember the form values even if it fails the
> validation. At the moment I am having to store them in a request
> attribute before calling validate. Is there an easier way.
>
> Thanks
>
> Dave.
* Use strin
You know, coming from someone who generally dislikes IDEs of any kind, I
have to admit I played with IDEA for a while and it is far and away the
best IDE I've tried. I'm still sticking with UltraEdit, works for me
extremely well. But, if I have to use an IDE of any kind, IDEA is at the
top of my
Hi,
How do you make the form remember the form values even if it fails the
validation. At the moment I am having to store them in a request
attribute before calling validate. Is there an easier way.
Thanks
Dave.
This e mail is from DLA Piper Rudnick Gray Cary UK LLP.
The contents of this email
On 6/17/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> What really got me on my last project was changing from one organisation
> to another, the project packages had to be renamed from uk.co.bbb to
> com.siemans and we actually made it all the more pointless by discussing
> whether it should be com.s
*Smart* Alec et al-
use \u0002d for the hyphen character
HTH,
Martin-
- Original Message -
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Friday, June 17, 2005 11:08 AM
Subject: Re: [FRIDAY] package naming nonsense
Hey! I heard that!
Dennis,
since you
I'm not sure what you are saying here.
When I create a new project with same properties file key/value
(app.title=Wiley Employee Sample), it works well .
Are you saying that everything is ok now? Or are you saying that you
have two projects which *appear* to be the same and that one is working
Brian Lee wrote:
Nope, this guy was from San Diego. He had many other pearls of wisdom.
My favorite was when he designed a system that would dynamically load
an EJB bean implementation at run-time. He wasn't using delegates or
proxies or anything coded, he wanted to use deployment descriptors.
Good point, perhaps
com.evergreennohyphenbutperhapsalittlehypeinvestments
would be clearer?
On 6/17/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Simon Chappell wrote:
>
> >That's easy:
> >
> >com.evergreennohypheninvestments
> >
> >
> Nah, that's too easily confused with my EvergreenNoHypeInves
do you put the tag inside tag? Alsp double check the form name
and the field name.
Andrey Grishin <[EMAIL PROTECTED]> wrote:Good morning/day/evening, All!
I use Struts 1.2.6 and Tomcat 4.1.29
I have a working email validator for my form:
I want to use validwhen validator, so I changed the
Simon Chappell wrote:
That's easy:
com.evergreennohypheninvestments
Nah, that's too easily confused with my EvergreenNoHypeInvestements.com
site.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
That's easy:
com.evergreennohypheninvestments
:-)
On 6/17/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> Hey! I heard that!
>
> Dennis,
>
> since you're such a smart alec, tell me what happens when you publish a
> product with the package com.evergreeninvestments, and you find that
> it's already
Hey! I heard that!
Dennis,
since you're such a smart alec, tell me what happens when you publish a
product with the package com.evergreeninvestments, and you find that
it's already gone, because some impudent whippersnapper registered
www.evergreen-investments.com and released his package fir
From: "Karthika L V somayajula" <[EMAIL PROTECTED]>
> if i return null, where will the action forward to?
Nowhere. By returning null, you inform the framework that you have handled
the response, and it doesn't need to do anything.
--
Wendy Smoak
-
Good morning/day/evening, All!
I use Struts 1.2.6 and Tomcat 4.1.29
I have a working email validator for my form:
I want to use validwhen validator, so I changed the validation to:
test
CONDITION
Yes, there is a file named ApplicationResources.properties in the
WEB-INF/classes/employees/view folder, it has key/value like "app.title=Wiley
Employee Sample"
When I create a new project with same properties file key/value
(app.title=Wiley Employee Sample), it works well .
"McDonnell, Co
I got that problem before with Weblogic 8.1 and was able to solve it by
adding the strtus.jar and struts-el.jar in the classpath of the wlappc
task definition:
where 'jspc.classpath' contains references to weblogic.jar but also
struts-el.jar and struts.jar.
Give it a try.
Aymeric.
-Or
Greetings all
If I might add to Mr McDonnell's commentary-
You can also handle message strings thru your init-param in your Struts
servlet descriptor (web.xml)
application
com.mycompany.mypackage.MyResources
OR you can add tag in struts-config.xml
where packagename is a folder off of
Nope, this guy was from San Diego. He had many other pearls of wisdom. My
favorite was when he designed a system that would dynamically load an EJB
bean implementation at run-time. He wasn't using delegates or proxies or
anything coded, he wanted to use deployment descriptors. That was a fun one
By chance, was his name "Adam Hardy"?
;)
"Brian Lee" <[EMAIL PROTECTED]>
06/17/2005 09:52 AM
Please respond to
"Struts Users Mailing List"
To
[EMAIL PROTECTED], user@struts.apache.org
cc
Subject
Re: [FRIDAY] package naming nonsense
That's pretty much the reasoning I always got beh
Hi folks I'm programming a module.
This Action class extend LookupDispatchAction and the jsp has several
button in order to do something. Because it extends LookupDispatchAction
each time I click on any button I can save the form elements in a session
var.
All work fine...
But what about
That's pretty much the reasoning I always got behing. This remings me of a
funny time a consultant suggested removing all the "com." from our package
names in order to "save 4 bytes" from each class file.
BAL
From: Hubert Rabago <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Subject: Re:
SimpleDispatchAction inherits from Action class not from DispatchAction.
At http://wiki.apache.org/struts/StrutsCatalogDispatchActionImproved you
can read:
"You can use a dispatch action without requiring configuration of a
parameter attribute in struts-config.xml."
My problem is that each
perhaps i'm flogging a dead horse here, but isn't
com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl
just plain daft?
On 17/06/05 14:02 Marsh-Bourdon, Christopher wrote:
I favour using org.apache.* or com.sun.*, but never com.microsoft.*. It
gives a certain gravitas to one'
Is there a file named ApplicationResources.properties in the
WEB-INF/classes/employees/view folder within your deployed application?
If so, does this file contain a property for app.title (e.g.
app.title=Foo)?
-Original Message-
From: EROL TEZCAN [mailto:[EMAIL PROTECTED]
Sent: 17 June 2
Hi All,
I am working to run an example in Mastering Jakarta Struts Chapter 11 .
When I want to run this application , I got an error.
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.retrieveMessa
The exception message
Request[/login] does not contain handler parameter named
'null'.
Implies that you either haven't defined the dispatch parameter or you
haven't supplied a value for the dispatch parameter. Have you checked
the API for DispatchAction, in particular the parts relating to the
"
re 2 - you can call off the men in the white coats, I'm not that far
gone. I meant, name an example where name space collision was neatly
avoided by having com. or org. on the package names.
On 17/06/05 13:59 [EMAIL PROTECTED] wrote:
1. Well, no one suggested that you need to search some arch
Hello again,
all my action classes are derived from SimpleDispatchAction class. After
submitting a form I am forwarded to desired page but always get a
following error. Logs of my app show that after each submitting to POSTs
are sent. First forwards me to next page, second produces an error. Any
I favour using org.apache.* or com.sun.*, but never com.microsoft.*. It
gives a certain gravitas to one's coding! ;-)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 17 June 2005 13:59
To: Struts Users Mailing List
Subject: Re: [OT] package naming nonsense
1. Well, no one suggested that you need to search some archive.
2. It would be difficult (if not impossible) to name an example of an
application that has a namespace collision that is publicly available. I
hope you understand why.
Finally, naming conventions are not enforced by compilers. Nam
OK, silly me, I started using java with 1.2, rather than 1.0, but it's
friday, so please don't tell me to go read the archives
I admit, in theory it's easy to say, you're using blah.blah.blah.foo and
so am I, a disaster in the making, but when is that going to happen? I
challenge you to na
Why, just the other day, I contemplated the same thing. In fact, I TOO
named my OSS package blah.blah.blah. But wait, what would've happened if
you and I had not only the same package structure, but also 2 classes with
the same name e.g. blah.blah.blah.foo, and you decided to use my OSS?
I'm
IIRC, it really was the possibility of mix-ups that was the idea
behind using TLDs for package names. At least with TLDs, one can
reasonably assume that the groups sharing the same TLD could work out
organizing package naming conventions amongst themselves. Without the
convention, the IT groups o
Since it's Friday and I'm just about to start a new project, I thought
I'd ask everyone what they think about something that's always bugged me.
Package names in Java. Why do we all have com.blah.blah or
org.apache.stuff.xxx instead of just plain blah.blah.blah and
apache.stuff.xxx?
What rea
Can't you use a TilesController-class and manipulate your
tiles-attribute depending on some parameter in request scope?.
Doing so you only have to declare one action and one tiles-definition.
/Andreas
Ramadi Pearse wrote:
Does anyone have best practices on how to compose or
decorate stand-alon
There may not be a performance issue...
probably could have some effect in startup (not sure if there are any
though!) .
Mainly this would be done to make your config files more 'readable'
Also it makes sense to group the related ones together depending on
functionality/module or whatever para
On 16/06/05 22:47 Max Cooper wrote:
I think this is a weird requirement, and it may be worth re-evaluating
why you want to know this (are you fighting the technology, or
leveraging it?). But here are two tips that might help if you decide
that you really need to know:
1. request.getPathInfo() --
Source of StrutsCatalogDispatchAction
http://wiki.apache.org/struts/StrutsCatalogDispatchActionImproved
--
Pozdrawiam, Janek Ziniewicz
gg:902858
irc.freenode.net: #gore, #dub
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
Hello again,
all my action classes are derived from SimpleDispatchAction class. After
submitting a form I am forwarded to desired page but always get a
following error. Logs of my app show that after each submitting to POSTs
are sent. First forwards me to next page, second produces an error
You could use a jsp debugger which is part of MyEclipseIDE.
Dnia Fri, 17 Jun 2005 09:21:31 +0200, Nitesh <[EMAIL PROTECTED]> napisał:
Looks like you have an action in the html:form in submit.jsp which is
not there in the struts-config action mappings (checkout the case of the
actions as well
Thank you for your reply
Glenn, if i return null, where will the action forward to?
Actually I have'nt copied the total class to you, i did return. Let me
show you the file.
Could you please tell me if you are comforatable that I attach my
files intead of pasting the whole content?I think that w
Is there any performance issue when you have very long struts-config.xml?
I'm having about 200+ action either but so far everything is running well,
or perhaps not yet?
On 6/17/05, Nitesh <[EMAIL PROTECTED]> wrote:
>
> You could also think about using multiple struts-config files... say one
>
Looks like you have an action in the html:form in submit.jsp which is not
there in the struts-config action mappings (checkout the case of the actions
as well)
Nitesh
- Original Message -
From: "Amin Mohd Sani" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Friday, June 17
74 matches
Mail list logo