Re: [OT] "SELECT ... LIKE" with iBatis

2004-03-26 Thread Andy Engle
Ronald Rotteveel <[EMAIL PROTECTED]> wrote:

> Hi Andy,
> 
> we have a same kind of statement in our xml file and it looks like
> this:
>
> 
>  SELECT * FROM tbl_name WHERE column_name LIKE '%';
> 

Right, but I was running into trouble with where to put my #value#. 
Did you have anything like that in there?  I tried stuff like
'%#value#%', %#value#%, and whatever else but it didn't seem to want to
do anything but sit there and look at me.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] "SELECT ... LIKE" with iBatis

2004-03-26 Thread Andy Engle
Hi all,

I am trying to write a "SELECT ... LIKE %whatever%" statement with
iBatis but I can't seem to get it to work, nor can I find a clear
explanation of how to do this.  Does anybody have a code snippet they
could share with me of how to do this?

Thanks in advance.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts cookbook

2004-03-18 Thread Andy Engle
Hubert Rabago <[EMAIL PROTECTED]> wrote:

> I've had this idea for months now and actually had some entries
> already written (with full web apps to illustrate) and I've also
> started collecting cookbook entries from responses to this mailing
> list.

Ahh ok, good deal.


> So yes, I'm interested and would certainly participate.  What did you
> have in mind?

I thought it would be best if it is easy to use.  So, the index page
would be an index, but more like a table of contents.  Everything would
be broken down into sections, and then beneath each section would be
the recipes that would be placed in that section, all of which would be
links to the recipes.


> Where do you plan to host this?

I have some space where we can host it.


> What would the interface be?

Well, nothing more than HTML and perhaps a few graphics here and there
to make it look decent.  But not too decent; this is, after all, a
technical web site. :)


> Would it contain just code samples or would there be some way to
> also attach actual files/classes?

I thought it best to just have source code, and then perhaps a "links"
page where visitors could go to download materials, such as a link to
the Struts page, a link to reumann.net, and so on.  I really want to
focus on the ease of use and usefulness aspects of the site. 

As far as receiving material is concerned, perhaps that could be best
accomplished by a page with a form on it where we could collect the
author's name, e-mail address, topic, and then a textarea where they
could write their recipe.  From there, we'd receive it and simply post
it onto the site, hopefully with very little/no editing involved.  When
the recipe(s) are posted, the author's name will be included at the top
of the page, along with maybe some sort of optional method to contact
the author.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts cookbook

2004-03-18 Thread Andy Engle
Hi all,

I am a huge fan of O'Reilly's "cookbooks", which seem to contain a good
deal of useful material for doing all sorts of different things.  Today
I thought about the idea of making a Struts cookbook, although two
things would be different from how O'Reilly does it:

1. It wouldn't be a published book, but rather a web site, and
2. I'm not going to be writing all of it

With that in mind, I would like to ask all of you (who I have received
some excellent advice from, by the way) if any of you would be
interested in contributing material to such a web site.  I simply don't
have the time or experience to come up with everything, but I'm sure
that collectively we could put something together that could be pretty
slick.  I could easily host the site, and perhaps simply organize all
of the information I receive from you.  I appreciate all the
information already available with Struts, but I also like it when I
can simply "look it up" and be done with it.

I would like to see recipes posted there that cover everything from how
to do stuff with tags, iBatis, tiles, and whatever else.  Even delving
into other stuff like web services and how that ties in with Struts
would be good.  I don't want to focus so much on concept as I would
simply how to get something done quickly and easily.

What do you think?  Good idea?  Dumb idea?  I'm interested in your
thoughts on such a thing.  Looking forward to hearing from you.


Regards,
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: iBatis, displaytag, and 10,000 rows

2004-03-15 Thread Andy Engle
Vic Cekvenich <[EMAIL PROTECTED]> wrote:

> That is bad design.

Oh, I totally agree.  There is no way I would want to shlep through
10,000 rows, nor would I want anybody else to have to do the same.  But
for some reason (as I mentioned in my initial post on this thread) my
friend at work wanted to know if it could be done.  Hopefully he'll
never be doing this 10,000 row business.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



iBatis, displaytag, and 10,000 rows

2004-03-11 Thread Andy Engle
Hi all,

I am wondering if anybody has ever worked with a huge amount of data
with iBatis and displaytag?  I was showing off my little Struts
application earlier to a buddy of mine here at work, and he asked if it
would work well with 10,000 rows x 20-40 columns.  Anybody ever worked
with that much data with iBatis/displaytag before?  If so, how did it
work out for you?


Thanks,
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie needs help: Validator not working with Struts/Velocity

2004-03-10 Thread andy
I'm fairly new to Struts, and have been trying to get my simple 
application to work - using Struts 1.1, Velocity 1.3.1, Velocity 
Tools 1.1-rc1, and Tomcat 4.1.29. The application (such as it is)
works as far as presentation and workflow - but _isn't_ working is
the Validator framework. I've spent the last day mining the web for
help and haven't been able to progress at all...

The validator files _are_ being loaded - I see them in the log
files. And the rules/formset are being parsed - again, I see it in
the log. However, when the form is submitted on the first page
(payment.vm) and it goes to the second...no validation takes place.
No errors are appearing in either the catalina.out or localhost
log file. I have kicked up the log level to trace and still see
nothing wrong - other than the validation doesn't seem to happen.

Any help or suggestions would be GREATLY appreciated - I'm rather
stuck at the moment. I'm sure its just some silly configuration
or other error...

I'm including all the relevant files inline below. 

Thank you very much

  Andy Akins
  
== web.xml


http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

  CCPAY  
  
action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2
  
  
velocity

org.apache.velocity.tools.view.servlet.VelocityViewServlet

  org.apache.velocity.toolbox
  /WEB-INF/toolbox.xml


  org.apache.velocity.properties
  /WEB-INF/velocity.properties
   
   10
  
  
action
*.do
  
  
velocity
*.vm
  
  
index.html
  


= struts-config.xml

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>

  

  

  
  


  
  
  

  


= validation.xml - I'm using the standard validate-rules.xml

http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>

  

  


  

  


= Toolbox.xml



  
 link
 org.apache.velocity.tools.struts.StrutsLinkTool
  
  
 slink
 org.apache.velocity.tools.struts.SecureLinkTool
  
  
 text
 org.apache.velocity.tools.struts.MessageTool
  
  
 errors
 org.apache.velocity.tools.struts.ErrorsTool
  
  
 messages
 org.apache.velocity.tools.struts.ActionMessagesTool
  
  
 form
 org.apache.velocity.tools.struts.FormTool
  
  
 tiles
 org.apache.velocity.tools.struts.TilesTool
  
  
 validator
 org.apache.velocity.tools.struts.ValidatorTool
  


= payment.vm

  
CCPAY



  
  
#errorMarkup()

  
 
  Fee to be billed to your card
   $

  

  
  

  


= processing.vm


  
Processing Page.



  
  
  


  Processing ...
Thank you for your patience
$!paymentForm.amount
https://www.tennesseeanytime.org/tnanytime/apps/processing.gif"; 
alt="Showing Progress.">

  


= VM_global_library.vm
## Display all queued Struts errors
#macro (errorMarkup)
#if ($errors.exist() )

#foreach ($e in $errors.all )
$e
#end

#end
#end






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Returning fully-stocked Actions/JSPs from other Actions

2004-03-05 Thread Andy Engle
Hubert Rabago <[EMAIL PROTECTED]> wrote:

> How about putting some log statements around the code which sets the
> request attribute?  That'll assure you that the code is getting
> executed, and that the data you're putting there actually has values
> in them.

No I haven't, but that's a good idea.  I'll try it and see what is
happening.


> Have you tried re-requesting home.do after a successful login?  Does
> the data show then?

Yes, when I re-request the data is there.  It's only when I forward
that it isn't there.


> Also, have you considered redirecting to home.do instead of chaining
> the two actions?

I tried redirecing but I ran into the same problem.


> There were a lot of discussion about the problems with chaining
> actions sometime last year, but I wasn't around for most of it.

Yeah, I read on the Struts web site that chaining is not the best thing
to do, but I'm really not sure at this point how I can get around that.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Returning fully-stocked Actions/JSPs from other Actions

2004-03-05 Thread Andy Engle
Gopalakrishnan, Jayesh wrote:

> Andy,
> 
> Just to understand your page flow
> 
> The first request goes to /home.do, which puts "junkbean"
> into the request scope, forwards to index.jsp.
> On submit of the form on index.jsp, /login.do is invoked
> which then forwards to /home.do.
> 
> Is this understanding correct..?

Yes, that's exactly how I have it setup.


> Which action/page gives you "Cannot find bean junkbean in any scope"?

This happens when I forward back to /home.do after the trip to
/login.do.  I know that the bean has data during the first load of
/home.do, which is what I want.  Then I submit to /login.do (bean no
longer present, of course), and then I forward back to /home.do.  When
I forward to /home.do that second time, I expect the bean to be filled
with data once again because I have /home.do mapped to an action which
puts data in the bean, then puts the bean back in at request scope. 
The thing I am confused with is that the bean *isn't* being populated
with data when it seems to me that it should be.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Returning fully-stocked Actions/JSPs from other Actions

2004-03-04 Thread Andy Engle
"Gopalakrishnan, Jayesh" wrote:

> Your junkbean is lost once index.jsp is rendered on the browser.
> Thats the end of the request scope. If you want the "junkbean" to
> last for more than 1 page on the browser, I guess "session" scope is 
> appropriate.

Sure, but I don't want the bean to be saved at the session scope level
because it will be updated from request to request, hence the reason I
am loading it with new information before I send back index.jsp, which
will access the bean.

Thanks!


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Returning fully-stocked Actions/JSPs from other Actions

2004-03-04 Thread Andy Engle
Randy Dillon <[EMAIL PROTECTED]> wrote:

> ... Your first request scope ends once index.jsp loads; if you want
> to use the junkbean again after that, you have to save it again,
> either in the new request or in the session (or possibly other
> places, but those are the 2 most obvious).

Right -- I am putting it in the request scope in the second action,
which is what LogonAction forwards to after it's finished.


> So LogonAction would only be able to get junkbean from the request if
> index.jsp put it there (again).

LogonAction doesn't need junkbean.  It only needs to forward to
IndexAction, which it is doing.  But when I get to IndexAction (which
loads index.jsp), it doesn't seem to be populating the bean with data
for index.jsp to access, hence the problem.  It seems to me that it
should, hence my initial question.


Thanks,
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Returning fully-stocked Actions/JSPs from other Actions

2004-03-04 Thread Andy Engle
Michael McGrady wrote:

> There are no beans in returned JSPs.  In fact, there are no returned 
> JSPs.  I assume you mean to talk about the response object.  That
> includes only HTML in your case, I am betting.

Yes -- that's what I meant.


> The client requests /login.do.  What it means to say that "bean has
> data in it" when a client requests "/login.do" is unclear to me.

Ok, when the client requests /login.do, then junkbean gets data, which
the JSP has access to when "returned" (or displayed) to the user. 
Hence, the JSP is able to display the data present in the bean.


> You can return the user to any "screen" you like.  That is merely to
> say that you can choose the response object's content.

Right, but when doing so, I would like the response object to be able
to have access to the bean that has my data.


> >But when I do that, "junkbean" is nowhere to be found,
> 
> I don't know what this means.  Either "junk bean" is saved or not. 
> If not, and you want it, save it, although I would not.

No, this bean is only saved in the request object and nothing more.


Andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Returning fully-stocked Actions/JSPs from other Actions

2004-03-04 Thread Andy Engle
Michael McGrady wrote:

> I am having a hard time seeing what you want to do, but I know that
> your issues with the "junkbean" are unrelated to the "hiding" of the
> JSPs behind/beneath/be-whatever WEB-INF.  If you want to access data,
> including an object, then the data must be saved somewhere and then
> accessed where it is saved during the time it is saved.  That is the
> simple truth that is required for this situation.

Sure -- that's the only way it will work.  I'll try to put everything
in order here, as I am doing it:

1. IndexAction (mapped to /home.do) puts data into the bean:

List users = service.viewAllPeople(birForm);
request.setAttribute("junkbean", users);

...and then returns index.jsp:



2. Within this index.jsp is a form, which is submitted to LoginAction.

3. When I submit the form to LoginAction and LoginAction is finished,
then I want to return the /home.do mapping, or display the index.jsp
screen again:


  


4. When I do this, I get the following error:

Cannot find bean junkbean in any scope


> If you go to access it and it is not there, then you must be
> accessing in session scope and saving in request scope or something
> like that.

Ok, in IndexAction, I did put it in request scope, but that should work
because I only want it for this request, not necessarily for the entire
session.  But in this case, does IndexAction even have access to the
request scope, or does LoginAction only have access to that (i.e.
IndexAction can't put junkbean in request scope)?


> You need to ask: (1) did I save "junk bean"?

Yes.


> (2) If not, do so.  If so, then is the scope of the respository
> adequate for your purposes.

It seems that request scope should be adaquate in this case, since I
only need it for the current request.


> (3) Etc. Okay dokay?

Okay dokay -- thanks!  Let me know if that is a decent-enough
clarification of my earlier question.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Returning fully-stocked Actions/JSPs from other Actions

2004-03-04 Thread Andy Engle
Hi all,

I'm working on a web app where I have my JSPs hidden beneath WEB-INF.
In doing so, I of course have actions which RequestDispatch those pages
to the user.  In doing this I am running into a problem where beans in
those returned JSPs are not getting updated when they are returned from
other actions.  For example, on my login screen lets say I have a bean
"junkbean" that hold some data, which is loaded in LoginAction.  That
bean has data in it when I call /login.do directly. When I complete a
form on that screen and submit it to /update.do, I would like to return
the user to the /login.do screen.  But when I do that, "junkbean" is
nowhere to be found, as if the action behind /login.do is not doing
anything.  But, if I call /login.do directly, then "junkbean" is there
with all it's data.

How can I get my action behind /index.do (or any similar action that
gets data, then RequestDispatches a JSP back to the user) to execute so
that I can have my updated beans present?  If this is not the ideal way
to do it, what would be a better design for doing this sort of thing?
Essentially I want to hide all my JSPs behind WEB-INF, but I would
still like to have them updated after I submit forms and return action
paths, which load those JSPs.

Thanks so much for your help, and I look forward to receiving your
advice.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Starting time-consuming jobs early

2004-03-01 Thread Andy Engle
Hi all,

It looks like I am going to be involved with a project where the goal
is to gather a bunch of product information from multiple databases,
and then mix-n-match (a highly-technical term there) all that data to
ultimately generate some metrics charts.  It seems that making this a
web application would be good here becuase several groups within this
company X can then share this information.  But since it will take so
long to get the results, I'm wondering if there is some sort of way
using servlets or whatever that I can have this job kick off at maybe
midnight on Friday night so that all the data will be freshly available
on Monday morning when it would be needed.  I've considered maybe using
a cron job to fire off a Perl script to do all the work, and then load
the database with the data that would be replaced each week.  But, I'd
be interested in knowing if I could have it setup some slick way with
Struts/Servlets/etc.


Thanks,
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))

2004-03-01 Thread Andy Engle
"Nguyen, Hien" <[EMAIL PROTECTED]> wrote:

> I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things
> are working perfectly fine.  The latest JDK on OS X is 1.4.2.

Same here.  I like it all pretty well, but the only minor drawback is
that sometimes I think the Eclipse interface in OS X is a little
clunky.  But that's just with Eclipse -- you might find that other IDEs
aren't that way.  All the other great features of OS X definitely make
up for it though.

