Re: RE: Location of JSPs for TILES

2003-08-06 Thread David G. Friedman
Cameron,

I'm VERY new to struts but I had no problem setting up and using tiles.  Here are some 
of my tiles definitions which I'm using without any problems. Perhaps my definition 
can show you something you might be overlooking...  BTW, I'm on Tomcat 4.1.24 on a 
Linux platform using JDK 1.4.2 on Struts 1.1.

I use it through my action's success forward:


Regards,
David

-- start tiles snippets ---


  
  
  
  
  



  

-- end tiles snippets ---

---Original Message---
From: Cameron Hickey <[EMAIL PROTECTED]>
Sent: 08/05/03 05:02 PM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: Location of JSPs for TILES

> 
> Is there anyone who knows the rules for using TILES?

I moved the files from /WEB-INF/jsp/proptype to /WEB-INF/tiles/proptype
but this does not solve the problem.

Must all files for a given Tiles definition be located in the same
folder?  I am extending one layout where the base file is located in
/WEB-INF/jsp and the added file is located in /WEB-INF/jsp/proptype

Should this be causing any problems?  Are there an FAQs or other
resources besides the Javadocs for Tiles where I might be able to learn
of its limitations?  Is there something wrong with my design pattern
which others are not employing, which is why my problem seems so
isolated?

Thanks for any more help

Cameron

-Original Message-
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 7:38 PM
To: Struts Users Mailing List
Subject: RE: Location of JSPs for TILES

I am not sure about Tomcat.  I just know that most jsp containers
compile
the source jsp files to servlets within the /WEB-INF/jsp folder so it
probably isnt the best place to put your source files.

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Location of JSPs for TILES


Thanks for the response Marty,

I am using Tomcat 4.1.24, and have no problem generally putting these
files into the /jsp folder, its only when I put them into the /jsp/prop
folder that there are problems.

Where can I find out what the rules are for folders to hold JSPs for
either struts, or tiles?  Does Tomcat implement this reserved folder
concept for WEB-INF/jsp ?

Thanks
 
Cameron


-Original Message-
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 7:25 PM
To: Struts Users Mailing List
Subject: RE: Location of JSPs for TILES

I think that the /jsp folder that you are specifying is a reserved
folder
for some jsp containers.  We use /WEB-INF/pages/...

Hope this helps.

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:23 AM
To: [EMAIL PROTECTED]
Subject: Location of JSPs for TILES


I am having some problems getting TILES to work properly when I put my
JSPs into folders.  The error I get is:

Unable to compile class for JSP An error occurred at line: -1 in the jsp
file: null

Which I assume means that it cannot find the JSP file I have specified
in my tiles-defs.xml.  

If I have my files here:

/WEB-INF/jsp/proptypelist.jsp

and this in the tiles-defs.xml

  


  

Then everything works fine.

BUT, if I put the same file a level deeper:

/WEB-INF/jsp/prop/proptypelist.jsp

with def:






then I get the error.

Any idea why this would be happening?

Are there limits to how deep or where the templates should be located
for use with TILES?  Is there a way to configure this?

Thanks for any assistance

Cameron Hickey


-
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]



Re: RE: Actions Best Practice

2003-08-06 Thread David G. Friedman
> Taking your advice, it means that I would 
> have two different action mappings, one 
> for the init step and the second for the 
> actual action (send).  But then I will have 
> to write something like   
> which is a bit strange to write again the "init", 
> and it is needed cause the ForgotPasswordAction.java 
> needs this 'action' parameter to distinguish
> between the two. Hmm.. 

Why not use the Struts Validator, set the validations to use page=1 (or page=2), and 
just set page=1 (or page=2) in the JSP automatically when the page gets displayed?  
Then, the first time you go to it, nothing needs to be validated.  When you hit 
submit, the validations occur for that page, or further pages, if you have more in the 
sequence/step/function/route/click.

Regards,
David

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



Re: Re: Actions Best Practice

2003-08-06 Thread David G. Friedman
Adam,

I simply add a tag in the  section of my tiles definition like the snippet 
below.  One note to keep in mind from the documentation about the differences between 
server-side validation using the page attribute and client-side validation - client 
side is that page="number" only, and server-side reviews all checks less than or equal 
to that page number (might be large bean on multi-page forms and redirecting to the 
appopriatep age if data is missing might be difficult). Here is a note on that topic 
directly from the page:
http://jakarta.apache.org/struts/userGuide/dev_validator.html


Multi Page Forms 

The field element has an optional page attribute. It can be set to an integer. All 
validation for any field on a page less than or equal to the current page is performed 
server side. All validation for any field on a page equal to the current page is 
generated for the client side Javascript. A mutli-part form expects the page attribute 
to be set.

And, here is my example validation.html segment.  I hardcode  in my jsp/tile.


 
  
 
 
  
 


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



Re: Struts with Tomcat 4.1.27 ?? (YES)

2003-08-07 Thread David G. Friedman
> Do Struts works with Tomcat 4.1.27 ?

Yes.  I just saved my webapps struts-*WHATEVER* applications (and my tomcat-users.xml 
ids/passwords), erased my tomcat-4.1.24, installed 4.1.27, and started the new one in 
under 5 minutes time.  My application, the struts example application, and a few 
tiles-documentation examples links seem to work fine.

FYI - you could've installed it so it used another set of ports and didn't conflict 
with any previous version you had running.  Playing with the server.xml file for a new 
version of Tomcat won't hurt if you installed it in another location on disk and tweak 
that version's config file.  If you try to run it while your normal version is 
running, it should just exit, die, or complain it couldn't get the port or service.

Regards,
David

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



Re: Re: Tiles status and feature suggestion WAS accessing Attribute of a parent-tile-definition

2003-08-08 Thread David G. Friedman
>> o  Firstly, Tiles assumes that a page is composed of 
>> multiple content areas where you have one piece of 
>> content to an area.  This is true for a simplistic site 

Though I'm new to Struts and Tiles, I planned on using the putList tag to add a group 
of items/jsp's to a section of the page by extending the main template and adding them 
via a putList tag for that forward/URL/template-extension.  Why is this built-in 
solution not good for your application?

Regards,
David

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



RE: Struts 1.1: what's the preferred way to use databases?

2003-08-14 Thread David G. Friedman
I can attest to hibernate being clear and pretty easy.  I got it working for my Login 
application the other night along with simple use of tiles, validation, and 
exceptions.  I'm just working on a facade for it/me.

David

---Original Message---
From: Steve Raeburn <[EMAIL PROTECTED]>
Sent: 08/14/03 01:04 PM
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: RE: Struts 1.1: what's the preferred way to use databases?

> 
> Take a look at Hibernate , I found the
documentation to be much better than OJB and it was much easier get
productive quickly.

Steve

> -Original Message-
> From: Reinhard [mailto:[EMAIL PROTECTED]
> Sent: August 14, 2003 9:39 AM
> To: Struts Users Mailing List
> Subject: Re: Struts 1.1: what's the preferred way to use databases?
>
>
> meanwhile 2 steps done.
>
> I gave ojb a try, but as I was fascinated by the white paper, I got
> disappointed from the implementation and the support.
>
> So I stay with ibatis db-layer, stable a very well documented.
> The support is very fast and profund, so what do I need soap bubbles.
>
> cheers and bye
>
> Reinhard
>
>
> -
> 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: Tiles status and feature suggestion WAS accessing Attribute of a parent-tile-definition

2003-08-14 Thread David G. Friedman
>> o  Firstly, Tiles assumes that a page is composed 
>> of multiple content areas where you have one piece 
>> of content to an area.  This is true for a simplistic 
>> site 

For my complex pages, I plan on using the Tiles built-in 'putList' tag to add a 
handful of JSP's to a particular section of one of my tiles templates (or extended 
tiles templates).  Why would this built-in solution not work for your application?

Regards,
David

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



Re: RE: RE: validating a html:select box

2003-08-14 Thread David G. Friedman
Erez,

Good point, a number of validator-rules.xml entries seem skewed toward text or 
textarea, not necessarily the other types.  I've updated my validator-rules.xml and 
got it to work for a single choice "select" with one problem:
The error message is pulling null in for the min and max so it's reading like: 
Month must be in the range null through null.

For now, I've overloaded that using a message resource that only asks for {0} (the 
field name) not the min/max.

If you want my validator-rules.xml that does this single-choice (not multiple) selects 
for intRange, email me off-list.

Note: Tiles maintainers, can you drop me a line so I can submit this after I test it 
on a few more browsers (not just my IE but Opera and Netscape) for possible inclusion 
in the next nightly build - Does tiles do nightly builds?

