On 8/2/06, Chetan Pandey <[EMAIL PROTECTED]> wrote:
Why don't you use displaytags
(
http://www.jamesgood.com:8080/displaytag-examples-1.1-SNAPSHOT/docs/tut_bas
ic.html)
this thing looks fantastically easy. but alas i didnt have the time to dirty
my hands into it.Did it with plain old javascri
sion 49.0)
Now 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-SNA
Hi,
Iam doing client side validations. Let me explain the problem. All field
are & 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 numbe
49.0)
Now 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
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 fro
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 Exp
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 t
I have this:
Where "validateRequired" comes from the following Javascript code in my
validator-rules.xml
But no Client-side Validation is occuring
-Original Message-
From: Lixin Chu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 02, 2006 10:35
do you have something like:
onsubmit="validateAttendeeDetailsForm (this);"
in ?
and form name is not attendeeDetailsForn ?
Hi All:
I am trying to do Client-Side Validation for my JSP Form:
.
.
.
.
But the problem is I only see Server Side Validations no Client Side
Validations.
This is the Validator I am using which I copied from the Net:
/**
Hi,
I also got the same problem, but this site offer some insights:
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=008283
Romu <[EMAIL PROTECTED]> wrote:
where pays is the property of your form
2006/8/1, Francisco Exposito Aguilera :
>
> I´ve ad
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
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 n
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 e
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:
function tellMe(){
alert("Form 1: " + *document.forms['foo'][0].
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 (ne
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.
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
It`s been a while since I worked with that .. but I think you missing
the name attribute in you text tag i.e.:
Regards
/David
Bart Busschots wrote:
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 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:
type="org.apache.struts.validator.DynaValidatorForm" />
property="studentNames" indexId="i">
Now, if I can
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
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.
Hi,
This is not entirely a struts question, but how would I execute a batch from
on the server from a jsp?
If the .bat is in the same file as the jsp calling it.
I tried
Runtime rt = Runtime.getRuntime();
Process pr= rt.exec("db.bat");
But it gives errors.
java.io.IOException: Create
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 a
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 struts
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:
or create s
On 8/1/06, Bart Busschots <[EMAIL PROTECTED]> wrote:
I can't see how to use the foreach tag in my case.
...
" value="" />
...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
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
You could try something like:
or create student_name as
a java.util.List if using a POJO for an ActionForm
- Create a setup action that is called before the JSP is initially
rendered which does a '((MyFormType)form).student_name = new
java.util.ArrayList();'
- In the JSP form:
...
-ed
On 8
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.
Ba
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 a
u put the collection empresas in the request or session, try both i think .
2006/8/1, Romu <[EMAIL PROTECTED]>:
where pays is the property of your form
2006/8/1, Francisco Exposito Aguilera <[EMAIL PROTECTED]>:
> I´ve added it into a but I obtain the
> error
>
> Cannot create iter
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.
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
http://displaytag.sourceforge.net/
where pays is the property of your form
2006/8/1, Francisco Exposito Aguilera <[EMAIL PROTECTED]>:
I´ve added it into a 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 place
I´ve added it into a 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 link, not from another page with
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
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
to r
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, e-
Looks like it may not be wrapped in a 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 project.struts.Gener
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 local
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
document
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 fiel
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:
|
|
Note that you must be using Struts >= 1.2.0 for this feature, though I
believe prior to 1.2.0, the behavior was to al
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 t
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. T
1. Each element in a document must have a unique id.
This element is then accessed in script using
document.getElementById().
e.g. ... -->
document.getElementById("myP")
If more than one element has the same id and you try
to use that id
with document.getElementById(), the method doesn't
know w
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 cont
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 throu
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
---
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 scritto:
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
Patil, Sheetal ha scritto:
hi all
i want to display graphs in my application. so is there any taglibs or
something else to display graphs.
If you mean "charts" then you can check JFreeChart out:
http://www.jfree.org/jfreechart
It also has a servlet that displays generated charts
Ciao
Ant
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 probab
hi all
i want to display graphs in my application. so is there any taglibs or
something else to display graphs.
Sp
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,
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
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 stru
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
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
java.lang.Class.get
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 nig
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");
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
to render the image whose parent folder matches the user's local
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, than
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 adv
Hi,
Would it be possible if you can combine two form to one but have two
object behind to accept the dat from form you submit?
On 8/1/06, Krishna, Hari <[EMAIL PROTECTED]> wrote:
pass the formbean name at run time change the logic It works for me:)
-Original Message-
From: Parvat Sing
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
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
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 peo
Hello Chetan
It's seem nothing wrong with your code and configuration xml.
Are you sure this malicious things happens from this code section.
Try to specify more precisely the message key in your Message
Resources property file.
Maybe the message error come from the other section of code ..
Sor
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
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
"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 ap
"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 ap
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 wa
75 matches
Mail list logo