Using SSL Extension and Workflow Extension together

2004-03-22 Thread Scott Ryan
I would like to use the Workflow extension and the SSL/Non SSL extension
together.  Is this possible?  It looks like they replace the capability of
the request processor and that they are mutually exclusive.  Is there a way
to use both?  I am using tiles to support my application.  I am able to get
them working one at a time but need to combine them together for some
applications.

Thanks

Scott D. Ryan
Director, J2EE Architecture and Development
Soaring Eagle LLC.
9742 S. Whitecliff Place
Highlands Ranch, Co. 80129
(303) 263-3044
[EMAIL PROTECTED]
BEA Technical Director



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



Support of wrap parameter in textarea jsp tag

2001-10-27 Thread Scott Ryan

I noticed that the wrap parameter is not supported in the textarea jsp
tag in html tags.  This parameter allows the text to wrap within the
text area.  Is this an oversight or is there another way to accomplish
this.

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Re: Struts capability to support file downloads

2001-10-05 Thread Scott Ryan

On Netscape everything works as expected if I set the MIME type to
application/rtf but still doesn't work on Internet Explorer 5.0.  This
leads me to think it is the selection of my MIME type.  Basically I am
trying to download plain text.  

I only get one prompt box on Netscape by the way.

Any ideas on the proper MIME type or why Internet Explorer is confused
other than it is from Microsoft.

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 10/05/01 02:50PM >>>
I have tried the following code and am getting rather strange
behaviour.

filename = "Download.qif";
  inResponse.setContentType("text/plain");
  inResponse.setHeader("Content-disposition",
  "attachment;filename=\"" + filename + "\"");
  inResponse.addHeader("Content-description", "My Description");
  ServletOutputStream outStream = inResponse.getOutputStream();
  downloadProcessor.writeData(outStream, transactionList,
  downloadData.getAccountNumber(), accountType, fromDate,
toDate);
  outStream.flush();
  outStream.close();

When I get the box the first time if I select to download to a file
the
filename is the same as my struts do action and the file contains the
html from the screen that I am currently viewing.  

If I choose instead to view the data I then get another selection box
and if I then choose to save to a file I get the correct data.

Any ideas on what I am missing

Thanks
>>> [EMAIL PROTECTED] 10/04/01 01:14PM >>>
The "always ask..." checkbox for me is checked and greyed.  If I
choose

save to disk, then it saves fine and exits, but if I choose to open
with an 
application, then the box comes up twice.  Now, if webservers can
create 
the proper headers for downloads, I should be able to as well.  I just

don't know the proper "open sesame"  Tom

At 02:24 PM 10/4/2001 -0400, you wrote:


>Hi Tom,
>
>Not sure on how to stop it.  Is it something to do with the checkbox
on IE's
>File Download dialog which says "Always ask..."?
>
>Dave
>
>PS  I get 2 dialogs on netscape two!
>
>
>
>
>Tom Tibbetts <[EMAIL PROTECTED]> on 10/04/2001
02:07:19
>PM
>
>Please respond to [EMAIL PROTECTED]


>
>To:   [EMAIL PROTECTED] 
>cc:(bcc: David Hay/Lex/Lexmark)
>Subject:  Re: Struts capability to support file downloads
>
>
>
>Hi Scott.
>not that I know of.  I ended up grabbing the ServletOutputStream from
the
>response and streaming my file to the client that way.  On the JSP, I
>create a link that points to action mapping I've designated to do the
>download. Remember to set the content type of the file.  For the
header, do
>the following:
>  response.setHeader(
>  "Content-Disposition",
>  "attachment; filename=\"" +
>  fileName +
>  "\"" );
>
>now, a question for all those who've done this before me.  When I do
this,
>IE will pop up two dialog boxes in a row asking if I wish to save or
open
>an application to deal with the download.  Netscape will just open up
a
>file save dialog box.  Is there anyway to keep IE from doing the two
dialog
>boxes???:
>
>
>At 11:47 AM 10/4/2001 -0600, you wrote:
> >I noticed there is support in struts to allow a person to load a
file
> >from their local station to the server.
> >
> >Is there support to go the other direction?  I have an application
that
> >allows the user to download data to a file on their local system. 
I
> >would like to create the data on the server and then pop up a
window
to
> >allow the user to select a location to store the data on their box.

