Curtis:
Thank you for the insight. I'll be sure to try this out this evening.
Am I correct to assume that app-specific log4j config files will not be
used (as in, to append/make use of the global config), and that anytime I
want to change the logging for a specific app I have to make a
Minor check..
Are you doing a redirect=true on the defined results page? A redirect
will remove all errorMessages.
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: display Max File Exceed on upload file
Date: Wed, 26 Nov 2003
What about shell pages? each page will then include the appropriate page
fragement as determined by your business logic (they answered A to
question 2, which means we need to include pageFrag3 for the next page).
Combine that with a .properties file that may determine your combinations
a bunch of postings, including the article, by a bunch of un/mis-informed
evangelists (for all technologies mentioned). it's like state fair day at
/.
can i get my 20mins back ?
-- adam
From: Yann Cébron [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL
Hey, Steve ...
Guess what? You don't understand Struts. (=
From: Gregory Seidman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [Article] SoftwareFashion (includes paragraph about Struts)
Date: Tue, 7 Oct 2003 12:57:18 -0400
On
: Tue, 7 Oct 2003 12:28:14 -0500
This response was uncalled for... at least be more professional when
responding to people through the listserv.
- Original Message -
From: Adam Levine [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 12:04 PM
Subject: Re: [Article
as desired.
Just in case you are interested: We are also offering commercial
support
for this extension and Struts itself.
--- Matthias
Adam Levine wrote:
Matthias:
I could kiss you! I've been struggling with this issue and have
been going bald over the last week doing a lot of my own engine
Generally, yes, redundant and unecessary. With lovely services like
hotmail, however, you don't get much say in the way of header information
being displayed before you actually open the email.. which makes mass
deletions, folder filtering, and blocking email beacons a big PITA. (hotmail
has
I have a similar problem. This one class of mine doesn't work sometimes.
From: Yansheng Lin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Image half loaded?
Date: Mon, 15 Sep 2003 11:03:41 -0600
Anyone having
Matthias:
I could kiss you! I've been struggling with this issue and have been
going bald over the last week doing a lot of my own engine work. I can't
wait to try this out and see if it doesn't work for me as cleanly as it
looks.
From: Matthias Bauer [EMAIL PROTECTED]
Reply-To: Struts
the only time a getXXX() should accept a parameter is when dealing with
indexed properties. If you're needing to retrieve n characters, or other
such retrieval forms, you could code an access tag that posts your results
to a scripting variable, which can then be further manipulated with
a POJO is just that. just an ordinary, everyday object. you might also
think of it as a traditional Java bean. it has an empty param
constructor, and get/setXXX signatures.
From: K.C. Baltz [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List
i lost my personal psychic friend license last year.
Just like a doctor can't diagnose your ailments over the phone, we can't
help you very easily without knowing what problem you're seeing.
What errors are you getting?
It looks like the code snippet you pasted is from the javacode generated
http://www.part.net/quartz.html
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 01 September 2003 06:37
To: [EMAIL PROTECTED]
Subject: [OT] Scheduling
Hi All,
What would be the best implementation for scheduling a job in
Weblogic/J2EE
Actually, he took yours and made it work.. seems there was a length/length()
conflict glitch.
(=
From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OT] RE: mesage message account
Date:
just as a side observation, that's odd.
from org.apache.struts.taglib.html.BaseHandlerTag, there is indeed a public
get/setAccesskey.
basehandlertag - selecttag - elselecttag.
By sheer nature of inheritence, that field (by virtue of accessor/mutator)
should be present.
From: Slattery, Tim
Isn't the object a property of the Session object, tho? You could perhaps
use a session-scoped stereotype?
From: Travis Stevens [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: UML
Date: Tue, 26 Aug 2003 09:31:14
Use of the MediaTracker is way to track the status of any media.
From the MediaTracker javadoc:
The MediaTracker class is a utility class to track the status of a number
of media objects. Media objects could include audio clips as well as images,
though currently only images are supported
I don't believe you can nest tags like that. If your custom tag is
assigning something to a scripting variable, through the use of a TEI, use
the struts html-el library, and then you can reference that variable in the
html:link tag (in jstl syntax)
ie
myLib:myTag myScriptVar=id param1=foo/
My personal preference has been to store the images in a specific directory,
which is defined in an application-specific location, with the image name
being set to the unique ID (primary key) in the image table.. that's where I
store the mime type, the size, the dimensions, keywords, title,
I'm betting it would look something like, depending on your business needs:
if ( [destination checking, these destionations require a valid session or
logged in session] )
{
if ( httpRequest.getSession(false) == null || ( [get the session, check
for logged in status] == false) )
{
:
No, that won't do for high volumn traffic sites. It's too costly.
The combination of the client-side and server-side gives you
reliability and speed, and only validator framework does that.
Btw, I agreed mostly with what you said
Thanks!
-Original Message-
From: Adam Levine [mailto
to me.
From: Adam Levine [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: validation philosophical question
Date: Fri, 15 Aug 2003 09:45:57 -0500
The fallacy in your logic is that you presume *all* clients will support
javascript, and thusly
My personal preference is there should be as little reliance on the
front-side as possible. I personally hate little JS boxes popping up at me
this entry isn't right.. fix it!, and much prefer a submit-correct cycle
with quiet, unobtrusive indicators showing me what I need to change.
If you
.
- Yansheng
-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: August 14, 2003 10:43 AM
To: [EMAIL PROTECTED]
Subject: Re: validation philosophical question
My personal preference is there should be as little reliance on the
front-side as possible. I personally hate
My $0.02, just a bit OT, and an observation...if you change your
organization a bit, you can make life easier and you (and whomever else is
working on your content) by using Java's i18n features in a bit different
manner.. specifically, get a String-based version of the Locale you want..
make
mostly with what you said
Thanks!
-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: August 14, 2003 11:42 AM
To: [EMAIL PROTECTED]
Subject: RE: validation philosophical question
If you reread my post, you'll see the validation happens only in one spot,
and that's
This, of course, assumes that all pages require the functionality of
forwards and actions and lions and tigers and bears.
don't lose sight of the forest for the trees.
From: Bailey, Shane C. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List'
on the link, at the same time put all
of the checked parameters in a hashmap and pass them over.
Any other ideas?
-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 10:32 AM
To: [EMAIL PROTECTED]
Subject: Re: Vertical Checkboxes..
How would you do
How would you do this in CGI? or any other HTML/HTTP manipulator? You
really can't.
If you want to submit information using a link (a href), that information
must already be built when the link is rendered. This is a standard GET
format (ie,a
How are you attempting to display and iterate? code snippets help us find
out what's going on
From: Mehta, Chirag (IT) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Dumbo Question
Date: Thu, 14 Aug 2003 15:58:48 +0100
Sorry, heres
addendum.. not only do i put in the userloginalreadyexistsexception, but
also the pure data validation( EmailAddressFormatNotGoodException for
malformed, EmailAddressRequiredException for blank, etc)
From: Adam Levine [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED
Or, even better, cheaper, with a better ROI: learn to help yourself. Try
checking out http://java.sun.com -- look for the links that say tutorial
or api.
From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL
taglibs.
I actually was thinking of doing it a different way: have an onclick
method to submit the page as the user clicks on the link, at the same
time put all of the checked parameters in a hashmap and pass them over.
Any other ideas?
-Original Message-
From: Adam Levine [mailto:[EMAIL
Where exactly did you read that all jsps must be fronted by actions? I'm
using 1.1, and assuredly have NOT (nor will I) front them all with actions.
From: e [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: struts
Are you sure you downloaded the implementation from apache's site?
Are you sure you have the .TLDs located in your WEB-INF dir?
Are you sure you have the taglibs referenced in your web.xml ?
From: Jitesh Sinha [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts
Google is your friend: struts tools
Also, there's an archived list of struts-user somewhere... Check the jakarta
pages for more info.
From: JavaXML Developer [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Any tool for struts?
Date: Thu,
And I'm looking for source code and purple.
Perhaps you'll find it if you dig through the example applications.
From: message message [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: example Templates for presentation layer
Date: Wed, 30 Jul
application.
There is a possibility of more which are not in the example application.
Which example application are you thinking of ?
From: Adam Levine [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: example Templates for presentation layer
Date
I used a design I called the side trip action. Basically any caller to
the action has placed, either in a form field or in the user session object,
a from and dest url. the action does what it needs to do, redirects
errors back to from, and then forwards on success to dest. I called
this
I've not worked with Hibernate at all, so please forgive me if this is
entirely off base.
but
I know XDoclet has hibernate support. And, I know using straight EJB +
Xdoclet + Struts, I can have it generated ActionForms directly from my EJB
classes. The ActionForms have support
is there a chance that accessing selectedproviderinfo.do by itself would
also cause the same servletexception ?
From: Sashi Ravipati [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: ServletException Response has already been committed'
Date:
I think you're missing the bigger concept. A PDF is the same as a JPG -
it's a media file that differs from just the plain text sent in an html
page.
You can't just stream a PDF in the middle of HTML. You have to associate it
with a content type, and the browser has to make a request for it,
I'm a 'tard.
you should call the setContentType() and whatever the ...size() method is
on the response object, rather than writing that to the output stream.
*THEN* write the bytes out.
From: Adam Levine [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL
...), that I'm aware of, for that sort of
media.Unless, perhaps, you venture into the object/embedded realm.
From: Adam Levine [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Using bean:write to display/stream PDF content -- please
Even when you get it streaming your bytes out properly, I'm sure it's still
not going to work.
Your options are:
- use a servlet to deliver the content, using a mapped url
- use the EMBED html tag (rtfm for syntax and how to use)
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing
How did you declare the app context? (in the web.xml, I believe)
From: Doyle, Michael J [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: When the Struts webapp is not at the root of the server
Date: Wed, 23 Jul 2003
Use Calendar, more than likely the concrete GregorianCalendar.
Calendar.setField(field, field value); x3
Calendar.getTime() - Date
From: Erez Efrati [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Birthdate
trigger happy send am I.
then with your (java.util)Date
new java.sql.Date( utilDate.getTime() );
From: Adam Levine [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Birthdate validation ?
Date: Wed, 23 Jul 2003 13:18:19 -0500
Use
It has to deal with the way Java resolves bean fields where there are
multiple uppercase in a row. I believe if you used .ID in your jsp it
should work. I always get confused on how the rules work in resolving, so
I attempt to use as few caps in a row as possible.. ie, ID - id -
getId/setId
it's part of the web.xml
error-page
error-code404/error-code
location/examples/404.htm/location
/error-page
From: Cecile Mercado [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: creating Not Authorized page with JDBCRealm
Date: Tue, 22 Jul 2003 15:19:28 -0400
If you want to use a Constants class to use within JSTL syntax, here are the
basic rules:
1: Constants has to be a true Bean.
-- it must have a public constructor that takes no parameters (public
Constants())
2: The fields you want to access must also be true Bean fields:
ie:
private
Ignore my glaring typos:
2: The fields you want to access must also be true Bean fields:
ie:
public Static CONSTANT_KEY_1 = a_constant_key; // perhaps used by
your code elsewhere
public String getConstantKey() { return CONSTANT_KEY_1; }
To: [EMAIL PROTECTED]
Subject: Re: paramId in
for my $0.02.
Using just pure servlet and base JSP, dealing with forms is not intuitive
or clean. You either rely on too much code in a JSP, or too much reading
and parsing at the start of your servlets. And, the development cycle
increases as your changes increase. I find the Struts mode
have each row be its own separate form. add a hidden field that indicates
which row it's on. read that field on the submit.
From: Norr, Peter [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Question on how to
or, for those who aren't fans of having multiple forms. Add checkbox/radio
button (Depending on your business logic) to each row, obviously indexed to
the row #, and then place one button below the rows labeled delete/removed
selected item(s)
From: Norr, Peter [EMAIL PROTECTED]
Reply-To:
I think the one thing that hasn't been mentioned. And this is my point of
view. The servlet architecture provides the mechanism for the the data
flow. Struts utilizes and builds upon it to make it work in a more
application-friendly manner. You've got all these roads and highways
around,
Somewhere about 6months ago I saw a demo, danged if I can remember who it
was, for software that wrapped around your swing application and delivered
it in html. was quite slick, it handled the conversion for almost every
component quite well -- the demo site used the standard Java SwingSet
me at the moment.
-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 2:47 PM
To: [EMAIL PROTECTED]
Subject: RE: [Friday] How far can we let the clients push us?
Somewhere about 6months ago I saw a demo, danged if I can remember who it
was, for software
Action class: hits datasource, retrieves results, stores results in user
session
JSP page:
[myCustomTag:accessResultSet assignTo=myResults/]
[c:forEach/out ${myResults[iterator]}] [/c:forEach/out]
myCustomTag extends TagSupport
... assign datasource results to scripting
scriptlets (bad choice)
custom tags (flexible choice)
jstl, accessing the implicit session (you did store the form in the session,
didn't you...) and form key name
From: Norr, Peter [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL
other option.. tie the result collection to the user session.. use an
appropriate JSTL tag to access the collection from session and process..
maybe a combination of c:set, c:forEach...
From: Adam Levine [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL
PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Newbie question about form variables.
Date: Thu, 17 Jul 2003 15:12:33 -0400
Does Struts 1.1 come with JSTL implementation?
If so How do I use it?
Peter
-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent
The practice I've done, and seen done, is to call your business logic from
the action. Take the form/whatever from the Action, change it into a
DO/VO/POJO and pass it off. The business logic can be in a local class, or
it can call an EJB (stateful/stateless). This keeps the business logic
always been to a .do or equivalent (to
an action) or to a jsp?
sandeep
--- Yansheng Lin [EMAIL PROTECTED] wrote:
Read backwards:). Interested in finding out why.
-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: July 8, 2003 4:01 PM
To: [EMAIL PROTECTED
My goal in handling business problems in validating a form submission from
an Action.execute() is 2-fold:
1: Display the accumulated ActionErrors (ie, using [html:errors/] )
2: Return the user to the exact same URL in their browser address bar.
I was using an action-mapping forward in
System.out.println(mapping.getInput()) to see if you are going
back
to the right page. You might be surprised:).
-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: July 8, 2003 1:40 PM
To: [EMAIL PROTECTED]
Subject: using getInputForward vs new ActionForward(mapping.getInput())
My goal
happened, why it worked before?
-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: July 8, 2003 3:18 PM
To: [EMAIL PROTECTED]
Subject: RE: using getInputForward vs new ActionForward(mapping.getInput())
Correct. isEmpty() returns false (there are items present). and yes
68 matches
Mail list logo