[OT] RFP resources for java projects

2005-08-23 Thread Brian McGovern
Sorry for the off topic request, but I figured this might be a good place to ask. Im looking for a resource that lists requests for proposal on java projects? Any ideas? Thanks -B

[OT] Secure Email w/ java

2005-07-20 Thread Brian McGovern
Sorry for the off topic, but hopefully someone here has done this before. Im using a tomcat smtp resource and JavaMail to send e-mail with my system. I want to secure it and am getting confused. Can anyone give me some clear docs or help on how to do this. Thanks -B

RE: [OT] find out web app path / Quartz Scheduler?

2005-06-24 Thread Brian McGovern
ail object. JobDetail jobDetail = sched.getJobDetail("FooJob", "FooGroup"); String fooPath = servlet.getServletContext().getRealPath("foo"); jobDetail.getJobDataMap().put("fooPath", fooPath); -Original Message- From: Brian McGovern [mailto:[EMAIL

RE: [OT] find out web app path / Quartz Scheduler?

2005-06-24 Thread Brian McGovern
? your current directory is the one you get by new File("."); On Fri, 2005-06-24 at 11:28 -0400, Brian McGovern wrote: > Hi > > I've got a struts web app but am running Quartz also. In some places in my > app I need the servlet to figure out the path under which its

[OT] find out web app path / Quartz Scheduler?

2005-06-24 Thread Brian McGovern
Hi I've got a struts web app but am running Quartz also. In some places in my app I need the servlet to figure out the path under which its running. I do that like this. getServlet().getServletContext().getRealPath("foo"); This returns me my web app path up to the foo directory. But in my

RE: [OT] Automatic Javadoc - ing

2005-06-09 Thread Brian McGovern
- From: Brett Connor [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 11:31 AM To: Struts Users Mailing List Subject: Re: [OT] Automatic Javadoc - ing From: "Brian McGovern" <[EMAIL PROTECTED]> >>I want to add javadoc comments to all my classes.. but am looking for a >

[OT] Automatic Javadoc - ing

2005-06-09 Thread Brian McGovern
I have just pretty much wrapped up the development phase of a prject and am cleaning up the code etc. I want to add javadoc comments to all my classes.. but am looking for a way to do this automatically. Does anyone know of a tool that can do this. I use netbeans as an editor and they have so

Best Place for config values

2005-06-06 Thread Brian McGovern
Whats the best place / access method to storing and retriving config attributes like administrator email addresses and directories to store uploaded files in a multi-tiered webapp, web.xml? Resources file? Both servlets and non servlets need to access these values. Opinions greatly appreciate

RE: JSTL Rss Reading

2005-05-24 Thread Brian McGovern
I'd like to avoid js if possible. Client can turn that off. -Any other ideas? -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 3:38 PM To: Brian McGovern Cc: Struts Users Mailing List Subject: Re: JSTL Rss Reading Brian did you lo

JSTL Rss Reading

2005-05-24 Thread Brian McGovern
Hi, I'm having a rough time with the issue of reading in rss feeds in my presentation layer. My situation calls for the same feed to be shown on every screen of a certain section. Problem is, it loads very slow. There are a million ways to approach this and Im hoping to keep my logic on the

RE: [OT] RSS w/ JSTL

2005-05-13 Thread Brian McGovern
:28, Brian McGovern wrote: > Following up. Ive gotten it rss reading to work using jstl/xml > > but 1.1 version. Whats up? > If you are using 1.1 version tags, make sure your web.xml DTD is for J2EE 2.4. I have seen the case where 1.1 tags in combination with web.xml DTD 2.3

RE: [OT] RSS w/ JSTL

2005-05-13 Thread Brian McGovern
odule' of app I retrieve them and display them with Struts tags as POJO... I know that does not answer your question, but could you tell me Advantages/disadvantages of the two approaches? Thanx and regards marco -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED

[OT] RSS w/ JSTL

2005-05-13 Thread Brian McGovern
Has anyone had any experience reading in RSS feed with tag libs. Either JSTL or otherwise? Thanks -B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

OT JSTL c:out

2005-05-11 Thread Brian McGovern
I want to only print a portion of a string with JSTL c:out tag So if my string = "foobar", I want to know how to print out "xxxbar" Thanks -B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Quartz Scheduler with Struts

2005-05-07 Thread Brian McGovern
I need to set up a bunch of jobs that monitor various pieces of my struts app. I decided to use Quartz but am wondering if anyone has experience with setting up quartz to run in struts. I'm guessing this would be achieved with by either writing a plugin class to be started from struts-config.x

using multiple resource bundles with jstl

2005-05-05 Thread Brian McGovern
Im having trouble figuring out how to use jstl's fmt:message tag to use 2 properties files. Can anyone help? It appears that if i use struts bean tags i can do this pretty easily but i want to stick with JSTL if i can. THjanks ---

RE: [OT] JSTL + Collection size

2005-04-29 Thread Brian McGovern
It works now. Thanks to everyone for helpin. im looping through an array list of hashtables.. so my syntax goes like this.. it actually turned out to be easy cause i know the names of my key. Where my hashtable has keys named (firstname, lastname) -B -Original Message

[OT] JSTL and hashtable

2005-04-29 Thread Brian McGovern
Slightly off topic, but has anyone ever been able to get a hashtable to display using jstl, calling the hash's values by key. I can loop through em all just fine, but i want to be able to call each directly like ? THanks -B ---

RE: PDF Streamed To Client

2005-04-27 Thread Brian McGovern
Well i guess thats technically correct but arguably if my action is delegating control flow by validating the user is who he says he is before showing the pdf to him. He can be bounced to 3 other screens via this action class and I don't see much difference in using the action to stream back re

RE: PDF Streamed To Client

2005-04-26 Thread Brian McGovern
Nevermind. Dumb question. I got it. -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 4:01 PM To: Struts Users Mailing List; Nick Heudecker Subject: RE: PDF Streamed To Client Follow Up: This works but im having a little trouble

RE: PDF Streamed To Client

2005-04-26 Thread Brian McGovern
nally { if (fis != null) fis.close(); } } On 4/26/05, Brian McGovern <[EMAIL PROTECTED]> wrote: > I'm wondering if anyone has any tips on how to render a pdf with struts. I > want to mask the name of the pdf and just stream it

RE: PDF Streamed To Client

2005-04-26 Thread Brian McGovern
thanks jeff. I need something just a bit more scalable cause my app needs to handle uploads and downloads of "n" number of pdfs. But thanks all the same. -B -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 2:39 PM To: Struts Users Mail

RE: PDF Streamed To Client

2005-04-26 Thread Brian McGovern
close(); } } On 4/26/05, Brian McGovern <[EMAIL PROTECTED]> wrote: > I'm wondering if anyone has any tips on how to render a pdf with struts. I > want to mask the name of the pdf and just stream it

