Re: problems w/ logging.. again

2004-01-20 Thread Adam Levine
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

Re: display Max File Exceed on upload file

2003-11-26 Thread Adam Levine
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

Re: Wizard with a Twist

2003-10-07 Thread Adam Levine
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

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Adam Levine
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

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Adam Levine
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

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Adam Levine
: 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

Re: workflow extension question

2003-10-06 Thread Adam Levine
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

Re: [OT] Subject line filter tag

2003-09-16 Thread Adam Levine
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

Re: Image half loaded?

2003-09-15 Thread Adam Levine
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

Re: workflow - Re: integration with other app

2003-09-12 Thread Adam Levine
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

RE: Struts 1.0 problem

2003-09-09 Thread Adam Levine
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

Re: Converting a ResultSet to a List of POJOs

2003-09-09 Thread Adam Levine
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

Re: deployement issue

2003-09-09 Thread Adam Levine
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

RE: [OT] Scheduling

2003-09-02 Thread Adam Levine
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

RE: [OT] RE: mesage message account

2003-08-26 Thread Adam Levine
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:

Re: Another missing attribute in html-el

2003-08-26 Thread Adam Levine
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

Re: UML

2003-08-26 Thread Adam Levine
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

RE: Validating uploaded file as an image only

2003-08-22 Thread Adam Levine
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

Re: mailto in html:link

2003-08-20 Thread Adam Levine
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/

Re: Dealing with images...

2003-08-19 Thread Adam Levine
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,

Re: Session expired

2003-08-19 Thread Adam Levine
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) ) {

RE: validation philosophical question

2003-08-15 Thread Adam Levine
: 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

RE: validation philosophical question

2003-08-15 Thread Adam Levine
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

Re: validation philosophical question

2003-08-14 Thread Adam Levine
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

RE: validation philosophical question

2003-08-14 Thread Adam Levine
. - 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

Re: Internationalizing 100's of pages of text

2003-08-14 Thread Adam Levine
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

RE: validation philosophical question

2003-08-14 Thread Adam Levine
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

RE: struts 1.1 question

2003-08-14 Thread Adam Levine
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'

RE: Vertical Checkboxes..

2003-08-14 Thread Adam Levine
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

Re: Vertical Checkboxes..

2003-08-14 Thread Adam Levine
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

Re: Dumbo Question

2003-08-14 Thread Adam Levine
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

Re: validation philosophical question

2003-08-14 Thread Adam Levine
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

RE: Java Help

2003-08-14 Thread Adam Levine
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

Re: How to Avoid the Form getting Submitted when User clicks the enter buttonon the Keyboard

2003-08-14 Thread Adam Levine
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

Re: struts 1.1 question

2003-08-14 Thread Adam Levine
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

RE: Newbie:Using two arrays in a logic:iterate tag

2003-08-04 Thread Adam Levine
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

Re: Any tool for struts?

2003-07-31 Thread Adam Levine
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,

Re: example Templates for presentation layer

2003-07-29 Thread Adam Levine
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

Re: example Templates for presentation layer

2003-07-29 Thread Adam Levine
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

RE: Design Question - same action, many jsps/views

2003-07-28 Thread Adam Levine
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

Re: Struts + Hibernate: A few newbie questions about how to get this right?

2003-07-24 Thread Adam Levine
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

Re: ServletException Response has already been committed'

2003-07-24 Thread Adam Levine
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:

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Adam Levine
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,

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Adam Levine
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

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Adam Levine
...), 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

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Adam Levine
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

RE: When the Struts webapp is not at the root of the server

2003-07-23 Thread Adam Levine
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

Re: Birthdate validation ?

2003-07-23 Thread Adam Levine
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

Re: Birthdate validation ?

2003-07-23 Thread Adam Levine
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

Re: Accessing an ID property of a bean using EL

2003-07-23 Thread Adam Levine
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

Re: creating Not Authorized page with JDBCRealm

2003-07-22 Thread Adam Levine
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

Re: paramId in html-el:link tag - Referenceing a Constant

2003-07-21 Thread Adam Levine
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

Re: paramId in html-el:link tag - Referenceing a Constant

2003-07-21 Thread Adam Levine
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

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Adam Levine
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

RE: Question on how to remove a detail row?

2003-07-21 Thread Adam Levine
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

RE: Question on how to remove a detail row?

2003-07-21 Thread Adam Levine
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:

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Adam Levine
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,

RE: [Friday] How far can we let the clients push us?

2003-07-18 Thread Adam Levine
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

Re: [Friday] How far can we let the clients push us?

2003-07-18 Thread Adam Levine
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

Re: Returning data from a ResultSet (via a Collection) to my jsp page...

2003-07-17 Thread Adam Levine
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

RE: Newbie question about form variables.

2003-07-17 Thread Adam Levine
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

Re: Returning data from a ResultSet (via a Collection) to my jsp page...

2003-07-17 Thread Adam Levine
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

RE: Newbie question about form variables.

2003-07-17 Thread Adam Levine
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

Re: Business logic goes where in MVC/Struts??

2003-07-16 Thread Adam Levine
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

Re: (RE-POST) RE: using getInputForward vs new ActionForward(mapping.getInput())

2003-07-10 Thread Adam Levine
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

using getInputForward vs new ActionForward(mapping.getInput())

2003-07-08 Thread Adam Levine
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

RE: using getInputForward vs new ActionForward(mapping.getInput())

2003-07-08 Thread Adam Levine
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

RE: using getInputForward vs new ActionForward(mapping.getInput())

2003-07-08 Thread Adam Levine
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