I
> >would then stream the data to that file on their system.
> >
> >Any suggestions would be appreciated or pointers to other sites
that
> >might discuss this.
> >
> >Thanks
> >
> >Scott Ryan
> >Developer
> >First Bank Data Corporation
> >Work: (303) 235-1485
> >Cell:(303 263-3044


Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Re: Struts capability to support file downloads

2001-10-05 Thread Scott Ryan

I have tried the following code and am getting rather strange
behaviour.

filename = "Download.qif";
  inResponse.setContentType("text/plain");
  inResponse.setHeader("Content-disposition",
  "attachment;filename=\"" + filename + "\"");
  inResponse.addHeader("Content-description", "My Description");
  ServletOutputStream outStream = inResponse.getOutputStream();
  downloadProcessor.writeData(outStream, transactionList,
  downloadData.getAccountNumber(), accountType, fromDate,
toDate);
  outStream.flush();
  outStream.close();

When I get the box the first time if I select to download to a file the
filename is the same as my struts do action and the file contains the
html from the screen that I am currently viewing.  

If I choose instead to view the data I then get another selection box
and if I then choose to save to a file I get the correct data.

Any ideas on what I am missing

Thanks
>>> [EMAIL PROTECTED] 10/04/01 01:14PM >>>
The "always ask..." checkbox for me is checked and greyed.  If I choose

save to disk, then it saves fine and exits, but if I choose to open
with an 
application, then the box comes up twice.  Now, if webservers can
create 
the proper headers for downloads, I should be able to as well.  I just

don't know the proper "open sesame"  Tom

At 02:24 PM 10/4/2001 -0400, you wrote:


>Hi Tom,
>
>Not sure on how to stop it.  Is it something to do with the checkbox
on IE's
>File Download dialog which says "Always ask..."?
>
>Dave
>
>PS  I get 2 dialogs on netscape two!
>
>
>
>
>Tom Tibbetts <[EMAIL PROTECTED]> on 10/04/2001
02:07:19
>PM
>
>Please respond to [EMAIL PROTECTED]

>
>To:   [EMAIL PROTECTED] 
>cc:(bcc: David Hay/Lex/Lexmark)
>Subject:  Re: Struts capability to support file downloads
>
>
>
>Hi Scott.
>not that I know of.  I ended up grabbing the ServletOutputStream from
the
>response and streaming my file to the client that way.  On the JSP, I
>create a link that points to action mapping I've designated to do the
>download. Remember to set the content type of the file.  For the
header, do
>the following:
>  response.setHeader(
>  "Content-Disposition",
>  "attachment; filename=\"" +
>  fileName +
>  "\"" );
>
>now, a question for all those who've done this before me.  When I do
this,
>IE will pop up two dialog boxes in a row asking if I wish to save or
open
>an application to deal with the download.  Netscape will just open up
a
>file save dialog box.  Is there anyway to keep IE from doing the two
dialog
>boxes???:
>
>
>At 11:47 AM 10/4/2001 -0600, you wrote:
> >I noticed there is support in struts to allow a person to load a
file
> >from their local station to the server.
> >
> >Is there support to go the other direction?  I have an application
that
> >allows the user to download data to a file on their local system. 
I
> >would like to create the data on the server and then pop up a window
to
> >allow the user to select a location to store the data on their box. 
I
> >would then stream the data to that file on their system.
> >
> >Any suggestions would be appreciated or pointers to other sites
that
> >might discuss this.
> >
> >Thanks
> >
> >Scott Ryan
> >Developer
> >First Bank Data Corporation
> >Work: (303) 235-1485
> >Cell:(303 263-3044


Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Re: Struts capability to support file downloads

2001-10-04 Thread Scott Ryan

The technique appears to work but after the download I want to forward
to another page and it appears that if you return a forward to struts it
has a problem because you have already used the response.   
Do I have to return a null when I am done with the download?



Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 10/04/01 01:14PM >>>
The "always ask..." checkbox for me is checked and greyed.  If I choose

save to disk, then it saves fine and exits, but if I choose to open
with an 
application, then the box comes up twice.  Now, if webservers can
create 
the proper headers for downloads, I should be able to as well.  I just

don't know the proper "open sesame"  Tom

At 02:24 PM 10/4/2001 -0400, you wrote:


>Hi Tom,
>
>Not sure on how to stop it.  Is it something to do with the checkbox
on IE's
>File Download dialog which says "Always ask..."?
>
>Dave
>
>PS  I get 2 dialogs on netscape two!
>
>
>
>
>Tom Tibbetts <[EMAIL PROTECTED]> on 10/04/2001
02:07:19
>PM
>
>Please respond to [EMAIL PROTECTED]

>
>To:   [EMAIL PROTECTED] 
>cc:(bcc: David Hay/Lex/Lexmark)
>Subject:  Re: Struts capability to support file downloads
>
>
>
>Hi Scott.
>not that I know of.  I ended up grabbing the ServletOutputStream from
the
>response and streaming my file to the client that way.  On the JSP, I
>create a link that points to action mapping I've designated to do the
>download. Remember to set the content type of the file.  For the
header, do
>the following:
>  response.setHeader(
>  "Content-Disposition",
>  "attachment; filename=\"" +
>  fileName +
>  "\"" );
>
>now, a question for all those who've done this before me.  When I do
this,
>IE will pop up two dialog boxes in a row asking if I wish to save or
open
>an application to deal with the download.  Netscape will just open up
a
>file save dialog box.  Is there anyway to keep IE from doing the two
dialog
>boxes???:
>
>
>At 11:47 AM 10/4/2001 -0600, you wrote:
> >I noticed there is support in struts to allow a person to load a
file
> >from their local station to the server.
> >
> >Is there support to go the other direction?  I have an application
that
> >allows the user to download data to a file on their local system. 
I
> >would like to create the data on the server and then pop up a window
to
> >allow the user to select a location to store the data on their box. 
I
> >would then stream the data to that file on their system.
> >
> >Any suggestions would be appreciated or pointers to other sites
that
> >might discuss this.
> >
> >Thanks
> >
> >Scott Ryan
> >Developer
> >First Bank Data Corporation
> >Work: (303) 235-1485
> >Cell:(303 263-3044




Struts capability to support file downloads

2001-10-04 Thread Scott Ryan

I noticed there is support in struts to allow a person to load a file
from their local station to the server.  

Is there support to go the other direction?  I have an application that
allows the user to download data to a file on their local system.  I
would like to create the data on the server and then pop up a window to
allow the user to select a location to store the data on their box.  I
would then stream the data to that file on their system.

Any suggestions would be appreciated or pointers to other sites that
might discuss this.

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Best practice validation of text and text area lengths ?

2001-10-04 Thread Scott Ryan

What is the best approach for using the Validator to make sure input
text is under a specified length?  

Are textareas supported by the validation framework?

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



RE: Support of Struts in IBM Websphere 4.0

2001-10-01 Thread Scott Ryan

Chris,
Now I am confused.  I am trying to get away from having to use a
modified struts jar.  The reason the jar needs to be modified is because
IBM has a problem with their implementation of Jasper.  I saw in an
email on this forum that IBM had comitted to fix this problem but did
not commit to a timeframe.  I would like to be able to use the latest
struts build without having to modify the code because the modification
causes other problems.

Thanks for your feedback

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 10/01/01 01:45PM >>>
Make sure you use the modified struts jar from
http://www.enfused.com/struts.jar 

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED] 
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/ 



-Original Message-
From: Scott Ryan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 01, 2001 3:48 PM
To: [EMAIL PROTECTED] 
Subject: Re: Support of Struts in IBM Websphere 4.0


Thanks.  We will give it another try.

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 10/01/01 11:39AM >>>
Scott,

I and a number of others are already using Struts (1.0) in WAS 4.0.0
and it 
works fine.

Here to help,
Stephen :-{)

Stephen Brand
Software Architect
[EMAIL PROTECTED] 



Re: Support of Struts in IBM Websphere 4.0

2001-10-01 Thread Scott Ryan

Thanks.  We will give it another try.

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 10/01/01 11:39AM >>>
Scott,

I and a number of others are already using Struts (1.0) in WAS 4.0.0
and it 
works fine.

Here to help,
Stephen :-{)

Stephen Brand
Software Architect
[EMAIL PROTECTED] 




Support of Struts in IBM Websphere 4.0

2001-10-01 Thread Scott Ryan

I have heard a rumor that IBM was going to deliver a fix to 4.0 of
Websphere that would allow struts based applications to run in that
environment.  Does anyone know when that fix is due.  We have received
4.0.1 but there is no indication whether the bug is fixed.  We would
like to move from 3.5.4 to 4.0 but don't want to support the workarounds
any longer

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Re: Adding struts indexed tag capability to the select tag

2001-09-06 Thread Scott Ryan

Sorry I guess I phrased my question incorrectly.  Here is a more
complete description of what I am seeing.  I believe the support I
actually need is in the Options tag itself.

I have a list of options that are presented for each row.  When I
select an option it comes through on the correct element of the
collection so indexing works ok here.  The problem is that if I
encounter a valdation error when I try to present the page again my
vector containing the options is empty since it was not stored in the
request.  Is there a way for the option list  itself to be put into the
request and therefore passed in the form?  This would have to be based
on the index as well  

I thought about storing them all as hidden fields but that seemed a
little wasteful but should work.

Thanks again for the indexed tags they are extremely useful.

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 09/06/01 09:42AM >>>


Scott,

Indexed capability is already available for the select tag (though,
like the
other tags, you need to use a nightly build).

cheers,

Dave





"Scott Ryan" <[EMAIL PROTECTED]> on
09/05/2001
06:46:20 PM

Please respond to [EMAIL PROTECTED]


To:   [EMAIL PROTECTED] 
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Adding struts indexed tag capability to the select tag




Would it be possible to add the indexed capability to the select tag.
I have an application that would benefit greatly from that capability.
I have a set of rows that are contained within a Vector in a bean.  I
use a set of iterate tags combined with the indexed capability within
such tags as the hidden and text tags.  Within each row is an option
box
with a set of selections.  I would like to have the user select a
different option for each row and have struts populate the form for
each
row as it currently does for the hidden and text tags.

I would appreciate your input.

By the way your tag extensions are a lifesaver and have allowed us to
do some very creative things with struts.

Thanks










Adding struts indexed tag capability to the select tag

2001-09-05 Thread Scott Ryan


Would it be possible to add the indexed capability to the select tag. 
I have an application that would benefit greatly from that capability. 
I have a set of rows that are contained within a Vector in a bean.  I
use a set of iterate tags combined with the indexed capability within
such tags as the hidden and text tags.  Within each row is an option box
with a set of selections.  I would like to have the user select a
different option for each row and have struts populate the form for each
row as it currently does for the hidden and text tags.

I would appreciate your input.

By the way your tag extensions are a lifesaver and have allowed us to
do some very creative things with struts.

Thanks




RE: passing a parameter

2001-08-15 Thread Scott Ryan

YEs it generates the code as your example states.  The parameter will be
in the request under the name userId.  I don't know if the contoller
will fill in a field in your action form with a similar name but it
should.


Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 08/15/01 11:08AM >>>
So does this then generate html simmilar to what I gave as example?

item xx and so on...

how do I process the request in that uri, do I take the id that's
passed out
of the request, or does the controller stuff it into the form
somewhere?

Thanks

-Original Message-
From: Scott Ryan [mailto:[EMAIL PROTECTED]] 
Sent: 15 August 2001 18:04
To: [EMAIL PROTECTED] 
Subject: Re: passing a parameter


This is how I do it.  It uses a request list stored under the name
ListObject which is a Vector of objects.  The link passed the payeeId
value of the object in the request parameter userId.







  
>>> [EMAIL PROTECTED] 08/15/01 10:53AM >>>
how would I have a list in struts with each item as a link to a uri (a
struts action) and a parameter to pass?

in jsp:

while (i < items.length) {

%>
item
<%=items[i].getId()%>
<%
i++;
}
%>

in struts:

?


=**

If you are not the intended recipient, employee or agent responsible
for delivering the message to the intended recipient, you are hereby
notified that any dissemination or copying of this communication and
its
attachments is strictly prohibited.

If you have received this communication and its attachments in error,
please return the original message and attachments to the sender using
the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group
does not accept legal responsibility for the contents of this message.

Any views or opinions presented are solely those of the author and do
not necessarily represent those of the UCLES Group unless otherwise
specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does
not
guarantee that this email is virus free.

******=

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Re: passing a parameter

2001-08-15 Thread Scott Ryan

This is how I do it.  It uses a request list stored under the name
ListObject which is a Vector of objects.  The link passed the payeeId
value of the object in the request parameter userId.







  
>>> [EMAIL PROTECTED] 08/15/01 10:53AM >>>
how would I have a list in struts with each item as a link to a uri (a
struts action) and a parameter to pass?

in jsp:

while (i < items.length) {

%>
item
<%=items[i].getId()%>
<%
i++;
}
%>

in struts:

?


=**

If you are not the intended recipient, employee or agent responsible
for delivering the message to the intended recipient, you are hereby
notified that any dissemination or copying of this communication and its
attachments is strictly prohibited.

If you have received this communication and its attachments in error,
please return the original message and attachments to the sender using
the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group
does not accept legal responsibility for the contents of this message. 
Any views or opinions presented are solely those of the author and do
not necessarily represent those of the UCLES Group unless otherwise
specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not
guarantee that this email is virus free.

******=

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



How to forward from within an ActionForm validate method

2001-08-07 Thread Scott Ryan

I have been wracking my brain to remember how to do this but no luck so
hopefully someone can help.

I am trying to figure out how to forward to a jsp page or .do from
within the ActionForm validate method.  If for example during my
validation I encounter a system error I want to redirect the user to the
logoff.do action to get them off the system.

Any ideas would be appreciated.  I do apologize if there is an obvious
answer but I am just running out of places to look.

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Re: Returning to called page after loggin on...

2001-07-31 Thread Scott Ryan

This looks like a very useful paper but how do you open and read the
paper if you only come equipped with the text tools from the microsoft
monster?



Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 07/31/01 05:19AM >>>
Craig's slides for BOF #1291, "Approaches to User Authentication and
Access Control in Web Applications" is  available for download at 

< http://husted.com/about/struts/resources.htm#new >

True to the school, it's in Open Office format <
http://www.openoffice.org/ >.


"Craig R. McClanahan" wrote:
> I also did a BOF at JavaOne that covered container-managed security
at a
> pretty high level, but is useful to read after you've read the
servlet
> spec chapter on security.  You can write to me privately if you want
a
> copy.



RE: Validation REGEX for input

2001-07-30 Thread Scott Ryan

Renzo,
Thanks for the suggestions. I tried both and neither would validate
successfully.  I tried hh4 and it failed althought it is a valid
answer.  I have been trying to find a combination that works.  Too bad
there aren't simple "AND" and "OR" operations I could use.  

I will keep trying.



Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 07/29/01 03:16AM >>>

Hi Scott,

What about this little gem? Not sure if it works, but it looks sound:

^(.*\w.*\d.*|.*\d.*\w.*){6,8}$

for more control of valid characters you could use [...]
charactersets:

^(.*[a-zA-Z].*[0-9].*|.*[0-9].*[a-zA-Z].*){6,8}$

Let me know if it works.


Cheers,


Renzo

-Original Message-
From: Scott Ryan [mailto:[EMAIL PROTECTED]] 
Sent: vrijdag 27 juli 2001 19:57
To: <
Subject: Validation REGEX for input


I don't know if this is the appropriate forum for this but I will ask
anyway.  I am trying to use the validation framework to validate an
input value.  I can't seem to come up with a REGEX mask that satisfies
the criteria.  

The input has the following criteria

1) 6-8 characters in length
2) At least one letter
3) At least one digit

