I'm using Struts 1.1B2, and have tried to create a pluggable validator
similar to the example on Davids site.
In my validation-rules.xml I have -
Then in my validation.xml, I have -
secondProperty
confirmPassword
When I run the application, the validation
I have a form with multiple drop downs that do a Javascript submit()
when they are changed. (This is so that they can change other drop
downs.) The problem is that once I get into the action, how can I tell
which drop down's "onchange" event caused the submit? I can't find any
request parameters th
Never mind. I missed the instructions about updating commons-logging to
1.0.1. Once I did that, everything seems OK.
Thanks,
Ryan
Ryan Cornia
IT Programmer Analyst / eSolutions Team Leader
Department of Community and Economic Development
State of Utah
>>> [EMAIL PROTECTED] 11/12/0
I've tried it with log4j.jar and log4j.properties in war, but I get the
same results.
Any other ideas?
Thanks,
Ryan
>>> [EMAIL PROTECTED] 11/12/02 08:33AM >>>
2002. november 12. 16:23 dátummal Ryan Cornia ezt írtad:
> I took one application and updated it to St
I have an application that was originally written in Struts 1.1B1 and
runs in Tomcat4.1.12. In order to handle logging, I simply put the log4j
jar in tomcats common/lib directory, and the log4j properties file in
tomcats common/classes directory. This set the same logging properties
for all of my s
In my web application, I have all of my forms declared as -
public final class extends
org.apache.struts.validator.ValidatorForm implements Serializable { }
In my tomcat 4.1.12 logs, however, I keep getting errors -
"Cannot serialize session attribute "
Do I need to write a serializati
EMAIL PROTECTED] 10/22/02 08:44AM >>>
Ryan Cornia wrote:
> What I do is encrypt a domain level session cookie. Then, in all my
apps
> I can check for/decrypt the cookie to know if the user is logged in,
and
> who the user is. (I put username/email in the cookie, but you could
put
>
What I do is encrypt a domain level session cookie. Then, in all my apps
I can check for/decrypt the cookie to know if the user is logged in, and
who the user is. (I put username/email in the cookie, but you could put
whatever information you want.) I encrypt it so that its more secure and
can't be
I'm using SilverStream which has difficulties resolving DTD's if inside of a firewall.
What I have done with my web.xml files is embed the DTD inside the XML file at the
top, and this works fine. With struts-config, however, I get parsing errors when it
parses the file. The errors are -
Parse
A common scenario I run into is having a web application where the user needs to edit
a database record.
The simplest approach I can find is this -
1.) Load the db record into a bean. Copy the bean props. to the form for display. Put
the dbbean in the session.
2.) Show the form, when the user
I think adding property role to the page as a html:hidden field will solve your
problem. This way it WILL be submitted with each request.
Ryan
>>> [EMAIL PROTECTED] 01/16/02 02:42PM >>>
Hello Everyone:
I've come across an interesting issue that I'd like to share with everyone
with the hopes
I'm interested in finding out how other people are passing data objects between
requests for updating.
For instance -
User clicks "Edit Record"
I load the data object from the database, copy the properties to the form, and put the
data object in the session.
When the users presses save on the
Is anyone using the early access of CachedRowSet for data access, or are people just
using straight JDBC calls?
I've been using straight JDBC calls, but it looks like CachedRowSet would be easier.
Anyone know when it will be officially released? Is it currently stable?
Thanks,
Ryan
I would be interested in how you are doing the "Next"/"Previous" scrolls through the
videos. Do you load all video records at once and store them in the session, or are
you somehow only retrieving the records the user is looking at?
Neat site!
Ryan
>>> [EMAIL PROTECTED] 09/04/01 10:00AM >>>
I have the same problem with SilverStream 3.7.2.
My solution was to change the DOCTYPE to -
Then put struts-config_1_0.dtd in the SilverStream37\bin directory. I'm not satisfied
with this solution, but it's the best I could come up with... Let me know if you find
a better solution.
HTH,
R
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 theclient side functioning correctly and it
BC Code for data base interaction. Its been
explained clearly onthe J2EE blueprints section.Once you are done writing
your DAO's, extend theDAO into a session bean or use it
seperately.regardspathangi r-Original
Message-From: Ryan Cornia [mailto:[EMAIL PROTECTED]]Sent:
Wednesday, Ju
I'm wondering what people are considering best practices for
JDBC calls?
I have been writing beans that wrap a database table, and
include functions "select", "insert", "delete". These functions either load the
bean, insert the bean values in the database, or delete the record from the
dat
I have a few follow-ups interspersed with your
responses below...
David
Ryan Cornia wrote:
>
> Yes, it works great.
>
> A couple of things to check -
>
> 1.) In the JSP page that is your form, make sure you have -
>
>
>
> the onsubmit piece is what causes the
I have a few follow-ups interspersed with your
responses below...
David
Ryan Cornia wrote:
>
> Yes, it works great.
>
> A couple of things to check -
>
> 1.) In the JSP page that is your form, make sure you have -
>
>
>
> the onsubmit piece is what causes the
Yes, it works great.
A couple of things to check -
1.) In the JSP page that is your form, make sure you have -
the onsubmit piece is what causes the validation.
2.) At the bottom of the JSP form, set the form name so the validator know what is
being validated -
Other than that, you shoul
I'm hoping someone can help me understand this better. In web.xml, I have the
following entries -
java.lang.Exception
/errorpage.jsp
javax.servlet.ServletException
/errorpagesrvlt.jsp
>From my understanding, anyti
Those of you who are using Struts-SilverStream 3.7.X, I have a couple of questions -
1.) How are you getting a connection from the connection pool? Do you use struts
connection pooling, or SilverStreams? (If SilverStreams, any example code on getting a
connection?)
2.) When you deploy differe
I tried to get this working this morning without success.
When I try and run the project, I get a pop-up error "!instance of JarDataObject". Any
ideas?
Under my project, I added "servlet.jar", "clasess111.jar" (for db), "jasper.jar",
"jaxp.jar", "Webserver.jar", "ant.jar", and "parser.jar" (al
I also would take a look at the DBTags library in the Jakarta project. This works very
well for displaying data from a db, and is less complex than struts. If your not
processing forms, it may be the best way to go...
Ryan
>>> [EMAIL PROTECTED] 06/27/01 03:33PM >>>
You can either have a colle
Is there any way to use the html:image tag in place of form:cancel? I'd like all my
buttons to be images, but have not found a way to make the cancel button an image
without causing struts to validate the form even on a cancel.
Thanks,
Ryan
Great article!
I'm fairly new to Struts and am still struggling with ActionForm setters/getters vs.
bean setters/getters. In your template file, all properties for both the form and bean
are Strings. How would you implement an int property -
In the form, it would it be -
public String getPrope
Long, Integer, Date, etc...)? How does it take
care of the conversion?
Thanks,
Ryan
>>> [EMAIL PROTECTED] 06/13/01 12:39PM >>>
On Wed, 13 Jun 2001, Ryan Cornia wrote:
> In the struts-example, there is an OrganizationForm, and an
> Organization bean. They have identica
In the struts-example, there is an OrganizationForm, and an Organization bean. They
have identical fields and getters and setters. Why is the logic duplicated in both
places? Couldn't OrganizationForm extend Organization, or "have a" organization bean
in it that you could reference from a form
I'm in need of some guidance (and couldn't really find what I needed in the mail
archives)-
I've been working on a struts application, and so far have a login page that validates
the user and forwards to a "Organization List" page. This "Organization List" page is
currently using DBTags to get
Thanks Craig, that works perfectly! Now the checkLogon tag accepts the expression, and
everything works as expected.
Any idea on why the actionerror substitution is not working? Anyone else having
problems with it?
(RECAP:
> Also, I am trying to do substitution on an action error with the foll
problem, in the resource file I have -
error.login=Login Error: {0}
Is that the correct syntax?
Thanks,
Ryan
>>> [EMAIL PROTECTED] 06/11/01 10:38AM >>>
On Mon, 11 Jun 2001, Ryan Cornia wrote:
> I'm trying to figure out how to pass a constant name/page to the example che
ogin", "test"));
When this runs, the error message is -
"Login Error: [Ljava.lang.Object;@158bf9 "
Instead of
"Login Error: test"
This is with Struts 1.0B3.
Thanks,
Ryan "Newbie"
Ryan Cornia
Programmer Analyst
Department of Community and Economic Development
State of Utah
33 matches
Mail list logo