Hi,
Has any one used validwhen validator rule ? when I am using it is not doing
anything its making empty validate javascript methods and no validations are being
called .
Thanks in advance.
cheers,
Sumeet
As I understood, validwhen is only on server side. there will not be any
javascript validations.
-Original Message-
From: sumeet sharma [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 1:08 PM
To: [EMAIL PROTECTED]
Subject: validwhen
Hi,
Has any one used validwhen
Hi,
I am getting
[
org.apache.jasper.JasperException: Cannot retrieve definition for form
bean null
]
but I have given it in my struts-config.xml
[
form-beans
form-bean
name=loginForm
type=com.globalRad.LoginForm/
/form-beans
]
the class LoginForm.class exists in
Hi ,
am new to struts...am trying to deploy an example...which is throwing
org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class
message exception...i tried to set the structs.jar to classpath...still am getting
the same error...
pls advice me...
sreeni
This e-mail
Can you please send the code of your action mapping also. AS i think u may
be using attribute not the name while associating the form with the Action.
- Original Message -
From: Ipsita [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 13, 2003
Hi
To look after into the problem. I need to have a look on to ur code.
Which server are you using?
- Original Message -
From: Gali, Sreenivasalu Naidu (Cognizant) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 2:33 PM
Subject:
HI
is there any way to call a action within an JSP file without using Submit button and
any other html:form element
I want to call a action with in a logic:iterate which is further containing one more
logic:iterate
Hi,
am using Tomcat 4.1
-Original Message-
From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 2:38 PM
To: Struts Users Mailing List
Subject: Re: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13)
Unable to load class message
Hi
To look after into
no worries. It is simple
Can u send me the code and steps u r follwoing
Cheers
Gary
- Original Message -
From: Gali, Sreenivasalu Naidu (Cognizant) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 2:42 PM
Subject: RE:
Hi,
I have a problem regarding struts logic:iterate
I need to show category wise listing of products. so can anybody advice me how to
create nested logic iterate loops to accomplish this.
what i need is there will be two nested logic iterates
logic:iterate
!--this is for
For newbie, try to use struts-blank.war and start developing.
Hope this will helps u.
regards
Sathish
On Thu, 13 Nov 2003 14:33:34 +0530, Gali, Sreenivasalu Naidu (Cognizant)
[EMAIL PROTECTED] wrote:
Hi ,
am new to struts...am trying to deploy an example...which is throwing
Hi ,
i just followed the steps and code available in this following link
http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp#struts
Thanks a lot ..
Regards
Sreeni
-Original Message-
From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 2:42
use property attribute of html:messages or html:errors. you will get only
the messages that concern your field.
Caroline
Caroline LAUFERON
Cap Gemini Telecom Media Networks France
Skill Center VASN - RENNES
02
Hi Ipsita,
Have a look at the following ex:
form-bean
name=TestFormBean
type=test.FormBeanClass/
action
path=/test
type=test.ActionClass
scope=session
name=TestFormBean
validate=true
forward name=Success path=/jsp/displaypage.jsp
Tutorials with struts
http://jakarta.apache.org/struts/resources/tutorials.html
For List of common errors in Struts
http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html
Some code examples with struts
http://forum.exadel.com/viewtopic.php?t=120
do share yours!!!
Raman Garg
Hi,
I have a problem regarding struts logic:iterate
I need to show category wise listing of products. so can anybody advice me
how to create nested logic iterate loops to accomplish this.
what i need is there will be two nested logic iterates
logic:iterate
!--this is for listing
On 11/12/2003 11:35 PM Nathan Maves wrote:
What is the difference between these three
DynaActionForm
DynaValidatorForm
DynaValidatorActionForm
I assume that the first does no validation. But I can not find any docs
on how to use the second two.
Hi Nathan,
the first allows the developer to write
Thank you very much
-Original Message-
From: Raman Garg [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 3:13 PM
To: Struts Users Mailing List
Subject: FYI - some good links
Tutorials with struts
http://jakarta.apache.org/struts/resources/tutorials.html
For List of common
Hi
I'd like to catch exceptions in an exception handler and then re-use the
ActionMessage mechanism to relay messages to the failed input page. Is this
possible? What do I have to do within the ExceptionHandler to invoke the
ActionMessage mechanism?
thanks
Nathan
Yes it is for server side only.
But if I can define a CDATA and call a method to perform javascript validation cant I
do that ??
As there is no way I can validate a nested indexed property on the clientside and
server side same time . No then I will end up writting javascript in .js files ..
Here u go...I have a userForm that has a list of users. Each User further has a list
of orders...here's the logic:iterate code to do what u want to do ...
logic:iterate name=userForm property=users id=user
bean:write name=user property=firstname/
logic:iterate name=user
Added new documentation about the login example. A quick tour of xmoon.
http://www.xmoon.it
-Messaggio originale-
Da: Mario [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 12 novembre 2003 14.30
A: '[EMAIL PROTECTED]'
Oggetto: who want to join xmoon project ?
Its an opensource
Hi
I am using :
Redhat 9
Apache 2.0.48
Tomcat 4.1.29
Struts 1.1
For some reason I am not getting any errors and control is not getting forwarded
to respective success forward from DummyAction.
Any help is appreciated.
Regards
Ajay Kalidindi
config and source follows:
struts-config.xml
Try to debug it using System.out.println (SAMPLE TEXT );
in your action class
public ActionForward perform(ActionServlet servlet,
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
Struts comparison to WebWork:
http://www.jroller.com/page/mrdon/2003#re_struts_vs_webwork_technical
.V
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
the methode signature is wrong.
You have to override the methode
public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
DynaActionForm implements the DynaBean interface and allows you to
declaratively create
action forms in the struts-config file.
DynaValidatorForm is an DynaActionForm which hooks into the struts
validation
framework. The form name is passed to the validation framework to identify
the
validation
Assuming you want to do this to make use of the html:messages tag... The
default ExceptionHandler (org.apache.struts.action.ExceptionHandler) creates
an ActionErrors object which encapsulates the error message derived from the
Exception and the ExceptionConfig. By nature of the inheritance
I can't find a link to the source code for Struts 1.0.2 on the Struts website anymore.
Anyone know how I can download a copy?
Thanks,
JOHN
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Any time he has to fix a bug or add a new feature, he knows exactly which
file to edit ;-)
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 9:03 PM
To: Struts Users Mailing List
Subject: Re: PDF File Display in JSP-Struts
I
I noticed that the example has a couple of Hibernate xml files in it aswell
?
Mike
|-+
| | Mario |
| | [EMAIL PROTECTED]|
| | idea.com|
| ||
|
when attempt to try this with other field its working fine()...Any Idea? Has
anyone ever experienced such problem in validation ??
-Ram
-Original Message-
From: Ramadoss Chinnakuzhandai
Sent: Wednesday, November 12, 2003 4:46 PM
To: Struts Users Mailing List
Subject: RE: Validation
Yes but i'll remove it because hibernate probably will not support dynabean
in the future. i'm using commons sql and i'll publish another demo soon (i
hope)
-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Inviato: giovedì 13 novembre 2003 15.50
A: Struts Users
I have some tiles controller classes (BlahBlahTilesController implements
org.apache.struts.tiles.Controller) assigned for a few definitions. Are
these managed by Tiles as singletons? I am guessing they are.
Version Info: I am using TilesForStruts.jar with Struts 1.0.2
Thanks,
-Shyam
Good morning...
I'm having an impossible time getting a pool of connections to a DB2
database going.
I've gotten a single connection to work using the old method
(DriverManager.register, DriverManager.getConnection, ...) but I can't seem
to do it by describing the datasource in struts-config.xml
Mario,
Where did you hear that dynabean will not be supported? I'm using the 2.1b6
release and it has components that can be dynabeans. I didn't see any notes
about it going away anytime soon. (not that I've used those dynabean
components yet).
Regards,
David
-Original Message-
From:
David,
There has been discussion on the Hibernate forums and mailing lists that
dynabeans will be deprecated in a release after 2.1. I do not believe that
a replacement will be made available. If you would like to voice your
opinion on this, please visit the Hibernate forums at:
http://forum.hibernate.org/viewtopic.php?t=925033highlight=dynabean
-Messaggio originale-
Da: David Friedman [mailto:[EMAIL PROTECTED]
Inviato: giovedì 13 novembre 2003 16.25
A: Struts Users Mailing List
Oggetto: RE: R: who want to join xmoon project ?
Mario,
Where did you hear that
How can generate input tags dynamicly ?? My application have fields that are
dynamics and sometimes I have 1 fields and sometimes I have N fields.
Can I control this in struts ??
Thanks
Sergio.
Aquest
Can anybody suggest me is there any good resources to refer particularty deep into
Struts Validation...? I did refer Struts by Marinescu and other one by Ted Husted but
unfortunately did not find enough information particularly deal with Struts
Validation.. I hv been trying to see what is
I remember in the pre-Struts days of someone on the JSP Interest
mailing list
talking about the fact that they had a 5000 line JSP page that
implemented the
entire app (complete with creating different forms and processing the
results)
-- all in a single page. And he was *proud* of it!
Doesn't
Hi,
Is there any Struts tag for an expression like
%= request.getAttribute(attributeName)%
where the attribute is a String.
Thanks,
Shyam
__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
Hi,
In my application, I am using logic:iterate tags to iterate over a
collection. The collection is displayed as a table on jsp page, and I use
indexed=true attributes to display individual fields which are all
updateable.
This collection can sometimes be very big (like 500). I wish to break
you can use
bean:write name=attributeName
OR
bean:message key=attributeName/
Where key is the key defined in resources file
Cheers
Gary
- Original Message -
From: Shyam A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 9:40 PM
Subject: simple question
Try this link
http://archive.apache.org/dist/jakarta/struts/old/release/v1.0.2/
-Original Message-
From: Hohlen, John C [mailto:[EMAIL PROTECTED]
Sent: Thu 11/13/2003 8:32 AM
To: Struts-User (E-mail)
Cc:
Subject: Can't Find Source
Hi,
I have a JSP page in which I display the results of a
database query in a table format using logic:iterate
tag for a bean. I want to display the number of the
table row using the indexId attribute of the
logic:iterate tag. The index starts from 0 but I
want to display the records starting
Hi All,
Can anyone please explain the real funda of struts-legacy.jar.
I faced a big problem of image uploading and was getting error when i was
posting the form
by setting enctype but when i kept struts-legacy.jar into my webserver
classpath. My code is running
perfectly
What is the logic
I have a simple design question..
I have to forms.
first form is one simple select box that needs to have the values
populated from a db.
This form needs to have validation and the submit to the second form.
The second form need to populate a select box based on the value from
the first form.
You could use JSTL
c:forEach var=element items=${form.items} varStatus=status
c:out value=${status.count}/ !-- starts at 1 --
c:out value=${element}/br
/c:forEach
For more information see Interface LoopTagStatus in the current JSTL Spec.
robert
-Original Message-
From: Shyam A
Then a simple answer, one solution would be, use a single form, two
actions, and use action (path) based validation.
Saul
-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 12:02 PM
To: [EMAIL PROTECTED]
Subject: simple design question
I can't use the form names because in our application all the forms are by
the same session attribute.
I read from somewhere that I can do something like,
formset
form name=/logonaction
/form
/formset
But I haven't been successful...Please advice, Thanks!
Kevin
Yes. You can do this, but you have to use or subclass
DynaValidatorActionForm.
It uses the path attribute of the action mapping to determine validation
rules
for the request.
robert
-Original Message-
From: Kevin Wang [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 12:13
This sounds like what I need! Can you explain a little more.. :)
Thanks in advance,
nathan
On Nov 13, 2003, at 10:10 AM, Saul Q Yuan wrote:
Then a simple answer, one solution would be, use a single form, two
actions, and use action (path) based validation.
Saul
-Original Message-
Ok, then,
1. Let's say you declare your form as MyForm, which is of type
DynaValidatorActionForm in Struts-config.xml.
2. And you declare your actions as /myAction1 and /myAction2
respectively.
3. Then in validation.xml, declare your validation as:
form name=/myAction1
field ...
(this is really a taglib question, not struts,
so my apology for being off-topic)
I am designing a security tag which shows or
nukes its body depending on the user.
I got it to work, although I have a question
as to why the simplier code didn't work.
I am just learning and I want to understand.
-Message d'origine-
De : Gonzalez Comesaña [mailto:Gonzalez Comesaña]
Envoyé : jeudi 13 novembre 2003 11:36
À : Struts Users Mailing List
Objet : Dynamic HTML
How can generate input tags dynamicly ?? My application
have fields that are dynamics and sometimes I have 1 fields
There are quite a few ways to do this and you can find help on this
list. I prefer the Nested Tags to do this.
Affan
Gonzalez wrote:
How can generate input tags dynamicly ?? My application have fields that are dynamics and sometimes I have 1 fields and sometimes I have N fields.
Can I control
As of March 14, 2003 it appears that Struts/Commons validation does not
support indexed properties as such:
I have a collection of objects A where each A has some properties, call them
p1, p2, and p3.
I want to validate field p3 for each object A in the collection.
Is this currently possible
I would suggest looking at Netbeans for Tomcat based development. It has
good integration with Netbeans.
- Navneet
David Graham said the following on 08/11/2003 12:40 AM:
Make sure you haven't added any of your projects to Tomcat's classpath via
the plugin. That will always cause problems.
Thanks Robert! Right now my forms are extending ActionForm. Can I just make
them extend DynaValidatorActionForm without changing anything else? What do
I need to change if I do need to?
Kevin
Hi,
I have a XML file and a XSLT file, i need to create a
HTML file in a temp directory then read this file to
get a String so can email this String or print the
String as HTML
is it possible to do it?? and how
I am using jdk1.4.1
Ashish
=
A$HI$H
__
Do you
You will also need to set the 'type' attribute value in the form-bean
element of the struts-config file to
org.apache.struts.validator.DynaValidatorActionForm (or a subclass thereof)
robert
-Original Message-
From: Kevin Wang [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13,
Hello All,
Can i do the conditional validation. For example if i have a drop down and
the default value is Please select one. if user dosen't select anything.
validation won't show that it is required field to select.
can anyone please help. Also how do i validation for radio button to see
Hi,
Heeelp:
I have been struggling for the last 2 days with an issue regarding the /
request / session scope of the form beans defined in action mappings.
(Request scope does not work for me, I have to use session scope...). Can
you please help :
I have the following steps within the code;
Hi , i have got a question about ActionForm
For example if i have got a simple form class which is inhereted from
ActionForm, here ist he code
public class SimulationForm extends ValidatorForm {
.. // some declerations
Voinea, Marina wrote:
(MtgDayForm)form.setMeetings(mtgBeanList); // try to
store in form, the form scoped at request
You fowarded to this Action and it has the current request, but objects
in that request are now no longer around once you leave this Action.. so
you need to
Hi,
i think you have to set the attribute redirect=false, than a simple forward
is done.
The difference between a redirect and a simple forward is that if you use
redirect a new request is create when you call another resource (jsp or
action).
The default value of the attribute redirect is
Hi !
Has anyone found sample STRUTS application and/or documentation on the net that uses
frames ? I would like to build the application with top menu, side menu and main
screen.
Thanks !
Neso
-
Do you Yahoo!?
Protect your identity with Yahoo! Mail
Hi , (sorry for previous email) i have got a question about ValidatorForm
For example if i have got a simple form class which is inhereted from
ValidatorForm , here is the code
public class SimulationForm extends ValidatorForm {
Hi,
Is there a way to make DynaValidationForm not to do the validation based on
a certain attribute other than sub-classing it?
That's not that difficlt to do, but I was wondering if there is a better
way, here is my scenario.
I have an account table and I have one form and one action for all the
Sweet
Now are you telling me that the two html form can be on the same page?
What about pre-loading the select boxes with information?
On Nov 13, 2003, at 10:43 AM, Saul Q Yuan wrote:
Ok, then,
1. Let's say you declare your form as MyForm, which is of type
DynaValidatorActionForm in
I have the code fragment which passes the current index in logic:iterate tag
to the javascript function openChildWindowNew. I am not able to do that as
index value is never passed because indexed counter is never evaluated.
The code is like:
logic:iterate id=finduser name=userlist indexId=ind
I'm using frames w/Struts, what specifically do you want to know? There's
not anything special you have to do with frames and Struts as far as I know.
-Original Message-
From: neso m [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 3:02 PM
To: [EMAIL PROTECTED]
Subject: struts
I am currently working on a site that is frame based for each of the pages that
are to be displayed I reference the action mapping for each of the src tags.
-Original Message-
From: neso m [mailto:[EMAIL PROTECTED]
Sent: Thu 11/13/2003 2:02 PM
Hi all,
We're migrating an application to using Struts Tiles and are noticing
a significant decrease in performance; not just the first time a page is
being accessed but every time. I see in the archives that others have
had similiar problems and that the solution lay in the servlet engine,
...I need to put dynamic support for different languages. Display every page in
English/French, back and forth also top and side menu changes every time I click
French or English. As I change through my top menu i would like my side menu to
change, as well as my main page, for example when
It should work if the two html forms are on the same page, if that's
what you want.
Populating your selection box is another question, you probably need to
prepare the data as collections in your action and send that to the
request. There are tons of threads in the archive on this, so I'm not
Hi,
I am trying to write a logon page as discribed on the struts-example, but finding
some problem with my logon.jsp when ActionLogon.java trys to return ActionErrors
or ActionMessages back to the original page, the logon.jsp. I am using Struts1.1
+ jboss-3.2.1_tomcat-4.1.24. I tried two ways to
Yes! Thanks a lot,I read it and I forgot...
However, now it can not retrieve the path to the style sheet, there is a tag
to deal with that, I'm trying to find it
-Original Message-
From: Phil [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 3:01 PM
To: Struts Users Mailing
There are 100 ways to peel an onion one way to peel it is to attach a parameter to
each of your links and in your action mapping determin which pages should be displayed
based on the detected parameter
As for displaying different pages in your different frame windows... you control
Yeap, the html:base tag is used to solve page forward issues...
Thanks again. (So we need: redirect= false and html:base together) ...
-Original Message-
From: Voinea, Marina
Sent: Thursday, November 13, 2003 3:34 PM
To: 'Struts Users Mailing List'
Subject: RE: Request scope for
Thanks for your answers. Do you have any documents, how to, etc to point me too?
Neso
David Liles [EMAIL PROTECTED] wrote:
There are 100 ways to peel an onion one way to peel it is to attach a parameter to
each of your links and in your action mapping determin which pages should be
Here is an example frame layout that maps to actions for each of the pages to be
displayed...
frameset rows=80,* cols=* frameborder=no border=0 framespacing=0
frame src=/header.do name=headerFrame scrolling=no noresize
frameset cols=120,* frameborder=no border=0 framespacing=0
frame src=/nav.do
Can anyone tell me what's going on in here.. i want the product field has to
have some value other then Please select one. and it should be required
field.
Thanks,
Newt
field property=product depends=requiredif
arg0 key=firstForm.product.displayname/
var var-namefield[0]/var-name
Using the following code fragment:
function f_ValidateForm(later) {
var newline = unescape(%0A);
var leading_space = ;
var ni = newline + leading_space;
} // end with
if (later == 1)
{
document.formq1.BUTTONPRESSED.value = FinishLater;
document.formq1.submit();
}
else
if (later
Btw, Kris - I just had to make use of this code that you provided, and
it works perfectly. Sweet!
Kris Schneider wrote:
If you can accomplish what you want via Apache rewrite rules, that seems like a
simpler solution. If that doesn't work out, here's a JSP/JSTL equivalent of how
html:img comes
Read up on Tokens in the Action class. It explains how to eliminate this
( that would have also happened even in a regular non struts servlet/jsp).
hth,
.V
Judy Spengeman wrote:
Using the following code fragment:
function f_ValidateForm(later) {
var newline = unescape(%0A);
var leading_space =
I would like to include a field's value in my Validator custom error
message. In my validation.xml file, I have a msg tag defined with a
key=someProperty.errorMessage. In my application.properties file, I have
defined my someProperty.errorMessage property as follows:
Hi,
Our application is using Struts1.1 and running on Tomcat4.1. We got the
following exception stack trace.
Any clues will be appreciated to fix this problem.
Thanks,
Durgaprasad
Exception Stack Trace:
--
Nov 13, 2003 12:21:37 PM
As I already has this kind of message, I think Struts didn't succed in
executing your action so
a) check the name and package of your class (comparing to the one declared
in your struts-config file)
b) check that your class extends o.a.struts.action.Action
c) check the signature of the
to get an Html output you can use JAXP's javax.xml.transform.* Package.
to mail the same out put you have to generate a String containing all the html output
and
use the ByteArrayDataSource.java class which u get from java mail examples from sun.
i did this in one of my project.let me know if
You can make two action mappings say
For Retrieveing details
action path=/RetrieveAccDetails type=com.AccountAction
scope=request name=AccountForm parameter=method validate=false
forward name=success path=/message.jsp
/
/action
For Editing
action
Dear all
I have a design question:
there are three columns in a database table:
category_id,
category_description,
is_main_category
I want to iterate all the records in this table in a jsp page using one check box for
each record. category_id is the checkbox's value,
I am running struts in Webpshere 5.0 and I got this error:
[11/14/03 0:57:40:266 EST] 391b9f1f RequestProces I
org.apache.struts.action.RequestProcessor Processing a 'POST' for path '/login'
[11/14/03 0:57:40:312 EST] 391b9f1f WebGroup E SRVE0026E: [Servlet Error]-[action]:
I am fairly new to struts, I have implemented a lookup up action the
searches for a recipe.
recipeLookup.do?LOOKUP_OBJECT_KEY=RECIPE_LOOKUPLOOKUP_NEXT_URL=recipeView.doexec=
This line above is what I use to call the recipeLookup which once I have
clicked a recipe it forwards to the NEXT_URL.
95 matches
Mail list logo