I don't see how you could go wrong with getting rid of your Windoze
setup.  And after how many hours I spent in a failed effort yesterday
trying to simply *install* XP on my in-laws computer, I'd encourage you
to!  I have no plans of ever going back to the Windoze world -- enough
of that pathetic junk is enough.


Feeling Like I Just Started Another OS Shouting Match,
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Breadcrumbs

2004-02-23 Thread Andy Engle
Adam Hardy <[EMAIL PROTECTED]> wrote:

> Kudos, Jason. You not only thought outside the box, you left it
> crying and miserable in the old boxes home.

I agree.  It looks like doing it that way (using tiles) is one of the
better ways of doing it.  I'm going to have to sit down and figure that
whole thing out.


Andy


PS: And Adam's "out of the box" comment was fitting.  :)   For some
reason, it reminds me of one of the sayings of one of my former
professors, which was "up the creek in a wire-frame canoe with a stone
paddle".  Ha!  Although I don't think we'll be up the creek with
Jason's tiles-based breadcrumbs approach.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Breadcrumbs

2004-02-23 Thread Andy Engle
[EMAIL PROTECTED] wrote:

> I just finished rolling my own last week.  I've found that breadcrumb
> requirements end up being unique in some way to the application. 
> What are your requirements?

In my case, my requirements are pretty simple -- nothing other than
just having basic breadcrumbs present throughout the site. I'd like for
the breadcrumbs to allow the user to be able to navigate back to each
section between the site home page and where they are currently located
within the site.  For example, if the breadcrumb on my page looks like
this:

Porsche NA > Cars > Coupes > 911