I can't seem to get all of them to fire at once.   Any help would be
appreciated.

The validation framework has been extremely valuable and it has saved
a
lot of development time on our side.


Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044




Re: Struts w/JBuilder 5

2001-07-30 Thread Scott Ryan

We have gotten Struts to work under Jbuilder 5.  We had a problem
getting Tomcat to see our classes and the application resources file. 
We jury rigged it by adding the web-inf class path to the tomcat
configuration.  This is probably not the correct solution but we have
not had time to go back and fix it correctly. 

The process was to 

1) Select project properties
2) Select the servers tab
3) Select setup for the Tomcat server
4) Add the path to your classes to the Tomcat server
 In our case it was defaultroot/WEB-INF/classes
5) We then placed the ApplicationResources.properties in a path within
that
classpath and we told jbuilder to copy all the classes when
rebuilding.

I am sure this is not the correct solution but it did get us up and
running.
Once it is up the integration is great for debugging.

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 07/30/01 08:48AM >>>
Has anyone gotten a Struts project to work in JBuilder5?  Currently,
my
project is able to "make" but unable to execute.  I get the following
message in the console:

Error: 500
Location: /WebCBP/error.jsp
Internal Servlet Error:

javax.servlet.ServletException: Missing message for key general.title
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002ferror_0002ejsperror_jsp_0._jspService(_0002ferror_0002ejsperror_jsp_0.
java:359)