Regards,
David

---Original Message---
From: Erez Efrati <[EMAIL PROTECTED]>
Sent: 08/06/03 03:38 PM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: RE: validating a html:select box

> 
> For some reason, the javascript for intRange is not working if the
property is a selection . I looked in the javascript code
(I am new to that still) but I saw that it only checks for the range if
the field is a text or textarea. Is this true? How can I perform the
client validation for selection boxes? Change the javascript?

Erez

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 5:22 PM
To: Struts Users Mailing List
Subject: Re: RE: validating a html:select box

Erez,

In that field validation, you can overload the sentence given back on
that error.  After  add something like:



Then just add an application resource line such as:
month.too.short=Please select a valid month.
Or
month.too.short=Please select a valid {0}
to show the field name you put as arg0 in your validations xml
configuration file.

Regards,
David

---Original Message---
From: Erez Efrati <[EMAIL PROTECTED]>
Sent: 08/06/03 03:06 PM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: validating a html:select box

> 
> I guess I'd have to change the msg key to something else than the
default message telling the value is out of range. 
What happens with html:radio? Is this also the way also to validate
radio options? If no radio is selected (and I know this is off topic,
well a bit) would the browser send a value?

Thanks,
Erez

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 4:59 PM
To: Struts Users Mailing List
Subject: Re: validating a html:select box

Erez,

The Struts Validator has an intRange function.  It's in the Validator
User Guide: 
http://jakarta.apache.org/struts/userGuide/dev_validator.html

Here's an example from that page so you can set your min & max as 1 & 12
to prevent the zero (label "month"?) from being submitted:

---Original Message---
From: Erez Efrati <[EMAIL PROTECTED]>
Sent: 08/06/03 02:41 PM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: validating a html:select box

> 
> I have a selection box with options where the first is valued 0 (=not
selected) with some label saying: "month". How can I use the Struts
validator to validate the user has actually chosen a value other than 0?
Do I have to write one of my own? I wish the validwhen was around...

By the way the 'birthMonth' is an int (not a string).

Here is a snip of my page:











   
 






Thanks a lot,
Erez



-
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 additiona

RE: [OT] Rendering Large ResultSet - Value List Handler Design Pa ttern

2003-08-14 Thread David G. Friedman
Ibatis?  Bah humbug.  I just jumped for joy because I got Hibernate (v2) working for a 
simple Struts login application I made (step 1 of many in my project).  No, don't ask 
to see my facade (not made yet) or my action (looks ugly without a facade).

Regards,
David

---Original Message---
From: Jerry Jalenak <[EMAIL PROTECTED]>
Sent: 08/12/03 01:09 PM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: [OT] Rendering Large ResultSet - Value List Handler Design Pa ttern

> 
> Take a look at iBatis (www.ibatis.com).  It supports lazy loading of data,
caching of results, and paging for large result sets.  Might be of some
use
(it is for me, anyway).

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 12:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [OT] Rendering Large ResultSet - Value List Handler Design
Pattern


where do you keep the initial resultset? Or do you execute the query each 
time the user requests to page?

What would be nice if i could execute an sql statement which would give me 
a

sub set of the results as contolled by a start and end position i specify 
e.g.

Select code, desc from products where ROW_NUM >= 1 and ROW_NUM <= 10