(Assuming I'm on the "911" page) then I would like for my user to be
able to click on "Coupes" and go to the Coupes page, or on "Cars" and
go up to Cars, and so on.

As simple as it is, I was curious when I wrote my inital post the other
day if there was something that did all this for me.  I don't mind
writing the links in there myself, but if there is something that does
this in an elegant way then I'm interested in checking it out.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Breadcrumbs

2004-02-21 Thread Andy Engle
Hi all,

Is there any slick way of putting breadcrumbs into a web app with
Struts?  If so, what's the preferred way?

Thanks.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java / J2EE Developer

2004-02-16 Thread Andy Engle
James Mitchell <[EMAIL PROTECTED]> wrote:

> Looks like the only way to compete is to improve yourself.  That
> works for me, what about you?

I can improve myself all I want to, but if/when our CEO says that
workers in India, China, or whatever other country work for pennies on
my salary's dollar, then there goes my job.  Our division leader has
already said as much, and with that in mind I suspect that I'll be
moving on within a few years.

But the self-improvement comment is somewhat irrelevent, although to
some degree I saw what you were getting at.  The issue at hand is
excessive corporate greed, and making the bottom line look as sweet to
shareholders as possible.  Even at the detrimental expense of the
livelihood of a large number of highly-skilled American workers who
have families, mortgages and lives to live.  With that in mind, I find
the act of outsourcing to be extremely disgusting.

'Nuff said.  Back to the Struts discussions.  And I apologize for
further contributing to the "off-topicness" of this thread.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java / J2EE Developer

2004-02-16 Thread Andy Engle
deepak saini <[EMAIL PROTECTED]> wrote:

> Come to India, there are lots of jobs for you here.

This drives me crazy -- our future is being exported and nobody seems
to care.

http://www.wired.com/wired/archive/12.02/india.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Calling JSPs directly

2004-02-13 Thread Andy Engle
Hi all,

Thanks for sharing your thoughts about my question from earlier today. 
I am going to heed your advice and go ahead with accessing my JSPs
through actions.  You've given me some new ideas on how I can make my
application better, which I appreciate.

And I'm glad that I finally found some decent Valentine's
Day gifts for my wife for our first married Valentine's
Day.

Take care and thanks again.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Calling JSPs directly

2004-02-13 Thread Andy Engle
Hi all,

I'm working with a web application in which I have multiple pages of
information, currently located in PHP files.  I want to convert these
PHP files into JSPs, and then make them available to be directly called
within my web application. I would like to have these JSPs available
for direct access because I want to make it easy for users of this
application to bookmarks whatever pages they're interested in going
back to from time to time. Each page will have a form, which will be
submitted to a Struts action when submitted, and then from there I want
the action to update the database, then return the same, updated JSP to
the user.

I'm wondering if making JSPs available to the user in this manner is a
poor practice, and if so, what would be a better way of doing it? 
Furthermore, will I run into any problems with the Struts custom tags
or tiles by taking this approach?

Thanks very much for sharing your thoughts.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



iteration and EL help needed

2004-02-04 Thread Andy Kriger
This is the problem I am trying to solve.
I want to submit a DynaValidatorForm with multiple hidden/text inputs that
have the same name. This is a list of items and quantities that I am trying
to update with one submit (e.g. itemId, quantity). Is this what the
'indexed' input attribute is supposed to help with? Will the validator
understand how to apply the rule for itemId to every indexed instance of
itemId? Will DynaValidatorForm receive an array of itemIds and quantities?

Since the items are stored in a collection, I want to iterate over them,
outputting the input fields. With c:forEach, I get an exception that the
indexed attribute is not supported. With logic-el:iterate, I get a name
attribute that looks like
name="org.apache.struts.taglib.html.BEAN[1].itemId" - that doesn't look
right at all.

I am using Struts 1.1rel (and the struts-el JAR in the contrib dir) with
JSTL 1.0 in Resin 2.x.x. 
Has anyone seen behavior like this and know how I can fix it? 
Or am I barking up the wrong tree trying to submit my form in this fashion?

Here's a bit of the JSP code...
<%--c:forEach var="item" items="${context_tray.items}" varStatus="idx"--%>





<%--/c:forEach--%>

thx

Andy Kriger | Software Mechanic | Greater Than One, Inc.
28 West 27th Street | 7th Floor | New York, NY 10001
P: 212.252.7197 | F: 212.252.7364 | E: [EMAIL PROTECTED] 



RE: [OT]CVS client

2004-02-04 Thread Andy Kriger
if you don't need a GUI, you can install cygwin and use the cvs client from
that. 

-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 03, 2004 3:17 PM
To: [EMAIL PROTECTED]
Subject: [OT]CVS client
Importance: High

Hi,
can anybody suggest me any better CVS client other than WinCVS and
JCVS? 

Tnx in advance,

-Ramadoss


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Looking for junior Java/Struts developers

2004-02-04 Thread Andy Engle
Joe Hertz <[EMAIL PROTECTED]> wrote:

> I grew up in Reston (and you've made me nauseous by calling it
> "tops!" tyvm :-). I mean, any place that has zoning laws telling you
> you cannot paint your house the color you want, can fine you for not
> mowing your lawn, has outlawed street lights and tells McDonalds it
> cannot have Golden Arches, and that Convience Stores must not face
> the roads (all in the name of keeping property values up), it a
> little bit up uptight for me.

Oh I didn't live there, I just worked there.  I lived in Frederick
County, Maryland, which was quite a bit better of a place to live than
in Reston.  I agree, those laws are quite a bit uptight -- no place
should have obnoxious zoning like that.  But the area is pretty clean,
seems to not have much of a crime rate, and has decent roads and places
to eat.  A good place to work, but I'd live in Frederick, MD any day
over Reston.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Looking for junior Java/Struts developers

2004-02-04 Thread Andy Engle
Andrew Hill <[EMAIL PROTECTED]> wrote:

> Least you can afford a car in Herdon VA. Over here even a
> simple Toyota Camry will set you back $110k (about $64k US).

Nah -- a Camry is not even half that cost here.  At least it shouldn't
be.  But you shouldn't waste your money on the Camry, especially when
there are far better cars available, like the Honda Accord.

Herndon is a pretty sweet place.  I used to work in Reston, actually on
the top floor at Reston Town Center, and that area is tops.  It sure
does beat this place that I'm at now, hands down!  A salary of $50K
would be pretty meager living though, especially in that area.  You'd
most likely have to live elsewhere and commute.

Man we're really off-topic now.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: out> tag inside tag

2004-02-04 Thread Andy Kriger
Try using the struts-el tag library
It's an extension of the struts taglib that allows you to use JSTL EL
So you example becomes...


-Original Message-
From: Rahul Mohan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 08, 2004 2:48 AM
To: struts
Subject:  tag inside  tag

Hi...I am facing some problems with using JSTL tags inside struts tags.

This is the piece of code I wrote for my application:

 "
 />

the problem is that it is getting traslated to



in the final html page!! 

can anybody please tell me why the  tag is not getting translated
to 

Re: Struts + displaytag = delay

2004-02-02 Thread Andy Engle
On Feb 1, 2004, at 9:22 PM, Nikhil Sidhaye wrote:

> Hi Andy ,
>
> Can you reproduce the same results with hardcoded ArrayList
> objects (without connecting database)?

Hey there.  I found that the problem was actually do to reloading the
bean with the data from the database each time I was loading a page. 
Each time I wanted to go through the data I was hitting the database,
which was causing the delay.  The way I worked around it is that in my
action class I am checking what the query string is that I am passing
in.  If the query string is null, then that means that I am probably
not doing any of the fancy stuff with displaytag, such as sorting,
going through the pages, etc.  So, if that query string is null, that
is when I am hitting the database, loading the data into a bean, and
shleping that into the session scope.  If there is a query string, I
just stick with what I already have in the bean.

One of the other members of this mailing list (Zoran Avtarovski)
suggested that I look into the use of iBatis, which I got more into
today.  I am going to figure out how I can get all that to work, which
Zoran suggested would probably take care of the problem in addition to
making it a more efficient solution.

Anyway, to answer your question, I don't have the same results when I
work without hitting the database.  It's only when I hit the database
multiple times that I get the delay, which is due to our database
server being overloaded with so much junk.  I wish (the company I work
for) would spend some money and get us some new servers that can handle
the load!  They did just get us dualies with a gig of memory, which was
nice though.

Thanks for responding!


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ChartDirector with Struts

2004-02-02 Thread Andy Engle
Hi all,

Just curious if anyone has used ChartDirector (from
http://www.advsofteng.com) in any Struts application?


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts + displaytag = delay

2004-01-30 Thread Andy Engle
Hi all,

I am using displaytag in a Struts app that I am working with, and so
far it seems to be all good, except when I incorporate pagination into
one of my actions.  I have an ArrayList of objects that I am getting
from the database, which I am placing in session scope when I get the
list built.  From there, I am eventually sending that back to the JSP,
which uses the displaytag to show the results.  For the first three
pages I load (of maybe five pages of results), it seems to work well,
but then when I click on pages after the second or third click, it
seems that there is a delay of maybe 10 seconds in getting the
subsequent pages of results to load.  It seems like this should be
pretty quick, right?  After all, my data is already loaded, it's set as
a session value, and I shouldn't have to go back to the database and
pickup all the data again.

I am using Tomcat 5.0.14 with Oracle 8.1.7.  Any help provided would of
course be very much appreciated.

Have a great day.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jstl & error messages

2004-01-29 Thread Andy Richards
Hi,

Does any one know how to display individual error messages created via the
validator or my actions using jstl?



I guess its along the lines of the above but i am missing something?

cant seems to find the answer to this one on the archives?

thanks

Andy



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: form validation question

2004-01-28 Thread Andy Kriger
Looks like there is a functional change or bug in the action input attribute
in Struts 1.1 - a forward name must be used instead of the location of a JSP
or Action. Not sure why this change happened between 1.1RC and 1.1rel -
maybe someone on the Struts dev team can answer?

-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 27, 2004 2:46 PM
To: Struts Users Mailing List
Subject: form validation question

I am having a curious problem with form validation. I submit a form, see in
the logs that the form fails to validate, however, the webapp does not
return to the input page (I get a blank page with no HTML in it), so I do
not see the form with error messages as expected. If I put text in the
field, the form does submit correctly and I see the JSP specified in the
resulting action chain. The log files have no error messages indicating
something is amiss. When validation fails, the subsequent action is
definitely not running (I do not see the logging in the execute method).

Does anyone have any ideas what could be happening here? 
Or how I can track down the problem?
Below is the relevant info...

=== STRUTS CONFIG ===




 



=== orderForm.jsp ===


<%=err%>








=== VALIDATION CONFIG ===






=== LOG MESSAGES ===
[org.apache.struts.action.RequestProcessor][RequestProcessor]
Validating input form properties
[org.apache.struts.action.RequestProcessor][RequestProcessor]
Validation failed, returning to '/OrderForm.do'



Andy Kriger | Software Mechanic | Greater Than One, Inc.
28 West 27th Street | 7th Floor | New York, NY 10001
P: 212.252.7197 | F: 212.252.7364 | E: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: form validation question

2004-01-28 Thread Andy Kriger
It didn't make any difference if I used an action or the JSP for the input
attribute. 

-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 27, 2004 6:55 PM
To: Struts Users Mailing List
Subject: Re: form validation question

Ok, maybe, I'd have to check into struts code to really be
certain("input"
surely has some significance is what i'm thinking..) So just for the heck of
it though, what happens if you do say "/web/forms/orderForm.jsp" instead?

Andy Kriger wrote:

> OrderForm.do = /web/forms/orderForm.jsp That shouldn't make a 
> difference. I like to refer to actions rather than JSPs to minimize 
> the number of things I have to change if a JSP changes to a different 
> JSP or to another action.
>
> -Original Message-
> From: Geeta Ramani [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 27, 2004 3:27 PM
> To: Struts Users Mailing List
> Subject: Re: form validation question
>
> Andy:
>
> Any reason why you have the unusual "input" param..?
>
>  >  type="MyClass"
> >  name="orderForm"
> >  validate="true"
> >  input="/OrderForm.do"
> >  scope="request">
> >  
> >
>
> I woud have thought you'd use this instead:
>
>  >      type="MyClass"
> >  name="orderForm"
> >  validate="true"
> >  input="/web/forms/orderForm.jsp"
> >  scope="request">
> >  
> >
>
> Regards,
> Geeta
>
> >
> > Andy Kriger wrote:
> >
> > > I am having a curious problem with form validation. I submit a 
> > > form, see in the logs that the form fails to validate, however, 
> > > the webapp does not return to the input page (I get a blank page 
> > > with no HTML in it), so I do not see the form with error messages 
> > > as expected. If I put text in the field, the form does submit 
> > > correctly and I see the JSP specified in the resulting action 
> > > chain. The log files have no error messages indicating something 
> > > is amiss. When validation fails, the subsequent action is 
> > > definitely not running (I do not see the
> logging in the execute method).
> > >
> > > Does anyone have any ideas what could be happening here?
> > > Or how I can track down the problem?
> > > Below is the relevant info...
> > >
> > > === STRUTS CONFIG ===
> > >
> > > 
> > >
> > >  > >  type="MyClass"
> > >  name="orderForm"
> > >  validate="true"
> > >  input="/OrderForm.do"
> > >  scope="request">
> > >  
> > >
> > >  > > type="org.apache.struts.actions.ForwardAction"/>
> > >
> > > === orderForm.jsp ===
> > > 
> > > 
> > > <%=err%>
> > > 
> > > 
> > >
> > > 
> > > 
> > >  
> > >
> > > === VALIDATION CONFIG ===
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > === LOG MESSAGES ===
> > > [org.apache.struts.action.RequestProcessor][RequestProcessor]
> > > Validating input form properties
> > > [org.apache.struts.action.RequestProcessor][RequestProcessor]
> > > Validation failed, returning to '/OrderForm.do'
> > >
> > > Andy Kriger | Software Mechanic | Greater Than One, Inc.
> > > 28 West 27th Street | 7th Floor | New York, NY 10001
> > > P: 212.252.7197 | F: 212.252.7364 | E: [EMAIL PROTECTED]
> >
> > 
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: form validation question

2004-01-27 Thread Andy Kriger
orderForm was extending DynaValidatorForm. I changed this to
DynaValidatorActionForm - now the form validates (though it shouldn't -
there's a required field missing). Looks like I'm one step closer to a
solution.

Thank you for the idea.

-Original Message-
From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 27, 2004 5:10 PM
To: 'Struts Users Mailing List'
Subject: RE: form validation question

Your orderForm does extend ValidatorForm instead of ActionForm right? The
struts validator plug-in relies on your forms extending ValidatorForm in
order to do server-side validations.

Out of curiosity, you may want to see if client-side validation works first.

 ...



When the submit button is pressed, if the required field is empty, you
should get a message window indicating the field is required.

Brian Barnett


-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 1:16 PM
To: 'Struts Users Mailing List'
Subject: RE: form validation question

I see an empty page - no HTML, no nothing. It's as if the handoff to the
input path never happens, even though the logging informs me that validation
failed and the input path is being returned to. When you say 'a question of
display not working right', what do you have in mind? 

-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 3:05 PM
To: Struts Users Mailing List
Subject: Re: form validation question

Andy:

What do you see in the source of the html page..? Maybe it is just a
question of display not working right..?

Geeta

Andy Kriger wrote:

> I am having a curious problem with form validation. I submit a form, 
> see in the logs that the form fails to validate, however, the webapp 
> does not return to the input page (I get a blank page with no HTML in 
> it), so I do not see the form with error messages as expected. If I 
> put text in the field, the form does submit correctly and I see the 
> JSP specified in the resulting action chain. The log files have no 
> error messages indicating something is amiss. When validation fails, 
> the subsequent action is definitely not running (I do not see the 
> logging
in the execute method).
>
> Does anyone have any ideas what could be happening here?
> Or how I can track down the problem?
> Below is the relevant info...
>
> === STRUTS CONFIG ===
>
> 
>
>   type="MyClass"
>  name="orderForm"
>  validate="true"
>  input="/OrderForm.do"
>  scope="request">
>  
>
>  type="org.apache.struts.actions.ForwardAction"/>
>
> === orderForm.jsp ===
> 
> 
> <%=err%>
> 
> 
>
> 
> 
>  
>
> === VALIDATION CONFIG ===
> 
> 
> 
> 
> 
>
> === LOG MESSAGES ===
> [org.apache.struts.action.RequestProcessor][RequestProcessor]
> Validating input form properties
> [org.apache.struts.action.RequestProcessor][RequestProcessor]
> Validation failed, returning to '/OrderForm.do'
>
> Andy Kriger | Software Mechanic | Greater Than One, Inc.
> 28 West 27th Street | 7th Floor | New York, NY 10001
> P: 212.252.7197 | F: 212.252.7364 | E: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: form validation question

2004-01-27 Thread Andy Kriger
OrderForm.do = /web/forms/orderForm.jsp
That shouldn't make a difference. I like to refer to actions rather than
JSPs to minimize the number of things I have to change if a JSP changes to a
different JSP or to another action.

-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 27, 2004 3:27 PM
To: Struts Users Mailing List
Subject: Re: form validation question

Andy:

Any reason why you have the unusual "input" param..?

  type="MyClass"
>  name="orderForm"
>  validate="true"
>  input="/OrderForm.do"
>  scope="request">
>  
>

I woud have thought you'd use this instead:

  type="MyClass"
>  name="orderForm"
>  validate="true"
>  input="/web/forms/orderForm.jsp"
>  scope="request">
>  
>

Regards,
Geeta

>
> Andy Kriger wrote:
>
> > I am having a curious problem with form validation. I submit a form, 
> > see in the logs that the form fails to validate, however, the webapp 
> > does not return to the input page (I get a blank page with no HTML 
> > in it), so I do not see the form with error messages as expected. If 
> > I put text in the field, the form does submit correctly and I see 
> > the JSP specified in the resulting action chain. The log files have 
> > no error messages indicating something is amiss. When validation 
> > fails, the subsequent action is definitely not running (I do not see the
logging in the execute method).
> >
> > Does anyone have any ideas what could be happening here?
> > Or how I can track down the problem?
> > Below is the relevant info...
> >
> > === STRUTS CONFIG ===
> >
> > 
> >
> >  >  type="MyClass"
> >  name="orderForm"
> >  validate="true"
> >  input="/OrderForm.do"
> >  scope="request">
> >  
> >
> >  > type="org.apache.struts.actions.ForwardAction"/>
> >
> > === orderForm.jsp ===
> > 
> > 
> >     <%=err%>
> > 
> > 
> >
> > 
> > 
> >  
> >
> > === VALIDATION CONFIG ===
> > 
> > 
> > 
> > 
> > 
> >
> > === LOG MESSAGES ===
> > [org.apache.struts.action.RequestProcessor][RequestProcessor]
> > Validating input form properties
> > [org.apache.struts.action.RequestProcessor][RequestProcessor]
> > Validation failed, returning to '/OrderForm.do'
> >
> > Andy Kriger | Software Mechanic | Greater Than One, Inc.
> > 28 West 27th Street | 7th Floor | New York, NY 10001
> > P: 212.252.7197 | F: 212.252.7364 | E: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: form validation question

2004-01-27 Thread Andy Kriger
I see an empty page - no HTML, no nothing. It's as if the handoff to the
input path never happens, even though the logging informs me that validation
failed and the input path is being returned to. When you say 'a question of
display not working right', what do you have in mind? 

-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 27, 2004 3:05 PM
To: Struts Users Mailing List
Subject: Re: form validation question

Andy:

What do you see in the source of the html page..? Maybe it is just a
question of display not working right..?

Geeta

Andy Kriger wrote:

> I am having a curious problem with form validation. I submit a form, 
> see in the logs that the form fails to validate, however, the webapp 
> does not return to the input page (I get a blank page with no HTML in 
> it), so I do not see the form with error messages as expected. If I 
> put text in the field, the form does submit correctly and I see the 
> JSP specified in the resulting action chain. The log files have no 
> error messages indicating something is amiss. When validation fails, 
> the subsequent action is definitely not running (I do not see the logging
in the execute method).
>
> Does anyone have any ideas what could be happening here?
> Or how I can track down the problem?
> Below is the relevant info...
>
> === STRUTS CONFIG ===
>
> 
>
>   type="MyClass"
>  name="orderForm"
>  validate="true"
>  input="/OrderForm.do"
>  scope="request">
>  
>
>  type="org.apache.struts.actions.ForwardAction"/>
>
> === orderForm.jsp ===
> 
> 
> <%=err%>
> 
> 
>
> 
> 
>  
>
> === VALIDATION CONFIG ===
> 
> 
> 
> 
> 
>
> === LOG MESSAGES ===
> [org.apache.struts.action.RequestProcessor][RequestProcessor]
> Validating input form properties
> [org.apache.struts.action.RequestProcessor][RequestProcessor]
> Validation failed, returning to '/OrderForm.do'
>
> Andy Kriger | Software Mechanic | Greater Than One, Inc.
> 28 West 27th Street | 7th Floor | New York, NY 10001
> P: 212.252.7197 | F: 212.252.7364 | E: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



form validation question

2004-01-27 Thread Andy Kriger
I am having a curious problem with form validation. I submit a form, see in
the logs that the form fails to validate, however, the webapp does not
return to the input page (I get a blank page with no HTML in it), so I do
not see the form with error messages as expected. If I put text in the
field, the form does submit correctly and I see the JSP specified in the
resulting action chain. The log files have no error messages indicating
something is amiss. When validation fails, the subsequent action is
definitely not running (I do not see the logging in the execute method).

Does anyone have any ideas what could be happening here? 
Or how I can track down the problem?
Below is the relevant info...

=== STRUTS CONFIG ===









=== orderForm.jsp ===


<%=err%>








=== VALIDATION CONFIG ===






=== LOG MESSAGES ===
[org.apache.struts.action.RequestProcessor][RequestProcessor]
Validating input form properties
[org.apache.struts.action.RequestProcessor][RequestProcessor]
Validation failed, returning to '/OrderForm.do'



Andy Kriger | Software Mechanic | Greater Than One, Inc.
28 West 27th Street | 7th Floor | New York, NY 10001
P: 212.252.7197 | F: 212.252.7364 | E: [EMAIL PROTECTED] 



Simple tags (aka "tag files") with Struts

2004-01-07 Thread Andy Engle
Hi all,

I'm trying to incorporate tag files into my Struts application, but I'm
running into the problem of the attributes and tag body not being
displayed within the JSP calling the tag file.  The regular HTML from
the tag file is being included, but the attributes, such as ${color},
are not being replaced with their proper values, nor is the body 

Here is my tag, areaBox.tag, simplified:

<%@ attribute name="color" %>
<%@ attribute name="title" %>


  
${title}
  
  

  

  



Next, here is my JSP that is calling the tag file:

<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
...

  This is the body of my area box.


When the page loads, my HTML is shown, but ${color} and ${title} appear
just like they are defined in tag file, ${color} and ${title}.  And my
tag body "This is the body of my area box." in this case, is not being
included either.

How do I correct this problem?  Thanks in advance for your help!


Regards,
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Date validation problem?

2003-12-30 Thread Andy Schmidgall
No, you should be able to do both. I was just saying that if you had
counted on datePattern functionality, and you switch to
datePatternStrict, you may get slightly different results as they are
supposed to act slightly differently. :)

-Andy

-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 30, 2003 11:08 AM
To: Struts Users Mailing List
Subject: Re: Date validation problem?


How exactly do I get server-side validation? Is this an XOR condition? 
Either javascript or server-side, but not both?

Andy Schmidgall wrote:

>The javascript should work, yes. I haven't tried this with serverside 
>validation though. DatePattern works (or is supposed to work) 
>differently than datePatternStrict, so be aware that if you were 
>counting on datePattern functionality serverside, it may not work as 
>you had expected.
>
>-Andy
>
>-Original Message-
>From: Brice Ruth [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 30, 2003 10:44 AM
>To: Struts Users Mailing List
>Subject: Re: Date validation problem?
>
>
>Aha, so all I need to do is change "datePattern" to "datePatternStrict"
>in my XML?
>
>Andy Schmidgall wrote:
>
>  
>
>>datePattern doesn't work -- you must use datePatternStrict unless you
>>modify the javascript validation function.
>>
>>This line is where the pattern is loaded:
>>
>>var datePattern = oDate[x][2]("datePatternStrict");
>>
>>Notice that it's loading datePatternStrict instead of datePattern from
>>the oDate object. The validation function completely ignores the 
>>datePattern var you defined in the xml.
>>
>>You're getting the error because it's trying to load from the
>>datePatternStrict var which isn't defined, so the javascript 
>>datePattern var isn't a valid object.
>>
>>-Andy
>>
>>-Original Message-
>>From: Brice Ruth [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, December 30, 2003 9:55 AM
>>To: Struts Users Mailing List
>>Subject: Date validation problem?
>>
>>
>>I'm testing the JavaScript validation for my form and noticed that the

>>JavaScript generated to validate my date fields throws an error that I

>>can see in Firebird's JavaScript console. Here's the error:
>>
>>datePattern has no properties
>>
>>and here's the line it occurs on:
>>
>>for (x in oDate) {
>>
>>  var value = form[oDate[x][0]].value;
>>
>>  var datePattern = oDate[x][2]("datePatternStrict");
>>
>> 
>>
>>
>>
>>>>if ((form[oDate[x][0]].type == 'text' || form[oDate[x][0]].type
>>>> 
>>>>
>>>>
>>>>
>>==
>> 
>>
>>
>>
>>>>'textarea') && value.length > 0 && datePattern.length > 0) {
>>>> 
>>>>
>>>>
>>>>
>>  var MONTH = "MM";
>>
>>  var DAY = "dd";
>>
>>  var YEAR = "";
>>
>>
>>I can see that my date fields appear correctly in DateValidations(),
>>here:
>>
>>   function DateValidations () {
>>
>>this.aa = new Array("theStartDate", "Availability Start Date is
>>not a valid date.", new Function ("varName", 
>>"this.datePattern='MM/dd/yy'; return this[varName];"));
>>
>>this.ab = new Array("theEndDate", "Availability End Date is not a
>>valid date.", new Function ("varName", "this.datePattern='MM/dd/yy'; 
>>return this[varName];"));
>>
>>   }
>>
>>
>>And in my validation.xml file, the following is defined:
>>
>>
>>
>>  
>>
>>  
>>
>>  datePattern
>>
>>  ${defaultDate}
>>
>>  
>>
>>
>>
>>
>>
>>  
>>
>>  
>>
>>  datePattern
>>
>>  ${defaultDate}
>>
>>  
>>
>>
>>
>>
>>Where ${defaultDate} is a global defined as:
>>
>>
>>
>>  defaultDate
>>
>>  MM/dd/yy
>>
>>
>>
>>
>>From what I can see in DateValidations(), it looks like the var-value 
>>is being picked up correctly ... so, I'm at a bit of a loss on this. 
>>Is
>>
>>
>
>  
>
>>this a know bug in Struts 1.1?
>>
>>Also, does using DynaValidatorForm with validation.xml and such *only*

>>do JavaScript validation or is server-side validation performed as
>>
>>
>well?
>  
>
>>It'd be a nice bonus to have server-side validation, to prevent 
>>corrupt or malicious submittals, but that may require a custom 
>>ActionForm?!
>> 
>>
>>
>>
>
>  
>

-- 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Date validation problem?

2003-12-30 Thread Andy Schmidgall
The javascript should work, yes. I haven't tried this with serverside
validation though. DatePattern works (or is supposed to work)
differently than datePatternStrict, so be aware that if you were
counting on datePattern functionality serverside, it may not work as you
had expected.

-Andy

-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 30, 2003 10:44 AM
To: Struts Users Mailing List
Subject: Re: Date validation problem?


Aha, so all I need to do is change "datePattern" to "datePatternStrict" 
in my XML?

Andy Schmidgall wrote:

>datePattern doesn't work -- you must use datePatternStrict unless you 
>modify the javascript validation function.
>
>This line is where the pattern is loaded:
>
>var datePattern = oDate[x][2]("datePatternStrict");
>
>Notice that it's loading datePatternStrict instead of datePattern from 
>the oDate object. The validation function completely ignores the 
>datePattern var you defined in the xml.
>
>You're getting the error because it's trying to load from the 
>datePatternStrict var which isn't defined, so the javascript 
>datePattern var isn't a valid object.
>
>-Andy
>
>-Original Message-
>From: Brice Ruth [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 30, 2003 9:55 AM
>To: Struts Users Mailing List
>Subject: Date validation problem?
>
>
>I'm testing the JavaScript validation for my form and noticed that the
>JavaScript generated to validate my date fields throws an error that I 
>can see in Firebird's JavaScript console. Here's the error:
>
>datePattern has no properties
>
>and here's the line it occurs on:
>
>for (x in oDate) {
>
>   var value = form[oDate[x][0]].value;
>
>   var datePattern = oDate[x][2]("datePatternStrict");
>
>  
>
>>> if ((form[oDate[x][0]].type == 'text' || form[oDate[x][0]].type
>>>  
>>>
>==
>  
>
>>>'textarea') && value.length > 0 && datePattern.length > 0) {
>>>  
>>>
>
>   var MONTH = "MM";
>
>   var DAY = "dd";
>
>   var YEAR = "";
>
>
>I can see that my date fields appear correctly in DateValidations(),
>here:
>
>function DateValidations () {
>
> this.aa = new Array("theStartDate", "Availability Start Date is 
>not a valid date.", new Function ("varName", 
>"this.datePattern='MM/dd/yy'; return this[varName];"));
>
> this.ab = new Array("theEndDate", "Availability End Date is not a 
>valid date.", new Function ("varName", "this.datePattern='MM/dd/yy'; 
>return this[varName];"));
>
>}
>
>
>And in my validation.xml file, the following is defined:
>
>
>
>   
>
>   
>
>   datePattern
>
>   ${defaultDate}
>
>   
>
>
>
>
>
>   
>
>   
>
>   datePattern
>
>   ${defaultDate}
>
>   
>
>
>
>
>Where ${defaultDate} is a global defined as:
>
>
>
>   defaultDate
>
>   MM/dd/yy
>
>
>
>
> From what I can see in DateValidations(), it looks like the var-value
>is being picked up correctly ... so, I'm at a bit of a loss on this. Is

>this a know bug in Struts 1.1?
>
>Also, does using DynaValidatorForm with validation.xml and such *only*
>do JavaScript validation or is server-side validation performed as
well?
>
>It'd be a nice bonus to have server-side validation, to prevent corrupt
>or malicious submittals, but that may require a custom ActionForm?!
>  
>

-- 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Date validation problem?

2003-12-30 Thread Andy Schmidgall
datePattern doesn't work -- you must use datePatternStrict unless you
modify the javascript validation function.

This line is where the pattern is loaded:

var datePattern = oDate[x][2]("datePatternStrict");

Notice that it's loading datePatternStrict instead of datePattern from
the oDate object. The validation function completely ignores the
datePattern var you defined in the xml.

You're getting the error because it's trying to load from the
datePatternStrict var which isn't defined, so the javascript datePattern
var isn't a valid object.

-Andy

-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 30, 2003 9:55 AM
To: Struts Users Mailing List
Subject: Date validation problem?


I'm testing the JavaScript validation for my form and noticed that the 
JavaScript generated to validate my date fields throws an error that I 
can see in Firebird's JavaScript console. Here's the error:

datePattern has no properties

and here's the line it occurs on:

for (x in oDate) { 

var value = form[oDate[x][0]].value;

var datePattern = oDate[x][2]("datePatternStrict");

>>  if ((form[oDate[x][0]].type == 'text' || form[oDate[x][0]].type
== 
>>'textarea') && value.length > 0 && datePattern.length > 0) {

var MONTH = "MM";

var DAY = "dd";

var YEAR = "";


I can see that my date fields appear correctly in DateValidations(),
here:

function DateValidations () { 

 this.aa = new Array("theStartDate", "Availability Start Date is not
a valid date.", new Function ("varName", "this.datePattern='MM/dd/yy';
return this[varName];"));

 this.ab = new Array("theEndDate", "Availability End Date is not a
valid date.", new Function ("varName", "this.datePattern='MM/dd/yy';
return this[varName];"));

} 


And in my validation.xml file, the following is defined:







datePattern

${defaultDate}











datePattern

${defaultDate}






Where ${defaultDate} is a global defined as:



defaultDate

MM/dd/yy




 From what I can see in DateValidations(), it looks like the var-value 
is being picked up correctly ... so, I'm at a bit of a loss on this. Is 
this a know bug in Struts 1.1?

Also, does using DynaValidatorForm with validation.xml and such *only* 
do JavaScript validation or is server-side validation performed as well?

It'd be a nice bonus to have server-side validation, to prevent corrupt 
or malicious submittals, but that may require a custom ActionForm?!
-- 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is there a way to prevent urls from being entered from the browser?

2003-12-29 Thread Andy Schmidgall
That would require a keyboard, would it not? :)

Could you not have a flag var in the session or something that is only
set by a certain piece of code? If the user typed in the URL directly,
the flag wouldn't be set, and you could filter requests based on that.

-Andy

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 29, 2003 1:41 PM
To: Struts Users Mailing List
Subject: Re: Is there a way to prevent urls from being entered from the
browser?


Is like the one in virgin stores where you can ctrl+esc and get the 
menu/desktop up?


On 29 Dec 2003, at 19:30, Chappell, Simon P wrote:

> Oh that's far too clever!
>
> We just used thin-client terminals locked in kiosk mode with I.E.
> running in full screen, using touch screens and taking away the 
> keyboard and mouse. Ha ha ... now try typing in a URL!!! :-)
>
> Simon
>
>> -Original Message-
>> From: Brice Ruth [mailto:[EMAIL PROTECTED]
>> Sent: Monday, December 29, 2003 1:09 PM
>> To: Struts Users Mailing List
>> Subject: Re: Is there a way to prevent urls from being entered from
>> the
>> browser?
>>
>>
>> In theory, you could write a filter for the forwards that would check

>> to see if a REFERER is set for the request. If not, the request
>> was likely
>> entered directly in a browser.
>>
>> Jim Anderson wrote:
>>
>>> To clarify: I would like to be able to define ActionForwards for use

>>> within the app but which cannot be entered directly into the browser

>>> by the user. Is this possible?
>>>
>>> Thanks.
>>>
>>> jim
>>>
>>>
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>> --
>> Brice D. Ruth
>> Sr. IT Analyst
>> Fiskars Brands, Inc.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Rollover image

2003-12-22 Thread Andy Schmidgall
Apparently ctrl-enter sends the email... :)

Here's the example:

    

-Andy

-Original Message-
From: Andy Schmidgall 
Sent: Monday, December 22, 2003 2:03 PM
To: Struts Users Mailing List
Subject: RE: Rollover image


You can do it much the same way as with regular html and javascript.
 
Here's an example...
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 22, 2003 3:57 AM
To: [EMAIL PROTECTED]
Subject: Rollover image


 
Hi all
 
I am relatively new to struts and I would like to know how I can
create a roll over image using the  tag. Would appreciate if
some sample piece of code is there..
 
Thanks in advance
 
Best regards,
S

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Rollover image

2003-12-22 Thread Andy Schmidgall
You can do it much the same way as with regular html and javascript.
 
Here's an example...
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 22, 2003 3:57 AM
To: [EMAIL PROTECTED]
Subject: Rollover image


 
Hi all
 
I am relatively new to struts and I would like to know how I can
create a roll over image using the  tag. Would appreciate if
some sample piece of code is there..
 
Thanks in advance
 
Best regards,
S


Accessing PlugIn config information

2003-12-19 Thread Andy Engle
Hi all,

I am wondering if there is a clean(er) way to get PlugIn configuration
information out of struts-config.xml.  I have written a PlugIn that
gets this information, but it seems somewhat convoluted.  First I get
all the PlugInConfigs, then I loop through that array of PlugInConfig
objects until I find the one that matches the current PlugIn I'm
working with.  Next, I set that value as my PlugIn index and get the
properties from there.  While this works, it seems like I am getting it
almost "by hook or by crook", and I'm wondering if there is a more
elegant way to do it.  I'm not sure I like the use of the "for" loop;
it seems there should be a way to just directly access the PlugIn's
config info right away.  The code snippet I'm using is below.

Thanks for any advice!


Andy

---

Here's that code snippet:

// Get all the PlugIn configs, for every plugin
PlugInConfig allPluginConfigs[] = config.findPlugInConfigs();

// This goes through all the Plugin configs and looks for the
// plugin config for this class.
for(int i = 0; i < allPluginConfigs.length; i++) {
 
if(allPluginConfigs[i].getClassName().equals("com.andyengle.struts.app.WhateverPlugin"))
{
pluginConfigIndex = i;
break;
  }
}

// Get the properties for this PlugIn and shlep them into a map.
thisConfigMap = allPluginConfigs[pluginConfigIndex].getProperties();

// Finally, access the config information that was set in struts-config
String value1 = (String) thisConfigMap.get("val1_str");
String value2 = (String) thisConfigMap.get("val2_str");


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Drop down value - First Row to be Blank

2003-12-19 Thread Andy Schmidgall
Shreekanth,

I am using  successfully to create a blank
option. Perhaps there is some kind of odd character encoding thing
happening?

-Andy

-Original Message-
From: Rama, Shreekanth (K.) [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 19, 2003 1:12 PM
To: [EMAIL PROTECTED]
Subject: Drop down value - First Row to be Blank


Hi, 
>   I am getting  ???en_US.null???  in the drop down for blank
option as 
> mentioned below.
> 
>   My html select has this 
>   
> 
>   How do I set this, to a blank row within the drop down ?
>   
> Regards
> Shreekanth
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: URGENT - Help defending Struts

2003-12-18 Thread Andy Engle
[EMAIL PROTECTED] wrote:

> Our CIO is currently fighting the use of Struts by saying that it is
> not widely used in B2C sites.  Does anyone know of any sites,
> preferably commerce sites that are using Struts?  This would be
> extremely helpful.

It looks like www.verizonwireless.com has their entire user account
setup done with Struts.  I love it -- has a great look, lots of
information, charts, past billing info, the works.  On top of that,
it's all pretty quick and easy to use.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tags between custom tags not evaluating (FIXED)

2003-12-15 Thread Andy Engle
Martin Cooper <[EMAIL PROTECTED]> wrote:

> What value are you using in the  element for your
> 'checkLogon' tag (in the TLD)? It should be 'JSP' to have the content
> evaluated as JSP.

That's what it was.  Thanks for your help!


Andy


> --
> Martin Cooper
> 
> 
> "Andy Engle" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > "Hookom, Jacob" <[EMAIL PROTECTED]> wrote:
> >
> > > I don't see the:
> > >
> > > <%@ taglib uri="/tags/struts-html" prefix="html" %>
> >
> > Below is the entire JSP file.
> >
> >
> > Andy
> >
> > ---
> >
> > <%@ page contentType="text/html" %>
> > <%@ taglib uri="/WEB-INF/app.tld"   prefix="app"   %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld"   prefix="html"  %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld"   prefix="bean"  %>
> > <%@ taglib uri="/WEB-INF/struts-tiles.tld"  prefix="tiles" %>
> > <%@ taglib uri="/WEB-INF/struts-logic.tld"  prefix="logic" %>
> >
> >
> > 
> >   
> >   
> >   
> >
> >   
> >
> > 
> >
> > 
> >
> >
> > 
> >
> >   
> > Username:  maxlength="10"/>
> > 
> > Password:  > maxlength="10" redisplay="false"/>
> > 
> >
> > 
> > 
> >   
> >
> > 
> >
> >
> >
> > 
> > How about looking at our list of /userList.do">users?
> >
> > 
> >
> > 
> >   It appears that you are logged in already.
> > 
> >
> > 
> >
> > 
> > 
> >   
> > Username:
> > 
> >   
> >   
> > 
> >   
> >
> >   
> > Password:
> > 
> >maxlength="10"
> >   redisplay="false"/>
> > 
> >   
> >
> >   
> > 
> >   
> >
> >   
> > 
> >   
> > 
> > 
> >   
> > 
> >   
> > 
> > 
> > 
> >
> > 
> >
> >   
> >   
> >
> > 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tags between custom tags not evaluating

2003-12-15 Thread Andy Engle
Martin Cooper <[EMAIL PROTECTED]> wrote:

> What value are you using in the  element for your
> 'checkLogon' tag (in the TLD)? It should be 'JSP' to have the content
> evaluated as JSP.

I have "tagdependent".  I'll try "JSP" and see what happens.  Also,
I've placed the  entry below so you can check out the whole thing.

Thanks very much.


Andy

---

  
checkLogon
com.andyengle.struts.proj.CheckLogonTag
tagdependent

  Validate that there is a currently logged on user, by checking
for
  the existence of a session-scope bean under the specified name.
  If there is no such bean, forward control to the specified page,
  which will typically be a logon form.

  name - Name of the session-scope bean to check for [user]
  page - Context-relative path to the logon page [/logon.jsp]



  name
  false
  true



  page
  false
  true



  showIf
  true
  true


  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tags between custom tags not evaluating

2003-12-15 Thread Andy Engle
"Hookom, Jacob" <[EMAIL PROTECTED]> wrote:

> I don't see the:
> 
> <%@ taglib uri="/tags/struts-html" prefix="html" %>

Below is the entire JSP file.


Andy

---

<%@ page contentType="text/html" %>
<%@ taglib uri="/WEB-INF/app.tld"   prefix="app"   %>
<%@ taglib uri="/WEB-INF/struts-html.tld"   prefix="html"  %>
<%@ taglib uri="/WEB-INF/struts-bean.tld"   prefix="bean"  %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld"  prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"  prefix="logic" %>



  
  
  

  








  
Username: 

Password: 




  






How about looking at our list of /userList.do">users?




  It appears that you are logged in already.






  
Username:

  
  

  

  
Password:

  

  

  

  

  

  


  

  






  
  





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tags between custom tags not evaluating

2003-12-15 Thread Andy Engle
"Hookom, Jacob" <[EMAIL PROTECTED]> wrote:

> Include the html taglib in your jsp

Actually, I have that in there already, I just didn't show it in my
original message.  The JSP looks something like this:





  
Username: 
Password: 
    



  






Andy



> -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
> tag that shows some HTML (using some Struts-Form tags) if the tag
> evaluates to true.  But the problem is that my tag isn't interpreting
> the tags between my custom tags, so my form never shows up.  Here is
> what a portion of the source code looks like:
> 
> 
> 
> 
>   
> Username:  maxlength="10"/>
> Password:  maxlength="10" redisplay="false"/>
> 
> 
> 
> 
>   
> 
> 
> 
> 
> ...but when my page is rendered, the  tags aren't being
> evaluated, so they are present in my HTML code:
> 
> 
>   
> Username:  maxlength="10"/>
> 
> Password:  maxlength="10" redisplay="false"/>
> 
> 
> 
> 
>   
> 
> 
> Which means my form never shows up on the page.  If I take out my
>  tags, then all is well.  Otherwise, all is not well.
> 
> If someone could point out to me what the problem is I'd really
> appreciate it.  If you need my source code for the tag handler I'd be
> glad to send that along as well.  Thanks very much!
> 
> 
> Andy
> 
>  
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tags between custom tags not evaluating

2003-12-15 Thread Andy Engle
Hi all,

I am writing a web application in which I would like to have a custom
tag that shows some HTML (using some Struts-Form tags) if the tag
evaluates to true.  But the problem is that my tag isn't interpreting
the tags between my custom tags, so my form never shows up.  Here is
what a portion of the source code looks like:




  
Username: 
Password: 




  




...but when my page is rendered, the  tags aren't being
evaluated, so they are present in my HTML code:


  
Username: 

Password: 




  


Which means my form never shows up on the page.  If I take out my
 tags, then all is well.  Otherwise, all is not well.

If someone could point out to me what the problem is I'd really
appreciate it.  If you need my source code for the tag handler I'd be
glad to send that along as well.  Thanks very much!


Andy

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: just learning it

2003-12-15 Thread Andy Engle
"Travis D. Falls" <[EMAIL PROTECTED]> wrote:

> I have very little knowledge of struts.  I want to learn it.  I have
> got the book by o'reilly programming Jakarta struts.  I don't really
> like it.  Does anyone know of a good tutorial that will go over an
> application.  Start with nothing end up with a pretty good sample?

I like the "Professional Struts" book from Wrox.  It seems like it has
some pretty clear examples in there about how to get started with
Struts.  And on top of that, you can download the example source code
for the book from their web site, which is also helpful.

I also have the Struts book, but it does seem pretty difficult to learn
from the first time through.  Now that I know a little more about
Struts, I am able to decipher some of the stuff in there, but there is
still a lot more to learn.

I also found it useful to experiment with Struts in the Eclipse IDE
(which is superior to Netbeans, IMHO), and also refer to this page to
get started with Eclipse:

http://jakarta.apache.org/struts/faqs/eclipse.html

It seems that Eclipse points out problem areas to you before you even
compile, which is pretty useful.

Finally, working with the Struts example application is helpful, and
also referring to the other example applications that are on the Struts
web site.

Those things have been most helpful to me most recently in my learning
of Struts.  Hope this helps!


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: dynamically sized form (mostly solved)

2003-12-15 Thread Andy Schmidgall
Robert,

I also could not get LazyList to work with our DynaForms.

-Andy

-Original Message-
From: Marcus Peixoto [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 1:42 PM
To: Struts Users Mailing List
Subject: RE: dynamically sized form (mostly solved)


Robert, 

I tried to use LazyList but I couldn't just put the class in the form definitions (I'm 
using dynavalidatoractionform). Besides, I also have to create a Form class and 
overide reset method. It seems that the code below is more easy to implement, since 
you just have to extend arraylist and place the new class directly in Form definition. 

Marcus

Em Sex, 2003-12-12 às 15:58, Robert Taylor escreveu:
> org.apache.commons.collections.ListUtils.lazyList() does this as well 
> without having to extend anything.
> 
> http://jakarta.apache.org/commons/collections/api/org/apache/commons/c
> ollect
> ions/ListUtils.html#lazyList
> 
> robert
> 
> > -Original Message-
> > From: Nifty Music [mailto:[EMAIL PROTECTED]
> > Sent: Friday, December 12, 2003 11:59 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: dynamically sized form (mostly solved)
> >
> >
> > Andy & others
> >
> > Thanks to the help of all of you on the list, I've been able to 
> > fully implement using an ArrayList with a DynaValidatorForm in 
> > request scope.  Special thanks to John Steele for finding the key 
> > for doing this.  Using his idea, I implemented a special class which 
> > extends ArrayList, providing an overridden get() method which adds a 
> > new instance of a specified class whenever the requested position is 
> > greater than the current size of the list. I haven't looked into the 
> > LazyList stuff too much, but it sounds like that would probably 
> > accomplish the same sort of thing.  The code is as follows:
> >
> > public class DynamicItemRangesList extends ArrayList {
> > private Logger log = 
> > Logger.getLogger(DynamicList.class);
> >
> > /**
> >  * This version of get will expand the list as needed to always 
> > return
> >  * an ItemRangesCDTO. Blank objects will be added to the list.
> >  */
> > public Object get(int pos) {
> > while ( this.size() <= pos ) {
> > try {
> >
> > this.add(ItemRangesCDTO.class.newInstance());
> > } catch ( Exception e  ) {
> > logger.error(e);
> > }
> > }
> > return super.get(pos);
> > }
> > }
> >
> > Then, in my struts-config.xml file, I declared the following 
> > form-bean:
> >
> >  > type="org.apache.struts.validator.DynaValidatorForm">
> > 
> >  > type="java.lang.String" />   > name="rangeStart" type="java.lang.String" />
> > 
> >  > type="gov.dor.fastr.util.DynamicItemRangesList" />
> >  > />  
> >
> > ..and the following action-mapping:
> >
> >  > type="gov.dor.fastr.action.inventory.InventoryModifyPopulateAction"
> > name="inventoryModifyForm"
> > scope="request"
> > validate="false">
> > 
> > 
> > 
> >
> > This solution works like a charm.  Thanks again to everyone for 
> > helping me!  I greatly appreciate it!
> >
> > Thanks,
> >
> > Brent
> >
> >
> > >Thanks, I figured it out, but it still didn't work. I talked with 
> > >the lead developer, and we decided to just use session scope for 
> > >this, and now it works.
> > >
> > >-Andy
> > 
> > This message sent using iMail from I-Land Internet Services. 
> > http://www.iland.net
> >
> >
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Conditional check for depends clause in Validation.xml

2003-12-11 Thread Andy Schmidgall
http://jakarta.apache.org/struts/userGuide/dev_validator.html

:)

-Andy

-Original Message-
From: Clark Kent [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 11, 2003 3:02 PM
To: Struts Users Mailing List
Subject: RE: Conditional check for depends clause in Validation.xml


How do I use requiredif or validatewhen?  Do you have any examples that
I can use Udaya. Thanks, CK

Udaya Allu <[EMAIL PROTECTED]> wrote:
use requiredif or validatewhen in the place of required

-Original Message-
From: Clark Kent [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 3:59 PM
To: usergroup
Subject: Conditional check for depends clause in Validation.xml



I have a scenario where I have 2 textboxes in a form and I need to have
the user enter either one of the fields but not both. 







Is there a way that we can provide conditional checks within the depends
clause?

Thanks,

CK.







-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts-user@jakarta.apache.org

2003-12-11 Thread Andy Schmidgall
Well, I know & is the character entity for &, but I'm just not clear
on why & works in this case... Is it simply because '&' is flagged
in the parser as reserved for entities of the form "&xxx;", or is there
another reason? That's all I was asking. Sorry if I wasn't clear :)

-Andy

-Original Message-
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 11, 2002 11:35 AM
To: Struts Users Mailing List
Subject: Re: Digester does not like '&'


& is the character entity for the ampersand sign '&'.

-- Chris

NB. This is so basic that you absolutely should look this
up when seriously doing web development.

- Original Message - 
From: "Andy Schmidgall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 11, 2003 6:23 PM
Subject: OT: Digester does not like '&'


I'm sure I'm demonstrating a lack of basic knowledge about character
encoding here, but why does "&" work when '&' doesn't? The thing
that gets me is that they both have '&' in them :)

-Andy

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 11, 2003 10:54 AM
To: Struts Users Mailing List
Subject: RE: Digester does not like '&'


Try &

> -Original Message-
> From: Chiming Huang [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 11, 2003 11:51 AM
> To: Struts Users Mailing List
> Subject: Digester does not like '&'
> 
> 
> Hi,
>  
> We are using the Digester which comes with the Struts 1.1 for reading 
> xml files.  The Digester will throw exception if the data contains an 
> '&' character.  Is there a way to work around this?
>  
> Thanks,
> Chiming
> 
> 
> -
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts-user@jakarta.apache.org

2003-12-11 Thread Andy Schmidgall
I'm sure I'm demonstrating a lack of basic knowledge about character
encoding here, but why does "&" work when '&' doesn't? The thing
that gets me is that they both have '&' in them :)

-Andy

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 11, 2003 10:54 AM
To: Struts Users Mailing List
Subject: RE: Digester does not like '&'


Try &

> -Original Message-
> From: Chiming Huang [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 11, 2003 11:51 AM
> To: Struts Users Mailing List
> Subject: Digester does not like '&'
> 
> 
> Hi,
>  
> We are using the Digester which comes with the Struts 1.1 for
> reading xml files.  The Digester will throw exception if the data 
> contains an '&' character.  Is there a way to work around this?
>  
> Thanks,
> Chiming
> 
> 
> -
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
Thanks, I figured it out, but it still didn't work. I talked with the
lead developer, and we decided to just use session scope for this, and
now it works.

-Andy

-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 4:36 PM
To: 'Struts Users Mailing List'
Subject: RE: dynamically sized form (mostly solved)


Andy,
Check out
http://jakarta.apache.org/commons/collections/apidocs/org/apache/commons
/col
lections/decorators/LazyList.html

With a lazy list, if you try and get using an index that is greater than
the size of the list, then it will return an empty object instead of
resulting in an ArrayIndexOutOfBounds exception. 

-Richard

-Original Message-
From: Andy Schmidgall [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 1:27 PM
To: Struts Users Mailing List
Subject: RE: dynamically sized form (mostly solved)


Would someone be able to point me somewhere that could explain the
LazyList? I'm having a very similar problem with my jsp, and I found the
javadoc, but I don't understand how to actually instantiate the
LazyList...

Thanks,
Andy

-Original Message-
From: Nicholas L Mohler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 2:11 PM
To: Struts Users Mailing List
Subject: RE: dynamically sized form (mostly solved)







The reason you get the null pointer exception is that the
"inventoryList" property in your DynaActionForm is created empty.  The
exception occurs when Struts tries to populate
inventoryList[0].startNumber or inventoryList[0].endNumber.

Even though I haven't used the DynaActionForm, I know that it will have
the same limitations/requirements for populating indexed properties as
an ActionForm.  I know that some folks use a LazyList for processing
their indexed properties.  Perhaps that will help you.

The reason you don't get the exception with the name iList is that
struts makes no attempt to populate the ArrayList in your
DynaActionForm.

Can't provide an answer...but I can see the why to your problem Nick




 

  "Nifty Music"

  <[EMAIL PROTECTED]> To:
[EMAIL PROTECTED]

   cc:

  12/10/2003 01:33 Subject:  RE: dynamically
sized form (mostly solved)
  PM

  Please respond to

  "Struts Users

  Mailing List"

 

 





I apologize in advance if this comes through twice.  Our email server
was having issues this morning, so I'm resending it in case it didn't
make it out the first time.  Thanks! I am attempting to do something
similar to what has been posted here in the current Struts application
that I'm working on. I'm using a DynaValidatorForm in request scope,
iterating through a dynamically generated ArrayList that I've put into
the DynaValidatorForm, and then attempting to pass it through request
scope using indexed properties. The page displays perfectly, but when I
try to submit it, I get the following
error:
[Servlet Error]-[BeanUtils.populate]: java.lang.NullPointerException: No
indexed value for 'inventoryList[0]' at
org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:293)
at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUt
ils.java:474)

Here are some snippets of code:
>From the ActionClass that populates the .JSP:
ArrayList itemRanges = itemCDTO.getItemRanges(); //returns an ArrayList
of ItemRange beans form.set("inventoryList", itemRanges); From
struts-config.xml: 
   
   From the JSP:
  
 An interesting thing I noticed when I change the code
in the JSP like this:

then I don't
get the error. But of course, when I do an (ArrayList)
form.get("inventoryList"), it returns an empty List to the Action class.
I can, however, bypass the DynaValidatorForm and directly query the
HttpServletRequest object and pull the individual components by doing a
request.getParameter("iList[0].startNumber"), which is extremely clunky.
I'm sure I must be missing something stupid. If anyone can shed some
light, it would be greatly appreciated. Thanks so much! Brent
-Original
Message-
From: Yee, Richard K,,DMDCWEST [<mailto:[EMAIL PROTECTED]>]
Sent: Friday, November 21, 2003 4:23 PM
To: 'Struts Users Mailing List'
Subject: RE: dynamically sized form (mostly solved)


Matt,
You actually only need the form in the request. You don't need the
property of the form at all in your JSP.

In my JSP I use


 


In struts-config.xml I have this











 


-Richard

-Original Message-
From: Matt Bathje [<mailto:[EMAIL PROTECTED]>]
Sent: Friday, November 21, 2003 2:17 PM
To: Struts Users Mailing List
Subject: R

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
Does this mean it's impossible to do through request scope? I am
attempting to do this, and it would be nice to know if my work is in
vain :)

-Andy

-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 3:20 PM
To: 'Struts Users Mailing List'
Subject: RE: dynamically sized form (mostly solved)


I thought it worked, but it didn't.

-Richard

-Original Message-
From: Nifty Music [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 1:02 PM
To: [EMAIL PROTECTED]
Subject: RE: dynamically sized form (mostly solved)


Nicholas, 

What you said definitely makes sense to me.  Richard graciously replied
off-list with a similar response.  I remember reading documentation
which stated that when using dynamic arrays with DynaForms, it is
necessary to place the DynaForm in session scope.  However, I 'm almost
positive that someone (Matt? Mark?) mentioned on this list that they
were able to pass an ArrayList through a DynaForm in request scope.  For
a variety of reasons, I'm not too eager to put the entire formbean in
the session for the sake of propogating one ArrayList attribute.  If
Matt or Mark or anyone else has some insights to share regarding how
they were able to get this to work in request scope, I'd be very
grateful to hear.  

Thanks again,

Brent


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
Would someone be able to point me somewhere that could explain the
LazyList? I'm having a very similar problem with my jsp, and I found the
javadoc, but I don't understand how to actually instantiate the
LazyList...

Thanks,
Andy

-Original Message-
From: Nicholas L Mohler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 2:11 PM
To: Struts Users Mailing List
Subject: RE: dynamically sized form (mostly solved)







The reason you get the null pointer exception is that the
"inventoryList" property in your DynaActionForm is created empty.  The
exception occurs when Struts tries to populate
inventoryList[0].startNumber or inventoryList[0].endNumber.

Even though I haven't used the DynaActionForm, I know that it will have
the same limitations/requirements for populating indexed properties as
an ActionForm.  I know that some folks use a LazyList for processing
their indexed properties.  Perhaps that will help you.

The reason you don't get the exception with the name iList is that
struts makes no attempt to populate the ArrayList in your
DynaActionForm.

Can't provide an answer...but I can see the why to your problem Nick




 

  "Nifty Music"

  <[EMAIL PROTECTED]> To:
[EMAIL PROTECTED]

   cc:

  12/10/2003 01:33 Subject:  RE: dynamically
sized form (mostly solved)
  PM

  Please respond to

  "Struts Users

  Mailing List"

 

 





I apologize in advance if this comes through twice.  Our email server
was having issues this morning, so I'm resending it in case it didn't
make it out the first time.  Thanks! I am attempting to do something
similar to what has been posted here in the current Struts application
that I'm working on. I'm using a DynaValidatorForm in request scope,
iterating through a dynamically generated ArrayList that I've put into
the DynaValidatorForm, and then attempting to pass it through request
scope using indexed properties. The page displays perfectly, but when I
try to submit it, I get the following
error:
[Servlet Error]-[BeanUtils.populate]: java.lang.NullPointerException: No
indexed value for 'inventoryList[0]' at
org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:293)
at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUt
ils.java:474)

Here are some snippets of code:
>From the ActionClass that populates the .JSP:
ArrayList itemRanges = itemCDTO.getItemRanges(); //returns an ArrayList
of ItemRange beans form.set("inventoryList", itemRanges); From
struts-config.xml: 
   
   From the JSP:
  
 An interesting thing I noticed when I change the code
in the JSP like this:

then I don't
get the error. But of course, when I do an (ArrayList)
form.get("inventoryList"), it returns an empty List to the Action class.
I can, however, bypass the DynaValidatorForm and directly query the
HttpServletRequest object and pull the individual components by doing a
request.getParameter("iList[0].startNumber"), which is extremely clunky.
I'm sure I must be missing something stupid. If anyone can shed some
light, it would be greatly appreciated. Thanks so much! Brent
-Original Message-
From: Yee, Richard K,,DMDCWEST [<mailto:[EMAIL PROTECTED]>]
Sent: Friday, November 21, 2003 4:23 PM
To: 'Struts Users Mailing List'
Subject: RE: dynamically sized form (mostly solved)


Matt,
You actually only need the form in the request. You don't need the
property of the form at all in your JSP.

In my JSP I use


 


In struts-config.xml I have this











 


-Richard

-Original Message-
From: Matt Bathje [<mailto:[EMAIL PROTECTED]>]
Sent: Friday, November 21, 2003 2:17 PM
To: Struts Users Mailing List
Subject: Re: dynamically sized form (mostly solved)


> I found out that using new DynaActionForm()inside of the
> PreLoaderAction.execute() doesn't work. It gives a null pointer 
> exception when you try and call the set() method.
>
> You need to do this instead:
>
> FormBeanConfig cfg = mapping.getModuleConfig() 
> .findFormBeanConfig("dynaIndexTestForm");
> DynaActionForm myForm;
>

Richard - this was the last piece of the puzzle for me, now it works
without having to supply the name="form" on the preloader
action...sweet.

Mark - I have had it working both ways now, in session and request. If
you want to do it in request you have to have 2 request objects in your
preload. The first is the form itself, and the second is the property
for the form (which is what you actually loop through in your jsp)

I will probably use the request scope myself just because I tr

RE: Validation: Problem with datePattern and JavaScript

2003-12-10 Thread Andy Schmidgall
It looks like the following line of code (in the date validator rule in
validator-rules.xml) loads the pattern:

var datePattern = oDate[x][2]("datePatternStrict");

As far as I can tell, nothing is ever loaded for plain "datePattern",
and this matches up with my experiences of using datePattern (i.e.
"datePattern" doesn't do any validation at all)

I haven't tried this, but it should probably be an easy fix to check if
oDate[x][2]("datePattern") has a value and load that into datePattern.

-Andy


-Original Message-
From: Zakaria khabot [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 10, 2002 12:00 PM
To: Struts Users Mailing List
Subject: Re: Validation: Problem with datePattern and JavaScript


Hi,
Do u have an example of using validate-rules.xml in a JSP file.
Thanks

- Original Message - 
From: "Rouven Gehm" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 04, 2003 1:53 PM
Subject: Validation: Problem with datePattern and JavaScript


> I want to know if someone has updated the javascript code
> in the validate-rules.xml, for the datePattern option ? Because the 
> code i have from the Struts 1.1 zip only work with datePatternStrict 
> !!!
> 
> I have searched the user mailing list, for this problem, but not found

> any solution.
> 
> Thanx
> 
> Rouven
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JavaScript validation of indexed properties

2003-12-10 Thread Andy Schmidgall
Hello,

I'm using Struts 1.1, and I have a jsp that is using indexed fields that
I need to validate using javascript. It seems as though the struts
validator just ignores javascript validations on my fields completely!
For example, if it is the only field that uses a particular validator,
say integer, an "IntegerValidations()" javascript initializer function
is generated, but it has no content. Is there anyway to do javascript
validation with the struts validator? Other javascript validations work
properly. I can write a custom validator if that would work, but I'd
rather not if I don't have to.

Thanks,
Andy



Here's the relevant form definition from struts-config:

...

...


And the jsp section:
  

  
  
  
  
  
  
  
  
  
  

  

And the validation rules:

...





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Server and Client side Validation at only once

2003-12-05 Thread Andy Schmidgall
You would have to submit the form when you change tabs. You can do this
with the form.submit() method. You might need to set a field in the form
to tell the submission result page where to redirect the user once the
submission is finished (i.e. send them to B.jsp if everything is ok)

-Andy

-Original Message-
From: VENKATESH GANGAL [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 05, 2003 3:02 AM
To: Struts Users Mailing List
Subject: Server and Client side Validation at only once


Hi ,

I have requirement where I want to validate the form using javascript (
using Struts Validator Framework) . The form is like this.

Basically the view has two panes, left hand side a tabs A,B,C,D,E and
right hand side will display the current page.say if you click tab A,
you will see A.jsp.When I try to shift tab A to tab B , it has to
validate both on the server side and client side befor going to tab B. 


Can anyone know how to about this ??

Thanks in advance...

Cheers...
Venkatesh Gangal

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validator: Unwanted Client side AND Server side validation

2003-12-03 Thread Andy Schmidgall
Make sure you you have the return statement in the onsubmit handler.
Otherwise it will always submit the form.

It needs to look like this: onsubmit="return validateFooForm(this)"

If that's not the problem, you may be trying to validate using an
incorrect field name. That's happened to me a few times.

-Andy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 03, 2003 5:50 AM
To: [EMAIL PROTECTED]
Subject: Validator: Unwanted Client side AND Server side validation


Hi,

When using client side validation the form is submitted regardless of
Javascript validation check occuring (After clicking OK on the
Javascript popup warning following an error the form get submitted
anyway). 

I used validation already without this behaviour to occur ... I must be
misconfiguring something but cannot find out what it is. Validation
works as expected Server side.

I am using Struts 1.1 with the bundled Validator together with Scaffold
1_0.

Any idea welcome, Patrick


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validator datePattern difficulties

2003-12-01 Thread Andy Schmidgall
Hello,

For my webapp I need to make sure a date is in the form 'mm/dd/yy', but
I haven't been able to achieve this with the struts validator (I only
need the javascript to work for now). All the examples I can find use
'MM/dd/' or 'MM-dd-'. If I switch to one of these and put in a 4
char date, then it validates ok, but I need to validate on the 2 char
date, not 4. Is this doable with the struts validator?

This is my validation definition:





datePatternStrict
MM/dd/yy



If I switch to datePattern (rather than datePatternStrict) it lets
anything at all through! That's definitely not what I want either.

Thanks,
Andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems with Modules stored under WEB-INF - H E L P !

2003-11-18 Thread Brook, Andy
Hi all,

I have a problem accessing modules when stored under WEB-INF, accessing
modules stored under / seems OK, but modules stored under /WEB-INF seem
to be unable to link correctly to actions that ought to be available
within that modules context.

I've got 'modules' running when stored under the root of the app, e.g.
/module1, with necessary configuration in web.xml:
{web.xml ...}

config/module1

WEB-INF/module1-struts-config.xml


I believe action mappings would require a prefix, such as:

{struts-config ...}


   



This appears to be all hunky-dory, I can switch into 'module1' perform
actions and switch back to the root application.

Moving on to storing the pages under the WEB-INF folder, I believe I'll
have:

{web.xml ...}


config/WEB-INF/modules/module2

WEB-INF/module2-struts-config.xml


{struts-config ...}



   



I'm using WSAD 5.0, which seems to imply that the  in the
web.xml file must point to where the actual jsp files are.  This results
in  tag output that includes the '/WEB-INF/modules/module2'
prefix, which naturally breaks.  I've tried making the  tag
'module2' rather than 'WEB-INF/modules/module2', but this seems to make
WSAD think that the actions are not present in the module.

Securing the /module2 folder structure? It's a possibility but I haven't
been able to block access to that either...

Does anyone have modules running, with JSP stored under /WEB-INF !!


Thanks for feedback!

Andy Brook
Application Development Manager (UK)
Dolby Laboratories Inc.

Email: [EMAIL PROTECTED]


-
This message (including any attachments) may contain confidential information intended 
for a specific individual and purpose. If you are not the intended recipient, delete 
this message. If you are not the intended recipient, disclosing, copying, 
distributing, or taking any action based on this message is strictly prohibited.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tiles resourceBundle

2003-10-30 Thread Andy Richards
apologise.

I had added the following from the struts-tiles war example to my web.xml, 
obviously it needs to point to my resource file.doh!



application
org.apache.struts.webapp.tiles.dev1-1.ApplicationResources


Andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tiles resourceBundle

2003-10-30 Thread Andy Richards
Hi,

I implemented tiles into my struts application. Previously struts found my 
application resolurce bundle fine, however after using implementing tile 
definitions my resource bundle can not be found. How do i tell the tiles 
framework to use my resolurce bundle?

my struts-config contains a  attribute.

Does anyone know of how to do this or a tutorial which shows you how?
I am trying to see how the struts-tiles example war does this?

thanks

Andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Learning Struts

2003-10-21 Thread Andy Engle
On Tuesday, October 21, 2003, at 07:36  PM, Velazquez Salvador wrote:

Yea...I just started about a week ago and so far the Jakarta Struts 
book from O'reilly is pretty good.  Also heard that the "Jakarta 
Struts in Action" book is good as well.
I have been going through that book too, but I think sometimes it 
doesn't explain everything as clearly as I'd like.  For example, it 
discusses DAO, but I'm not sure there is really too much accompanying 
code that outlines the concept in clear language. I've learned a pretty 
good deal going through the example projects that I think I picked up 
from the Struts web site, and then comparing some concepts with what 
the book says and trying different things out that way.

Andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Help with form bean [urgent]

2003-10-20 Thread Andy Engle
Oops!  Message intended only for Rajat!  Oh well -- hopefully one of us
will be able to help him with the problem he's having.

Have a great day.


Andy

--- Andy Engle <[EMAIL PROTECTED]> wrote:
> You wrote:
> 
> > My project deadline is coming close and I am stuck with conceptual
> > problems. Please consider this as urgent call for help.
> > 
> > Thanks in advance.
> 
> Rajat,
> 
> Greetings.  Just curious, what is your project for?  Are you doing
> work
> for Motorola?
> 
> Take it easy!
> 
> 
> Andy
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with form bean [urgent]

2003-10-20 Thread Andy Engle
You wrote:

> My project deadline is coming close and I am stuck with conceptual
> problems. Please consider this as urgent call for help.
> 
> Thanks in advance.

Rajat,

Greetings.  Just curious, what is your project for?  Are you doing work
for Motorola?

Take it easy!


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [FRIDAY] Free Dog..... (going further OT!)

2003-10-18 Thread Andy Engle
Perhaps more like global stupidity.

On Saturday, October 18, 2003, at 04:45  AM, Adam Hardy wrote:

On 10/17/2003 10:10 PM Andy Engle wrote:
Sorry to diverge from the already off-topic topic, but this one
couldn't go without being shared: It's really hot in the room we work
in today.  We've been trying to cool it down in here, but I just heard
from a co-worker of mine (who heard it from our boss) that the heating
and air conditioning in our room (which is in a much larger building
here in northern IL) is actually managed/monitored by a group in 
India,
where supposedly there is a call center that handles such matters. 
It's hot and stuffy in the cave right now (we refer to the room we 
work
in as the cave, since there are no windows or signs of the great
outdoors) -- everyone is hot and complaining about it.  Anyway, this
co-worker just told me that our boss apparently called the maintenance
people to compliain about the excessive heat problem this morning, but
his call was routed to a call center in *India*, where the person 
there
logged a ticket for the heat to be turned down.  That ticket was
logged, but in the end the problem is due to the fact that the heat 
was
left on, and the person who can turn it down is out today.  So, in
spite of our *international* effort to make sure we're all comfortable
in our office buildings, the ticket logged in India is being 
unanswered
by a vacationing maintenance worker who is simply not around to cut 
the
heat back a little.
Global warming?

Adam

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [FRIDAY] Free Dog..... (going further OT!)

2003-10-18 Thread Andy Engle
I hate to say it (well, I don't really), but the whole thing is 
ridiculous.  What's the matter with keeping our call centers in the 
United States?  And do we *really* need a call center to maintain the 
stinkin' temperature?!  I don't think so.  It just goes to show the 
stupidity of some of the things my employer does.

On Saturday, October 18, 2003, at 09:21  AM, Martin Gainty wrote:

Worse..the People maintaining the Call Center system are permanently 
out to
lunch
They make US government workers look industrious!
-M
- Original Message -
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, October 18, 2003 5:45 AM
Subject: Re: [FRIDAY] Free Dog..... (going further OT!)


On 10/17/2003 10:10 PM Andy Engle wrote:
Sorry to diverge from the already off-topic topic, but this one
couldn't go without being shared: It's really hot in the room we work
in today.  We've been trying to cool it down in here, but I just 
heard
from a co-worker of mine (who heard it from our boss) that the 
heating
and air conditioning in our room (which is in a much larger building
here in northern IL) is actually managed/monitored by a group in 
India,
where supposedly there is a call center that handles such matters.
It's hot and stuffy in the cave right now (we refer to the room we 
work
in as the cave, since there are no windows or signs of the great
outdoors) -- everyone is hot and complaining about it.  Anyway, this
co-worker just told me that our boss apparently called the 
maintenance
people to compliain about the excessive heat problem this morning, 
but
his call was routed to a call center in *India*, where the person 
there
logged a ticket for the heat to be turned down.  That ticket was
logged, but in the end the problem is due to the fact that the heat 
was
left on, and the person who can turn it down is out today.  So, in
spite of our *international* effort to make sure we're all 
comfortable
in our office buildings, the ticket logged in India is being 
unanswered
by a vacationing maintenance worker who is simply not around to cut 
the
heat back a little.
Global warming?

Adam

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [FRIDAY] Free Dog..... (going further OT!)

2003-10-17 Thread Andy Engle
You wrote:

> Have to do what all people in Southern Climates do when it gets hot
> ..Take off ! (You are really going to have to so something about that
> Northern work ethic)

Yeah... I need to get out of here.  Enough for one day.


> Cub Fans arent the only people that are disappointed the Sox got
> hammered last nite..

Seriously.  I thought they had that thing in the bag, much like I
thought about Game 6 of the Cubs/Marlins series.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: org.apache.action.struts.*

2003-10-17 Thread Andy Engle
"Ruth, Brice" <[EMAIL PROTECTED]> wrote:

> struts.jar
> 
> Martin Gainty wrote:
> 
> >Which jar contains org.apache.struts.action.*

Another tip: Sometimes I use WinZip to look at jar files, which will
show you all the classes and paths of those classes that are wrapped up
in a jar file.  Also, you can do the Windoze "search for files
containing text..." in a specific directory, which will also point out
which jar file may be containing a specific package or class name.


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [FRIDAY] Free Dog..... (going further OT!)

2003-10-17 Thread Andy Engle

Sorry to diverge from the already off-topic topic, but this one
couldn't go without being shared: It's really hot in the room we work
in today.  We've been trying to cool it down in here, but I just heard
from a co-worker of mine (who heard it from our boss) that the heating
and air conditioning in our room (which is in a much larger building
here in northern IL) is actually managed/monitored by a group in India,
where supposedly there is a call center that handles such matters. 
It's hot and stuffy in the cave right now (we refer to the room we work
in as the cave, since there are no windows or signs of the great
outdoors) -- everyone is hot and complaining about it.  Anyway, this
co-worker just told me that our boss apparently called the maintenance
people to compliain about the excessive heat problem this morning, but
his call was routed to a call center in *India*, where the person there
logged a ticket for the heat to be turned down.  That ticket was
logged, but in the end the problem is due to the fact that the heat was
left on, and the person who can turn it down is out today.  So, in
spite of our *international* effort to make sure we're all comfortable
in our office buildings, the ticket logged in India is being unanswered
by a vacationing maintenance worker who is simply not around to cut the
heat back a little.

It's already bad enough that the Cubs lost.  And now we have to deal
with calling people in India to make it cooler in here!?!  This is
absolute foolishness!  I've had enough of this place!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: for the Apple-biters

2003-10-17 Thread Andy Engle
Mark Galbreath <[EMAIL PROTECTED]> wrote:

> Sure wish I could afford a G5 PowerBook!!

Me too.  Hopefully my side work will pick up and I could pick one up. 
You have to have the right tool for the job!


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Slightly OT] Where/how to start?

2003-10-13 Thread Andy Engle
Hi all,

I have a strong Perl/CGI background, but my JSP/Servlet/J2EE experience
is related only to what I did in college. My job entails C development,
but I really want to get more into this J2EE stuff.  It's so much more
enjoyable than this C work I am doing, but I can't seem to get my foot
in the door.  In looking for a J2EE development job, I keep hearing
that I need more experience, which is perfectly understandable.   But,
I can't get experience without getting a job doing it first.  My
question is, how do I get my foot in the door so I can split my boring
job and do what I really want to do?  Do I need to go full tilt and get
a certification or something like that?  Any ideas would be most
helpful.  Even more helpful would be a J2EE job in the Chicago area
where I could develop my professional career in this area.

Thanks very much!


Best Regards,
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: force download on excel file when clicked on

2003-10-10 Thread Andy Engle
Joseph Sze <[EMAIL PROTECTED]> wrote:
 
> Is there a way to foce download when a linked is click to download a
> excel file rather than opening into the current browser window.
> 
> For zip or exe it will automatically force a download of the type.  
> I tried changing the mime types but didn't seem to work.
> 
> Thanks for any information.

I speak as a newbie here, but I wonder if there is a way to setup
struts-config.xml to expect an action that looks something like
"/whatever.xls", and then map that to a servlet that would create an
excel file.  I know that Internet Exploiter plays a lot friendlier when
the mime type is actually a part of the URL (.xls in this case), so
that might be a way.  I would like to hear what some of the other more
seasoned Struts developers would think of such a concept.  If this
won't work at all -- my bad!


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



When to build/re-deploy?

2003-10-09 Thread Andy Engle
Greetings.

I am working on my first Struts app, and I have a question about when
to build.  I am doing my development work in Netbeans, and I am
building my project with ant.  My question is this: after I make
changes to an XML file (or files), is it necessary to rebuild?  Also,
is it necessary to re-deploy the application, or does Tomcat check the
updated XML files (such as validation.xml, for example) without the
need to re-deploy?  Do I need to re-build and re-deploy after every
minor change?

Thanks for your help!


Regards,
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: MS SQL Server Dates

2003-09-25 Thread Andy J. Baxman
In an app I'm working on I have to maintain date information across a
system that encompasses Oracle, SQL Server VB and Java. To do this I
store the dates on both databases and in XML directly using the format
you mentioned "MMddHHmmss" (in a char(14) in the dbs).

Because all developers can be assured that dates will be stored in
exactly that format, which is always GMT, its fairly trivial to subclass
Java's Date class to take that String as a constructor param.

Because the date info is msd to lsd in the String, its also easy to use
SQL to retrieve dates in order, or filter by using the 'like' operator.

AndyB

-Original Message-
From: Zoran Avtarovski [mailto:[EMAIL PROTECTED] 
Sent: 25 September 2003 00:42
To: Struts User Group
Subject: MS SQL Server Dates


I'm using an existing MS SQL Server for a small web app.

I'm doing a query based on daily activity. I build my query using a
string buffer which looks like "SELECT * FROM artciles WHERE  " +
date1SQL + "<=submitted and date_entered < " + date2SQL

Where date1SQL and date2SQL are strings formatted  "MMddHHmmss"

My question is, is this the best way to do it. Submitted is a
smalldatetime field and both date1 and date2 are GregorianCalender
objects which I canvert as required.

Any help would be appreciated.

Zoran


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using Struts ActionForm with Tiles Definitions

2003-09-23 Thread Andy J. Baxman
Hi,

This may well be an FAQ but I keep getting a 502 when I try to search
the archive :(

Is it possible to / how do you use a Tiles definition as the 'input' for
a Struts Action. All the examples I have seen use a JSP as the input,
but the form I'm using is part of a Tiles based layout.

TIA and Regards

Andy Baxman

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



getServlet?

2003-09-16 Thread Andy Kriger
The ServletContext.getServlet() method has been deprecated. Is it possible
to get a Servlet (or the ServletConfig, which is what I'm really after) in a
Struts Action?

thx
andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Valid Regexp for MM/dd/yyyy matching in a string?

2003-09-10 Thread Andy Kriger
Looks like it should work, you might need to escape the slashes.

It's easy enough to test either by using grep on the command line (which is
not the best test since there are differences btw Unix regexp and Java
regexp) or by writing a test class that uses the ORO library (Validator
doesn't use the Java regexp package) or by using the ORO test applet at
http://jakarta.apache.org/oro/demo.html.

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 16:28
To: Struts Mailing List
Subject: Valid Regexp for MM/dd/ matching in a string?


Here is what I came up with.. I don't know if its valid or not but I'd like
it to match a date in the format MM/dd/ for parsing.

mask

^[0-1]{1}[0-9]{1}/[0-3]{1}[0-9]{1}/[1-2]{1}[0-9]{3}$



Thanks!

-David




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: navigable search results

2003-09-09 Thread Andy Richards
Cheers Andrew

Exactly what i wanted...i thought there may have been some struts tag but 
obviously not.

Thanks

Andy

On Tuesday 09 Sep 2003 3:09 pm, you wrote:
> Hi,
>
> see these links
>
>http://edhill.its.uiowa.edu/display/
>
>http://jsptags.com/tags/navigation/pager/
>
>http://www.mail-archive.com/[EMAIL PROTECTED]/msg43661.html
>
> --
> Andrew
> http://www.java201.com
>
> - Original Message -
> From: "Andy Richards" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 09, 2003 3:13 PM
> Subject: navigable search results
>
> > Hi everyone,
> >
> > I want to display my search results in a similar fashion to google, with
> > a navigable menu at the bottom. I know this is possible but i am not sure
>
> what
>
> > to re-search for to get some ideas of how to do this with struts? Anyone
>
> have
>
> > any ideas or a key word i can search the struts archives for?
> >
> > thanks
> >
> > Andy
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



navigable search results

2003-09-09 Thread Andy Richards
Hi everyone,

I want to display my search results in a similar fashion to google, with a 
navigable menu at the bottom. I know this is possible but i am not sure what 
to re-search for to get some ideas of how to do this with struts? Anyone have 
any ideas or a key word i can search the struts archives for?

thanks

Andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



lists & c:forEach & struts-el html:link

2003-09-04 Thread Andy Richards
hi

I use RowSetDynaClass to get my results from a db then i add these rows to a 
List via  getRows(). The list is then returned to my jsp page which is using 
jstl and struts-el. I would like to use c:forEach to iterate over the list 
and print out the variables. Within the loop i would like to use struts-el 
html:link as follows...



Does anyone know if what i am trying to do is possible as i keep getting 
errors??

I not sure how to correctly pass my list to c:forEach. any ideas

Thanks


Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: J2EE IDE

2003-08-28 Thread Andy Cheng
Hi, I have never used anything else very seriously except Netbeans.  I
think it is slow, and crash like once everyday, but the feature it offer
really is worth the trouble.  It can generate the get and set method, it
will update any classes that implement the interface you are editing,
ultra good search and highlighting.  You can basically customize
everything you can see too... I really cannot understand why people do
not like it.  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Thursday, August 28, 2003 2:06 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: J2EE IDE


I have a HP workstation 4 CPU.. 1.7 GHz.. 512MB Ram.

thanks
-raj

VDS India
+91 44 2254-0281 ext. 1059
[EMAIL PROTECTED]



 

  "Paul Jackson"

  <[EMAIL PROTECTED]To:   Rajendra X.
Yadav/EMPL/India/[EMAIL PROTECTED], "Struts Users Mailing List" 
  ianinfo.com
<[EMAIL PROTECTED]>

  >  cc:

 Subject:  RE: J2EE IDE

  28/08/2003 04:55 AM

  Please respond to

  "Struts Users

  Mailing List"

 

 





Sounds like you need to upgrade your machine. I have a standard PC (2
years old) and eclipse works fine on this...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Wednesday, 27 August 2003 7:30 PM
To: Struts Users Mailing List
Subject: Re: J2EE IDE


OfCourse, I have tested it. Then only i can make these comments.
I was just expressing my views on Eclipse for other people who were
looking
for a IDE.
I have my own preferences for a IDE.

thanks
-raj






  "Kwok Peng Tuck"

  <[EMAIL PROTECTED]To:   "Struts Users
Mailing List" <[EMAIL PROTECTED]>
  net> cc:

   Subject:  Re: J2EE IDE

  27/08/2003 02:46

  PM

  Please respond to

  "Struts Users

  Mailing List"









Have you actually tested it ?
If  you haven't then try it and see for yourself.
Or you could try the other java based ide's around if you are not happy
with Eclipse.

[EMAIL PROTECTED] wrote:

>But eclipse has many problems at runtime.
>
>Boot up time is too high.
>Refresh time too high.
>Crashes very often.
>
>Am i  right on these points ?
>
>thanks
>-raj
>
>
>
>

>  "Firat TIRYAKI"

>  <[EMAIL PROTECTED]To:   "Struts Users
Mailing List" <[EMAIL PROTECTED]>
>  m.tr>cc:

>   Subject:  Re: J2EE IDE

>  27/08/2003 01:33

>  PM

>  Please respond to

>  "Struts Users

>  Mailing List"

>

>

>
>
>
>
>you should use eclipse, it doesn't use swing for GUI's, and it's faster
>than
>the others.
>
>F.
>
>- Original Message -
>From: <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, August 27, 2003 9:46 AM
>Subject: J2EE IDE
>
>
>
>
>>Can someone please suggest me a free J2EE IDE suitable for development
of
>>webapps using STRUTS. I know of some IDE's like the FORTE, ECLIPSE,
>>NETBEANS. However I wanted to ckeckout if anyone has already evaluated
>>
>>
>any
>
>
>>of these since I am not sure which one is easy to use and has
reasonably
>>good features as well.
>>
>>Regards
>>Sreekant G
>>
>>
>>
>>
>>
>
>
>



>
>
>
>
>
>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [

Re: login request + ActionServlet RequestProcessor Action

2003-08-22 Thread Andy Richards
Hi david

I spent a little to much allocated time on this so I had to move on, and I am 
going to come back to it at a later date. I have a quick 'hack' (a  taglib 
which checks the session in each jsp) for my prototype to present to the 
client..Anyway, when i do it i will let you know.

What i have found so far though is that by using declarative exception 
handling in my struts-config.xml the error, i think, needs to be thrown from 
a action class. If i could do it from my requestProcessor that would be 
great? I wasnt sure how to configure my app to call processRoles() on evey 
request, so i overrode the locale method as a test as this was been called 
eveytime. However because the locale method dosnt throw any exceptions i 
again ran into problems. So overall what i really would like to do would be 
to extend requestProcessor with my own custom method which throws my own 
exception which will be redirected to the appropriate page and called on 
every request. Sounds easy and probably is to someone who has a better 
understanding of stuts than i do? Anyway wont give up and will let you know 
if you are interested? Bank holiday this monday!! so a long relaxing 
weekend is due before i crack on with this one ; )

cheers

Andy


On Friday 22 Aug 2003 4:21 pm, you wrote:
> Andy,
>
> Did you get processRoles to work for you?
> How do you redirect to the (error) page of
> your choice in it?
>
> Thanks,
> David
>
> -Original Message-
> From: Andy Richards [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 21, 2003 9:55 AM
> To: Struts Users Mailing List
> Subject: Re: login request + ActionServlet RequestProcessor Action
>
>
> Hmm
>
> Strugling a bit with this one now.?? I have extended requestProcessor and
> tried to perform a requestDispatch and responseRedirect, however both fail
> as
> the error message informs me the reponse has already been submitted. I
> thought i may be able to use declarative exception handling with global
> exceptions in the stuts config to redirect the user to my login page (but
> no joy!). Anyone have any ideas? Also what method should i override in the
> RequestProcessor when handling my login?
>
> many thanks
>
> Andy
>
> On Thursday 21 Aug 2003 11:40 am, Kok Wei, Koh wrote:
> > Yeah you should only need to define your custom
> > AuthenticationRequestProcessor class which extends RequestProcessor in
> > controller element of your struts-config.xml.
> >
> > Andy Richards wrote:
> > > Hi Kok
> > >
> > > Good point, never thought about that! One point towards extending the
> > > requestProcessor then, as if i am right i configure this in my
> > > struts-config.xml and dont need to extend it from every action class.
> > >
> > > Thanks
> > >
> > > Andy
> > >
> > > On Thursday 21 Aug 2003 10:26 am, Kok Wei, Koh wrote:
> > >>Hi Andy,
> > >>
> > >>I guess the decision boils down to how your application is going to be
> > >>written. For a project I worked on couple of weeks back, I ran into a
> > >>problem where one of my Actions needs to extend a class to inherit some
> > >>functionality, but I was stucked because I need to extend my
> > >>"AuthenticationAction" which handles all my user login stuff.
> > >>
> > >>I can't extend from 2 classes, right? I then went on to research the
> > >>RequestProcessor. I used tiles of Struts 1.1 in my project so what I
> > >> did was I ported the "AuthenticationAction" code to say
> > >>"AuthenticationRequestProcessor" and it extends "TilesRequestProcessor"
> > >>which extends the Struts "RequestProcessor".
> > >>
> > >>So it all depends on if you're gonna run into problems like this?
> > >>
> > >>My 2 cents. Hope this helps.
> > >>
> > >>Andy Richards wrote:
> > >>>Hi
> > >>>
> > >>>After deciding which approach to take and reading a few of my struts
> > >>>books about the controller object ; ) I am now confused as which is
> > >>> the most appropriate class to extend to perform my login
> > >>> functionality. David suggests extending the base action class,
> > >>> however i have read that the RequestProcessor class was added to
> > >>> struts1.1 to extend the ActionServlet. From what i can see this class
> > >>> handles all requests and one of its methods calls the appropriate
> > >>> action. Therefore which would be the better class to extend 
> > >&g

GenericDataSource best practise?

2003-08-22 Thread Andy Cheng
Hi, currently I have something like the code below on every action, is
this the normal way of getting the connection?  And how would normal
people do if they want to make some data access objects, which contain
all the methods like insert, select etc, while the Action class will
purely do logic, for example only contain this kind of statements:
HashMap hmResult = dataAccess.getAllClients();  Thanks.

public ActionForward perform(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
ServletContext context = servlet.getServletContext();
try {
DataSource dataSource =
(DataSource)context.getAttribute(Action.DATA_SOURCE_KEY);
Connection conn = dataSource.getConnection();
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM aTable");
while(rs.next()) {
//...
}

} catch (Exception e) {
e.printStackTrace();
}
return (mapping.findForward("xxx"));
}



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: login request + ActionServlet RequestProcessor Action

2003-08-21 Thread Andy Richards
Hmm

Strugling a bit with this one now.?? I have extended requestProcessor and 
tried to perform a requestDispatch and responseRedirect, however both fail as 
the error message informs me the reponse has already been submitted. I 
thought i may be able to use declarative exception handling with global 
exceptions in the stuts config to redirect the user to my login page (but no 
joy!). Anyone have any ideas? Also what method should i override in the 
RequestProcessor when handling my login?

many thanks

Andy

On Thursday 21 Aug 2003 11:40 am, Kok Wei, Koh wrote:
> Yeah you should only need to define your custom
> AuthenticationRequestProcessor class which extends RequestProcessor in
> controller element of your struts-config.xml.
>
> Andy Richards wrote:
> > Hi Kok
> >
> > Good point, never thought about that! One point towards extending the
> > requestProcessor then, as if i am right i configure this in my
> > struts-config.xml and dont need to extend it from every action class.
> >
> > Thanks
> >
> > Andy
> >
> > On Thursday 21 Aug 2003 10:26 am, Kok Wei, Koh wrote:
> >>Hi Andy,
> >>
> >>I guess the decision boils down to how your application is going to be
> >>written. For a project I worked on couple of weeks back, I ran into a
> >>problem where one of my Actions needs to extend a class to inherit some
> >>functionality, but I was stucked because I need to extend my
> >>"AuthenticationAction" which handles all my user login stuff.
> >>
> >>I can't extend from 2 classes, right? I then went on to research the
> >>RequestProcessor. I used tiles of Struts 1.1 in my project so what I did
> >>was I ported the "AuthenticationAction" code to say
> >>"AuthenticationRequestProcessor" and it extends "TilesRequestProcessor"
> >>which extends the Struts "RequestProcessor".
> >>
> >>So it all depends on if you're gonna run into problems like this?
> >>
> >>My 2 cents. Hope this helps.
> >>
> >>Andy Richards wrote:
> >>>Hi
> >>>
> >>>After deciding which approach to take and reading a few of my struts
> >>>books about the controller object ; ) I am now confused as which is the
> >>>most appropriate class to extend to perform my login functionality.
> >>> David suggests extending the base action class, however i have read
> >>> that the RequestProcessor class was added to struts1.1 to extend the
> >>>ActionServlet. From what i can see this class handles all requests and
> >>>one of its methods calls the appropriate action. Therefore which would
> >>> be the better class to extend  ActionServlet, RequestProcessor or
> >>> Action. Any ideas.?
> >>>
> >>>thanks
> >>>
> >>>Andy
> >>>
> >>>On Wednesday 20 Aug 2003 2:41 pm, David G. Friedman wrote:
> >>>>Dear Andy,
> >>>>
> >>>>I'm doing the same thing you suggest.  My approach is
> >>>>to extend the base Action (or any type of Action) class
> >>>>by adding a functon 'checkLogin'.  It takes the 'request'
> >>>>as the argument, checks the session for a User bean, and
> >>>>throws an exception if the bean is missing or if the ID
> >>>>number on the bean is zero/unset.  In my execute() method
> >>>>I make my first line 'checkLogin(request)' and it handles
> >>>>my authentication.
> >>>>
> >>>>If you try this approach, keep in mind I'm using Struts
> >>>>v1.1 final so I can use exceptions.
> >>>>
> >>>>Tonight I'm going to try switching it to an interface so
> >>>>I can use it to extend any action type by using 3 lines
> >>>>(and without sub-classing):
> >>>>
> >>>>1. import com.mycompany.auth.LoginCheck;
> >>>>2. public class MyAction extends Action implements LoginCheck
> >>>>3. checkLogin(request) <--- 1st line from within the execute
> >>>>or DispatchAction, or LookupDispatchAction method, etc.
> >>>>
> >>>>Regards,
> >>>>David
> >>>>
> >>>>---Original Message---
> >>>>From: Andy Richards <[EMAIL PROTECTED]>
> >>>>Sent: 08/20/03 09:46 AM
> >>>>To: [EMAIL PROTECTED]
> >>>>Subject: login request
> &g

Re: login request + ActionServlet RequestProcessor Action

2003-08-21 Thread Andy Richards
Hi Kok

Good point, never thought about that! One point towards extending the 
requestProcessor then, as if i am right i configure this in my 
struts-config.xml and dont need to extend it from every action class.

Thanks

Andy

On Thursday 21 Aug 2003 10:26 am, Kok Wei, Koh wrote:
> Hi Andy,
>
> I guess the decision boils down to how your application is going to be
> written. For a project I worked on couple of weeks back, I ran into a
> problem where one of my Actions needs to extend a class to inherit some
> functionality, but I was stucked because I need to extend my
> "AuthenticationAction" which handles all my user login stuff.
>
> I can't extend from 2 classes, right? I then went on to research the
> RequestProcessor. I used tiles of Struts 1.1 in my project so what I did
> was I ported the "AuthenticationAction" code to say
> "AuthenticationRequestProcessor" and it extends "TilesRequestProcessor"
> which extends the Struts "RequestProcessor".
>
> So it all depends on if you're gonna run into problems like this?
>
> My 2 cents. Hope this helps.
>
> Andy Richards wrote:
> > Hi
> >
> > After deciding which approach to take and reading a few of my struts
> > books about the controller object ; ) I am now confused as which is the
> > most appropriate class to extend to perform my login functionality. David
> > suggests extending the base action class, however i have read that the
> > RequestProcessor class was added to struts1.1 to extend the
> > ActionServlet. From what i can see this class handles all requests and
> > one of its methods calls the appropriate action. Therefore which would be
> > the better class to extend  ActionServlet, RequestProcessor or Action.
> > Any ideas.?
> >
> > thanks
> >
> > Andy
> >
> > On Wednesday 20 Aug 2003 2:41 pm, David G. Friedman wrote:
> >>Dear Andy,
> >>
> >>I'm doing the same thing you suggest.  My approach is
> >>to extend the base Action (or any type of Action) class
> >>by adding a functon 'checkLogin'.  It takes the 'request'
> >>as the argument, checks the session for a User bean, and
> >>throws an exception if the bean is missing or if the ID
> >>number on the bean is zero/unset.  In my execute() method
> >>I make my first line 'checkLogin(request)' and it handles
> >>my authentication.
> >>
> >>If you try this approach, keep in mind I'm using Struts
> >>v1.1 final so I can use exceptions.
> >>
> >>Tonight I'm going to try switching it to an interface so
> >>I can use it to extend any action type by using 3 lines
> >>(and without sub-classing):
> >>
> >>1. import com.mycompany.auth.LoginCheck;
> >>2. public class MyAction extends Action implements LoginCheck
> >>3. checkLogin(request) <--- 1st line from within the execute
> >>or DispatchAction, or LookupDispatchAction method, etc.
> >>
> >>Regards,
> >>David
> >>
> >>---Original Message---
> >>From: Andy Richards <[EMAIL PROTECTED]>
> >>Sent: 08/20/03 09:46 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: login request
> >>
> >>>Hi, i have created a form and a action which checks to see if a user
> >>
> >>exists
> >>in
> >>my database and if so a value object is placed into the session. What i
> >> am
> >>
> >>
> >>unsure of is how to a action called everytime a request is made? Can i
> >>configure struts-config.xml to send all requests via an action to see if
> >>this
> >>session object exists, and if not redirect the user to the login page?
> >>
> >>many thanks
> >>
> >>Andy
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: login request + ActionServlet RequestProcessor Action

2003-08-21 Thread Andy Richards
Hi

After deciding which approach to take and reading a few of my struts books 
about the controller object ; ) I am now confused as which is the most 
appropriate class to extend to perform my login functionality. David suggests 
extending the base action class, however i have read that the 
RequestProcessor class was added to struts1.1 to extend the ActionServlet. 
From what i can see this class handles all requests and one of its methods 
calls the appropriate action. Therefore which would be the better class to 
extend  ActionServlet, RequestProcessor or Action. Any ideas.?

thanks

Andy

On Wednesday 20 Aug 2003 2:41 pm, David G. Friedman wrote:
> Dear Andy,
>
> I'm doing the same thing you suggest.  My approach is
> to extend the base Action (or any type of Action) class
> by adding a functon 'checkLogin'.  It takes the 'request'
> as the argument, checks the session for a User bean, and
> throws an exception if the bean is missing or if the ID
> number on the bean is zero/unset.  In my execute() method
> I make my first line 'checkLogin(request)' and it handles
> my authentication.
>
> If you try this approach, keep in mind I'm using Struts
> v1.1 final so I can use exceptions.
>
> Tonight I'm going to try switching it to an interface so
> I can use it to extend any action type by using 3 lines
> (and without sub-classing):
>
> 1. import com.mycompany.auth.LoginCheck;
> 2. public class MyAction extends Action implements LoginCheck
> 3. checkLogin(request) <--- 1st line from within the execute
> or DispatchAction, or LookupDispatchAction method, etc.
>
> Regards,
> David
>
> ---Original Message---
> From: Andy Richards <[EMAIL PROTECTED]>
> Sent: 08/20/03 09:46 AM
> To: [EMAIL PROTECTED]
> Subject: login request
>
> > Hi, i have created a form and a action which checks to see if a user
>
> exists
> in
> my database and if so a value object is placed into the session. What i am
>
>
> unsure of is how to a action called everytime a request is made? Can i
> configure struts-config.xml to send all requests via an action to see if
> this
> session object exists, and if not redirect the user to the login page?
>
> many thanks
>
> Andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: login request

2003-08-21 Thread Andy Richards
Thank you ...

I would liked to have used a filter as this was my first idea, however my 
clients app must be deployed onto their raq550 server which supports only 
tomcat 3. I believe only tomcat 4 supports filters(or the servlet spec it 
uses)? I believe i will follow davids example and extend the base action 
class as this seems to be my only option. This dosnt seem as elegent as a 
filter but does seems to be the most elegent alternative thanks david : ), 
unless anyone else has any better ideas?

Most helpful allthanks again

Andy

On Wednesday 20 Aug 2003 2:41 pm, David G. Friedman wrote:
> Dear Andy,
>
> I'm doing the same thing you suggest.  My approach is
> to extend the base Action (or any type of Action) class
> by adding a functon 'checkLogin'.  It takes the 'request'
> as the argument, checks the session for a User bean, and
> throws an exception if the bean is missing or if the ID
> number on the bean is zero/unset.  In my execute() method
> I make my first line 'checkLogin(request)' and it handles
> my authentication.
>
> If you try this approach, keep in mind I'm using Struts
> v1.1 final so I can use exceptions.
>
> Tonight I'm going to try switching it to an interface so
> I can use it to extend any action type by using 3 lines
> (and without sub-classing):
>
> 1. import com.mycompany.auth.LoginCheck;
> 2. public class MyAction extends Action implements LoginCheck
> 3. checkLogin(request) <--- 1st line from within the execute
> or DispatchAction, or LookupDispatchAction method, etc.
>
> Regards,
> David
>
> ---Original Message---
> From: Andy Richards <[EMAIL PROTECTED]>
> Sent: 08/20/03 09:46 AM
> To: [EMAIL PROTECTED]
> Subject: login request
>
> > Hi, i have created a form and a action which checks to see if a user
>
> exists
> in
> my database and if so a value object is placed into the session. What i am
>
>
> unsure of is how to a action called everytime a request is made? Can i
> configure struts-config.xml to send all requests via an action to see if
> this
> session object exists, and if not redirect the user to the login page?
>
> many thanks
>
> Andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem on displaying table keys, please help

2003-08-20 Thread Andy Cheng
When I try to display a value from the action form, I use 
tag, it is fine for Strings, dates etc, but it is not for tables keys,
such as:

which will give me 1,2,3,4 etc. I have some HashMap in the
servletContext already, they contain the content of these small tables.
Would someone please suggest me an easy way of doing this?  Thanks
 
Andy


login request

2003-08-20 Thread Andy Richards
Hi, i have created a form and a action which checks to see if a user exists in 
my database and if so a value object is placed into the session. What i am 
unsure of is how to a action called everytime a request is made? Can i 
configure struts-config.xml to send all requests via an action to see if this 
session object exists, and if not redirect the user to the login page?

many thanks

Andy
-- 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: database - bean - form, what is the best way to do it?

2003-08-14 Thread Andy Cheng
Basically I am just wondering if the process can be a bit more
interesting.  I always:
1. Get values from the JSPs and the values (Strings) are used to set the
ActionForm  ie String to String copying. 
2. In the Action class, I get the values from the ActionForm, and
convert them to the appropriate types, and insert them into beans using
the beans' setter methods.
3. From the objects I have, I will write PreparedStatements (with many
?? in the SQL), and set the values in the order of the question marks.
I have to do this for INSERT, and UPDATE.

On the reverse, I have to get the data from database, getting values
from ResultSets, and insert into beans, then from the beans I feed them
back to the JSPs for display.  

This is a very boring thing to do, and it does not require much skill as
well.  I am just wondering if there is a way of speeding up:
1. Conversion between ActionForm (Strings) to Beans (Typed)
2. Generate ActionForms
3. Generate the fields in the the JSPs
4. Generate the SQL statements.

I know I am being very very greedy here, but if there is no other way
than being a typist for days, I would rather write a small program to do
all these.  I have read Castor JDO could help generating code, but I
have to read and understand more before I know if it is helping me.
Thanks

Andy

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 12:49 AM
To: 'Struts Users Mailing List'
Subject: RE: database - bean - form, what is the best way to do it?

> When doing struts, I am always loading or saving data to a bean (or a
list
of beans)
> and then display it to the form.  Is there a ways to make this process
very automatic,
> like writing a mapping file, and then everything is done?  I spent in
the
past 2 full
> days just keep doing this kind of mapping and it is getting me real
crazy.
Thanks

Take a look at the struts-example webapp.  I do this same thing in my
Struts
app-- load from the database into a bean, then use
BeanUtils.copyProperties(...) to move the values over to the form, then
display it.  I use Dynamic forms, so the form properties are defined in
struts-config.xml, which gets me out of writing the get/set methods for
the
form bean.

What part of it is giving you problems?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Resin does not work with Struts 1.1 Final

2003-08-14 Thread Andy Kriger
Resin definitely does work with RC2 and 1.1 so there's probably a
configuration issue either in Resin or in Struts that is causing your error.

-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 17:33
To: Struts Users Mailing List
Subject: [OT] Resin does not work with Struts 1.1 Final


  Resin does not work with Struts 1.1 Final
  Question by Barry on Fri, 08 Aug 2003 14:05:26 -0700 (PDT) [ edit |
delete ]

When upgrading to Struts RC2 or 1.1 Final the following error occurs:
(further description of problem below)

500 Servlet Exception javax.servlet.jsp.JspException: Can't get definitions
factory from context. at
org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.jav
a:583) at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:487
) at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:451)
at _index__jsp._jspService(/childrencare/index.jsp:9) at
com.caucho.jsp.JavaPage.service(JavaPage.java:75) at
com.caucho.jsp.Page.subservice(Page.java:506) at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182) at
com.caucho.server.http.Invocation.service(Invocation.java:315) at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:344)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274
) at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at
java.lang.Thread.run(Thread.java:536)


 Resin 2.1.9 (built Tue Apr 15 14:28:40 PDT 2003)

Although the message indicates a tiles problem the real problem appears to
be in initializing a datasource. If I remove the datasource from the
struts-config the error goes away (of course cannot connect to a datasource
but the jsp comes up). In versions RC1 or earlier the problem does not
exist. The main difference from RC2,1.1 Final and earlier versions starting
from RC1 is (from release notes):

In RC2, the Commons-DBCP and Commons-Pool dependencies have been removed.
These are replaced with a dependency on the Struts-Legacy package,
containing the GenericDataSource and GenericConnection classes from Struts
1.0.2. These are distributed for J2SE 1.3 but may be recompiled for J2SE
1.4. Other DataSource implementations may be plugged in (recommended).

RC2 is dependent upon Commons FileUpload RC1. The final release of Struts
1.1 cannot happen until this dependency is updated to a final release of
FileUpload. All other dependencies are in their final release.

Other changes since RC1 have been routine fixes and refactorings.

I have tried using DBCP and General methods of connecting using the mysql
driver and both will not work.

The RC2 and Struts Final 1.1 work fine in Tomcat 4.1 but do not work in
Resin.

I am using J2SE 1.4 on Tomcat and Resin

Any suggestions?

Thanks, Barry


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] TLD question

2003-08-14 Thread Andy Kriger
does putting an external URI on a page mean that webapp container is going
to make a request to that URI when it loads the page?

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 15:14
To: Struts Users Mailing List
Subject: Re: [OT] TLD question


You don't need the TLD files, they're already packaged in the JAR files for
the
tags. You also don't need to add taglib entries to your web.xml file. You
*do*
need taglib directive(s) in your JSP:

<%@ taglib prefix="c"   uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
<%@ taglib prefix="x"   uri="http://java.sun.com/jstl/xml"; %>

Quoting Andy Kriger <[EMAIL PROTECTED]>:

> I downloaded the JSTL from Sun. In the tld directory there are 2 TLDs for
> each taglib.
>
> Example: c.tld and c-rt.tld
>
> Do I need to copy both of these to my WEB-INF dir?
> Do I need to reference both of these in the JSP <[EMAIL PROTECTED]> directive?
>
> thx
> andy

--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   3   >