Normally, if I saw this message, I would check the
ApplicationResources.properties file.  In fact, I think it's related.
JBuilder5 can't find this file, but I don't know where to put it in
order
for it to see it.  Any thoughts?



Anthony
  
The awful thing about getting it right the first time is that nobody
realizes how hard it was.


Unknown 



Validation REGEX for input

2001-07-27 Thread Scott Ryan

I don't know if this is the appropriate forum for this but I will ask
anyway.  I am trying to use the validation framework to validate an
input value.  I can't seem to come up with a REGEX mask that satisfies
the criteria.  

The input has the following criteria

1) 6-8 characters in length
2) At least one letter
3) At least one digit

I can't seem to get all of them to fire at once.   Any help would be
appreciated.

The validation framework has been extremely valuable and it has saved a
lot of development time on our side.


Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Re: Trying to add errors to an existing errors object after using the validation framework

2001-07-25 Thread Scott Ryan

Problem Solved:

After rooting around in my ApplicationResources.properties file I found
a misspelling in my message name.  I would have expected the framework
to catch the error in the lookup similar to what happens in other areas
of struts when a message resource cannot be found.  Typically a message
tells you that XXX.title could not be found.  Perhaps this test is done
within the validation framework and my bypass caused an unforseen
problem.



Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 07/25/01 01:39PM >>>
I am using the Validation Framework within struts and I need to
perform
some validations that I cannot do using the framework.  I have created
an ActionForm
that extends ValidatorForm and in my validate method I first call
super.validate. Once the errors have been returned I then perform my
own
additonal validations
and add to the errors object returned from the super.validate.  I then
return the errors object from my validate routine.  All appears to
work
ok if I use the standard
struts errors tags to present the errors on the page.  However if I
use
the tags that come with the validator i get the following exception
only
when processing errors
that I created:

Error: 500 Location: /EnrollmentCapture.jspInternal Servlet
Error:javax.servlet.ServletException
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
 at
_0002fEnrollmentCapture_0002ejspEnrollmentCapture_jsp_2._jspService(_0002fEnrollmentCapture_0002ejspEnrollmentCapture_jsp_2.java:1941)
 at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)
 at
org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:2137)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
 at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
 Root cause: java.lang.NullPointerException
 at java.util.Hashtable.put(Hashtable.java:380)
 at
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:251)
 at
com.wintecinc.struts.taglib.html.ErrorsTag.doAfterBody(ErrorsTag.java:296)
 at
_0002fEnrollmentCapture_0002ejspEnrollmentCapture_jsp_2._jspService(_0002fEnrollmentCapture_0002ejspEnrollmentCapture_jsp_2.java:443)
 at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)
 at
org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:2137)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
 at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.co

Trying to add errors to an existing errors object after using the validation framework

2001-07-25 Thread Scott Ryan
 the additional errors but it
looks very straightforward.

Here are the tags I am putting in my JSP page:

  

  

  
 

Here is a sample of how I am creating my error

errors.add("password",new
ActionError("enrollmentform.error.password.maskmsg"));

Any tips would be appreciated.

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Re: Server Side Validation not firing for Validator when Java Script is off

2001-07-20 Thread Scott Ryan

David,
Thanks for the great framework for validation.  I have found it
extremely useful and am glad to hear it is becoming
part of struts in the future.  I am working on some deployment and
maintenance issues and wondered if you had any 
suggestions based on your input below.

There are two issues:

1

First is keeping the xml files small and isolated for ease of
maintenance.  I was wondering about creating
a file called validators.xml that includes all the validators that I am
using in a project (Validator definitions and maybe the
javascript to go with it.)

I would then create a file for each form that I am validating that
contains the validation rules for each field.  

I could then create a validation.xml file that included all the above
files (Validator.xml and several formvalidation.xml files).  That would
allow us to work on validation rules for a set of forms independent of
the other forms.

Is this overkill?
How do you actually do an xml include?

2--
We have several non-struts applications and several separate isolated
struts applications.  We have one common javascript validation library
that is 
used for all projects.  If for example we had 2-nonstruts apps and 3
struts apps we would have to deploy 4 copies of the same javascript
code.  One for the 
non-struts apps and 3 for the struts apps since each struts app has a
validation.xml file containing the javascript as part of the file.

The scenario listed above would reduce the duplication to 2 since we
would now need one javascript library for the non-struts apps and one
validator.xml file for
the struts applications.

I sure would like to reduce that duplication to one.
It seems that the static and dynamic jsp references might do the trick
but I must admit I really don't understand it fully yet.  Also we don't
have jsp support for all
of the applications we deploy so it might present a packaging problem
as well.

I would appreciate anyone's input on this issue.  I am just trying to
reduce maint and support costs in the future as we deploy more and more
solutions that are struts based.

Thanks



Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 07/18/01 08:07PM >>>
If you look at the jsType.jsp, you will see that it is
referencing an external JavaScript file called
staticJavascript.jsp.  You could put other JavaScript
methods in that and call them from onclick, etc. 
Although I'm not sure if that is what you mean. 
Otherwise you could do an xml include.  I think the
JavaScript associated with a java method should be
with it in the xml file.

David