>From: "Mark Galbreath" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" 
><[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
>Subject: RE: [OT] Rendering Large ResultSet - Value List Handler Design 
>Pattern
>Date: Tue, 12 Aug 2003 12:52:13 -0400
>
>I send elements of the ResultSet to a String[] and pass it to the
>presentation tier.
>
>Mark
>
>-Original Message-
>From: David Graham [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, August 12, 2003 12:43 PM
>
>You can't store a ResultSet in an HttpSession because it's not 
>Serializable.
>If you can't fit the result into memory, I would create an Iterator
>implementation that loops over a ResultSet and pass that to the 
>presentation
>tier (Servlet or JSP) for rendering.  That way you isolate the data
>retrieval details (ie. ResultSet) from the next layer.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


This transmission (and any information attached to it) may be confidential 
and is intended solely for the use of the individual or entity to which it 
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be advised
that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is strictly
prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[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: validating a html:select box

2003-08-14 Thread David G. Friedman
Erez,

The Struts Validator has an intRange function.  It's in the Validator User Guide: 
http://jakarta.apache.org/struts/userGuide/dev_validator.html

Here's an example from that page so you can set your min & max as 1 & 12 to prevent 
the zero (label "month"?) from being submitted:






min
10


max
20




---Original Message---
From: Erez Efrati <[EMAIL PROTECTED]>
Sent: 08/06/03 02:41 PM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: validating a html:select box

> 
> I have a selection box with options where the first is valued 0 (=not
selected) with some label saying: "month". How can I use the Struts
validator to validate the user has actually chosen a value other than 0?
Do I have to write one of my own? I wish the validwhen was around...

By the way the 'birthMonth' is an int (not a string).

Here is a snip of my page:















Thanks a lot,
Erez



-
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: RE: sorry to bother you

2003-08-14 Thread David G. Friedman
Khalid,

Below is a suggestion on how to fix your form onChange/ submit issue.  I'm also 
copy'ing this back to the list in case my ideas spark better ones on the list, as you 
received few (none?) replies from your previous posts on this top.

1. Set a hidden form field within the page named lastId (null or 0 if no vehicle was 
entered (i.e. we're on car #1).

2. Use javascript validation in the page but set the form to do:
onsubmit="return MyValidationFunction(this)" 
instead of the regular validation framework call which may be:
onsubmit="return validateMyAction(this)"

Here is a very rough example in JavaScript, including documentation, of what I'm 
thinking might work:


// Set this in the jsp so it puts the number (id, etc.) 
// of the vehicle you are sending to the client so we
// can key off it later (to you can revert that field to it
// if there are validation errors as you described)

var initialVehicle = <bean:write ... etc.../>

function MyValidationFunction(myForm) {
  // if no validation errors, continue
  if ( validateMyAction(myForm) ) {
 // We validated properly? Good, now let's submit
 myForm.submit();

  // Any validation errors? Reset the form fields as
  // necessary.  You suggested that only the vehicle
  // pulldown changed, so the code below (should be okay
  // Javascript code, but I pulled it from memory) assumes 
  // a single choice select box. You can, however, reset 
  // as many more fields in the else clause as you want 
  // since you won't be submitting the form in validation
  // failures.
  } else {
 var l = myForm.vehicleField.length;
 for ( var i = 0; i < l ; i++ ) {
 // found the selection that we started with? 
 // make that one true (shown) again so we're
 // back to, say, vehicle #1 when validation
 // failed after the onchange but without submitting
 if ( myForm.vehicleField.options[i].value == initialVehicle ) {
  myForm.vehicleField.selectedIndex = i;
  // might be just return, not return false, 
  // I always get that wrong in my JavaScript
  return false; 
 };
}
}


That way, your onchange is still there, it still tries to submit but validates first.  
On validation failure, you can reset your vehicleNo field or change any other data.  
On validation succeed, you can submit it.  You can even set a hidden field that 
indicates you updated the vehicle number stored in the JavaScript variable 
initialVehicle.

Regards,
David

---Original Message---
From: "Khalid K." <[EMAIL PROTECTED]>
Sent: 08/07/03 01:33 AM
To: "'David G. Friedman'" <[EMAIL PROTECTED]>
Subject: RE: sorry to bother you

This is my problem:

Order of execution:

Menu link (onclick) --> Dispatch Action(display method) --> forward to jsp (show 
vehicle 1..series of text boxes w/ prefilled data, or empty) --> client change or 
enter new data --> client change selection by selecting 2nd vehicle, --> 
onChange="this.form.submit" --> which submits the Form to the same dispatch action 
(display method)

Problem occurs when submitting after changing data via the drop down and there is a 
validation error, by this time, the drop down value Has changed to 2nd vehicle, but 
the html:/errors on the same jsp are for vehicle 1.

Confusing ?? :)  if you haven't come across this problem 
no problem...

Thanks

Khalid


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



Re: RE: validating a html:select box

2003-08-14 Thread David G. Friedman
Erez,

In that field validation, you can overload the sentence given back on that error.  
After  add something like:



Then just add an application resource line such as:
month.too.short=Please select a valid month.
Or
month.too.short=Please select a valid {0}
to show the field name you put as arg0 in your validations xml configuration file.

Regards,
David

---Original Message---
From: Erez Efrati <[EMAIL PROTECTED]>
Sent: 08/06/03 03:06 PM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: validating a html:select box

> 
> I guess I'd have to change the msg key to something else than the
default message telling the value is out of range. 
What happens with html:radio? Is this also the way also to validate
radio options? If no radio is selected (and I know this is off topic,
well a bit) would the browser send a value?

Thanks,
Erez

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 4:59 PM
To: Struts Users Mailing List
Subject: Re: validating a html:select box

Erez,

The Struts Validator has an intRange function.  It's in the Validator
User Guide: 
http://jakarta.apache.org/struts/userGuide/dev_validator.html

Here's an example from that page so you can set your min & max as 1 & 12
to prevent the zero (label "month"?) from being submitted:






min
10


max
20




---Original Message---
From: Erez Efrati <[EMAIL PROTECTED]>
Sent: 08/06/03 02:41 PM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: validating a html:select box

> 
> I have a selection box with options where the first is valued 0 (=not
selected) with some label saying: "month". How can I use the Struts
validator to validate the user has actually chosen a value other than 0?
Do I have to write one of my own? I wish the validwhen was around...

By the way the 'birthMonth' is an int (not a string).

Here is a snip of my page:















Thanks a lot,
Erez



-
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 Post to HTTPS (yes, a little OT)

2003-08-15 Thread David G. Friedman
I will have the need to send out an HTTPS Post (PayFlow Link or PayPal) and read the 
returned page.  PayPal has an unsupport page of CGI's which include Java code for 
doing that. You might be able to customize it for yourself.  I'll be trying it in the 
next two weeks or so I hope

http://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/ipn-codesamples-pop-outside

Regards,
David

---Original Message---
From: Andrew Hill <[EMAIL PROTECTED]>
Sent: 08/15/03 04:05 AM
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: RE: Form Post to HTTPS

> 
> No.
doGet() and doPost() are for processing of requests from the browser to
the
servlet, where you are the server and the borwser is the client, and the
servlet container takes care of all the nasty details of decoding the http
request stream and gives you a nice friendly HttpServletRequest object to
use, and a response object to write your response with.

In the problem you have presented here however, *you* are on the client
side
of the request. You will need to open up a connection with the foreign
server, stream the http request in the appropriate format, and decode the
response stream. Since this is with https there are added complications as
you have to deal with all those certs and other wierd stuff (I dont know
too
much about programming at the transport layer so cant help much with
that).
Best book to look at for details on how to do this would be O'Rielly's
"Java
Network Programming".

This is the sort of wheel you really dont want to have to reinvent
yourself.
You would be best using some kind of third party tool, otherwise its going
to be a nightmare. :-(
(Of course HttpClient is opensource so even if you cant *use* it, you can
still go read their source code to see an example of how to do it :-))

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, 15 August 2003 15:54
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Form Post to HTTPS



Thanks for the prompt reply Andrew. :)
I am afraid that I will not be able to use any 3rd party libraries.
Considering, I do the POST from the servlet in the doPost() method, so
it's
my assumption that I will get the response in the doGet method.. is that
correct ?

thanks
-raj




  "Andrew Hill"
  <[EMAIL PROTECTED]To:   "Struts Users
Mailing List" <[EMAIL PROTECTED]>
  idnode.com>  cc:
   Subject:  RE: Form Post
to HTTPS
  15/08/2003 01:08 PM
  Please respond to
  "Struts Users Mailing
  List"; Please respond
  to andrew.david.hill






Take a look at the HttpClient project. That might have what you need.
http://jakarta.apache.org/commons/httpclient/features.html

You would do the posting from the servlet or action. (Its no good setting
up
a jsp to render a pafe that is used to post the data as it would be the
users browser that actually posts, and thus receives the response).

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, 15 August 2003 15:31
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Form Post to HTTPS


Hi All,
This is a non-struts related question... sorry about that.. but seeing
such
a active particiaption by so many good technical people, i am inclicned to
put my question here.

I have to a form post to a HTTPS URL. The URL after getting the request
will send a response which I have to capture.
Now, I can do a Form POST from a jsp passing in all the parameters the URL
requires, but how will I capture the response ??
So, is it a good idea to do the POST from a Servlet and if yes... then how
to do it ?

I appreciate the time...

thanks
-raj




-
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]



Out of Memory Error on Struts 1.1, Tomcat 4.1.27, Linux JDK 1.4.2?

2003-08-20 Thread David G. Friedman
As you may know from my posts, I'm new to Struts.  So, I'm compiling a little, 
reloading my app, compiling more, loading my app, and so forth.  Somewhere between 
reloads ('stop' and then 'start', not 'reload' in the Tomcat manager), 20 to 30, I end 
up getting tomcat errors about being 'Out of Memory'.

I only have 5-6 simple (we're talking basic here) classes and one session-based 
ActionForm I'm using for everything (10 strings in it, that's it).

Other than that, I only have the Stock Struts 1.1 final tiles plug-in, the stock v1.1 
final validator plug-in, and the recent hibernate plug-in from the bluemars site.  
I've reset the ms/mx to 64/128 MB and even 64/256 MB in my catalina.sh but zilch.  
Anyone have any suggestions on how to debut this?  I sure won't be able to deploy 
until I figure out what's causing the memory leak on my Linux system: Struts 1.1 
final, Tomcat 4.1.27, Sun JDK 1.4.2, Hibernate 2.0.2 (stable).

Btw, I'd take out Hibernate but I need it.  Besides, there are no warnings about 
memory problems I've been able to dig up on those versions of the tools I'm using. 
Unless I'm totally missing an obvious post on the lists and archives (and 'Net) that 
I'm searching through.

Thanks again for any suggestions.

Regards,
David


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



Re: login request

2003-08-20 Thread David G. Friedman
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]



Re: Re: Out of Memory Error on Struts 1.1, Tomcat 4.1.27, Linux JDK 1.4.2?

2003-08-20 Thread David G. Friedman
> > There's a bug report on this issue:
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14042
> This only happens when reloading the app and will be 
> fine in production.

Figures I'd miss that one reference: bugzilla.

Well, at least apache/mod_jk2 will let me use another Tomcat instance so I can run a 
second Tomcat for running development code via another URL on the server. *phew*

Regards (and thanks),
David

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



Re: File Upload Data

2003-08-20 Thread David G. Friedman
Steven,

I had a problem like that where nothing was being uploaded because my form enctype was 
not set to 'multipart/form-data'.  Then again, the problem was when I was programming 
in Perl under Apache + NT and migrating it to Perl under Apache + Linux, so it's not 
quite the Struts-Upload related answer you were probably looking for, huh? :(

Regards,
David

---Original Message---
From: Steven Leija <[EMAIL PROTECTED]>
Sent: 08/20/03 08:58 AM
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: File Upload Data

> 
> Hello All,

I'm running into a really weird problem.  I'm uploading a file in windows
and the input stream is just fine.  But when I deploy my application to a
linux box, the same upload failes.  I traced this down to the fact that the
input stream is empty.  The file is being uploaded but the stream is coming 
in as null.  I've verified these files are not corrupt or empty.  

Has anyone seen this before?

Thanks,

Steven

> 

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



javascript with struts nested fields?

2003-09-10 Thread David G Friedman
In an html page, is there a way to reference a nested form variable without
using array subscripts?

In the web page the client sees, it gets the below:



I want a pop-up calendar window button next to it that populates that field
with the selected date.  When I switched from "program" to a nested field
named "order.program", it broke.  The "program" can be referenced by
"formName.program" but the nested one causes javascript errors trying to
reference it as "fornName.order.program".   I don't want to use
fornName.elements[XXX] since any changes to the page layout might reorder
fields and change those array subscripts, making development very messy.
Any suggestions?  I tried formName."order.program" but it gave out
Javascript errors.

I've already checked some Javascript 1.1 developer and reference guides from
Netscape and didn't find anything suggesting how to do it this way.

Thanks for any suggestions,
David



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



RE: JavaScript with struts nested fields?

2003-09-10 Thread David G Friedman
Thanks.  That works well.  I didn't see that in my
documentation: ClientReferenceJS13.pdf. :)  But hey,
I'll take anything that's clear, simple, and works.

-David

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of news.gmane.org
Sent: Wednesday, September 10, 2003 3:24 PM
To: [EMAIL PROTECTED]
Subject: Re: javascript with struts nested fields?


Why don't you use just formName["order.program"] ?


"David G Friedman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> In an html page, is there a way to reference a nested form variable
without
> using array subscripts?
>
> In the web page the client sees, it gets the below:
>
> 
>
> I want a pop-up calendar window button next to it that populates that
field
> with the selected date.  When I switched from "program" to a nested field
> named "order.program", it broke.  The "program" can be referenced by
> "formName.program" but the nested one causes javascript errors trying to
> reference it as "fornName.order.program".   I don't want to use
> fornName.elements[XXX] since any changes to the page layout might reorder
> fields and change those array subscripts, making development very messy.
> Any suggestions?  I tried formName."order.program" but it gave out
> Javascript errors.
>
> I've already checked some Javascript 1.1 developer and reference guides
from
> Netscape and didn't find anything suggesting how to do it this way.
>
> Thanks for any suggestions,
> 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: Help in HttpServletRequest

2003-09-10 Thread David G Friedman
Alvin,

I had worries when I did my first file upload
a few weeks ago.  I used a FormField type as
my FormBean field and then it was a simple
read and copy, like in the struts upload example
which used the commons upload.

The approach is different from your below, but
the file upload example was easy. I have one
interface that simply and easily uploads up to
3 file (image, logo, background) at once.

Some of my code snippets are below to illustrate
how straightforward it can be for file uploading:

1. Add a org.apache.struts.upload.FormFile as a
field in your FormBean with simple setters and
getters:

FormFile logo;
public FormFile getLogo() {
return(logo);
};
public void setLogo(FormFile newLogo) {
logo = newLogo;
};

2. Use that bean for your action.

3. Save the bean while in your action class (or
process class), just like from the struts upload
example.  Just put in your tests to make sure a
valid filename was entered, that the file(s) did
not exceed the max file size, and so forth. More
code snippets for this portion include:

FormFile tempFile = null;
File f = null;
tempFile = form.getLogo();
String newName = "/some/file/path/for/saving.extension";
InputStream stream = tempFile.getInputStream();
OutputStream bos = new FileOutputStream( newName );
int bytesRead = 0;
byte[] buffer = new byte[8192];
while ((bytesRead = stream.read(buffer, 0, 8192)) != -1 ) {
bos.write(buffer,0, bytesRead);
};

That's pretty much it.  I did do some database calls in
my code to save the uploaded file's name since I save
it as a different name (the name is a number but the image
extension is the same image type).  Everything else I did
in my class was hibernate transactions I doubt you'd want
to read.

Regards,
David

-Original Message-
From: Alvin Goh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 11:09 PM
To: [EMAIL PROTECTED]
Subject: Help in HttpServletRequest


Hi,

I'm a newbie in the world of struts programming and I need help urgently.
I'm doing a file uploading module and thus far I've done all the nessesary
coding and included all nessesary functions. My problem is when I test the
code, the iterator (i) does not have any values, i.hasnext() always return
false although when I check the contentLength of the request it always
contain  the file value. I'm suspecting that the HttpServletRequest does not
pass the appropriate value when submitting. I've also added the line into my
jsp files:



I'm currently using WSAD 4.0.5 and using the commons-fileupload.jar. I
really appreciate it if anyone could help me in this. Million thanx

Regards,
Alvin


public boolean upload(javax.servlet.http.HttpServletRequest req) {
try {
System.out.println("length = " + req.getContentLength());
if ( req.getContentLength() > 1000 ) {
  System.out.println("ERROR: File size too big");
}
  FileUpload fu = new FileUpload();
  fu.setSizeMax(1000);
fu.setSizeThreshold(10240);
fu.setRepositoryPath("../webapps/tmpAG");

List fileItems = fu.parseRequest(req);
Iterator i = fileItems.iterator();

while (i.hasNext()) {
System.out.println("in while loop");
FileItem fi = (FileItem)i.next();
String fieldName = fi.getFieldName();
if (fieldName.equals("uploadFile") ||
fieldName.equals("uploadFile")) {
String name = fi.getName();
System.out.println("fileName = " + name);
FileOutputStream fileOutputStream = new
FileOutputStream("../webapps/agFiles/" + name);
fileOutputStream.write(fi.get());
fileOutputStream.close();
fi.delete();
fi = null;
}
}
fu = null;
} catch (FileUploadException e) {
System.out.println("upload FAIL: " + e);
return false;
} catch (Exception e) {
System.out.println("upload FAIL: Other exception: " + e);
return false;
}
return true;
}


-
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: What's the best strategy to handle this kind of thread issues?

2003-09-10 Thread David G Friedman

In IE5 (which is what Id been developing with) the code caused no problems,
but in IE6 clicking the submit button would cause a natural submit to occur
AND my javascripts submit() would also work, resulting in a second request
swiftly following the first (and generally resulting in a error). Sometimes
the first request would get processed second and the page worked, other
times the second one would get processed second and so the error was
displayed. We had to tell the users to 'keey trying' until I had a chance to
fix the problem!


I prevent double submits by using a timer.  On the first submit, the timer
is reset to prevent secondary submit attempts. To assist this, the submit
button is grayed out (disabled).  If the page hasn't gone through in 30
seconds, the grayed out button is enabled for the user try again.  Some
example code follows:

http://www.someUnknownWebSite.com";
onsubmit="return  submitTimer(this);">
Example text 




// 


Note: not all browsers support the disabled property so it won't gray out on
all browsers, but the Date functions I use should still prevent multiple
submits. Feel free to add an alert("Please wait until 30 seconds has passed
to try again.") if that's your preference.

Regards,
David


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



RE: logic forward problem

2003-09-11 Thread David G Friedman
Your path looks like a tile.  I wrote about this
problem a week or two ago and you should've been
able to find it in the archives of this group.
It is documented on the logic forward tag as:

Note: forwarding to Tiles definitions is not
supported from this tag. You should forward to
them from an Action subclass.

Regards,
David

-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 11:12 AM
To: Struts Users Mailing List
Subject: logic forward problem


Hi

I want to send my user to a .jsp page and immediately send him to
the next, without having to click anything on the intermediate page,
or even without having to see this page.
I tried with :

I know this works when you put a global forward in the struts-config
with as forward the target jsp.

I have to use a definition where I want to send my user to, and
when I put the definition as a forward in the global forwards, I get a
pageNotFound error.
This is my global forward


Does someone know what I can do ?

Thanks

Koen




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

-
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: logic forward problem

2003-09-11 Thread David G Friedman
Why not just cut out the middle man and setup the global-forward to use a
tile instead of doing the extra work of forwarding to an action?  The below
is from my struts-config.xml:


  
  

  
  

  
  
  


Then you can logic:forward to config, menu, signOn, or signOff
as you need.

Regards,
David

-Original Message-
From: Van Riper, Mike [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 3:45 PM
To: Struts Users Mailing List
Cc: 'David G Friedman'; [EMAIL PROTECTED]
Subject: RE: logic forward problem


> -Original Message-
> From: David G Friedman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 8:18 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: logic forward problem
>
>
> Your path looks like a tile.  I wrote about this
> problem a week or two ago and you should've been
> able to find it in the archives of this group.
> It is documented on the logic forward tag as:
>
> Note: forwarding to Tiles definitions is not
> supported from this tag. You should forward to
> them from an Action subclass.

Doing what the documentation suggests would work, but, it is not necessary
to do the forward from an Action subclass. You can define an action mapping
that your global forward points to that directly forwards to the tile
definition without having to invoke an action class. This does work. I do
this for the welcome JSP of my current webapp that needs to forward to the
initial webapp tile definition like so:

welcome.jsp:

  <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
  

struts-config.xml:

  

  

  

  

The "page.welcome" reference is a tiles definition reference. Granted, it is
annoying to have to define the global-forward/action pairing to make this
work. However, this is much simpler than going to the trouble of defining an
action subclass just to do this where you would still need to define an
action mapping anyway.

FYI, Van

Mike Van Riper
mailto:[EMAIL PROTECTED]
http://www.baychi.org/bof/struts/

>
> Regards,
> David
>
> -Original Message-
> From: koen boutsen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 11:12 AM
> To: Struts Users Mailing List
> Subject: logic forward problem
>
>
> Hi
>
> I want to send my user to a .jsp page and immediately send him to
> the next, without having to click anything on the intermediate page,
> or even without having to see this page.
> I tried with :
> 
> I know this works when you put a global forward in the struts-config
> with as forward the target jsp.
>
> I have to use a definition where I want to send my user to, and
> when I put the definition as a forward in the global forwards, I get a
> pageNotFound error.
> This is my global forward
>  path="isisLayout.organisations.overview"/>
>
> Does someone know what I can do ?
>
> Thanks
>
> Koen


-
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: suggestion: RequestProcessor hooks/plugins instead of subclassing?

2003-09-12 Thread David G Friedman
Why can't you use Struts 1.1 with modules, and set the
RequestProcessor for each module using the controller 
element? In what way would that method fail your
needs?

Regards,
David

-Original Message-
From: ll [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 12:45 PM
To: [EMAIL PROTECTED]
Subject: suggestion: RequestProcessor hooks/plugins instead of
subclassing?


Here's a thought, and I couldn't find any evidence in the list archives 
of this being discussed before. There are many good reasons to extend 
RequestProcessor, but of course it's not possible to use more than one 
RequestProcessor subclass at a time (unless they extend each other), 
and there seems to be an issue with multiple conflicting 
RequestProcessor subclasses-- I can think of several open source struts 
add-ons that do this, plus of course TilesRequestProcessor, and I can't 
use them all together. Plus, I have extended RequestProcessor myself 
(to provide custom access control).

But what if there were a plug-in interface for RequestProcessor to 
provide extra functionality, instead of overriding methods? Then you 
could combine an arbitrary number of per-request customizations. Maybe 
this is complicated because the RequestProcessor interface is quite 
large, and I'm sure there will always still be *some* reason to extend 
RequestProcessor, but I'm sure most people just override a few common 
methods like processPreprocess(), processRoles(), etc., so at least 
this might take care of 90% of the cases.

Any thoughts on this? Perhaps this should be posted to the struts 
developer list instead... but I thought I'd see if it gets shot down 
here first :)


-
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: DynaValidatorForm and Multi-page validation

2003-09-15 Thread David G Friedman
Anand,

The DynaValidatorForm already has a getPage()/setPage()
set of functions.  Just use those.  My common two problems
were a little different:

a) forgetting to use the 'page="X"' in my
html:javascript tag

b) forgetting to use the formName="someFunctionName"
in the html:javascript tag when I was using
ValidatorActionForms or DynaValidatorActionForms

I hope this helps,
David

-Original Message-
From: Anand M S [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 5:16 PM
To: [EMAIL PROTECTED]
Subject: Re: DynaValidatorForm and Multi-page validation


Hi,
I was also having the same problem, and I dropped validation frame work for
multi page validation and using for regular validation. If you get answer,
please let me know at [EMAIL PROTECTED]

Thanks,
Anand


>From: Natalie D Rassmann <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: DynaValidatorForm and Multi-page validation
>Date: Mon, 15 Sep 2003 09:10:54 -0400
>
>Hi -
>
>I am having trouble with my DynaValidatorForm and Multi-page
>validation.  It does not seem to utilize the page property.
>I tried putting in a page property but I get Struts errors.  When I add
>the page property to the struts-config file for that form, and I add the
>page property as an integer, I get a Null pointer exception.  When I put
>the page property as a string, I get a ClassCastException.  No matter
>what I do, I can't get the page validation to work.  Does anyone have a
>clue?  Can anyone help me??
>
>Thanks in advance,
>
>Natalie
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus


-
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] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread David G Friedman
Casey,

I asked the same question on August 20th an received the below answer from
David Graham.  I believe the bug was with reloading (stop/start) of Tomcat
apps not fully releasing properties.  I was developing and seeing this
problem after about 20 or so stop/start actions.  I still haven't deployed
to production so I can't answer how it works in production.  Perhaps you can
make a cron/scheduled job to stop/restart tomcat at some off-peak time
(midnight for 30 seconds?)

Regards,
David

***
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 1:20 PM
To: Struts Users Mailing List
Subject: Re: Out of Memory Error on Struts 1.1, Tomcat 4.1.27, Linux JDK
1.4.2?


There's a bug report on this issue:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14042

This only happens when reloading the app and will be fine in production.

David
***
-Original Message-
From: Casey Forbes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 8:21 AM
To: [EMAIL PROTECTED]
Subject: [OT] OutOfMemoryError when I have plenty of heap


Hi everyone,

There are many smart people on this list and I haven't been
able to get anywhere with this problem, so...

I'm running 12 Struts-based apps under Resin 2 on a Linux box.
(I don't believe that this is a Struts problem - this is
just some background for you)

Every few days (sometimes this will happen after 2 days, sometimes
5 or 6) I get an OutOfMemory error which stops the JVM...
I have plenty of room in the heap (the machine has 1 GB or
RAM and I have the max heap size -Xmx set to 896 MB) Just before
it dies there are a few attempts to free more memory.
>From the GC log:

Full GC 227765K->132728K(274140K), 3.2615930 secs
Full GC 132729K->132728K(274140K), 2.5218730 secs
Full GC 132803K->120231K(274140K), 3.1998370 secs
OutOfMemoryError

As you can see - I'm only using 132 MB after the first
GC which leaves plenty Runtime.freeMemory()
etc. returns similar results..

Does anybody have any ideas? I don't even know where to look
next... It doesn't look like a profiler would help me here
since I don't have tons of objects filling up my memory.

Thanks,
Casey



-
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] Lightweight helper libraries for reporting?