PDF Streamed To Client

2005-04-26 Thread Brian McGovern
I'm wondering if anyone has any tips on how to render a pdf with struts. I want to mask the name of the pdf and just stream it to client. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

RE: Slightly Off topic: JSTL vs Bean tags w/ message resources

2005-04-19 Thread Brian McGovern
ng the result into a variable. Then, use that variable in the "fmt:formatDate" tag, for the "pattern" attribute. If you have a small number of these, and you reference it in several places, this is probably a good approach. > -Original Message- > From: Brian

Slightly Off topic: JSTL vs Bean tags w/ message resources

2005-04-19 Thread Brian McGovern
Hi, Got a slightly OT question. I want to put a date format mask in a properties file and format dates with this key in my presentation jsp. I can do this with struts bean tags but seeming have to hard code it into the jstl tags. Both approaches work but i would like to know if anyone has a

RE: Cron type jobs in struts

2005-04-12 Thread Brian McGovern
r you http://www.opensymphony.com/quartz/ regards marco -Original Message----- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: 12 April 2005 15:41 To: Struts Users Mailing List Subject: Cron type jobs in struts Ok, This may be off topic cause the answer may not be in struts but here goes. I h

Cron type jobs in struts

2005-04-12 Thread Brian McGovern
Ok, This may be off topic cause the answer may not be in struts but here goes. I have a need to run nightly jobs that inspect my data and do certain things based on what it finds.. Now i was goin to write some java classes to be invoked by cron. But I've never done this before in java and won

