Hi,
Iam trying to validate a simple form which has a name, password email
field. I have validated that name field(html:text) should contain only
characters, password field(html:text) contains only numbers email
field(html:text) should contain proper email id.
When i enter only numbers in
mosho ha scritto:
I have a problem. I am using tiles for my layout.
I have a baselayout.jsp where I am inserting all my header, body and footer
tags.
I want to insert another attribute called breadcrumbs which have some insert
statements. for example,
my tile definition is:
definition
Hello people,
I'm doing some research regarding Java Web development
1. How many projects do you get that start from scratch, ie design,
development, coding, testing etc.
2. How much is maintenance of existing applications. Also, do the
existing applications belong to you?
3. Also, how much time
Hi All,
Am using struts in my project. Can anyone tel me how to implement pagination
in struts. I dont have any idea how to do that. Any links or examples will be
of great value.
Thanks in Advance.
-
Heres a new
Pillay, Kiren KN [EMAIL PROTECTED] wrote:
Hello people,
I'm doing some research regarding Java Web development
1. How many projects do you get that start from scratch, ie design,
development, coding, testing etc.
2. How much is maintenance of existing applications. Also, do the
existing
Pillay, Kiren KN [EMAIL PROTECTED] wrote:
Hello people,
I'm doing some research regarding Java Web development
1. How many projects do you get that start from scratch, ie design,
development, coding, testing etc.
2. How much is maintenance of existing applications. Also, do the
existing
http://www.google.com/search?q=struts+example+pagination
the fisrt result on javaworld pretty looks like what you need:/
On 8/1/06, Medicherla Lakshmi [EMAIL PROTECTED] wrote:
Hi All,
Am using struts in my project. Can anyone tel me how to implement pagination
in struts. I dont have any
Hi,
Iam trying to validate a simple form which has a name, password email
field. I have validated that name field(html:text) should contain only
characters, password field(html:text) contains only numbers email
field(html:text) should contain proper email id.
When i enter only numbers
Hi
I do not see your answer?
Regards
Kiren
-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED]
Sent: 01 August 2006 09:23 AM
To: Struts Users Mailing List
Subject: Re: Off-topic: Java Web development research
Pillay, Kiren KN [EMAIL PROTECTED] wrote:
Hello
pass the formbean name at run time change the logic It works for me:)
-Original Message-
From: Parvat Singh Ranawat [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 11:32 PM
To: user@struts.apache.org
Subject: two form one jsp
Hi all,
I'm attempting to create a JSP that is made up
http://struts.apache.org/1.x/userGuide/building_controller.html
Specifically, section 4.3.3 Map-backed ActionForms.
have already read that. But in that the page is generated dynamically, it
doesnt change once rendered on the client, which is what I want to do.
--
Puneet
Hi,
1. When should we expect a Beta of Struts 2 and will it support jdk 1.4?
2. When should we expect nightly builds with support for jdk 1.4?
This is important for us, as we are deciding technology for next version
of our project and we have been using struts 1x till now.
Thanks in
Adam Gordon ha scritto:
We have a table which we populate with a user's choice of custom
registration fields (name, email, phone, company, etc...).
Probably this can help you:
http://struts.apache.org/1.x/userGuide/building_controller.html
Go to section: 4.3.3 Map-backed ActionForms (Adam,
Suppose i have an images folder in my webapp with subfolders
corresponding to locales:
+ WEB-INF
+ jsps
+ images
+ default
+ myImage.png
+ fr
+ myImage.png
+ el
+ myImage.png
i'd like to do something like
foo:img imageFolder=images image=myImage.png /
to render the
Hi,
I have a Bean:
package project.struts.General;
import java.util.ArrayList;
import java.util.Collection;
import java.io.*;
public class Prueba implements Serializable
{
private Collection empresas=new ArrayList();
public Collection getEmpresas()
{
empresas.add(string1);
I've done this with the latest nightly build and posted it as a
separate distribution.
* http://people.apache.org/builds/struts/2.0.x/nightly/
All that we are doing is running the J5 JARs through RetroTranslator.
Other projects have been using this tool successful. Note I have not
tested the
Hi,
Iam trying to connect to oracle database through struts database
connection pool, also i have placed commons-dbcp.1.2.1.jar in web-inf/lib
folder.
It is throwing the following error:
java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool
I do this using 3 actions
loadAction - called first time the page is loaded, populates the form with
values from the db, the form has session scope.
editAction - called by a click on the add or delete button, adds or removes
a row from the form. Add and delete buttons should post to this action
Displaytag will do it
http://displaytag.sourceforge.net/11/displaytag/tagreference.html
See the pagesize attribute.
-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED]
Sent: 01 August 2006 08:20
To: user@struts.apache.org
Subject: pagination
Hi All,
Am using
Hi All,
In my application when the user logs into the system I want to display
the Last logged in information.
Can anyone tell how to design this? Do I need to have a field in
database or I should do this using cookies?
How should I design my application?
Also I am using certain values
Hi
I have a action form bean class.The action form consists of around another 5
forms.
Each form consists of its own validation.How to call the form validate
method.
One method call
errors = myform2.validate();
errors = myform3.validate();
errors = myform4.validate();
errors = myform5.validate();
hi all
i want to display graphs in my application. so is there any taglibs or
something else to display graphs.
Sp
Rauf Khan ha scritto:
java.lang.NoClassDefFoundError:
org/apache/commons/pool/impl/GenericObjectPool
You need Jakarta Commons Pool:
http://jakarta.apache.org/commons/pool/
Anyway notice that Struts DataSource support has been removed since 1.2
version (correct me if I am wrong), so you
Thanks Ted.
We are more than likely going to be upgrading to Weblogic 9.2 and JDK 1.5 so
I may not get a chance to test this on JDK 1.4.
By the way, I've been using one of the Snapshot builds from last week and so
far things look great! I've been using the JSF integration stuff, and other
than
Look here: http://www.java-source.net/open-source/charting-and-reporting
-Mensaje original-
De: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Enviado el: Martes, 01 de Agosto de 2006 10:08 a.m.
Para: Struts Users Mailing List
Asunto: [OT] Re: graphs in jsp/struts
Patil, Sheetal ha
Look in here
http://www.omnytex.com/articles/rftwwdv/rftwwdv.htm (this one has other links
too!)
http://datavision.sourceforge.net/
Thanks and Regards,
Thomas Joseph
Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India
www.kottsoftware.com
On 8/1/06, Chris Waring [EMAIL PROTECTED] wrote:
I'm going to see if I can come up with a patch to allow the jsp to be
defined as part of the result. I'm also going to try using Shale's Tiles
integration with this to see if it works. If I come up with anything, I
will submit the changes
I think Don did mention something about that. Should I open the ticket first
or see if I can get something working and then open the ticket?
Are there instructions somewhere on the procedure used for creating,
assigning, working on tickets?
Thanks,
--Chris Waring
--
View this message in
1. Each element in a document must have a unique id.
This element is then accessed in script using
document.getElementById().
e.g. p id=myP.../p --
document.getElementById(myP)
If more than one element has the same id and you try
to use that id
with document.getElementById(), the method
On 8/1/06, Chris Waring [EMAIL PROTECTED] wrote:
I think Don did mention something about that. Should I open the ticket first
or see if I can get something working and then open the ticket?
The general process is to mention a short-tem plan on the dev list, so
people can coordinate effort.
On Tue, August 1, 2006 5:05 am, Puneet Lakhina wrote:
http://struts.apache.org/1.x/userGuide/building_controller.html
Specifically, section 4.3.3 Map-backed ActionForms.
have already read that. But in that the page is generated dynamically, it
doesnt change once rendered on the client,
Rauf-
Are you doing client or server-side validation? Or both?
W.R.T your multiple errors, there is an attribute you can set in your
struts XML file, namely:
| plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
Antonio-
I'll check out that link after I send this. We found a demo online
somewhere but it's from 2004, and doesn't appear to be working for us -
we're getting an NPE when struts is trying to render a property for a bean
in the array of bean objects - using the debugger, I can see that the
Hari,
Form name won't work, or won't be reliable, since two forms have the same
name (via Struts). You MUST use the index.
Caroline (or Jen?)
All I can say is Wow! document.getElementById() only works in IE, not
FF. Your response is an arduous elaboration of my document.forms[0] and
I decided to do my own thinking and i believe the best way to go would
be to make a simple action to solve this (and use normal img tags as
well). The action will
* intercept all URLs starting with /images
* check the availability of the file stream prefixing the requested URL
with the
Looks like it may not be wrapped in a html:form tag in your JSP. You
probably also want a field named toSelect, with accessor and mutators in
your form bean, to hold the selected value.
On 8/1/06, Francisco Exposito Aguilera [EMAIL PROTECTED] wrote:
Hi,
I have a Bean:
package
Is there something about yourself that you'd love to change?
If you could create positive changes in yourself RIGHT NOW would you?
www.HumanDataTransfer.com
---
MAF Anti-Spam ID: 20060801082756H1v3CkI2
-
To unsubscribe,
On 8/1/06, Emmanouil Batsis [EMAIL PROTECTED] wrote:
Suppose i have an images folder in my webapp with subfolders
corresponding to locales:
+ WEB-INF
+ jsps
+ images
+ default
+ myImage.png
+ fr
+ myImage.png
+ el
+ myImage.png
i'd like to do something like
foo:img
I want to do some thing that I think should be simple but I can't figure
out how to do it with the Struts taglibs. So far I've never used a
single scriptlet and I don't want to start now.
I have a number stored in a bean which I can get at just fine (tested
with bean:write).
What I need to
I´ve added it into a html:form action=nameaction.do but I obtain the
error
Cannot create iterator for [EMAIL PROTECTED]
I´ve modified some code because I want to obtain a select with all info of a
table which is placed in a database when the page is loaded; and this page
only comes from a
html:select name=nameForm property=pays
html:options collection=empresas property=value labelProperty=label/
/html:select
where pays is the property of your form
2006/8/1, Francisco Exposito Aguilera [EMAIL PROTECTED]:
I´ve added it into a html:form action=nameaction.do but I obtain the
Don't forget SourceForge's ValueList:
http://valuelist.sourceforge.net/
-David
-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 01, 2006 8:49 AM
To: 'Struts Users Mailing List'
Subject: RE: pagination
Displaytag will do it
On 8/1/06, Bart Busschots [EMAIL PROTECTED] wrote:
I have a number stored in a bean which I can get at just fine (tested
with bean:write).
What I need to do is loop from 1 to that number and print a text area
for each element in that range.
c:forEach
u put the collection empresas in the request or session, try both i think .
2006/8/1, Romu [EMAIL PROTECTED]:
html:select name=nameForm property=pays
html:options collection=empresas property=value
labelProperty=label/
/html:select
where pays is the property of your form
2006/8/1,
Following on from my earlier email it strikes me that the most sensible
way to deal with collecting a variable number of student names is to
have a LinkedList in your form bean. However, the question then is, can
Struts handle this? Can the validator handle this? I would need the
validator to
I can't see how to use the foreach tag in my case. I have no collection
to loop through, just a number of times I need to loop and I need to
access this counter within my loop. I immediately thought of the
c:foreach and logic:iterate tags but can't see how to make them work in
this case.
You could try something like:
html:form action=
c:foreach begin='0' end='${endval}' varStatus='idx'
html-el:text property='student_name_${idx.count}'/
/c:foreach
But, why not make the student_name an array? The code below should
work, I havent' compiled it and I usually iterate thru a list
Lance-
That works as long as you can pre-populate your field before clicking
the editAction button. Recall that our Add Field button, via
JavaScript, adds a new row to the table and by default the textfield is
empty so the only way we would be able to retrieve the user's input
would be to
On 8/1/06, Bart Busschots [EMAIL PROTECTED] wrote:
I can't see how to use the foreach tag in my case.
c:forEach var=i begin=${1} end=${numberOfItems}
...
input type=text name=c:out value=name_of_box_${i} / value= /
...
/c:forEach
Thanks for that Ed,
I was thinking that it would make sense to have the form element be a
list of some sort, however, can the StrutsValidator deal with validating
all the elements of a variable list?
Thanks for your help,
Bart.
Ed Griebel wrote:
You could try something like:
html:form
Lists is where you want to be headed, see answer to previous question
as to how to do it on JSP. The key is that the Jakarta
BeanUtils/PropertyUtils classes treat arrays and collections the same
way so both can use brackets for element indexing. The key is to
predefine the instance, I think
Thanks Ed,
I've decided that a simple array is the way to go for me here. It will
just be an array of Strings, nothing too complex. The validator is
proving a little more complex to figure out.
So, I have an array of Strings in a form property and I need to be sure
that each String in that
On 8/1/06, Bart Busschots [EMAIL PROTECTED] wrote:
This page is not a full API spec by any means but it does claim to link
to a full spec at
http://struts.apache.org/1.x/struts-action/apidocs/org/apache/struts/validator/package-summary.html#package_description
thing is that page gives a 404.
OK ... I have a simple two-step for for allowing a user of our system (a
teacher) to create a group of students in our system. The first step
asks the teacher to enter some basic information about the group as a
whole, specifically, the name, the group type (a dropdown), a group
description (a
In case anyone else comes across this thread in the future and was
wondering what the solution was, it is just a very small change in the
JSP code. The correct code reads:
ul class=form_element_list
jsp:useBean id=createStudentGroupForm scope=session
It`s been a while since I worked with that .. but I think you missing
the name attribute in you text tag i.e.:
html:text name=student property=studentNames indexed=true /
Regards
/David
Bart Busschots wrote:
OK ... I have a simple two-step for for allowing a user of our system
(a teacher) to
You can create a Student object with say FirstName, LastName etc. The form will
have a list of Student objects. I usually do with the ActionForm. I havent
tried it with DynaActionForm.
On the first page, when the user enters the number of students (say 5) , create
a list of 5 student objects
I am not sure whether
document. form['formName'] will work or not. Give it a try.
-Kalpesh
-
Yahoo! Music Unlimited - Access over 1 million songs.Try it free.
Hi,
I have a question regarding a weird behaviour of the garbage
collector, maybe someone here, has more experience with it, and can
answer the question. Otherwise sorry for the OT.
We have a cache for caching 1000.000 user objects along with many
(some hundred thousand) not existing objects
Can we please stop suggesting use of the form name? It.will.not.work. If
both forms have the same name, it makes a reference to document.forms['foo']
an array and not a reference to the form. Of course you *could *do this:
html
head
/head
script language=JavaScript type=text/javascript
Hi all
I think this is a common issue, I want to know how to save the form data
in persistent storage using serialization. I have been made this in my
2-tier java apps without struts but I suppose there is another way to
do it using struts to achieve that.
Kind regards.
p.s. sorry for my
I was just looking into upgrading my app from 1.2.9 to 1.3.4 and have
run into a snag:
2006-08-01 15:33:49,911 (ERROR) InsertTag.doEndTag - ServletException
in '/pages/site/entry.jsp': Cannot specify styleId when in XHTML
mode as the HTML id attribute is already used to store the bean name
Hi Leon,
I doubt I have more experience :-) but as I know soft references are
collected when the GC decides to do so.
The only thing you can be sure of is that they will be collected _if_ the VM
is running out of memory.
But there is no guarantee that they will not be collected before.
You are
Hi,
I also got the same problem, but this site offer some insights:
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=58t=008283
Romu [EMAIL PROTECTED] wrote:
where pays is the property of your form
2006/8/1, Francisco Exposito Aguilera :
I´ve added
Hi All:
I am trying to do Client-Side Validation for my JSP Form:
html:javascript formName=AttendeeDetailsForm/
html:errors/
html:form action=/addAttendeeDetails
.
.
.
.
/html:form
But the problem is I only see Server Side Validations no Client Side
Validations.
do you have something like:
onsubmit=validateAttendeeDetailsForm (this);
in html:form ?
and form name is not attendeeDetailsForn ?
I have this:
html:form action=/addAttendeeDetails onsubmit=return
validateRequired(this)
Where validateRequired comes from the following Javascript code in my
validator-rules.xml
validator name=required
classname=org.apache.struts.validator.FieldChecks
Hi,
I have a collection over which Im iterating using logic iterate tag and
inside that im creating the rows of a table. I need to color the rows of the
table alternately. I have used the attribute indexId in in the iterate tag
But i need to use some kind of runtime expression in logic:equal tag
Why don't you use displaytags
(http://www.jamesgood.com:8080/displaytag-examples-1.1-SNAPSHOT/docs/tut_bas
ic.html)
Chetan Pandey
-Original Message-
From: Puneet Lakhina [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 02, 2006 12:31 PM
To: Struts Users Mailing List
Subject: Runtime
you were hung up (maybe I read into your question incorrectly). So are
you actually hung up on the JavaScript to dynamically add fields?
Yes, i am able to add text fields to my page, but I dont know what all
attributes to specify in the input tag so that my user bean recieves the
values
it is :
java.lang.UnsupportedClassVersionError:
com/opensymphony/xwork2/config/ConfigurationProvider (Unsupported
major.minor version 49.0)
I have added backport-util-concurrent.jar,
retrotranslator-runtime-1.0.7.jar,struts2-core-j4-2.0.0-SNAPSHOT-20060801.jar.
and changed the name of struts2-core
Hi,
Iam doing client side validations. Let me explain the problem. All field
are html:text using struts 1.1
case 1:
Name :3456
Password : abc
Email : def
In case1, if i click the submit button with the respective values, iam
getting alert msg enter only characters for name enter only
it is :
java.lang.UnsupportedClassVersionError:
com/opensymphony/xwork2/config/ConfigurationProvider (Unsupported
major.minor version 49.0)
I have added backport-util-concurrent.jar,
retrotranslator-runtime-1.0.7.jar,struts2-core-j4-2.0.0-SNAPSHOT-20060801.jar.
and changed the name of struts2-core-j4-2.0.0-SNAPSHOT-20060801.jar to
struts2
73 matches
Mail list logo