2003-09-19 Thread David G Friedman
Joe,

I've been planning on using the displaytag library for that stuff when I get
to it next week.  Why won't the decorator classes work for you to perform
summations of rows, groups, and so forth?  I'm wondering why it won't work
for you in case the same reasons might apply to my application

For reference, an example of the decorators for summations of groups and
rows is here:
http://edhill.its.uiowa.edu/display-examples/example-callbacks.jsp

With their Java decorator class code example code here:
http://edhill.its.uiowa.edu/display-examples/TotalWrapper.java.txt

Regards,
David

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 5:56 PM
To: Struts Users Mailing List
Subject: [OT] Lightweight helper libraries for reporting?


Does anyone know of any good libraries for collecting report data?

To be clear -- I'm not interested in a full-scale reporting library
like JasperReports.  I've looked at it, and while it looks cool, I
have some specific requirements it doesn't serve.  I've also looked
at the Display tag library, and while it has its good and bad opints,
it's basically not what I need.

What I'm looking for is something into which I can throw a bunch of
beans of a common type and then ask it to do things like grouping,
group totals, grand totals, and the like.  Basically, the model of a
report data set, independent of how it is populated or how it would
be displayed.

Have you seen my library?

Thanks in advance,
Joe


http://sourceforge.net/projects/jasperreports/
http://sourceforge.net/projects/displaytag/