RE: Simple JSTL Question

2005-04-07 Thread Brian McGovern
- Nic. Brian McGovern wrote: >At least i think its simple. I have this code which doesnt error.. but also >doesnt work. > > > items="${applicationScope.STATES_PROPERTIES_KEY.keyValues}"> >" test="${sessionScope.INVESTORBEAN_SESSION_KEY.s

Simple JSTL Question

2005-04-07 Thread Brian McGovern
At least i think its simple. I have this code which doesnt error.. but also doesnt work. " SELECTED > This loops fine and i can c:out every single piece of that code, including the session var. The problem is that I cant get this to work tried SELECTED tried SELECTED

RE: Multi Step Forms

2005-04-04 Thread Brian McGovern
I only use hidden html fields to save state on the weekends, with friends. What? Everyone does it!! -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 2:26 PM To: Struts Users Mailing List Subject: Re: Multi Step Forms Woodchuck wrote the follo

RE: Multi Step Forms

2005-04-04 Thread Brian McGovern
I think i have a fundemental misunderstanding of ActionForms not having used them that much. So forget everything i said about ActionForms, i was wrong. I still dont like em partially cause im stubborn, but also because i dont like that you have to define you whole form in your struts config.

RE: Multi Step Forms

2005-04-04 Thread Brian McGovern
n is a fine approach for this. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 12:21 PM To: Struts Users Mailing List Subject: Re: Multi Step Forms Brian McGovern wrote the following on 4/4/2005 12:01 PM: > I see your points but I disagre

RE: Multi Step Forms

2005-04-04 Thread Brian McGovern
t I think the framework should write no html at all and should just pass data up to the view. And yeah im using c:out into POHTML tags. Bletch all ya want, i still think its a better way to go than action forms. My struts-config is nice and small too :) -B Brian McGovern wrote: >I se

RE: Multi Step Forms

