Re: Is this really the best way to handle this problem

2003-07-15 Thread John M. Corro
above ? //Linus Nikander - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] John M. Corro Cornerstone Consulting

Data reposting when forwarding to Action

2003-07-10 Thread John M. Corro
that step #7 is occuring - Recommend any alternative approachs to sidestep the problem or prevent the reset() method from getting invoked before the setup Action. * Extra points for anyone who can recommend a good way of dealing w/ the hack noted in step #2 :) John M. Corro Cornerstone Consulting

Populating a FormBean's underlying value object

2002-03-15 Thread John M. Corro
I have a situation where I want to have an ActionForm (let's say AutomobileForm) w/ only 1 variable (Automobile). If the Automobile class's get/set parameters were all run of the mill types (String, int, boolean, etc), I would normally just have a method called 'getAutomobileObject()' inside

Re: Populating a FormBean's underlying value object

2002-03-15 Thread John M. Corro
If I understand what you're saying, (using the previous Automobile example) you would have something like // THE ORIGINAL VALUE CLASS public class Automobile { private CarType carType = null; public CarType getCarType(){ return carType; } public void setCarType(CarType ct)

Best way to find referrer

2002-03-13 Thread John M. Corro
I'm looking to find the best way to find the referring page (ie find out where the user came from). So far this is the piece of code I have... Enumeration e = request.getHeaderNames(); String refText = null; while (e.hasMoreElements()) { String key = (String)e.nextElement(); if

Re: Perhaps TABOO Question, how to convert struts apps to non-struts

2002-03-13 Thread John M. Corro
My personal experience is that if you're writing the application in any form of tiered way (beans, classes, etc), only service providers that give you your own JVM instance are going to let you deploy those classes anyways (making the non-inclusion of Struts a moot point). I've found that every

Re: What do you call them beans?

2002-03-12 Thread John M. Corro
I'll occassionally run a Tiered Accessor Entity to a Business Object.in which case I just label it a TaeBo Sorry couldn't resist : ) - Original Message - From: MARK NICHOLS [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 8:04 AM Subject: RE: What do you call

BeanUtils.populate and OutOfMemoryError

2002-03-11 Thread John M. Corro
I have a form page that incorporates a quite a few form elements (generated from Struts tag lib) particularly select menus. I recently had to add a few more pulldown menus and found that doing so caused the page to not to be able to submit. I can get the page to display correctly, but when I

OT: DHTML Menus and Form Objects

2002-03-06 Thread John M. Corro
. Has anyone been able to effectively make this type of workaround work? I'm using HierMenus from www.dhtml.com on a W2k box w/ IE 5. John M. Corro Cornerstone Consulting 414.212.3500

Re: DHTML Menus and Form Objects

2002-03-06 Thread John M. Corro
like the SOL idiom, too. :-) Mark -Original Message- From: John M. Corro [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 10:37 AM If you have one of those DHTML/JS pulldown menus, it'll get hidden behind specific types of form objects (mostly select boxes). I've scoured

Memory and Struts Tags/ActionForms

2002-03-01 Thread John M. Corro
I'm running into a situation where I've added a number of extra form fields (as Struts tags) to a page that was working before. Now that I've added them, the page will still display, but when I try to submit the form I get an exception saying java.lang.reflect.InvocationTargetException:

Form Tags - OutOfMemoryException

2002-02-28 Thread John M. Corro
I know that there have been posts in the past from people who have run into OutOfMemoryExceptions from a high amount of tags in their JSP. I've recently run into a situation where a page (that already had a good number of tags) that was working had to be modified to include more form tags

Re: anyone using Castor with Struts?

2002-02-22 Thread John M. Corro
Ive also used Castor for converting existing beans/classes to XML via Castor mappings. Though I'm interested in hearing about the performance of their JDO/OQL functionalityJDO just seems like it'd be so much faster from an app development standpoint, but what I am worried about is the

Re: is there a way to bring up simple js windows for prompts rather thancreating a form?

2002-02-22 Thread John M. Corro
At a glance this might be an option On the popup screen generate a list of valid Billing IDs and on each link set href=# and onclick=selectBillingID(bean:write); return false;. The selectBillingID method will call a method of the parent browser (ie the one that it popped up from). The

Re: Development Environment

2002-02-21 Thread John M. Corro
Glad to see someone else using JEdit. Thought I was the lone sole. - Original Message - From: Chris Birch [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 1:07 PM Subject: RE: Development Environment Jedit and make

Attn: Francisco Hernandez

2002-02-19 Thread John M. Corro
Francisco, You sent me 2 emails yesterday w/ a subject line Re: Itext - PDF from Struts, both emails were infected and quarentined by our anti-virus software. If you had a specific question, please resend w/ an uninfected email. (Sorry to post on the Struts forum, but the email

Re: Itext - PDF from struts

2002-02-15 Thread John M. Corro
Unless performance is of major concern, I'd recommend fop over iText...I personally don't really care for iText. I'd recommend only collecting any necessary info in the ActionForm...I wouldn't do any business processing in there. Rather take that info you collected in the ActionForm and

Form - Bean conversion

2002-02-15 Thread John M. Corro
We have a bunch of existing beans that we'd like to use w/ ActionForms. For each bean we'll need to obviously expose the getters/setters in the corresponding ActionForm. The ideal scenario we'd like to see happen is prevent the ActionForms from having all the corresponding getters/setters

Re: Itext - PDF from struts

2002-02-15 Thread John M. Corro
--- John M. Corro [EMAIL PROTECTED] wrote: Unless performance is of major concern, I'd recommend fop over iText...I personally don't really care for iText. I'd recommend only collecting any necessary info in the ActionForm...I wouldn't do any business processing in there. Rather take

Re: Form - Bean conversion

2002-02-15 Thread John M. Corro
to do some sort of conversion within the ActionForm to get around this. Kimberly MacKellar -Original Message- From: John M. Corro [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 2:53 PM To: [EMAIL PROTECTED] Subject: Form - Bean conversion We have a bunch of existing

Re: Form - Bean conversion

2002-02-15 Thread John M. Corro
html:text property=nameOfBean.propertyOfBean size=10/ Kim -Original Message- From: John M. Corro [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 3:18 PM To: Struts Users Mailing List Subject: Re: Form - Bean conversion Unless I'm misunderstanding, I'm not sure

Re: Form - Bean conversion

2002-02-15 Thread John M. Corro
PROTECTED] Sent: Friday, February 15, 2002 3:22 PM Subject: RE: Form - Bean conversion You will have a getter and setter for the bean. Then in the jsp you will access the bean something like html:text property=nameOfBean.propertyOfBean size=10/ Kim -Original Message- From: John M. Corro

Re: Form - Bean conversion

2002-02-15 Thread John M. Corro
is ActionForm.getSomeBean().getSomeProperty(). Regarding to the actually bean's property something that is not string, I think the ActionServlet does the convertion for you. Check out the ActionServlet source, processPopulate() method, and ConvertUtil.java in util package of struts source. John M. Corro

Re: Controller and security

2002-02-08 Thread John M. Corro
If you're rolling your own security management, I'd speak favorably for using the proxy pattern. Take for example a simple user management areaCRUD operations on various users (get list of users, get user profile, add/edit/delete, etc). I used basically two classes to house the interactions

Re: File upload produces modified files

2002-02-07 Thread John M. Corro
Very interesting, when you say large...how large we talking? - Original Message - From: Tingleff, Sam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 11:24 AM Subject: File upload produces modified files Using Struts 1.0 with Tomcat 4.0.1 on Win 2k.

Re: File upload produces modified files

2002-02-07 Thread John M. Corro
Is anyone aware of the nature of the bug? That is does the bug only happen w/ files over a certain size, compressed, files of a certain type, etc? In the app I'm working on, there is an option to upload certain files whose data gets imported into the database. The largest file that has been

Re: Importing CSV and VCF files

2002-02-05 Thread John M. Corro
I had to build a data import using CSV-based import files. I relied strongly on the StringTokenizer class to break out all the various values. Did you have something specific you were wondering about? - Original Message - From: Matt Raible [EMAIL PROTECTED] To: Struts Users Mailing

Preselecting Radio Buttons

2002-02-04 Thread John M. Corro
I would have thought this was a simple thing, but I must be missing something. Is there an attribute to the html:radio tag that sets it as selected? I want to have a group of radio buttons w/ 1 button being the default. I didn't see anything in the tag lib documentation and I tried coding

Re: Preselecting Radio Buttons

2002-02-04 Thread John M. Corro
When it comes to form input tags, I tend to look at the straight html tags as a last resortI prefer to use the struts taglib implementation so that in case the user failed validation tests when submitting the form, the value they selected when first filling it out would stay selected. Thanks

Re: Preselecting Radio Buttons

2002-02-04 Thread John M. Corro
: John M. Corro [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 04, 2002 10:39 AM Subject: Re: Preselecting Radio Buttons When it comes to form input tags, I tend to look at the straight html tags as a last resortI prefer to use the struts taglib

Re: Struts for reporting?

2002-01-31 Thread John M. Corro
To what extent do you mean use Struts? Using actual Struts mechanisms to generate a report (can't think of anything right off hand that would do that for you...except maybe the connection pooler) or just use Struts to collect some report parameters, then direct off to some reporting

Re: Struts for reporting?

2002-01-31 Thread John M. Corro
Message- From: John M. Corro [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 9:55 AM To: Struts Users Mailing List Subject: Re: Struts for reporting? To what extent do you mean use Struts? Using actual Struts mechanisms to generate a report (can't think of anything right off

Re: Examples needed

2002-01-30 Thread John M. Corro
Not necessarily documented in the tag library, but working examples are in the samples bundled in the distro. Of course, one could make the friendly arguement that energies used complaining why something isn't right are better spent making it so (hint, hint : ) - Original Message -

Non-Struts Related JS Question

2002-01-29 Thread John M. Corro
Does anyone know how to call a javascript function from an html link w/o causing the parent page to reload, but still having the cursor change to a pointing finger when it goes over the link? I'm trying to implement the following basic situationuser clicks on a link, a child window pops

Re: Non-Struts Related JS Question

2002-01-29 Thread John M. Corro
/?comments=474 -Original Message- From: John M. Corro [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 9:31 AM To: [EMAIL PROTECTED] Subject: Non-Struts Related JS Question Does anyone know how to call a javascript function from an html link w/o causing the parent page

Re: Design help needed for large scale app

2002-01-29 Thread John M. Corro
With an application like this, wouldn't the critical path (in terms of any performance bottlenecks) be more along the lines of your database communications? I've been finding that any bottlenecks I've had regarding performance were almost always due to hitting the database in an inefficient

Re: using struts for larger apps

2002-01-22 Thread John M. Corro
In relation to scaling issues, the only things I've heard resulted from extensive use of taglibs. The problem manifests itself in two waysan exception (forgot which one it is) being thrown due to the method being too large (too much code resulting from too many taglibs). The other is that

Re: Things that use Struts

2002-01-21 Thread John M. Corro
Glad to see another cheesehead on the forum, though you hate to hear someone trash talking the beer in Miller town : ) - Original Message - From: Chappell, Simon P [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, January 21, 2002 3:12 PM Subject: RE: Things

Re: Reporting Writing

2002-01-18 Thread John M. Corro
Chris, As far as generating reports, I've had the opportunity to use FOP to build PDF reports. Granted, this doesn't relate to the Express Reports package you referred to, but this seems to be a fairly common approach that might pop up in your hunt for various reporting methods. In a nutshell,

Re: Things that use Struts

2002-01-18 Thread John M. Corro
Amen to that! How about a round for the cheeseheadshopefully we'll be pounding St. Louis into the ground this Sunday! (no offense to fellow Struters from St. Louis) - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, January

Re: Creating reports in PDF format

2002-01-03 Thread John M. Corro
IMHO you should only look to iText if page generation times are under serious scrutiny or if you're expecting more than 15 pages per PDF file (a high end box might be able to handle more, I just know that there's a certain range of pages where FOP just starts becoming dog slow). FOP also is

Javascript tag libs

2002-01-03 Thread John M. Corro
I just started tinkering w/ the Javascript tag library package written by Tom Tessier on jspinsider.com. Basically, it's a tag lib that translates into some very neat and useful javascript functionality (dynamic color coding of required form sections, pulldown menus, etc). I was wondering if

Struts/FOP

2001-12-13 Thread John M. Corro
Has anyone ever generated a PDF file (via FOP) from an Action servlet? Any implications in doing so via an Action servlet vs. a standard/plain servlet? I've reviewed the servlet example from the FOP distro. and it seems as if as long as I have access to the response object (which I do in the

Re: Dynamic SQL query library

2001-12-12 Thread John M. Corro
Toplink is a popular commercial-level package for transparent object persistence. Something else a coworker pointed out to me recently was the CachedRowSet object from Sun. I believe it's still in beta, but take a look...some very neat features implemented in it that might address what you're

Re: Best Struts Web Server

2001-12-07 Thread John M. Corro
Jason (or anyone else that has experience w/ both), How would you rate resin to orion? I've done minor playing w/ Orion, but haven't had the opp. to use it in a project as of yet. Haven't touched resin yet. Performance benchmarks I saw a while back put Orion and Resin in the same overall

Re: Hi !! VIRUS WARNING !!

2001-12-04 Thread John M. Corro
This email is a documented virus. Do not open the attachment. This virus is documented at http://www.antivirus.com on the opening page. - Original Message - From: Scott Fitzgerald [EMAIL PROTECTED] To: Struts-User [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 11:13 AM Subject: Hi

Iterate Design Question

2001-11-30 Thread John M. Corro
Consider a situation where you want to display a straght listing of items from a database. Something like where you would display a listing of 1-20 products on page 1, 21-40 on page 2, etc. There seem to be two ways this gets implemented. 1. Pull the entire table contents, store them into a

Re: Statement object

2001-11-19 Thread John M. Corro
using LIMIT: SELECT LastName FROM Students LIMIT 10,20 This works in MYSQL and Postgres but is not SQL standard as far as i know. Andras. On Mon, 2001-11-19 at 19:11, John M. Corro wrote: I'm trying to enhance performance on pages the produce listings from a given DB table (ie search

Re: Struts Beginner

2001-11-13 Thread John M. Corro
Here's some... http://www.jspinsider.com/tutorials/jsp/struts/strutsintro.view http://www.jguru.com/faq/Struts http://husted.com/struts/ - Original Message - From: Juan Alvarado (Struts List) [EMAIL PROTECTED] To: Struts [EMAIL PROTECTED] Sent: Tuesday, November 13, 2001 8:51 AM Subject:

Deploy issues in Tomcat 4

2001-11-13 Thread John M. Corro
. Developing the two (under v 3.2.x) in the same Tomcat instance hasn't proven to be a problem in development, but might be worth mentioning. John M. Corro Cornerstone Consulting 414.212.3500

Re: File upload - Help needed in emergecy

2001-11-13 Thread John M. Corro
Might want to check for these things - The form tag's enctype is set as multipart/formdata. - In the FormBean, the corresponding instance variable is of type FormFile - The setter/getter in the FormBean return/accept an object of type FormFile (not String) - Original Message - From:

Re: File upload - Help needed in emergecy

2001-11-13 Thread John M. Corro
Here's some code that might help... As you can see, I didn't implement the FormFile. Though it works, I'd like to invite any thoughts on better approaches. The JSP form: html:form action=/myFileUpload enctype=multipart/form-data html:file property=myFile/ /html:form The ActionForm

Speed issues w/ Strut Tag Library

2001-08-17 Thread John M. Corro
We have a JSP page that's using between 50-75 bean:write tags to display a given bean's information. This particular project is a rewrite of an older ASP implementation and we're seeing some performance issues when comparing the two. (ASP implementation is running from IIS, Java version is

Bean convention vs. Struts convention

2001-08-07 Thread John M. Corro
We had a situation where we were attempting to use the Struts tag lib to generate a checkbox. In our corresponding bean our instance variable name was 'oNum' and the corresponding getter was 'getONum()'. When we attempted the checkbox tag on it, we had an error to the effect 'can't find getter

Reaching Action class from Href Link

2001-08-03 Thread John M. Corro
I've recently begun working with Struts and am looking to create a scenario where a user can click on a link and trigger some event in an Action class (ie the clicking of a link would be the same as clicking a form's submit button). My understanding is that within Struts forms submit by the post