--
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"If nature worked that way, the universe would crash all the time."
--Jaron Lanier

-
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: problem with String[] [SOLVED] ? was hibernate the issue

2003-09-24 Thread David G Friedman
I'd like to know what your Hibernate problem was
since I'm using hibernate and never had a problem
with it saving data, unless I had the wrong
information in the object, causing a Hibernate
Exception, which I caught.

Do you have "show_sql=true" in your hibernate.properties
or hibernate.cfg.xml file?

It shows me what the SQL statement is when it is performed,
such as:

Hibernate: select login0_.vendorid as vendorid, login0_.Login as Login,
login0_.Password as Password, login0_.type as type from company login0_
where (login0_.Login=? )

I'm also using transaction syntax like so:

SessionFactory sf = // however you initialize it, I use
// the hibernate Struts pluging from hibernate.org
Session sess = sf.openSession();
Transaction tx = sess.beginTransaction();
// do something
tx.commit()
etc... ;

I had plenty of Hibernate errors when I started
until I started using the SchemaExport and
hbm2ddl classes to create my relevant objects.

Regards,
David

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 2:42 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED] ? was hibernate the issue


I'm guessing at the moment that hibernate is behind some of this. How? I
don't know because in the log files, hibernate is saying that its
storing data into the database but, when the table is checked, data has
not been entered. Another thing, sometimes it stores the data into the
table and sometimes it does not. Weird. I guess some misconfig, but at
the moment back to hand coding SQL :-(

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 11:05 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]

I'm using eclipse and tomcat.. Previously have delivered another project
which was ok. Confused



-Original Message-
From: Mathew, Manoj [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 9:33 PM
To: Struts Users Mailing List
Subject: RE: problem with String[] [SOLVED]

I had this issue with catching with Visual Age couple of times. I even
restarted Visual age and tried but nothing worked and i got confused
about my code. But when i restarted the machine, things started
working.I moved to WSAD now and here things are in a pretty good shape.

thanks
manoj

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:29 AM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]


Its solved, thank god but its very confusing.. I didn't change
anything.. but today it ran.. :) Seems like theres some caching going on
at the server since the updated dynaactionform are not updated with the
latest. I'm using tomcat 4.1.1.27. Is anyone out there having this same
problem? If I'm the only one.. maybe it's some setting issue.. if not
then a bug should be logged

