Hi
Has anyone used client-side validations (using Javascript) in jsp pages
created Struts ? Pls help.
Thanks,
Satish Khanzode
Any idea why I am consistently getting an
org.apache.tools.ant.taskdefs.optional.TraXLiason ClassNotFoundException when trying
an ant dist build of jakarta-struts-1.0-b3-src using Ant 1.3 on both NT and Linux?
I have what seem to be the only required jars in my path: xalan.jar and jaxp.jar
Hello David,
Friday, June 08, 2001, 9:06:12 AM, you wrote:
DM Any idea why I am consistently getting an
org.apache.tools.ant.taskdefs.optional.TraXLiason ClassNotFoundException when trying
an ant dist build of jakarta-struts-1.0-b3-src using Ant 1.3 on
DM both NT and Linux? I have what seem
i find using struts to do validation works way better than jscript. To date
i haven't used 1 line of jscript in the project.
this is what we do
have a look, this is one of our actionhandlers
/**
* Used to update the return of a specific taxpayer
* @author: Dudley Butt
*
*/
public class
Hi!
I am evaluating struts for a new project. One problem I wasn't able to solve
was the integration of JSP expressions inside the attributes of
custom tags.
My code looks like this:
logic:iterate id=pelement name=MyBean property=pelements
% String name = ((PElement)pelement).getName(); %
try
html:link href=%= \/\ + name + \/index.jsp\ %
You need to have the %= % present the whole string, not just the single part.
At 10:56 AM 8/06/01 +0200, you wrote:
Hi!
I am evaluating struts for a new project. One problem I wasn't able to solve
was the integration of JSP
Hi Peter
I like to handle the errors as you have described. First a user friendly
page and then for the developers the error details.
But how do I do this
Could you give me an example??
Thanks a lot
Andy
*** PLEASE NOTE ***
This message, along
Hi, the container is now throwing up - http://localhost:8080/struts-template/css/bbnpa.css
even when i type struts-bbnpa as opposed struts-template.!!
Thus my bbnpa.css file appears in the browser as below.You mentioned
moving CSS up to tomcat where i.e to struts-bbnpa (my web application)
/*
Title: RE: Can anyone help with solving the "BACK" button problem, in th e browser?
well,
this will blow all your socks off.
I got
something to work, and remaining in line with my "REDUCE THE JAVASCRIPT"
policy
here
is what i did...
I just
plugged some code into my actionhandler to
Title: RE: Can anyone help with solving the "BACK" button problem, in th e browser?
the
solution i posted means that the user can push the BACK button, but we have full
control via the actionhandler, as to how much processing we will allow the user
to perform, simply just by evaluating some
i just find it sometimes easier to move all validation off the jsp, and
hence all java off the jsp. I think its just basically a personal
preference. This way I'm making full use of the struts error handling model
and keep all my java in one place. There always seems to be more than one
way to do
Hello Erich,
Friday, June 08, 2001, 12:56:42 PM, you wrote:
EM My code looks like this:
EM logic:iterate id=pelement name=MyBean property=pelements
EM % String name = ((PElement)pelement).getName(); %
EM html:link href=/%= name %/index.jsp
EM^^^ Here is my
Hi, am i correct that the struts- template is a webapp and can i
physically move it's content to my struts-bbnpa thus move it up to where
tomcat is looking.Thus if this correct must i then constantly only refer
to content in my web app named struts-bbnpa.
Cheers chuck
Ted Husted wrote:
I
Hi, am i correct that the struts- template is a webapp and can i
physically move it's content to my struts-bbnpa thus move it up to where
tomcat is looking.Thus if this correct must i then constantly only refer
to content in my web app named struts-bbnpa.
Cheers chuck
--
The views expressed by
There is a sample Web app that demonstrates how to use the
struts-template tags, but you don't need to deploy that with your
applicaton.
Struts-template is one of the custom tag libraries, like bean, html, and
logic. All you just need is the stuts-template.tld, same as any of the
others.
The
As it stands, the input property in the Action Mapping is (4) a
default page. It is not meant so much to represent where the input
came from, but where to go to get more, so the ActionServlet knows
where to bounce the user if ActionForm validate fails.
For more complex needs, you can reserve
You might try setting validate=false in the action mapping.
Mikkel Bruun wrote:
Hi Craig,
A blast from the past...I believe this post is a month old...
Anyways...I see your point, but consider this...
If I only refered to the functionaly (pages, actions whatever), I would have
the
Just a comment... Looks like your method of checking the RefreshOption
property will only work if the scope of the ActionForm is session.
That's ok if one doesn't mind the use of resources.
- Original Message -
From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Hi, I am looking for advice regarding the use of two images.
Lets say you have a class status that has two boolean state properties
isModify() and isNew(). If isModify() returns true then I want to display
modify.gif and call the JavaScript function modify() and, if isNew() is true
then I want
Another approach I would recommend to solve this problem (haven't tried it
though), would be to check the request referer. If it is an empty string
then the user either clicked refresh or they typed in the URL into the
address field on their browser.
- Original Message -
From: William
Title: Logic-Iterate not finding scope of Bean
I would suggest keeping a hidden property on your
form that keeps the state that you are in (ie., 1stTimeQuery, or
useQueryResults)...
- Original Message -
From:
Luna, Kat
To: [EMAIL PROTECTED]
Sent: Thursday, June 07,
Thanks Jon - as I thought :)
Kosh
-Original Message-
From: Jon.Ridgway
Sent: 08 June 2001 11:45
To: struts-user
Cc: Jon.Ridgway
Subject: RE: Can you do this with internationalisation.
Hi Kosh,
The responses to your question by David Winterfeldt Peter
Alfors are the
yes, but this is a form that is being filled in like a wizard type of thing,
i need the form to be session
any ideas, for an alternative?
-Original Message-
From: William Jaynes [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 1:40 PM
To: [EMAIL PROTECTED]
Subject: Re: Can anyone
how do I set default values for radio and checkboxes.
thanks
Hi all,
Something happens to corrupt a file I'm uploading from a multipart form. If
I run a ZIP file through my unzip utility targeting the actual ZIP file, it
unzips just fine. If I point my unzip utility at the temporary file in the
deployments temp directory of Orion Server (the app server
you can also have two separate action classes that use the same form, where
you use the first action class when you first go into that page, then use
the second when you are submitting or whatever in the form
-Original Message-
From: Luna, Kat [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
Don't forget that any client validations you do using JavaScript should be duplicated on the server side because there is no guarantee the JavaScipt will run. The client have have it turned off or the script could fail depending on the browser. I have started work on a validation framework that
Hello Oleg,
I tried this on both linux as well as NT, but unfortunately I still get the
same error.
I even tried adding the jdbc2_0-stdext.jar to my \jdk1.3.1\jre\lib\ext dir
as well, but this didn't help.
I am pretty sure my Ant install basically works because I have built other
things with it
Title: html errors tag not displaying content
hello,
i just upgraded to struts beta 3. i have an application that was working just fine using the struts errors tag. after the upgrade, i no longer see any error messages. on my jsp, i have a line:
html:errors /
that outputs no content...
I just installed Struts 1.0b2 with Websphere 3.5.3 and had one major
problem. If I do not put a try catch in the FormTag.doEndTag() I receive
an uncaught exception.
I modified the method FormTag.doEndTag() to the following to catch the
exceptions I was receiving from the removeAttribute()
Did you get the ant binary distribution or did you build ant yourself?
Building ant yourself may get you a version of ant that supports fewer tasks
depending on what is in your classpath when you build it. Certain classes
such as org.apache.tools.ant.taskdefs.optional.TraXLiason don't get built
Did you build Ant from the source and include the optional package?
My recollection is that TraXLiason is not included in the binary
distribution.
McLure, David wrote:
Hello Oleg,
I tried this on both linux as well as NT, but unfortunately I still get the
same error.
I even tried adding
It's not wrong to have a form in the session context, so long as it is
disposed in the normal course; it's just a convenience that you do not
want to overuse.
Dudley Butt@i-Commerce wrote:
yes, but this is a form that is being filled in like a wizard type of thing,
i need the form to be
Joe, Ted,
Your proposed solutions worked well. Thanks.
JohnH
-Original Message-
From: Joe Kepley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 5:50 PM
To: [EMAIL PROTECTED]
Subject: RE: ActionForm/Action with edit mode
I solved this one by creating an action that looked
Title: html:radio tag question
Hi-
I am converting an html page to struts jsp. The original page has a set of radio buttons that are supposed to be mutually exclusive. Each has a name, and the author used javscript functions that refer to these names as onclick handlers.
My struts
thanx
, will check it out
-Original Message-From: David Winterfeldt
[mailto:[EMAIL PROTECTED]]Sent: Friday, June 08, 2001 4:56
PMTo: [EMAIL PROTECTED]Subject: RE:
Javascript Validation
Don't forget that any client validations you do using JavaScript should be
i can display errors fine, but they are displayed not in the same order as i
created them ...
I see this is because the ActionErrors class uses a HashMap and therefore
doesn't return them in a given order (i think it sorts them according to the
hashcode value).
I can use the property tag in
Hi,
I am new to Struts technology, so forgive me if I not see
something obvious here.
Based on e-Commerece example from Wrox book, I have created
form to maintain organization, which suppose to behave like SQL Form. So I have
browsing keys, Update, Insert, Delete and other keys. Right now
.
Oleg V Alexeev wrote:
TH Though, if stay on this road, larger project swill have to start
TH assembling their struts-config.xml from smaller files, as some
TH people do with their Applicaton Resource now. ;-)
My first idea was to split struts-config to 'standart' part and
bean-factory part
Title: html errors tag not displaying content
Did you remember to add the html tag library to
your JSP page?
--
Dan Miser
http://www.distribucon.com
- Original Message -
From:
Chris
Wilson
To: [EMAIL PROTECTED]
Sent: Friday, June 08, 2001 10:08
AM
Subject: html
This is due to a bug in WAS. Search the mail archives for this group, as
there have been some patches that will solve this specific problem.
Unfortunately, they open up other potential problems and the real fix rests
in IBM's lap.
--
Dan Miser
http://www.distribucon.com
- Original Message
Hi,
It was something obvious :-)
JK
- Original Message -
From:
Jerzy Kalat
To: [EMAIL PROTECTED]
Sent: Friday, June 08, 2001 11:09
AM
Subject: Nested property error ?!?
Hi,
I am new to Struts technology, so forgive me if I not see
something obvious
I have my reset button defined:
html:form action=/queryOrg
html:image src=images/reset.gif width=113 height=24
property=reset/
Why is that the reset method doesn't get call and the Action class get
executed.
Anyone with an example?
Title: Question on the ActionForm design for dynamic data?
I have scoured this list unsuccessfully for an
answer, and this email seemed the best starting point so I am responding to it
with the question I have:
Fromwhat I can tell, this only explains how
to iterate over a collection to
Hello,
Is it possible to reference and forward to the input page of an action from
within the action? It seems as if I have to make an explicit forward
mapping for input for each action. Sometimes, I need to do extra state
checking inside action, and if that fails, to forward back to input.
I'm able to define my reset button as follow, but how do I add the image to
this button.
The reset tag doesn't have src property.
html:resetthanks/html:reset
-Original Message-
From: Kiet Nguyen
Sent: Friday, June 08, 2001 10:08 AM
To: Struts-User (E-mail)
Subject: Reset the form
I
return (new ActionForward(mapping.getInput()));
Seth Ladd wrote:
Hello,
Is it possible to reference and forward to the input page of an action from
within the action? It seems as if I have to make an explicit forward
mapping for input for each action. Sometimes, I need to do
return (new ActionForward(mapping.getInput()));
excellent, thank you very much!
Seth
Title: RE: reference input page from inside action?
Ted,
How is that different from
mapping.findForward(mapping.getInput());
We are using mapping.findForward() in all cases (that a struts-config mapping exists).
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Does that work?
getInput() returns a path and findForward() expects a logical name.
input isn't an ActionForward, it's a property of the ActionMapping
itself (that can be used to construct an ActionForward).
Steve Salkin wrote:
How is that different from
Hi,
Believe or not, I just ran into this issue today...
Wouldn't it be nice is ActionErrors used an Ordered Collection
Mikkel
-Original Message-
From: Charlesworth, Chico
To: '[EMAIL PROTECTED]'
Sent: 08-06-2001 17:50
Subject: displaying html errors in order
i can display errors
Hello,
I just am starting out with struts, and I have a question. I
started with this syntax in my test jsp:
html:form name=questionForm action=insertQuestion
html:text property=questionDesc/
/html:form
and this in my struts-config.xml:
form-bean name=questionForm
Hello Alex,
Friday, June 08, 2001, 4:17:37 PM, you wrote:
AC Hi, I am looking for advice regarding the use of two images.
AC Lets say you have a class status that has two boolean state properties
AC isModify() and isNew(). If isModify() returns true then I want to display
AC modify.gif and
Hello Chico,
Friday, June 08, 2001, 7:50:27 PM, you wrote:
CC i can display errors fine, but they are displayed not in the same order as i
CC created them ...
CC I see this is because the ActionErrors class uses a HashMap and therefore
CC doesn't return them in a given order (i think it sorts
Hello Kiet,
Friday, June 08, 2001, 9:08:07 PM, you wrote:
KN I have my reset button defined:
KN html:form action=/queryOrg
KN html:image src=images/reset.gif width=113 height=24
property=reset/
KN Why is that the reset method doesn't get call and the Action class get
KN
Hello Chris,
To use this tag you must, of course add html taglib definition to the
page and add two strings to properties files with resources for
MessageResources container. Another words - you must add such strings
as
errors.header=ul
errors.footer=/ul
to the properties package. It is
Hello Ellen,
You are speak about indexed properties. It can be defined by two ways
1. One method for get and set operations
public String[] getSomeProperty() {}
2. Two methods
public String getProperty( int index ) {}
public void setProperty( int index, String value ) {}
Friday,
Hello Seth,
For example -
return new ActionForward( mapping.getInput() );
if input attribute is defined for this action.
Friday, June 08, 2001, 9:50:25 PM, you wrote:
SL Hello,
SL Is it possible to reference and forward to the input page of an action from
SL within the action?
Hello Ted,
Friday, June 08, 2001, 8:01:31 PM, you wrote:
TH Oleg V Alexeev wrote:
TH Though, if stay on this road, larger project swill have to start
TH assembling their struts-config.xml from smaller files, as some
TH people do with their Applicaton Resource now. ;-)
My first idea was to
In general, you shouldn't need to specify the form name or type in the
JSP at all. The form tag will lookup that up from the struts-config.xml,
according to where you are submitting the form (action path = action
path).
html:form action=/insertQuestion
html:text property=questionDesc/
/html:form
Hello Bill,
Try to use
html:form action=insertQuestion.do
html:text property=questionDesc/
/html:form
not
html:form action=insertQuestion
html:text property=questionDesc/
/html:form
and restart servlet container (Tomcat, Resin, etc.) after
strut-config.xml changing (or call
you need not have the name attribute in the html:form tag. It can get it
from the struts_config file. Do you have setters and getters for all your
attributes in the actionform?
hope that helps.
VA
-Original Message-
From: Bill Clinton [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08,
Oleg V Alexeev wrote:
So I can place several struts-config sections to the config file and
all stuff will be parsed. Is it right?
Yes.
Are there any differences
between file with one big section and file with several sections in
case of whole content of such files is identical?
A
Ok, I've got a bit of a headache and here's the cause:
I'm using Visual Age for Java 3.5.2, with Tomcat 3.1. That works fine.
I installed Struts 1.0-b3 with Xerces 1.4.0.
Then I installed the struts-example.war file. That installed fine too
(Tomcat took care of it).
However, where my headache
I would highly recommend upgrading your Tomcat to 3.2.2. This may solve
your problem.
-Original Message-
From: Thomas L Richards [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 13:49
To: [EMAIL PROTECTED]
Subject: Problem With Struts and Tomcat
Ok, I've got a bit of a headache
Just as an aside, Oleg:
When I use RowSets as value object beans, the type is determined by the
JDBC metadata. I've been putting some wrappers around that so the
properties have ordinary getters and setters.
I see that BeanFactory includes code to create tables, but what about
reading tables
Hello all.
I wanted to know if I am able to use the
MultipartRequestWrapper object by itself.
That is, can I store MultipartRequestWrapper
objects in a bean.
My purpose is to temporarily storea binary
and its file name in a bean until the final form page when the user submits the
whole
Title: RE: reference input page from inside action?
Ted Husted wrote:
Does that work?
No.
getInput() returns a path and findForward() expects a logical name.
Yes.
input isn't an ActionForward, it's a property of the ActionMapping
itself (that can be used to construct an
I did build Ant on one of my two Linux installations (which was fun because
I had to pgp decrypt the source tars first), but the other one together with
my NT 4.0 install both have binary downloads of Ant1.3 running. I just
tried building Ant on my NT installation and I still get the same
I ran into that running Tomcat 3.1. You need to be running Tomcat
3.2.x. It's a difference in the servlet specification.
Rick
[EMAIL PROTECTED] wrote:
Ok, I've got a bit of a headache and here's the cause:
I'm using Visual Age for Java 3.5.2, with Tomcat 3.1. That works fine.
I installed
I was afraid it was something like that.
I'm downloading Tomcat 3.2.1 now (can't get 3.2.2 for VAJ yet).
Unfortunately, as it turns out, I need to upgrade VAJ to 3.5.3 since Tomcat
3.2.X won't work with VAJ 3.5.2. Go figure.
Anyway, thanks for the info everyone!
-Tom
Hi,
I have a question I hoping some one might have some ideas on how to
accomplish this ...
I am using the appsever based authentication - so I have a html page that
login.html.
now my welcome page is a frame that has two jsp pages in it. unfortunately
when I logon I see the login page in both
When I try to run this, I get this error:
/registration.jsp(-1): Error in tag library at: 'html': The Tag class
'org.apache.struts.taglib.html.ButtonTag' has no setter method
corresponding to TLD declared attribute 'styleid', (JSP 1.1 spec, 5.4.1)
probably occurred due to an error in
Hi Pratima,
Can you switch to basic authentication?
Another alternative is to change the top frame's location with
JavaScript in the logon page.
--Abraham
-Original Message-
From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 3:45 PM
To: '[EMAIL
Hogan, John wrote:
Joe, Ted,
Your proposed solutions worked well. Thanks.
Here's a simple trick for returning a blank ActionForm for new
data-entry.
Define a generic Input action, that does nothing but
return (new ActionForward(mapping.getInput()));
Then whenever you need to get
Now that you mention it, the FAQ-o-Matic is up again.
http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayTopics/action/SetAll/project_id/2/faq_id/36
Bill Clinton wrote:
Also, if anyone knows of any good documentation links, I am open to
suggestions. Other than the docs on the
HI
I have a problem in using
struts.The details are as follow:
The Web Server is WebLogic5.1.
and the configure info in the
web.xml is:
servlet
servlet-nameaction/servlet-name
display-nameaction/display-nameservlet-classorg.apache.struts.action.ActionServlet/servlet-class
Try putting the 1.0 beta 3 of Struts into the webapp
replacing the jar and the tlds. I test on Tomcat 3.2
and 4.0, but some other application servers do more
rigorous checking of the tld to the class and if they
don't match it generates an error.
David
--- Abraham Kang [EMAIL PROTECTED] wrote:
At JavaOne today, it seemed to be suggested that j2ee would have a MVC
framework join the recommendations. Later in the talk (scalibility in the web
tier with jsp blah blah ridiculously long title), it struts was alluded to as
being part of j2ee in the future. So is struts the ever mysterious
Hello Ted,
Saturday, June 09, 2001, 12:55:04 AM, you wrote:
TH Just as an aside, Oleg:
TH When I use RowSets as value object beans, the type is determined by the
TH JDBC metadata. I've been putting some wrappers around that so the
TH properties have ordinary getters and setters.
TH I see
Hello Ted,
Good idea. Thank you.
Saturday, June 09, 2001, 12:38:37 AM, you wrote:
TH Oleg V Alexeev wrote:
So I can place several struts-config sections to the config file and
all stuff will be parsed. Is it right?
TH Yes.
TH Are there any differences
between file with one big section
82 matches
Mail list logo