--- Scott Ryan <[EMAIL PROTECTED]> wrote:
> Yes the javascript is being generated.  I think the
> problem is that I
> used the validation.xml that comes with the latest
> release or your
> validator and some of it appears to not be
> compatible with Netscape
> version I am testing with.  Java script has the
> great benefit of failing
> but not indicating where the problem is.  
> 
> I stripped out all but the required and mask code
> and it works.  
> 
> I can now go through function by funtion and see
> which one is
> incompatible.
> 
> Is there any stratgy that would allow you to
> reference javascript that
> is in a library so that we could use some of the
> current javascript
> libraries we have today with out copying the code
> into the
> validation.xml.
> 
> My next challenge is to get the generated validation
> to work with the
> formatting javascript I currently have on the page. 
> This is currently
> causing some issues.
> 
> Thanks for the help.
> 
> Scott Ryan
> Developer
> First Bank Data Corporation
> Work: (303) 235-1485
> Cell:(303 263-3044
> 
> >>> [EMAIL PROTECTED] 07/18/01 03:49PM >>>
> Do you see any JavaScript being generated in the
> html?
> 
> David
> 
> --- Scott Ryan <[EMAIL PROTECTED]> wrote:
> > I have now converted to the latest version of the
> > Validator and that
> > caused the server side validation to start working
> > but not the javascript client side doesn't work. 
> It
> > goes straight to
> > the server validation.  I double checked
> everything
> > mentioned in the documentation and in the previous
> > messages in this
> > list and everything appears ok.  The only things
> > I think I need is the onsubmit addition and the
> > javascript validator
> > tag.  
> > 
> > Any more suggestions.
> > 
> > Scott
> > 
> > Scott Ryan
> > Developer
> > First Bank Data Corporation
> > Work: (303) 235-1485
> > Cell:(303 263-3044
> > 
> > >>> [EMAIL PROTECTED] 07/18/01 10:06AM >>>

Re: Server Side Validation not firing for Validator when Java Script is off

2001-07-18 Thread Scott Ryan

Yes the javascript is being generated.  I think the problem is that I
used the validation.xml that comes with the latest release or your
validator and some of it appears to not be compatible with Netscape
version I am testing with.  Java script has the great benefit of failing
but not indicating where the problem is.  

I stripped out all but the required and mask code and it works.  

I can now go through function by funtion and see which one is
incompatible.

Is there any stratgy that would allow you to reference javascript that
is in a library so that we could use some of the current javascript
libraries we have today with out copying the code into the
validation.xml.

My next challenge is to get the generated validation to work with the
formatting javascript I currently have on the page.  This is currently
causing some issues.

Thanks for the help.

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 07/18/01 03:49PM >>>
Do you see any JavaScript being generated in the html?

David

--- Scott Ryan <[EMAIL PROTECTED]> wrote:
> I have now converted to the latest version of the
> Validator and that
> caused the server side validation to start working
> but not the javascript client side doesn't work.  It
> goes straight to
> the server validation.  I double checked everything
> mentioned in the documentation and in the previous
> messages in this
> list and everything appears ok.  The only things
> I think I need is the onsubmit addition and the
> javascript validator
> tag.  
> 
> Any more suggestions.
> 
> Scott
> 
> Scott Ryan
> Developer
> First Bank Data Corporation
> Work: (303) 235-1485
> Cell:(303 263-3044
> 
> >>> [EMAIL PROTECTED] 07/18/01 10:06AM >>>
> The JavaScript part shouldn't have anything to do
> with
> the server side other than it uses the same object
> in
> application scope.  Does the name attribute of your
> action (which matches the key the ActionForm is
> stored
> under) in the struts-config.xml the same as the form
> element's name attribute?  
> 
>
>
type="com.wintecinc.struts.example.validator.RegistrationAction"
>name="registrationForm"
>    scope="request"
>validate="true"
>input="/registration.jsp">
> path="/index.jsp"/>
> 
> 
>   
>   
> 
> David
> 
> --- Scott Ryan <[EMAIL PROTECTED]> wrote:
> > Yes I am extending ValidatorForm instead of
> > ActionForm.  Did you mean
> > ValidateForm or ValidatorForm.  
> > 
> > I originally commented out the validate method
> that
> > I had but after
> > nothing happened I tried creating a validate
> method
> > that only called
> > super.validate with the proper attributes but it
> > returned an empty
> > errors object.  
> > 
> > It almost appears that I have missed a flag
> > somewhere.  It was easy to
> > get the client side to work but unlike the rest of
> > the user's I am
> > having a problem getting the server side to fire
> > correctly.  
> > 
> > I am going to try and remove the onsubmit from my
> > jsp and see if the
> > server side will fire then.
> > 
> > Thanks for your suggestions.
> > 
> > Scott Ryan
> > Developer
> > First Bank Data Corporation
> > Work: (303) 235-1485
> > Cell:(303 263-3044
> > 
> > >>> [EMAIL PROTECTED] 07/18/01 08:50AM >>>
> > Are you extending ValidateForm instead of
> > ActionForm?
> > 
> > If you have a validate method in your form, be
> sure
> > to call
> > super.validate().
> > 
> > Ryan
> > 
> > 
> > 
> > >>> [EMAIL PROTECTED] 07/18/01 08:53AM >>>
> > I am trying to use the Validator extension for
> > struts.   I have the
> > client side functioning correctly and it works
> > great.  I then go into
> > Netscape and turn off java script and the server
> > side checking is not
> > firing.  Am I missing some configuration
> parameter? 
> > I even tried
> > calling super.validate from a validate method
> within
> > my ActionForm and
> > this returned no information either.  Any ideas on
> > where I can look?
> > 
> > Thanks
> > 
> > Scott Ryan
> > Developer
> > First Bank Data Corporation
> > Work: (303) 235-1485
> > Cell:(303 263-3044
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/ 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: Server Side Validation not firing for Validator when Java Script is off

2001-07-18 Thread Scott Ryan

I have now converted to the latest version of the Validator and that
caused the server side validation to start working
but not the javascript client side doesn't work.  It goes straight to
the server validation.  I double checked everything
mentioned in the documentation and in the previous messages in this
list and everything appears ok.  The only things
I think I need is the onsubmit addition and the javascript validator
tag.  

Any more suggestions.

Scott

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 07/18/01 10:06AM >>>
The JavaScript part shouldn't have anything to do with
the server side other than it uses the same object in
application scope.  Does the name attribute of your
action (which matches the key the ActionForm is stored
under) in the struts-config.xml the same as the form
element's name attribute?  


   


      
  

David

--- Scott Ryan <[EMAIL PROTECTED]> wrote:
> Yes I am extending ValidatorForm instead of
> ActionForm.  Did you mean
> ValidateForm or ValidatorForm.  
> 
> I originally commented out the validate method that
> I had but after
> nothing happened I tried creating a validate method
> that only called
> super.validate with the proper attributes but it
> returned an empty
> errors object.  
> 
> It almost appears that I have missed a flag
> somewhere.  It was easy to
> get the client side to work but unlike the rest of
> the user's I am
> having a problem getting the server side to fire
> correctly.  
> 
> I am going to try and remove the onsubmit from my
> jsp and see if the
> server side will fire then.
> 
> Thanks for your suggestions.
> 
> Scott Ryan
> Developer
> First Bank Data Corporation
> Work: (303) 235-1485
> Cell:(303 263-3044
> 
> >>> [EMAIL PROTECTED] 07/18/01 08:50AM >>>
> Are you extending ValidateForm instead of
> ActionForm?
> 
> If you have a validate method in your form, be sure
> to call
> super.validate().
> 
> Ryan
> 
> 
> 
> >>> [EMAIL PROTECTED] 07/18/01 08:53AM >>>
> I am trying to use the Validator extension for
> struts.   I have the
> client side functioning correctly and it works
> great.  I then go into
> Netscape and turn off java script and the server
> side checking is not
> firing.  Am I missing some configuration parameter? 
> I even tried
> calling super.validate from a validate method within
> my ActionForm and
> this returned no information either.  Any ideas on
> where I can look?
> 
> Thanks
> 
> Scott Ryan
> Developer
> First Bank Data Corporation
> Work: (303) 235-1485
> Cell:(303 263-3044


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: Server Side Validation not firing for Validator when Java Script is off

2001-07-18 Thread Scott Ryan

I located the problem.  It was a combination of two things.  

1) The names in my form  and the validation tag did not match.  I had
two of them matching but all three needed to match.

2) I was using the .5 build which has an imcomplete validation.xml file
and the format has changed since that build.

Once question I have for those developing enterprise applications is
how to managed the validation.xml file.  It seems that is contains
application specific information as well as enterprise specific
information.

It seems that the file contains javascript validation code which could
be used throughout the enterprise on a number of applications. It also
contains validation rules specific to the application that you are
deploying.  It seems that you either have to duplicate the javascript
code to deploy in multiple validation.xml files or you have to include
the validation rules for all applications in every validation.xml file. 
I realize you can cut and paste but this opens up possibilities for
making mistakes.  

Has anyone come up with a way to package the inline javascript so it
can be used in multiple validation.xml files and you only have to change
one file to add additional javascript functions.



Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 07/18/01 10:06AM >>>
The JavaScript part shouldn't have anything to do with
the server side other than it uses the same object in
application scope.  Does the name attribute of your
action (which matches the key the ActionForm is stored
under) in the struts-config.xml the same as the form
element's name attribute?  


   


      
  

David

--- Scott Ryan <[EMAIL PROTECTED]> wrote:
> Yes I am extending ValidatorForm instead of
> ActionForm.  Did you mean
> ValidateForm or ValidatorForm.  
> 
> I originally commented out the validate method that
> I had but after
> nothing happened I tried creating a validate method
> that only called
> super.validate with the proper attributes but it
> returned an empty
> errors object.  
> 
> It almost appears that I have missed a flag
> somewhere.  It was easy to
> get the client side to work but unlike the rest of
> the user's I am
> having a problem getting the server side to fire
> correctly.  
> 
> I am going to try and remove the onsubmit from my
> jsp and see if the
> server side will fire then.
> 
> Thanks for your suggestions.
> 
> Scott Ryan
> Developer
> First Bank Data Corporation
> Work: (303) 235-1485
> Cell:(303 263-3044
> 
> >>> [EMAIL PROTECTED] 07/18/01 08:50AM >>>
> Are you extending ValidateForm instead of
> ActionForm?
> 
> If you have a validate method in your form, be sure
> to call
> super.validate().
> 
> Ryan
> 
> 
> 
> >>> [EMAIL PROTECTED] 07/18/01 08:53AM >>>
> I am trying to use the Validator extension for
> struts.   I have the
> client side functioning correctly and it works
> great.  I then go into
> Netscape and turn off java script and the server
> side checking is not
> firing.  Am I missing some configuration parameter? 
> I even tried
> calling super.validate from a validate method within
> my ActionForm and
> this returned no information either.  Any ideas on
> where I can look?
> 
> Thanks
> 
> Scott Ryan
> Developer
> First Bank Data Corporation
> Work: (303) 235-1485
> Cell:(303 263-3044


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: Server Side Validation not firing for Validator when Java Script is off

2001-07-18 Thread Scott Ryan

Yes I am extending ValidatorForm instead of ActionForm.  Did you mean
ValidateForm or ValidatorForm.  

I originally commented out the validate method that I had but after
nothing happened I tried creating a validate method that only called
super.validate with the proper attributes but it returned an empty
errors object.  

It almost appears that I have missed a flag somewhere.  It was easy to
get the client side to work but unlike the rest of the user's I am
having a problem getting the server side to fire correctly.  

I am going to try and remove the onsubmit from my jsp and see if the
server side will fire then.

Thanks for your suggestions.

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 07/18/01 08:50AM >>>
Are you extending ValidateForm instead of ActionForm?

If you have a validate method in your form, be sure to call
super.validate().

Ryan



>>> [EMAIL PROTECTED] 07/18/01 08:53AM >>>
I am trying to use the Validator extension for struts.   I have the
client side functioning correctly and it works great.  I then go into
Netscape and turn off java script and the server side checking is not
firing.  Am I missing some configuration parameter?  I even tried
calling super.validate from a validate method within my ActionForm and
this returned no information either.  Any ideas on where I can look?

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Server Side Validation not firing for Validator when Java Script is off

2001-07-18 Thread Scott Ryan

I am trying to use the Validator extension for struts.   I have the
client side functioning correctly and it works great.  I then go into
Netscape and turn off java script and the server side checking is not
firing.  Am I missing some configuration parameter?  I even tried
calling super.validate from a validate method within my ActionForm and
this returned no information either.  Any ideas on where I can look?

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



DreamWeaver and Struts 504 Gateway Timeout Error

2001-06-15 Thread Scott Ryan

I am trying to use the CTLX extension that allows one to use JSP tags,
specifically struts tags within the Dreamweaver environment.  I am
working on Window NT and I got one user working correctly.  When I tried
to access the environment from another environment I received a 
504 Gateway timeout error very quickly. 

Tomcat is running and everything appears to be installed correctly

Has anyone see this before and any ideas?

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044