Amin

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:52 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I'm using a DynaActionForm.. The code tip is for action form. ( or so I
think )

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I think this is what you are asking:
http://www.husted.com/struts/tips/006.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:49 PM
To: Struts Users Mailing List
Subject: Re: problem with String[]


Hi, i really need to get this working. anyone experienced the same
thing?

> Something to note, i have also  name="transactionVO" property="transactionId" /> in the
>  loop
>
>> In the dynaActionForm i have specified paidAmount as String[]. In
jsp,
>> 
>> is used. The html:text is in an  loop.
>> Somehow the data doesn't want to move to the dynaactionform.
>>
>> What is the best way to do this?
>>
>> Thanks in advance
>> Amin
>>


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



RE: ApplicationResources.properties

2003-09-24 Thread David G Friedman
I'm haunted too.  I changed a hibernate class,
had to fix a few action classes to work with it, 
and suddenly my validation framework (hell, my 
whole application, cannot see my message resources,
the struts-config.xml (only one, no modules),
validation.xml, and JSP are unchanged.

My message resources line in my struts-config.xml
is below and there are no errors in Tomcat about
anything being out of place or the wrong syntax.


This is too freaky.  Does Anyone have any 
suggestions where to look next?

Regards,
David

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:16 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: ApplicationResources.properties


Chen-
Here is my struts-config.xml



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





Anything amiss?
Thanks,
-M
- Original Message - 
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 24, 2003 4:57 PM
Subject: RE: ApplicationResources.properties


> Have u tried the Struts config style?
> I noticed that you are using the old style of init-param
> Look at my earlier response.
> -Tim
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 24, 2003 4:54 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: ApplicationResources.properties
> 
> 
> Its in WEB-INF/classes
> Tomcat doesnt see it
> 
> Thanks anyway,
> -Martin
> - Original Message - 
> From: "Wendy Smoak" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 24, 2003 3:27 PM
> Subject: RE: ApplicationResources.properties
> 
> 
> Martin wrote: 
> > What mechanism does struts use to find the
> ApplicationResources.properties
> > file? All attempts by Tomcat to locate the file result in failure
> > 
> >   application
> >   ApplicationResources
> > 
> 
> Where did you put the file?  With the config above, try putting it
> directly in in WEB-INF/classes.  As Navjot noted, the file needs to be
> visible on the classpath.
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University, PA, IRM
> 
> -
> 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]



RE: ApplicationResources.properties

2003-09-24 Thread David G Friedman
Thanks for spelling it out for me, it helped
find the problem.  Somehow it was sitting under 

WEB-INF/classes/java/resources/application.properties

instead of 

WEB-INF/classes/resources/application.properties

Talk about a spooky Eclipse changes.  I refactored
a few things when I did the hibernate changes I
mentioned but I'm pretty sure I didn't refactor 
the "application.resources" file, though it seems
Eclipse took that liberty (yes, I know I can't
blame Eclipse, just my mistyping/fat-fingering).

David

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 6:02 PM
To: 'Struts Users Mailing List'
Subject: RE: ApplicationResources.properties


Hmm I'm not sure David
But based on ur message-resources it will try to look for:

WEB-INF/classes/resources/application.properties.
Is that how you have it set up?
-Tim

-Original Message-
From: David G Friedman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 5:24 PM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties


I'm haunted too.  I changed a hibernate class,
had to fix a few action classes to work with it, 
and suddenly my validation framework (hell, my 
whole application, cannot see my message resources,
the struts-config.xml (only one, no modules),
validation.xml, and JSP are unchanged.

My message resources line in my struts-config.xml
is below and there are no errors in Tomcat about
anything being out of place or the wrong syntax.


This is too freaky.  Does Anyone have any 
suggestions where to look next?

Regards,
David

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:16 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: ApplicationResources.properties


Chen-
Here is my struts-config.xml



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





Anything amiss?
Thanks,
-M
- Original Message - 
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 24, 2003 4:57 PM
Subject: RE: ApplicationResources.properties


> Have u tried the Struts config style?
> I noticed that you are using the old style of init-param
> Look at my earlier response.
> -Tim
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 24, 2003 4:54 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: ApplicationResources.properties
> 
> 
> Its in WEB-INF/classes
> Tomcat doesnt see it
> 
> Thanks anyway,
> -Martin
> - Original Message - 
> From: "Wendy Smoak" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 24, 2003 3:27 PM
> Subject: RE: ApplicationResources.properties
> 
> 
> Martin wrote: 
> > What mechanism does struts use to find the
> ApplicationResources.properties
> > file? All attempts by Tomcat to locate the file result in failure
> > 
> >   application
> >   ApplicationResources
> > 
> 
> Where did you put the file?  With the config above, try putting it
> directly in in WEB-INF/classes.  As Navjot noted, the file needs to be
> visible on the classpath.
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University, PA, IRM
> 
> -
> 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: [EMAIL PROTECTED]



RE: Know of any good Calendar Tag Libraries?

2003-09-24 Thread David G Friedman
What about Matt Kruse's (very) beta taglib mentioned Sept 9?
http://www.mattkruse.com/javascript/javascripttoolbox.zip

I wonder if it's any further along.

-David

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 6:23 PM
To: '[EMAIL PROTECTED]'
Subject: Know of any good Calendar Tag Libraries?


Anyone know of a good Calendar Tag Library - that renders calendars like the
ones you see on blogs (not a pop-up)? I found this one
(http://tinyurl.com/ok95) from Coldbeans, but it's $50 - whereas free is
always better. We just need it to render a calendar on a page and gray out
certain days (with CSS) to say that day is not available.

Thanks,

Matt

-
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: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-24 Thread David G Friedman
What about Matt Kruse's (very) beta taglib mentioned August 21st?
http://www.mattkruse.com/javascript/javascripttoolbox.zip

I wonder if it's any further along.

-David

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 6:23 PM
To: '[EMAIL PROTECTED]'
Subject: Know of any good Calendar Tag Libraries?


Anyone know of a good Calendar Tag Library - that renders calendars like the
ones you see on blogs (not a pop-up)? I found this one
(http://tinyurl.com/ok95) from Coldbeans, but it's $50 - whereas free is
always better. We just need it to render a calendar on a page and gray out
certain days (with CSS) to say that day is not available.

Thanks,

Matt

-
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: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-24 Thread David G Friedman
Matt,

My mistake.  I thought that was the recent post about
in-page ones using layers and css so it was in-page.
I can't find it now searching the java archives.  I
thought we had a whole thread about this a month or
two ago.

Regards,
David

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 6:46 PM
To: 'Struts Users Mailing List'
Subject: RE: Know of any good Calendar Tag Libraries? (Sorry, that was
Aug 21)


I'm aware of Matt's Library (and I love it), but I don't want a pop-up, I
want an in-page calendar.

Matt

-----Original Message-
From: David G Friedman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:37 PM
To: Struts Users Mailing List
Subject: RE: Know of any good Calendar Tag Libraries? (Sorry, that was
Aug 21)


What about Matt Kruse's (very) beta taglib mentioned August 21st?
http://www.mattkruse.com/javascript/javascripttoolbox.zip

I wonder if it's any further along.

-David

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 6:23 PM
To: '[EMAIL PROTECTED]'
Subject: Know of any good Calendar Tag Libraries?


Anyone know of a good Calendar Tag Library - that renders calendars like the
ones you see on blogs (not a pop-up)? I found this one
(http://tinyurl.com/ok95) from Coldbeans, but it's $50 - whereas free is
always better. We just need it to render a calendar on a page and gray out
certain days (with CSS) to say that day is not available.

Thanks,

Matt

-
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]



RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-25 Thread David G Friedman
This calendar seems to perform like the one I remember
reading about (but can't find), but it looks a little
different than I remember.  It's not taglib, but all
Javascript and CSS/DHTML.

http://dynarch.com/mishoo/calendar.epl

Regards,
David

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Navneet Karnani
Sent: Thursday, September 25, 2003 3:58 AM
To: [EMAIL PROTECTED]
Subject: Re: Know of any good Calendar Tag Libraries? (Sorry, that was
Aug 21)


So, did you find it ? If yes, let me know too. I was looking out for
something similar.

- Navneet

Matt Raible said the following on 25/09/2003 4:15 AM:

> I'm aware of Matt's Library (and I love it), but I don't want a pop-up, I
> want an in-page calendar.
>
> Matt
>
> -Original Message-
> From: David G Friedman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 24, 2003 4:37 PM
> To: Struts Users Mailing List
> Subject: RE: Know of any good Calendar Tag Libraries? (Sorry, that was
> Aug 21)
>
>
> What about Matt Kruse's (very) beta taglib mentioned August 21st?
> http://www.mattkruse.com/javascript/javascripttoolbox.zip
>
> I wonder if it's any further along.
>
> -David
>
> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 24, 2003 6:23 PM
> To: '[EMAIL PROTECTED]'
> Subject: Know of any good Calendar Tag Libraries?
>
>
> Anyone know of a good Calendar Tag Library - that renders calendars like
the
> ones you see on blogs (not a pop-up)? I found this one
> (http://tinyurl.com/ok95) from Coldbeans, but it's $50 - whereas free is
> always better. We just need it to render a calendar on a page and gray out
> certain days (with CSS) to say that day is not available.
>
> Thanks,
>
> Matt
>
> -
> 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]



RE: [OT] RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-25 Thread David G Friedman
It's a shockwave calendar... Is it:

a) free?
b) how would you customize it to post
to the location of your choice?

Regards,
David

-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:30 AM
To: Struts Users Mailing List
Subject: [OT] RE: Know of any good Calendar Tag Libraries? (Sorry, that
was Aug 21)


I came across one of the sexiest calendar's I've ever seen here:

http://secure.basshall.com/basshall/events.jsp

It's Flash, but it's small, fast, and responsive. Love to get my hands on
the source for that baby. The only thing it seems to be lacking is having
the date highlighted when that date has an associated event. Other than that
it's tight.

-= J

> -----Original Message-
> From: David G Friedman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 10:26 AM
> To: Struts Users Mailing List
> Subject: RE: Know of any good Calendar Tag Libraries? (Sorry, that was
> Aug 21)
>
>
> This calendar seems to perform like the one I remember
> reading about (but can't find), but it looks a little
> different than I remember.  It's not taglib, but all
> Javascript and CSS/DHTML.
>
> http://dynarch.com/mishoo/calendar.epl
>
> Regards,
> David
>
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Navneet Karnani
> Sent: Thursday, September 25, 2003 3:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Know of any good Calendar Tag Libraries? (Sorry, that was
> Aug 21)
>
>
> So, did you find it ? If yes, let me know too. I was looking out for
> something similar.
>
> - Navneet
>
> Matt Raible said the following on 25/09/2003 4:15 AM:
>
> > I'm aware of Matt's Library (and I love it), but I don't
> want a pop-up, I
> > want an in-page calendar.
> >
> > Matt
> >
> > -Original Message-
> > From: David G Friedman [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 24, 2003 4:37 PM
> > To: Struts Users Mailing List
> > Subject: RE: Know of any good Calendar Tag Libraries?
> (Sorry, that was
> > Aug 21)
> >
> >
> > What about Matt Kruse's (very) beta taglib mentioned August 21st?
> > http://www.mattkruse.com/javascript/javascripttoolbox.zip
> >
> > I wonder if it's any further along.
> >
> > -David
> >
> > -Original Message-
> > From: Matt Raible [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 24, 2003 6:23 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Know of any good Calendar Tag Libraries?
> >
> >
> > Anyone know of a good Calendar Tag Library - that renders
> calendars like
> the
> > ones you see on blogs (not a pop-up)? I found this one
> > (http://tinyurl.com/ok95) from Coldbeans, but it's $50 -
> whereas free is
> > always better. We just need it to render a calendar on a
> page and gray out
> > certain days (with CSS) to say that day is not available.
> >
> > Thanks,
> >
> > Matt
> >
> >
> -
> > 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: [EMAIL PROTECTED]



RE: DisplayTag library

2003-09-26 Thread David G Friedman
Tim,

I know what you mean.  Are you talking version 
0.8.5 or 1.0-b1?  The 0.8.5 are offically:
http://edhill.its.uiowa.edu/display 

The 1.0-b1 are:
http://displaytag.sourceforge.net/

With downloads that don't seem to include
pre-built (i.e. html, just xml) javadocs.
I downloaded them a few days ago but haven't
got to them yet.  The api docs are:
http://displaytag.sourceforge.net/apidocs/
And have a class org.displaytag.decorator
which contains the decorator classes.

That beta code also lists live examples at:
http://www.displaytag.org/displaytag-1.0-b1-examples/index.jsp

Regards,
David

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 12:33 PM
To: 'Struts Users Mailing List'
Subject: RE: DisplayTag library


> Here's a temporary demo site - this URL will self-destruct as 
> soon as the "live examples" is working:
> 
> http://raibledesigns.com/displaytag

Thanks, Matt. But that still leaves the question of "ColumnDecorator". The
"example-decorator.jsp" page shows what a decorator can do and refers me to
the Javadoc tor TableDecorator, then mentions that ColumnDecorator exists.
But where is the Javadoc for the Decorator classes?


--
Tim Slattery
[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: URGENT - not finding applications.properties

2003-09-26 Thread David G Friedman
Are you struts related .jar files all locally loaded under your application
in WEB-INF/lib or are they in a common shared area for your application
server?

Regards,
David

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 1:26 PM
To: Struts-Users
Subject: URGENT - not finding applications.properties
Importance: High


Hi;

I have had struts working fine in one web application. I then added a second
web application - in it's own directory with it's own struts files, web.xml
file, etc.

Now when I run the new application (which gets loaded first) finds it's
application.properties but the second application cannot find it's
application.properties.

My web.xml is:

...
  
   application
   resources.application
  
...

thanks - dave


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



RE: DisplayTag library

2003-09-26 Thread David G Friedman
Tim,

That class documentaiton reads that you should implement the new
ColumnDecorator interface on your object.  I think that's convenient, to
keep the decorator in your class object.

Regards,
David

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 1:23 PM
To: 'Struts Users Mailing List'
Subject: RE: DisplayTag library


> got to them yet.  The api docs are:
> http://displaytag.sourceforge.net/apidocs/

Excellent, there they are. Hmm...ColumnDecorator has one constructor, which
is deprecated, and one method which is also deprecated. That doesn't leave
much! I guess I could get along without a constructor, but if I don't use
the "decorate" method, there's not much point to the class! I guess I'll
have to use it in spite of the deprecation.


--
Tim Slattery
[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: DisplayTags

2003-09-26 Thread David G Friedman
Tim,

The StringEscapeuytils class is in the
commons-lang-2.0.jar included under the
displaytag-1.0-b1-examples.war in the
displaytag-1.0-b1-bin.zip download, if
you're using the 1.0-b1 release. :)

Regards,
David

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 3:12 PM
To: Struts User List ([EMAIL PROTECTED])
Subject: DisplayTags


One more question as I get closer to getting this to run. I've got things
arranged now, and am trying to get a  tag to run. I'm
getting an error saying that it can't find
org/apache/commons/lang/StringEscapeUtils. And, sure enough, in my
commons-lang.jar file - which came with Struts 1.1 - there is no such class.


Looking for a newer commons-lang.jar at apache.org gives no joy, they have
only the "ramping up" page for the commons project.

What do I need to do?

--
Tim Slattery
[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: can not get forward page in an action

2003-10-03 Thread David G Friedman
You are seem to be trying to access Struts actions
and tiles in a few incorrect ways.

You are using a few struts tags incorrectly.
When you use the "html" tags, you normally
need to go through an action first so it can
setup the ActionForm automatically.  Otherwise,
you'll probably have a null pointer exception
because the ActionForm (unless you put it in
the session scope during a previous request)
won't exist.

When you use tiles in a JSP, unless you add
the definition (or import it) into the JSP,
you can only use the JSP from within the
Struts as it requires the TilesRequestProcessor.

Your taglib import lines in your JSP's are
nonstandard.  Usually, the web.xml section
"taglib-uri" is used as the "uri=..." line
at the top of your JSPs, not the section you
have used which appears to be the section
"taglib-location".

That should get you over the hump, assuming
you put the files in the appropriate places:
1) /
2) /WEB-INF
3) /WEB-INF/classes

I can't use the files you gave me to find any
other errors because I don't have your
com.ipedo.* classes to use or re-Byte-Compile
your java classes.

Lastly, I can't see what Richard is talking
about because the Zip file you included
shows you spelled 'String target = "success"
the same way you put it in your action's
forward.

Regards,
David Friedman

-Original Message-
From: Xiuyu Zhang [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 4:57 PM
To: Struts Users Mailing List
Subject: Re: can not get forward page in an action


Thanks for answering this question.  This is my first
time joining any public mailing list.

I check the log already, I did not see any errors
there when action forwarding.

Not sure you can see my attached files.  but when I
try to access sucesstilepage.jsp by itself, I did get
such an error:
java.lang.NullPointerException
at
org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:527)
at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:486
)
at
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:444)
at
jsp_servlet.__sucesstilepage._jspService(__sucesstilepage.java:161)
at
weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:431)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6310)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2569)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)