2005-04-04 Thread Brian McGovern
[mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 11:35 AM To: Struts Users Mailing List Subject: Re: Multi Step Forms Brian McGovern wrote the following on 4/4/2005 10:16 AM: > Sounds good. I think I want to only have 1 write to the db at the > end of Action3, and im hoping to not use t

RE: Multi Step Forms

2005-04-04 Thread Brian McGovern
that it is visible in action 2? I'm thinkin hidden form fields are the way to go here .. you agree? -Original Message- From: Brandon Mercer [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 9:59 AM To: Struts Users Mailing List Subject: Re: Multi Step Forms Brian McGovern

Multi Step Forms

2005-04-04 Thread Brian McGovern
I have a situation where i need to have a multi screen form, lets say 3 steps. On the successfull validation of the 3rd step. I want to save the data into the DB. This data would have been collected starting on step one, through step 3 and ecapsulated in 1 or more objects. My question is wha

RE: JSTL vs Logic

2005-04-02 Thread Brian McGovern
/1/2005 6:40 PM To: Struts Users Mailing List Subject: RE: JSTL vs Logic > -Original Message- > From: Brian McGovern [mailto:[EMAIL PROTECTED] > > I am switching from using struts-logic tags to jstl and have > a really basic question. > > An object stored in Applicati

JSTL vs Logic

2005-04-01 Thread Brian McGovern
I am switching from using struts-logic tags to jstl and have a really basic question. An object stored in Application Scope has a method called getKeyValues() that returns an array list of beans, each having a getKey and getValue method. logic tag works. "> jstl doesn't "

RE: [OT] Re: Iterate through blah.properties file

2005-03-30 Thread Brian McGovern
sday, March 30, 2005 4:29 PM To: Struts Users Mailing List Subject: Re: [OT] Re: Iterate through blah.properties file From: "Brian McGovern" <[EMAIL PROTECTED]> > Thanks. I figured I know I can get it to work in servlet code but im hoping to avoid that. > I know that single p

RE: [OT] Re: Iterate through blah.properties file

2005-03-30 Thread Brian McGovern
. Right? -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 5:07 PM To: Struts Users Mailing List Subject: [OT] Re: Iterate through blah.properties file From: "Brian McGovern" <[EMAIL PROTECTED]> > Can someone tell me how t

Iterate through blah.properties file

2005-03-30 Thread Brian McGovern
Can someone tell me how to iterate through a properties file in my JSP. I want to grab the keys and values for everythign within a certin Blah.properties file in my class path and display on the page. This has to be possible. -Thanks -B

RE: Struts , hibernate, and DBCP

2005-03-30 Thread Brian McGovern
rt.) Regards, David -----Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 1:41 PM To: Struts Users Mailing List Subject: Struts , hibernate, and DBCP Im using struts, hibernate and dbcp connection pooling. Everything works fine but regarding my conne

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
o research this when I had a memory issue and kept restarting my webapp yet memory usage kept rising and I kept seeing new DB pools each webapp restart.) Regards, David -Original Message----- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 1:41 PM To: Struts Use

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
wrote: > > >This has nothing to do with Struts: > >http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html > > > >Good luck, > >NG. > > > > > >On Tue, 29 Mar 2005 13:40:56 -0500, Brian McGovern > ><[EMAIL PROTECTE

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
ARRG>... but someone beat me to it! hahhahaha -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 4:38 PM To: Struts Users Mailing List Subject: RE: Struts , hibernate, and DBCP This is the first time i actually get to help someone in t

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
elf . . . Erik Brian McGovern wrote: >Well all the folks in the Hibernate boards seem to favor either Proxool or >C3P0. I've heard about the complaints on DBCP and am using SQL Server for >this implementation so i'll watch out for connection leaks. It's really not >

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
e day. . . I have had problems with DBCP leaking connections when used with some databases (Oracle and SQL Server 2000). It could be a vendor-specific problem though, because DBCP seems to work great with ConnectorJ/MySQL. Erik Brian McGovern wrote: >Eric Thanks for response. I wrot

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
N G wrote: >This has nothing to do with Struts: >http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html > >Good luck, >NG. > > >On Tue, 29 Mar 2005 13:40:56 -0500, Brian McGovern ><[EMAIL PROTECTED]> wrote: > > >>Im us

RE: Struts , hibernate, and DBCP [solution] - but would like opinions on my approach

2005-03-29 Thread Brian McGovern
rg/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html Good luck, NG. On Tue, 29 Mar 2005 13:40:56 -0500, Brian McGovern <[EMAIL PROTECTED]> wrote: > Im using struts, hibernate and dbcp connection pooling. Everything works > fine but regarding my connection pool. It gets intantia

Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
Im using struts, hibernate and dbcp connection pooling. Everything works fine but regarding my connection pool. It gets intantiated on the first time I request a connection from the DBCP pool. I want it to create the pool when tomcat starts. I think i can do this with struts, but im not sure

Upper case converter in the view

2005-03-11 Thread Brian McGovern
Has anyone tried to use the bean:write tag to convert the output to all Upper or all lower case? Thanks -B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: bean write format=mm/dd/yyyy

2005-03-07 Thread Brian McGovern
te actually does use SimpleDateFormat . . . Erik Erik Weber wrote: > Refer to the API documentation for java.text.SimpleDateFormat. > > Erik > > > > Brian McGovern wrote: > >> Hi. I'm having some problems finding documentation on how to format a >> java.util.Date

bean write format=mm/dd/yyyy

2005-03-07 Thread Brian McGovern
Hi. I'm having some problems finding documentation on how to format a java.util.Date object in my presentation layer. I have and it works fine. But I want output like this "Monday, January 1st 2005". Can anyone help me out with this. I know its a lame question, just drawing a blank -T

RE: How to handle Dates?

2005-02-25 Thread Brian McGovern
: bean:write. this tag has: formatKey or format as atributes. in my case I use formatKey. if you would like to change the formating just modify the format in your application.properties. I hope will help this. On Fri, 25 Feb 2005 10:45:26 -, Bob Arnott <[EMAIL PROTECTED]> wrote: > Brian

RE: How to handle Dates?

2005-02-24 Thread Brian McGovern
handle Dates? I use Struts throughout my application, but I also use the JSTL in a few places. This is what I use for date formatting: <[EMAIL PROTECTED] uri="/WEB-INF/fmt.tld" prefix="fmt" %> Date Available: -Original Message- From: Brian McGovern <[E

How to handle Dates?

2005-02-24 Thread Brian McGovern
Hi looking for input on how to approach dates across all levels of my struts app. Mainly what approach will allow me to handle formatting on the presentation layer. Is there any tag lib available in struts to handle formatting of a date type object ? -B

Best way to substitute vars in message resources

2005-02-18 Thread Brian McGovern
I want to frame out messages in Application.properties like this: err.userexists=The user __UserName__ already exists. Please try again. What im wondering about is if there is either a built in mechanism in struts to handle that __UserName__ replacement. Maybe {0} or something? Or should I ju

log4j struts

2005-02-16 Thread Brian McGovern
I want to use log4j with my struts app. Can I use the struts-config.xml to specify log4j as an init parameter and point it to its external properties file? Or do i have to make my own front controller servlet for that? thanks

[OT] RE: Calling a datasource

2005-02-16 Thread Brian McGovern
name (it gets mapped to whatever is specified in your server-specific JNDI configuration). As far as I know, you'll still need to hard-wire your app to whatever is in web.xml, but at least this way you are not hard-wiring it to a specific JNDI server's resource name. Erik Brian McGo

Calling a datasource

2005-02-16 Thread Brian McGovern
In my server config file I have a data resource "jdbc/MyData" and in my data layer i call it like this. DataSource zDataSource = (javax.sql.DataSource)zContext.lookup("jdbc/MyData"); This works, but I dont want to hardcode the jdbc name in the data class. How and where do I put this when I am

RE: Proper n tiered exception handling -- RESOLVED -- I think.

2005-02-15 Thread Brian McGovern
--- struts-config --- --- error.jsp --- Thanks -----Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 3:12 PM To: Struts Users Mailing List; [EMAIL PROT

RE: Proper n tiered exception handling

2005-02-15 Thread Brian McGovern
> > > > bundle="systemerrorbundle"/> > > > > >

RE: Proper n tiered exception handling

2005-02-15 Thread Brian McGovern
L comment within the page for your review. You can then view the exception stack trace by selecting view/source from you browser. Only show the user and nice "pretty" message. Jim -----Original Message- From: Brian McGovern <[EMAIL PROTECTED]> Sent: Feb 15, 2005 10:28 A

Proper n tiered exception handling

2005-02-15 Thread Brian McGovern
I'm looking to get a handle on best exception handling practices in my app. Kinda beginner question i guess, sorry. Im catching the various sql and naming exceptions in the data classes and logging and throwing a custom exception called ApplicationException which is blank and provided below.

RE: Hibernate object relational mapping

2005-02-10 Thread Brian McGovern
d it, but I mean to soon. > > My thought is this: Its fairly easy to write your own persistence layer, > but at what cost? A day? A week? Hibernate (and others) do one thing, > and they do it good. Why reinvent the wheel. > > Just my unworthy opinion.. I'm far from a SQL Gur

RE: Hibernate object relational mapping

2005-02-10 Thread Brian McGovern
with stored procedures? I thought they were better than pure java. On Thu, 10 Feb 2005 10:40:52 -0500, Brian McGovern <[EMAIL PROTECTED]> wrote: > Don't get me wrong, i wasn't knocking it. But my main concern is app speed > difference using stored procs or hibernate. >

RE: Hibernate object relational mapping

2005-02-10 Thread Brian McGovern
Don't get me wrong, i wasn't knocking it. But my main concern is app speed difference using stored procs or hibernate. -Original Message- From: Lee Harrington [mailto:[EMAIL PROTECTED] Sent: Thursday, February 10, 2005 10:10 AM To: Struts Users Mailing List Subject: Re: Hibernate object r

Hibernate object relational mapping

2005-02-10 Thread Brian McGovern
I'm looking for opinions on using Hibernate with struts. Pro's /cons. etc. My approach for data driven apps where the data changes rather frequently, would be jdbc interaction with stored procedures that populate beans that get passed around the app. But im hearing so much about how hibernate

SessionState vs. request state.

2005-02-09 Thread Brian McGovern
Hi, I'm planning my approach to a data driven app that I have to write in the near future. I've used struts before in more of a demo-type, proof of concept scenarios, and am no where near and expert, but now need to build a production level system. For a web app that needed to display a usern