RE: How To Render Binary Output - spreadsheet - from Struts

2003-06-25 Thread Hookom, Jacob
Also, you will want to set some headers too: response.setHeader("Content-Disposition","attachment;filename=\"" + fileName + "\""); This will prompt the person to download the file (basically automates the save as). I just finished doing the same thing for a project and we wanted to remove the co

RE: [OT] Scrollable Result Set

2003-06-25 Thread Hookom, Jacob
Why do you just use RowSet, check out sun's website for more info... you can cache it, etc. -Original Message- From: Jack Zakarian [mailto:[EMAIL PROTECTED] Sent: Sunday, May 25, 2003 3:59 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Scrollable Result Set Hi Keith, I am running o

RE: Message Resources example using OJB

2003-06-26 Thread Hookom, Jacob
Check source forge www.sf.net, I think James from this list created one about 6 months ago and he was very happy with the performance of it. -Original Message- From: Srikanth Gubba [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 9:37 AM To: '[EMAIL PROTECTED]' Subject: Message Res

RE: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died

2003-06-27 Thread Hookom, Jacob
Robert Anton Wilson -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:51 AM To: [EMAIL PROTECTED] Subject: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died I'm pleased to report that a unanimous majority of the Struts Committers have vot

RE: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died

2003-06-27 Thread Hookom, Jacob
Wait, maybe it's Mary Turzillo? -Original Message- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:48 AM To: 'Struts Users Mailing List' Subject: RE: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died Robert Anton Wilson -O

RE: generic SQL implementation

2003-07-07 Thread Hookom, Jacob
Look at OJB to take care of everything for you with object/dao management. You can do a ReportByQuery with OJB that allows you to do what you are describing. -Original Message- From: Vinay [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 10:09 AM To: Struts Users Mailing List Subject:

RE: Using JSTL tags instead of Struts tags

2003-07-10 Thread Hookom, Jacob
Start using it and you will :-). The expression language is the best thing since sliced bread. David I agree, I'm even using the EL parser to do stuff on completely different layers for scripting logic. Also, you can VERY easily use JSTL's parsing objects in your own tags to make them a little

RE: Using JSTL tags instead of Struts tags

2003-07-11 Thread Hookom, Jacob
Mark, As Glenn pointed out that there are different scales of applications, just like PHP hacking might be more suited, JSTL might be more suited. With some custom persistence tags to handle your business logic, you could easily write a whole application with JSTL. Though, I wouldn't recommend i

RE: MessageRessources

2003-07-15 Thread Hookom, Jacob
For your MessageResources, you might want to put those values in a comma, delimited list, and then use the String.split(",") to get your items. JSTL can also take that string and iterate over it via it's own tags. Jacob Hookom Senior Analyst/Programmer McKesson Medical-Surgical Golden Valley, Min

[Error Handlers] instanceof ?

2003-07-15 Thread Hookom, Jacob
Off hand, would Struts be able to catch the exception with this desired handler? Action throws ServiceNotFoundException ExceptionHandler catches ServiceException Where ServiceNotFoundException is an instance of ServiceException? Thanks, Jacob

RE: [Error Handlers] instanceof ?

2003-07-15 Thread Hookom, Jacob
m: David Graham [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 12:37 PM To: Struts Users Mailing List Subject: Re: [Error Handlers] instanceof ? --- "Hookom, Jacob" <[EMAIL PROTECTED]> wrote: > Off hand, would Struts be able to catch the exception with this de

[OT] Workflow Proposal for Struts

2003-07-16 Thread Hookom, Jacob
http://jakarta.apache.org/struts/proposal-workflow.html Is there any pursuit in this or does it follow the direction that 1.2 will be heading or is this the proposal for the commons-workflow? Jacob Hookom Senior Analyst/Programmer McKesson Medical-Surgical Golden Valley, Minnesota http://www.mcke

RE: [OT] Workflow Proposal for Struts

2003-07-17 Thread Hookom, Jacob
oFlight/managePage, > > and so on. > > > > In case of an error in the ChainAction it uses > > PAGE_ACTION_FAILURE. > > > > I can also set FORWARD_FAILURE_NAME which allows me > > to specify the name of a > > forward that, if returned from o

RE: how to solve case sensitive variable into a criteria

2003-07-18 Thread Hookom, Jacob
You can do a couple of things: Turn off case sensitivity on the server (probably not a good idea) Crit.addEqualTo("USERNAME", username.toLowerCase()); Jacob Hookom Senior Analyst/Programmer McKesson Medical-Surgical Golden Valley, Minnesota http://www.mckesson.com -Original Message- Fro

RE: Working visual on presentation layer

2003-07-22 Thread Hookom, Jacob
Kurt, Could you also bounce me your extension? Our JSP developers are using Dreamweaver MX, if there are issues with compatibility, I'm sure we will be able to make the appropriate modifications. Many thanks! Jacob Hookom Senior Analyst/Programmer McKesson Medical-Surgical Golden Valley, Minnes

RE: Working visual on presentation layer

2003-07-22 Thread Hookom, Jacob
I apologize for this one, I haven't fully woken up yet ;-) -Original Message- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 9:30 AM To: 'Struts Users Mailing List' Subject: RE: Working visual on presentation layer Kurt, Could you also

RE: how to do this?? [Tag inside a tag]

2003-07-25 Thread Hookom, Jacob
Switch to an EL implementation, either Struts-EL or JSTL, which would allow you to leverage bean properties as attributes of their tags -Original Message- From: Michael Ruppin [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 9:59 AM To: Struts Users Mailing List Subject: Re: how to do

RE: Working with Struts + Dreamweaver

2003-07-25 Thread Hookom, Jacob
Supposedly, the new professional version of Struts Studio is supposed to have an integrated jsp editor with tiles support Jacob Hookom Senior Analyst/Programmer McKesson Medical-Surgical Golden Valley, Minnesota http://www.mckesson.com -Original Message- From: Erez Efrati [mailto:[EMAIL P

RE: [OT]Limit of a servlet class file in Struts?

2003-07-29 Thread Hookom, Jacob
If you check the mail archives (for tomcat-user), Craig has responded to this one a couple times. Tomcat's new JSP compiling capabilities actually break up the JSP into multiple calls, because the limit isn't the file size, it's the method size. -Original Message- From: Yansheng Lin [mail

Struts and Commons Chain

2003-12-01 Thread Hookom, Jacob
I was looking at chain's implementation, instead of executing the commands with the visitor pattern, wouldn't a more powerful/flexible method be to implement it using a filter pattern? See: http://java.sun.com/blueprints/corej2eepatterns/Patterns/InterceptingFilter. html Sample Chain: CommandSer

RE: Returning raw data from an action

2003-12-01 Thread Hookom, Jacob
We use: String contentType = this.beanWriter.getContentType(); response.setContentType(contentType); response.setHeader("Content-Disposition","attachment;filename=\"" + this.beanWriter.getFileName(request) + "\""); My formatting is a little different than the previous responder--

RE: Session Scope ActionForm, ActionErrors and the Back Button

2003-12-02 Thread Hookom, Jacob
On the controller element in the struts config, set the "nocache" attribute to true. We just did this for our current project and it has fixed a lot of issues with our wizard-type flows where we use a SessionBean to dictate flow. The other option is to manually write the pragma/expire headers on

RE: Why isn't an ActionForm just a Map?

2003-12-03 Thread Hookom, Jacob
I'm kinda confused on this too. It seems there's a migration towards DynaActionForms and if you read Craig's previous post: http://www.mail-archive.com/[EMAIL PROTECTED]/msg34344.html Defining a property as anything but a String seems taboo. Let validator assert that a property is an integer, b

RE: Disadvantages of Struts?

2003-12-03 Thread Hookom, Jacob
I had to do something similar where I keep a Map in the session and allow the actionmappings/request specify a source, it's then up to the action code to specify what key to store it under. Then I can later look up the source as a forward. -Original Message- From: Wendy Smoak [mailto:[EMA

RE: Disadvantages of Struts?

2003-12-03 Thread Hookom, Jacob
What I have for the foundation of our Struts app: --- SmoAction +-void setSource(SmoActionMapping, HttpServletRequest, String key) +-ActionForward getSource(SmoActionMapping, String key) SmoActionMapping +-String getSource() --- Step 1: Setting the Source

RE: InheritableThreadLocal issues

2003-12-04 Thread Hookom, Jacob
I've been using ThreadLocal's and had to forceably reset the object on the ThreadLocal on every use to specify a transaction cache: public final class Tx { private static ThreadLocal localCache = new ThreadLocal() { protected synchronized Object initialValue()

[OT] RE: InheritableThreadLocal issues

2003-12-04 Thread Hookom, Jacob
ous request. > -Original Message- > From: Hookom, Jacob [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 04, 2003 7:03 PM > To: Struts Users Mailing List > Subject: RE: InheritableThreadLocal issues > > > I've been using ThreadLocal's and had to forceably

[OT] RE: File Download?

2003-12-04 Thread Hookom, Jacob
eMillis()%> You can do the same for the Content-Disposition filename attribute. -Jacob Hookom -Original Message----- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 9:04 AM To: Struts Users Mailing List Subject: [OT] RE: File Download? This is what we us

[OT] RE: File Download?

2003-12-04 Thread Hookom, Jacob
> -Original Message- > From: Hookom, Jacob [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 04, 2003 9:04 AM > To: Struts Users Mailing List > Subject: [OT] RE: File Download? > > > This is what we use for file downloads (Excel/PDF files). > &

[OT] RE: File Download?

2003-12-04 Thread Hookom, Jacob
This is what we use for file downloads (Excel/PDF files). String contentType = this.beanWriter.getContentType(); response.setContentType(contentType); response.setHeader("Content-Disposition","attachment;filename=\"" + this.beanWriter.getFileName(request) + "\""); And have your struts act

RE: Tomcat 5

2003-12-09 Thread Hookom, Jacob
No problems here. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 11:26 AM To: Struts Users Mailing List Subject: Tomcat 5 Hi friends, Anybody using Tomcat 5? Everything allright with it? Specially when using it with struts. Paulo

RE: When HashMap will replace ActionForm ?

2003-12-10 Thread Hookom, Jacob
Anyone who's done major business application development knows that academic arguments on programming 'style' get thrown right out the window in favor of efficient progress ;-) -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 10:38 AM To:

RE: [OFF TOPIC] STRUTS PROGRAMMER JOB.

2003-12-11 Thread Hookom, Jacob
Yeah, so easy that all of my friends that I graduated with got jobs. -Original Message- From: Fullam, Jonathan [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 2:25 PM To: 'Struts Users Mailing List' Subject: RE: [OFF TOPIC] STRUTS PROGRAMMER JOB. jobs are real easy to get and

RE: [OT] Beer

2003-12-12 Thread Hookom, Jacob
What about Leinie's? If you live in Wisconsin, it's a requirement to love Leinie's-- you should know that Simon. Wisconsin-- where you have to bring your own fun. Jake -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 8:58 AM To: Strut

RE: [OT] SQL Date to Util Date

2003-12-12 Thread Hookom, Jacob
Look at jstl's format tag, it's what we use for all of our date formatting on the web page. -Original Message- From: Raj Yadav [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:59 PM To: [EMAIL PROTECTED] Subject: [OT] SQL Date to Util Date Hi All, I want to display date in a J

RE: struts validation and dispatch action

2003-12-15 Thread Hookom, Jacob
We ended up extending DispatchAction so we could set an "execute" parameter on the action mapping. We then ended up with a single Action for CRUD operations, but multiple bindings with ActionForm validation specifications. -Original Message- From: Ghanakota, Vishu [mailto:[EMAIL PROTECTED

RE: Tags between custom tags not evaluating

2003-12-15 Thread Hookom, Jacob
Include the html taglib in your jsp -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 4:54 PM To: [EMAIL PROTECTED] Subject: Tags between custom tags not evaluating Hi all, I am writing a web application in which I would like to have a custom

RE: Tags between custom tags not evaluating

2003-12-15 Thread Hookom, Jacob
I don't see the: <%@ taglib uri="/tags/struts-html" prefix="html" %> -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 4:58 PM To: Struts Users Mailing List Subject: RE: Tags between custom tags not eval

[OT] iBatis DAO + Hibernate?

2003-12-16 Thread Hookom, Jacob
It seems kind of moot to use iBatis DAO over Hibernate. You are better off rolling out something to the tune of Sun's DAO spec. We use the DAO with the same kind of behavior as iBatis. Depending on the app, we will make additional methods on the DAO that are specific to the use-case or you can ca

RE: Login Security

2003-12-16 Thread Hookom, Jacob
Do a HashMap in the action: Key is username Value is Integer or Date If ((value = map.get(key)) != null) { if (value instanceof Date) { // compare timeout dates } else if (value instanceof Integer) { if (value == 3)

RE: Login Security

2003-12-16 Thread Hookom, Jacob
Btw, remember to flush the map for that username when they are able to login successfully. -Original Message- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 3:46 PM To: Struts Users Mailing List Subject: RE: Login Security Do a HashMap in the action: Key

RE: Login Security

2003-12-16 Thread Hookom, Jacob
isabled. Than A person can accuse person B or C that they are not work. Maybe it seems silly, but I have such not good experience. Machine IP from wich was maked last try to log-in may helped to explain all circumstances. JD - Original Message - From: "Hookom, Jacob" <[EMAIL P

Enhancement Request or Possible Alternative?

2003-12-17 Thread Hookom, Jacob
We are doing a lot of module switching or multistep workflows (which we handle fine through session beans) but at the same time, users are allowed to jump to different pages and we would like to capture a "leave" event when they aren't within a set of mapping(s). I'm wondering if anyone has solved

RE: Enhancement Request or Possible Alternative?

2003-12-18 Thread Hookom, Jacob
VERY reasonable. .V Hookom, Jacob wrote: > We are doing a lot of module switching or multistep workflows (which we > handle fine through session beans) but at the same time, users are allowed > to jump to different pages and we would like to capture a "leave" event when > they

Runtime Generation of DynaValidatorActionForms

2003-12-18 Thread Hookom, Jacob
Runtime Generation of DynaValidatorActionForms, is it possible? We have forms defined in the DB and I want to generate a DynaActionForm that would use Validator. I checked the main struts books we have at the office and couldn't find any reference to something like this, I'm sure others have done

RE: .NET: We are just like Struts... only better.

2003-12-30 Thread Hookom, Jacob
As a follow up to your "by hand" comment, isn't Sun developing a new GUI development tool to wizard-ize JSF? Speaking of wizards, can JSF enforce flow in a wizard manner without additional modifications like Struts? Thanks much! -Original Message- From: Craig R. McClanahan [mailto:[EMAIL

RE: [OT] reading pdf file from mapped network drive in servlet

2004-01-08 Thread Hookom, Jacob
That's because Tomcat or your servlet container is running as a different user as you are within your own desktop. I ran into the same problem before and you basically have to get the user/account that the tomcat process runs under to be mapped to drive "F". -Original Message- From: Ashi

RE: html:text and converter

2004-01-08 Thread Hookom, Jacob
Isn't this issue resolved by using ActionForms correctly in the first place? They are meant to save/transport form state, which is composed of strings. When you want to represent form properties as Dates, Integers, etc, you may start running into issues. So if you have a DTO from a bean in the b

RE: Problems streaming PDF over HTTPS to IE

2004-01-08 Thread Hookom, Jacob
What exactly is the issue? You said you are having problems and are referencing caching headers, but what are you seeing happen? -Jake -Original Message- From: Brown, James [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:36 PM To: Struts Users Mailing List Subject: Problems

RE: Problems streaming PDF over HTTPS to IE

2004-01-08 Thread Hookom, Jacob
Another solution is to have the link to download the pdf appended with a random parameter. Download -Original Message- From: Brice Ruth [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:47 PM To: Struts Users Mailing List Subject: Re: Problems streaming PDF over HTTPS to IE

RE: JSP Protection

2004-01-15 Thread Hookom, Jacob
It depends on your web container if that's actually allowed. You should check your container spec before moving all of your JSP's into the WEB-INF folder. The other alternative is to create a filter that will get/put requests to /jsp/* in your app. (Weblogic for example will not compile JSP's wi

RE: how to disable a html:option tag?

2004-01-17 Thread Hookom, Jacob
You can disable the select tag as a whole, but I've never heard of disabling an option tag. You might just want to not list them. -Original Message- From: Dirk Manske [mailto:[EMAIL PROTECTED] Sent: Saturday, January 17, 2004 5:21 PM To: 'Struts Users Mailing List' Subject: AW: how to di

RE: Token Processing

2004-01-20 Thread Hookom, Jacob
You are making the assumption that transactions are dictated by request type. There are many other ways to dictate transaction state within the context of web browser usage. -Original Message- From: Student T [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 1:58 PM To: [EMAIL PR

RE: convert String to Long

2004-01-22 Thread Hookom, Jacob
With jstl, unless you are using JSP 2.0 spec with functions, there really aren't any types... it automatically coaxes the variables to values to match the appropriate setter. -Original Message- From: Balakrishnan, Vijay [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 4:00 PM

RE: convert String to Long

2004-01-22 Thread Hookom, Jacob
convert the String someStringValue to a long someLongvalue. -Original Message- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 2:01 PM To: Struts Users Mailing List Subject: RE: convert String to Long With jstl, unless you are using JSP 2.0 spec with f

RE: Struts and database

2003-06-19 Thread Hookom, Jacob
www.ibatis.com Is a great one out there also. Jacob -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 11:34 AM To: [EMAIL PROTECTED] Subject: RE: Struts and database >A follow up to the J2EE DAO Pattern: I found that it helps a lot using >ex

RE: WAP/WML support to existing application

2003-06-19 Thread Hookom, Jacob
StrutsCX offers this kind of capability where content is returned by the request's header details (wml vs. html) The other thing is to still use JSP's for rendering, but then use ServletFilters from your Web Container to modify the response headers for the client device. Jacob Hookom Sen

RE: A question on Tiles and Frames

2003-06-20 Thread Hookom, Jacob
I would be using iframes. It's surprisingly standard and works just like a frame, but placed on the page much like an image. I've done a few things with them on a project with displaying a shopping cart, forum data, etc. Jacob Hookom Senior Programmer/Analyst McKesson Medical Surgical G

RE: How much should Struts be aware of my persistence system

2003-06-20 Thread Hookom, Jacob
-Original Message- From: Alen Ribic [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:42 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: How much should Struts be aware of my persistence system sounds good. I was thinking something along those lines of indirection

RE: [FRIDAY] Got A Security Hole?

2003-06-20 Thread Hookom, Jacob
One of the most interesting security holes that MANY applications have are the use of wild cards in dynamic sql queries login: admin password: '+%+' or those likes... try it sometime Jacob Hookom Senior Programmer/Analyst McKesson Medical Surgical Golden Valley, MN -Original M

RE: [OT] caching strategy

2003-06-20 Thread Hookom, Jacob
create primary keys for your data, create an identity object to represent legacy data, create a hashmap or cache interface and use either LRU's or Softly referenced caching. Pretty straight forward. Logic would be "select primary keys + lastModified" if changed or not found, create, else pull fro

RE: [OT] caching strategy

2003-06-23 Thread Hookom, Jacob
Jacob Hookom Senior Programmer/Analyst McKesson Medical Surgical Golden Valley, MN -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 3:49 PM To: Struts Users Mailing List Subject: Re: [OT] caching strategy Hookom, Jacob wrote: > create

RE: Where to do TextConversion?

2003-06-23 Thread Hookom, Jacob
Your ActionForms should never be passed to your DB layer... ActionForms should have strict String attributes and in your Action, take care of mapping your Business Beans to your ActionForms and visa versa-- two similar, but separate objects. PropertyUtils works nicely. Jacob -Original Messag

RE: Passing Information with forward

2003-06-23 Thread Hookom, Jacob
try a bean:write into a normal hidden field, you can intermix mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:03 AM To: [EMAIL PROTECTED] Subject: Passing Information with forward Hello All. I'm running up a problem and I'm not sure how to solve it. In my application, there is an action

RE: Where to do TextConversion?

2003-06-23 Thread Hookom, Jacob
Aaron So I can do: BusinessObject.setPrice(form.getPrice()) Hookom, Jacob wrote: >Your ActionForms should never be passed to your DB layer... ActionForms >should have strict String attributes and in your Action, take care of >mapping your Business Beans to your ActionForms and visa versa--

RE: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-23 Thread Hookom, Jacob
Cloning isn't actually that expensive at all... for modification, clone the data, modify it, then set the reference back to the original member variable, problem solved. Look at the source for FastHashMap or FastArrayList from commons-collections. -Jacob -Original Message- From: Yansheng

RE: Where to do TextConversion?

2003-06-23 Thread Hookom, Jacob
quot; Although this method is very useful, it won't help my conversion issue. Hookom, Jacob wrote: >PropertyUtils is part of the commons-beanutils lib, included in the Struts >release. > >It will require some testing, but you can do stuff like: > >OrderVO order = new Order

RE: DTO vs. JVT

2003-06-23 Thread Hookom, Jacob
I read the article also and it seemed like old news DTO, BO, JVT, POJO, etc they are all the same to me :) -Original Message- From: Dan Allen [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 1:11 PM To: Struts-User List Subject: DTO vs. JVT I just finished reading an article in t

RE: IFrame

2003-06-23 Thread Hookom, Jacob
Yeah, it's very easy, acts just like a normal frame document.framename.location.url = "" -Original Message- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:17 PM To: 'Struts Users Mailing List' Subject: IFrame Has anybody worked with IFrames with struts.

[OT] RE: log4j integration

2004-01-28 Thread Hookom, Jacob
I'm wondering if anyone has gotten log4j to be deployed within separate apps? We are having issues with log4j jars and their properties files being deployed on each application under Weblogic. Most of what I've read recommends putting log4j at the container level along with a single properties fi

RE: [OT] RE: log4j integration

2004-01-28 Thread Hookom, Jacob
(608) 935-4526 "Wisdom is not the prerogative of the academics." - Peter Chappell >-Original Message- >From: Hookom, Jacob [mailto:[EMAIL PROTECTED] >Sent: Wednesday, January 28, 2004 11:08 AM >To: Struts Users Mailing List >Subject: [OT]

RE: multiple action forms in a single jsp

2004-01-29 Thread Hookom, Jacob
What you are describing almost sounds like a good use of JSF-- If you have 5 forms on a page, separate, do you want to save the state of the other 4 forms if submit is sent for one of them? -Original Message- From: Mathew, Manoj [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 200

RE: Best Practice for long running tasks with status check

2004-01-29 Thread Hookom, Jacob
Create a bean with a list of tasks to complete and have a thread execute them and then have a getter that will respond with the total tasks over tasks completed. -Original Message- From: Martin Gross [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 11:20 AM To: Struts Users Mail

RE: multiple action forms in a single jsp

2004-01-29 Thread Hookom, Jacob
d it seems like i am just half way through my project.So waht is th best way to handle this situation? Thank-you, Manoj Mathew GIS 515-362-0539 -Original Message----- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 10:10 AM To: Struts Users Mailing List Subject: RE

RE: Re[2]: Best Practice for long running tasks with status check

2004-01-29 Thread Hookom, Jacob
The only way to force a client to update is to do a meta-refresh in the html. The other thing you can do is setup a callback handler, so you can have Bean A, listen for events from you task thread, telling you when things are completed. You in turn, ask Bean A for information that it receives as

[OT] JSF Model Lifecycle Management

2004-01-29 Thread Hookom, Jacob
I've been looking at using JSF for our next large project. A lot of what we want to do for managing state would be in the session scope, treated like controllers. My question is: how can I know when these beans are initialized and is there any way for me to manage their lifecycle through ActionLi

RE: Re[2]: Best Practice for long running tasks with status check

2004-01-29 Thread Hookom, Jacob
Never heard of that? I've seen some specific stuff with IE/M$, but I thought it was too browser specific to bother pursuing as a feasible solution. Do you have any articles or links I could check out? Thanks! -Original Message- From: Kasterovic, Slobodan [mailto:[EMAIL PROTECTED] Sent:

RE: does not work with IOException?

2004-01-30 Thread Hookom, Jacob
Why don't you simplify the problem and have it go to an html page. We had a problem where a forwarding jsp page had errors, resulting in a blank page. -Original Message- From: Song Qiu [mailto:[EMAIL PROTECTED] Sent: Friday, January 30, 2004 3:43 PM To: 'Struts Users Mailing List' Subjec

RE: global data objects -- best practices?

2004-02-04 Thread Hookom, Jacob
Usually I setup an XApplicationListener in the web.xml that will initialize things for our app. Objects/Services can get initialized in multiple ways: 1. Grabbing an instance of a singleton ServiceManager.getInstance(); 2. Creating an instance and put it in the ServletContext If it's applica

RE: Performance Issues regarding tag libraries

2004-02-09 Thread Hookom, Jacob
You might want to look at putting a compression filter on your app, simplest way to solve this problem and compress any other formatting you might have in your resulting html. I believe tomcat comes with an example compression filter, and Javaworld has an article from Jason Hunter with downloadabl

[OT] Domain Model Hoopla

2004-02-10 Thread Hookom, Jacob
Sorry for the OT, but I need recommendations from a very intelligent group ;-) I picked up the new Core J2EE Patterns Book [2nd Ed] and it proposes "Business Objects" that act much like POJO Session Beans. But in the scope of a layered architecture, some say we should enforce that our [Domain, Bu

RE: [OT] Case insensitive Map keys

2004-02-13 Thread Hookom, Jacob
Why don't you always just do string.toUpperCase() on get's and put's One liner -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 12:48 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Case insensitive Map keys The problem is tha

RE: [OT] - Request against Session

2004-02-16 Thread Hookom, Jacob
I've been looking a lot at JSF, and the way you can handle scoping issues is to actually store your controller in the session as a bean. Memory is only an issue if you cache data beyond the method scope: An Action updates OrderController in the session with parameters from the request. The view

RE: [OT] RE: Java / J2EE Developer

2004-02-16 Thread Hookom, Jacob
Please stop discussing this on the STRUTS-USER mailing list. Thanks -Original Message- From: Peter Abbot [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 1:34 PM To: Struts Users Mailing List Subject: [OT] RE: Java / J2EE Developer Maybe you should have taken your own advice an

RE: EL - can't get access to my constants

2004-02-25 Thread Hookom, Jacob
What we had done to handle this case is create a bean, but then have all of our constants available in a static map available via getter. static { CONSTANT_MAP = new HashMap(); CONSTANT_MAP.put("beanPropSystem", BEAN_PROP_SYSTEM); } public Map getConstants() { return CONST

RE: Encode/Encrypt url parameters?

2004-02-25 Thread Hookom, Jacob
I wrote a CryptoFactory to take care of this. We use it for cross domain session validation. // example code: CryptoFactory cf = CryptoFactory.create("aPassword","PBEWithMD5AndDES"); Date goodUntil = new Date(System.currentTimeMillis()+somePeriodMs); String token = cf.encryptUrl(""+goodUntil.getT

RE: Struts Workflow

2004-02-26 Thread Hookom, Jacob
No matter what, I would recommend turning off caching on the struts controller, otherwise you will get anomalies with the back button and workflows. Do this early in your development and testing with QA. -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Thursday, F

RE: servlet filters and authentication

2004-02-26 Thread Hookom, Jacob
We overrode the execute method on our "BaseAction" to call a protected " executeSessionAuthorization " which by default just checks for user to be logged in. Results of the "executeSessionAuthorization" are thrown as exceptions (if okay, no exception). To determine if the executeSessionValidation

RE: Manipulate page validation for ValidatorForm

2004-02-27 Thread Hookom, Jacob
We had to do this for our last project; I had an ActionForm for each page with validator bindings to validate input on each page. In the Actions, I used the page's form to update a "transaction" bean in the session which I in turn called a "commit" method on it to execute business logic (validate

RE: [OT] JSP or Velocity

2004-02-27 Thread Hookom, Jacob
Go to java.sun.com and search for JSTL pdf -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: None To: Struts Users Mailing List Subject: RE: [OT] JSP or Velocity JSTL in Action http://www.manning.com/bayern/ Rick DeBay On Fri, 27 Feb 2004 13:45 , A.White <[EMA

RE: [OT] RE: Memory usage

2004-03-01 Thread Hookom, Jacob
I think especially in large corporate environments, it can be very difficult to "boil to the surface" without stepping on toes. People have different ideas on what it means to work and what is acceptable code ;-) I have managers who only know the way things were done 5-10 years ago, but I'm very

RE: Best way to handle big search results..

2004-03-03 Thread Hookom, Jacob
We have to work with search results that are sometimes 1000+ items in size. In addition, much of the information we have is not keyed so we cannot say give results between id 2000 and id 20020. Some things I found to help with search results where we did do in memory sorting/paging were: 1. Creat

RE: JSF RI Final is out!

2004-03-04 Thread Hookom, Jacob
I've come to the conclusion that I'm disappointed with JSF. Yes, I see what it's trying to accomplish, but it puts too much overhead in the JSP designer, you can't easily create dependencies in the controller, no exception handling, etc. http://forum.java.sun.com/thread.jsp?forum=427&thread=49023

RE: Best way to handle big search results..

2004-03-04 Thread Hookom, Jacob
g the performance of a compiled JSP? I'm using Tomcat 5.0.18 Stable with J2SDK 1.4.1_02 Thanks! Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -Original Message- > From: Hookom, Jac

RE: JSF RI Final is out!

2004-03-04 Thread Hookom, Jacob
Mailing List Subject: RE: JSF RI Final is out! Will it be OpenSource? (Banten) -Original Message- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Friday, 5 March 2004 00:18 To: Struts Users Mailing List Subject: RE: JSF RI Final is out! I've come to the conclusion that I'm

RE: JSF RI Final is out!

2004-03-04 Thread Hookom, Jacob
ts too? If so I would be very very interested in seeing you release it :-) -Original Message- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Friday, 5 March 2004 00:36 To: Struts Users Mailing List Subject: RE: JSF RI Final is out! Yeah, package is "org.apache.banten.*" I j

RE: Best way to handle big search results..

2004-03-04 Thread Hookom, Jacob
> >>> may > >>> have several hundred detail records associated with it. > >> I've solved my > >>> initial problem of being able to return thousands of records (for > >>> instance, > >>> I can return almost 48,000 detail records in a li

RE: Best way to handle big search results..

2004-03-04 Thread Hookom, Jacob
1 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -Original Message- > From: Hookom, Jacob [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 04, 2004 11:03 AM > To: Struts Users Mailing List > Subject: RE: Best way to handle big search results.. > >

RE: JSF RI Final is out!

2004-03-05 Thread Hookom, Jacob
I bought that book, it's a good one, I read it over a weekend, but when you go to download the examples, the way you handle commands has since changed. Probably 80%+ of the book is still correct but the sample CarStore app from Sun is your best model for development. It does a good job of mixing

RE: Compression Filter

2004-03-09 Thread Hookom, Jacob
Check your server logs for exceptions that say the response has already been committed. We had a programmer try to create a compression filter based on the source from one of those articles and it did not work on our production servers. Worth a look... -Original Message- From: [EMAIL PRO

  1   2   >