Katelyn
--- [EMAIL PROTECTED] wrote:
> Are you checking all your error logs?
>
> I sometimes get a blank page if there was an error
> while compiling the jsp
> (if I look at the source of the page only the html
> tags up to the struts
> tags are displayed).
>
> Denis
> - Original Message -
> From: "Xiuyu Zhang" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 03, 2003 4:39 PM
> Subject: can not get forward page in an action
>
>
> > Not sure my subject is confused everyone.  I just
> > resend this message.
> >
> > Hi all,
> >
> > I am writing a simple application to learn how to
> use
> > tiles in struts 1.1 with weblogic 8.1.  but after
> the
> > action forward to another jsp, it's an empty page.
> > This problem happen even when I forward my action
> to a
> > simple 'hello world' jsp page.  I
> > attached the directory I used.  The steps I
> proceeded
> > are below:
> >
> > put struct-blank directory in application
> directory:
> > 1. write a first.jsp
> > 2. write TestForm.java and TestAction.java
> > 3. configure struts-config.xml(add form-bean and
> > action)
> > 4. change action using ActionComponentSevlet in
> > web.xml
> > 5 configure a definition in tile-defs.xml
> > 6. start the server and
> > http://localhost:7001/struct-blank2/first.jsp
> > 7 click the submit button
> > 8.  I got an empty page in stead of a word
> success.
> >
> > On weblogic configuration, I put struts.jar in the
> > server/lib.
> >
> > I also try the same files in tomcat 5.0 and get
> the
> > same result.
> >
> > Thanks in advance for your help.
> > Katelyn
> >
> >
> >
> >
> >
> > __
> > Do you Yahoo!?
> > The New Yahoo! Shopping - with improved product
> 

RE: can not get forward page in an action

2003-10-03 Thread David G Friedman
You list Plug-Ins so you must be using Struts 1.1
so here are the other problems:

1. Your "web.xml" needs to use the servlet-class:
org.apache.struts.action.ActionServlet

2. The function name automatically called is "execute"
not "service".  So, not finding an "execute" in your
TestAction class, it uses the default "execute" which
does nothing, hence the blank page.

3. Relating to #2 above, the "execute" function should
be declared properly and is missing the "throws ..."
at the end of the declaration (i.e. after the
"...(mapping, form request, response) ADD_HERE {"

4. You need to fix where you put "html" and "tiles"
in your sucesstilepage.jsp because you seem to accidentally
invoke the html tags using the prefix "tiles" and the
tiles as the prefix "html".  (Thus causing a big JSP
explosion)

5. TestForm is an ActionForm and cannot have a
 tag.  Those are for dynaforms only.


Your tiles-defs references work, but, technically,
you spelled the jsp names and the names in the tiles-defs.xml
page with success having one "c" when it should have two.


Email me privately if you need me to zip that up and
send it to you for comparison if the instructions are
missing anything.

Regards,
David

-Original Message-
From: Xiuyu Zhang [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 5:52 PM
To: Struts Users Mailing List
Subject: RE: can not get forward page in an action


Thanks, David.

I did put my file in the appropriate place.  I aggree
with you in lots of points.

I actually did not retieve the form after the forward
action, I just want a button there to click an forward
an action to a jsp pages just contain a word
'successful'.

I make some changes according to your advice:
change the taglib by using 'uri=...', import the
attributes in the jsp file. I got the same thing.

The com.ipedo  import is not useful for this
class.  sorry about that.  You can delete that.  I
wrote a longer action class, but it doesn't work for
me.  I delete most of the part of action class but
forgot the import part.

I attached a new zip for you to try.

Thanks a lot.

Katelyn

--- David G Friedman <[EMAIL PROTECTED]> wrote:
> You are seem to be trying to access Struts actions
> and tiles in a few incorrect ways.
>
> You are using a few struts tags incorrectly.
> When you use the "html" tags, you normally
> need to go through an action first so it can
> setup the ActionForm automatically.  Otherwise,
> you'll probably have a null pointer exception
> because the ActionForm (unless you put it in
> the session scope during a previous request)
> won't exist.
>
> When you use tiles in a JSP, unless you add
> the definition (or import it) into the JSP,
> you can only use the JSP from within the
> Struts as it requires the TilesRequestProcessor.
>
> Your taglib import lines in your JSP's are
> nonstandard.  Usually, the web.xml section
> "taglib-uri" is used as the "uri=..." line
> at the top of your JSPs, not the section you
> have used which appears to be the section
> "taglib-location".
>
> That should get you over the hump, assuming
> you put the files in the appropriate places:
> 1) /
> 2) /WEB-INF
> 3) /WEB-INF/classes
>
> I can't use the files you gave me to find any
> other errors because I don't have your
> com.ipedo.* classes to use or re-Byte-Compile
> your java classes.
>
> Lastly, I can't see what Richard is talking
> about because the Zip file you included
> shows you spelled 'String target = "success"
> the same way you put it in your action's
> forward.
>
> Regards,
> David Friedman
>
> -Original Message-
> From: Xiuyu Zhang [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 03, 2003 4:57 PM
> To: Struts Users Mailing List
> Subject: Re: can not get forward page in an action
>
>
> Thanks for answering this question.  This is my
> first
> time joining any public mailing list.
>
> I check the log already, I did not see any errors
> there when action forwarding.
>
> Not sure you can see my attached files.  but when I
> try to access sucesstilepage.jsp by itself, I did
> get
> such an error:
> java.lang.NullPointerException
>   at
>
org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:527)
>   at
>
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:486
> )
>   at
>
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:444)
>   at
>
jsp_servlet.__sucesstilepage._jspService(__sucesstilepage.java:161)
>   at
>
weblogic.servlet.jsp.JspBase.service(JspBase.ja

RE: Versioning Problem?

2003-10-08 Thread David G Friedman
Do you have a file "WEB-INF/classes/ApplicationResources" ?
According to the name you put in your struts-config.xml file,
that is where it should be. If it were "resources.ApplicationResources"
then it would be in "WEB-INF/classes/resources/ApplicationResources".

Also, you program might not work if you have a struts config
file named "Struct-config.xml".   Was that typo or is that how
you have it described in your web.xml file?

Regards,
David

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 9:58 PM
To: [EMAIL PROTECTED]
Subject: Versioning Problem?


I have this problem with my Struts. This java.lang.NullPointers alwasy
telling me that i couldnt find the MessageResources files. I am running
Tomcat 4.0.6 and Struts 1.1 . Is that a problem with the versioning
issues? or what could be the cause?... any ideas?

Excpetion
=
index.jsp [-1:-1] java.lang.ExceptionInInitializerError:
java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:577)
at
org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerTag.java:10
8)
at java.lang.Class.forName0(Native Method
at java.lang.Thread.run(Thread.java:479)


Struct-config.xml
==






web.xml
=-==


   application
  ApplicationResources

..
.
  
  
index.jsp
  



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



RE: How to use tiles for Error Pages?

2003-10-10 Thread David G Friedman
Eric,

If the page isn't accessed through a struts action, you need to insert the
tiles definition before your tiles:insert commands like so:


Regads,
David

-Original Message-
From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 10:39 AM
To: [EMAIL PROTECTED]
Subject: How to use tiles for Error Pages?


I've been able to use tiles for most of my pages, but how can I use it for
an error page, like 404.jsp or 500.jsp?  For my normal pages, I've declared
them in my tiles-config.xml and then the JSP is quite simple, and that is
all working fine.  Since I need to define my error pages in my web.xml, that
has no knowledge of tiles or even struts, so the error page must be complete
without a tiles definition.  How can I specify in the actually JSP to
reference/extends the track.default definition?
  

  
  
  
  
  

  

I tried a 404.jsp like this:
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>


  
  
404
  


But I'm getting this Exception:
  
<[WebAppServletContext(244212,track,/track)] Root cause of ServletException
javax.servlet.jsp.JspException: Error - Tag Insert : No value defined for
bean 'track.default' with property 'null' in scope 'request'.
at
org.apache.struts.taglib.tiles.InsertTag.processBean(InsertTag.java:667)
at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:491
)
at
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:451)
at jsp_servlet.__404._jspService(__404.java:106)

I'm confused as where to look next.  Any help would be appreciated.

Thanks.

Eric

-
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]