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
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
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
?
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
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
-
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
>
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
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
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
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
: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
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
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]
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
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
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
---
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
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
---
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
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
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
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
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
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
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
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
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
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
- 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
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
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
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.
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
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
[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
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
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
/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
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
"
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
. 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
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
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
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
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
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
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
>
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
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
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
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
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]
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
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
: 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
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
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
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
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
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
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
---
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
>
>
>
> bundle="systemerrorbundle"/>
>
>
>
>
>
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
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.
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
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.
>
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
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
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
70 matches
Mail list logo