Antonio Petrelli wrote:
Ashish Vijaywargiya ha scritto:
Hello,
I created an Interface as the code shown below :
public interface StaticData {
String[] minutes = { "01", "02", "03", "04", "05", "06", "07",
"08", "09",
"10", "11", "12", "13", "14", "15", "16", "17", "18",
"19",
Go to Google, type in "Ajax struts" and RTFM. Just looking at the first
page of results I'd strongly suggest reading
http://wiki.apache.org/struts/AjaxStruts.
A.Mohan wrote:
Dear All,
How can i use Ajax with struts ,
Thanks and Regards
Mohan
-
Use the struts taglibs and put your form into session scope and you'll
get the behaviour you want "out of the box".
Bart.
Mississippi John Hurt wrote:
Hi,
What's the best way to do this?
User finished an edit screen, formaction is populated, and info is
displayed
on a ReviewInfo page.
User
Hi,
I'm trying to write a struts action that will render a PDF rather than
some JSP. My code is below. The problem is that the line to get the
output stream throws an exception:
java.lang.IllegalStateException: getOutputStream() has already been called for
this response
org.apache.c
This is a very common thing to do and should be done with the validWhen
validation as described on the Validotor page of the Struts User Guide
(http://struts.apache.org/1.x/userGuide/building_view.html#validator).
Below is the validation I use on a change password form as an example:
I wrote my own tag called loggedIn that I wrap all elements of the page
that are not to be viewed by the public in. The loggedin tag just checks
a flag in session scope that is set by the login attribute. It's a very
simple solution that works well for me.
Bart.
Monkeyden wrote:
I don't incl
Hi Wendy,
Wendy Smoak wrote:
On 8/7/06, Bart Busschots <[EMAIL PROTECTED]> wrote:
Just came across another broken link in the User Guide. At the end of
section 4.8 (Writing Action Mappings) there is a link to
http://struts.apache.org/1.x/apidocs/org/apache/struts/action/ActionMappin
Hi,
Just came across another broken link in the User Guide. At the end of
section 4.8 (Writing Action Mappings) there is a link to
http://struts.apache.org/1.x/apidocs/org/apache/struts/action/ActionMapping.html
labeled "ActionMapping documentation" which gives a 404.
This is the second bro
or
messa
Good point, post edited.
Bart.
2006/8/6, Bart Busschots <[EMAIL PROTECTED]>:
OK, I got all this figured out in the end.
The validator was being called but because of problems with the page
attribute in the form the validator appears to have been receiving a
page value of zero and
the Wiki work away, just credit me or link to the original blog post and
I'll be more than happy.
Cheers for your help guys,
Bart.
Bart Busschots wrote:
I'm either missing something stupid (which is always possible) or I've
managed to break the validator. I have an app tha
for the form in validation.xml is as follows:
mask^[a-zA-Z]+[\w\
]*$
Does any of this make sense to you and can you see anything odd in the
traces above?
Thanks,
Bart.
Niall Pemberton wrote:
Try turning on logging in debug mode, should give you more info ab
) + " ***");
return ( errors );
} // validate
} // Page_6_Form
-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 03, 2006 6:10 PM
To: Struts Users Mailing List
Subject: Validator not getting called and I can't see why
I'm either missing something stupid (which is always possible) or I've
managed to break the validator. I have an app that uses validator all
over the place and it's working fine in all my other actions but for
this one action it is simply not getting called.
I can't see any difference between
My advice would be to be more specific in the command you shell out with
and directly call the perl executable.
Something like: Process pr= rt.exec("c:\\Path_to_perl\\perl.exe
c:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\webapps\\sheet\\batch\\db.PL");
Bart.
Akshay Ahooja wrote
I wouldn't rely on the client side for this. With FireFox and a few
extensions you can have your wicked way on the client side and send
anything you want to the server. Hence it's up to the server to look
after security not the client. If you rely on the client alone your
system will be very vu
uot;i">
Now, if I can get validator beaten into shape I have a working 'clean'
solution to my problem rather than a nasty hack so it's been a
productive afternoon! Cheers for the various replies this afternoon
they really helped steer me in the right direct
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
use brackets for element indexing. The key is to
predefine the instance, I think struts will throw an exception if your
list instance is null.
It doesn't even need to be a LinkedList, as long as it implements List
(and possibly Collection??).
As to the validator, I'm pretty sure it han
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/1/06, Bart Busschots <[EM
m work in
this case.
Bart.
Al Eridani wrote:
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
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
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
Anything you can do with a font tag you can do with CSS. In this day and
age no one should be using font tags anymore!
Bart.
Pankaj Gupta wrote:
I dont think CSS can work in this case as the CSS would be static. I
want to display color of the font based on the value of severity of
message i.e
Hi,
If you do a 'view source' and have a look at the actual HTML that struts
generates you'll see that is generates a form with an ID which is the
same name as the form associated with the action in strutsconfig. Hence
to submit the form from JS you need to so something like:
document.getEle
No, I use the pattern of /do/nameOfAction and the struts tags have no
problem with that at all.
Lance wrote:
You might find that the struts tags (eg ) rely on the *.do
convention so you may have to manually generate tags etc.
-Original Message-
From: Akshay Ahooja [mailto:[EMAIL PROTE
The only place you can get requirements is from the customer! Google can
not know what your customer needs and neither can we!
Bart.
Medicherla Lakshmi wrote:
Hi All,
Can anyone give me idea of some requirements to create a project related to transportation of goods using trucks. Am try
Abhimanyu Koul wrote:
how can i set the maximum number of chars in a textarea. i can only set columns
and rows.
Regards,
Abhimanyu Koul
FinEng Solutions (P) Ltd.
Mobile : +91 9819510090
The only way to do this would be with JavaScript. You'd do something
like this:
function checkLeng
You can set it in the JSP like so:
<%@ page contentType="text/xml" %>
Leo Asanov wrote:
Hi! Is it possible to change content type in action class?
response.setContentType doesn't do anything. Content is html code, generated by
a jsp file. What are my options?
Cheers,
Leo
--
Hi,
Your regular expression on the mask would seem to be problem. I presume
you want it to match words that contain no = rather than what you have
at the moment which forces ALL letters to be = which I'm sure doesn't work.
The RE you need is:
^[^=]+$
HTH, Bart.
marisol wrote:
Can anybody
Rizwan Merchant wrote:
I tried your suggestion and put a
instead of the tag...still having the same problem. So we
know its not the struts tag, but the html:file element and the
multipart/form-data encoding thats the problem..
any further suggestions? I am out of ideas on this one now!!
I'
er to upload files as
part of the customer set up process..the form tag looks like
Could the enctype attribute be a problem??
Please let me know what other information I can provide to help you
understand the problem better..appreciate your help.
Bart Busschots wrote:
Hi,
When you say &qu
Hi,
When you say "go back" what exactly do you mean? HOW are you going back?
Are you relying on the browser's back button? If yes then that's your
problem straight off. Don't do that. Use Struts forms for holding your
Data and the struts JSP tags for creating the form. Make sure the form
is i
098
Mobile : +91 9860582533
- Original Message -
From: "Bart Busschots" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, May 25, 2006 5:34 PM
Subject: Re: number of days
This isn't a struts question but anyway, assuming you want to do
This isn't a struts question but anyway, assuming you want to do this on
the server side and not on the client side (you'd be mad to do it on the
client side) the java Date related utility classes will be able to help
you out (java.util.Calendar, java.util.GregorialCalendar, java.util.Date).
T
Hi,
You need to look at java.util.Calendar and java.util.GregorianCalendar,
these can do everything you need. You just load in the timestamp, set
the locale to where ever you want to display the time for and then build
your string.
HTH, Bart.
Hanmay Udgiri wrote:
Hi
We have a date which we
Sticking in a blank index.html or index.jsp should stop that.
Bart.
Patil, Sheetal wrote:
Hello friends,
I have designed one intranet site using struts + JSP and I have deployed
it on tomcat 5.0
Now it's working fine but some problem is there
http://indc-idc:1500/application/ i
A simple solution would be to set up your login action so it sets a
variable of some sort in session scope to indicate that the user is
logged in and then have each action check that variable in session and
redirect to the login action if it is not present.
Bart.
Pankaj Gupta wrote:
What I wa
Hi,
This is probably a simple problem with relative paths, just do a
view-source on the generated page to see what's going on. That or right
click and 'view image' to see what URL the image is being retrieved
from. I'd wager it won't be what you're expecting and that will be the
cause of your
Hi Daniel,
Is it the Struts DTDs or the Validator DTDs that are causing the
problem? I had the same thing happen me on a machine with no net access
are few months ago and upgrading to the latest Validator and also
changing the DOCTYPES to the versions actually in the jar files did the
trick f
Hi,
You are supposed to pass in a key for an entry in
application_resources.properties and you are instead passing in the
message you want. Struts is not finding the 'key' you are looking for in
the language you are using en_GB and so it is doing what it always does
when it can't find a messa
for any amount of anything that's not an = so something like ([^=]*).
HTH, Bart.
Marisol Opreni wrote:
I know that... maybe I wasn't clear enough...
What I said was that... with Struts Validator Framework [EMAIL PROTECTED] is
a valid email.
I don't want that.
THANKS!
M.
-
Hi,
As far as I'm aware, according to the RFCs, '=' is not valid in email
addresses. If you do want to allow these technically illegal characters
into your email addresses then your best bet would be to use the mask
validation and specify your own regular expression for what you consider
to b
Dakota Jack wrote:
Busschots, you and Newton are really the worst on this list. You never have
code or ideas, only c-r--a---p.
No, I just help people when I can and learn from people when relevant
topics come up. Have a look back at the archives, you'll see me helping
people with questions
Jonathan Revusky wrote:
Ted Husted wrote:
On 4/19/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
Second, all the comitters have answered your questions very nicely
Yes, we have.
I don't know whether you actually believe this in your own mind.
However, there is a complete electronic ar
Andreas Hartmann wrote:
Bart Busschots wrote:
Hi Andreas,
Like any other web server a Java based web server use the Common Gateway
Interface (or CGI) for sending information between the client and the
server. This is a request-response protocol which is driven by the
client and not the
Hi Andreas,
Like any other web server a Java based web server use the Common Gateway
Interface (or CGI) for sending information between the client and the
server. This is a request-response protocol which is driven by the
client and not the server. What you are trying to do is have the server
l problem.
Can you please attach your example of solving it with "validwhen"?
Thanks
Rivka
-----Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 09, 2006 4:09 PM
To: Struts Users Mailing List
Subject: Re: Validator rule question
Rivka Shisman
Rivka Shisman wrote:
Hi Quinn,
As much as I understand the "validwhen" is more like an enhanced
"requiredif", but I need that the "date" rule on my property be checked
only when my other property has value "X". I don't think the "validwhen"
can solve this.
Am I right?
No, the valid when is s
Hi,
At a quick glance I'd say you need to use html:option and not html:options
You need something like:
You then need to define the keys in your ApplicationResources.properties
file like so:
tp_acomodacao.eletivo=Eletivo
tp_acomodacao.emergencia=Emergência
tp_acomodacao.urg
guide: http://struts.apache.org/struts-taglib/dev_validator.html
Regards,
Bart.
Victor Ying wrote:
Hi Bart,
Thanks for the information, my main questions how
do you validate open interval like (0,10) in float
field.do you have example for that?
Thanks
---victor
--- Bart Busschots <[EMAIL PRO
Hi Victor,
The key to the validator is that you can use multiple validations on the
one filed so you can combine things like less than and more than to give
you an open range etc. Another very powerful validation is 'valid when'
which allows you to set up complex checks that related to other f
Dakota Jack wrote:
Frank, this is uncalled for. Jonathan is clearly right on this and you are
clearly wrong. The fact that some Struts groupies like Busschots and Newton
jump in with there stupidities is irrelevant. I simply cannot believe you
would recommend Struts 1.x. I no longer know what
Jonathan Revusky wrote:
What do you mean "so what", Frank? If one is new to the java web
application space, why on earth should one start using a framework
like Struts Classic that (a) is not state of the art and (b) is not
going to be developed any further?
WHY?
Because it does what you need
Mário Lopes wrote:
Hi.
First off, a little bit of my background. I've been developing with
Java for a long time now. None of it was web based development. On
this field, I've programmed with PHP, .NET, Ruby on Rails, Python,
etc..
Now that I'm encharged of developing a Java/JSP/Servlets applica
You are not in Kansas, Toto. You are on the Internet. And, aren't you
Belgian?
Yup, your googling abilities are indeed great!
I have, as I said, spent a great deal of time in Ireland and I
don't recall that what you say is true.
Well, unless you've spent more than 22 years in Ireland you'
ties. This is a
very valuable thing to learn in work, as well in life, Bart. I recommend
it.
Do you get that?
Yup, I also have an understanding of concepts like spamming and trolling
which you appear to be lacking in. Also good skills to develope for both
life in general and work.
Regard
t volumes about the speaker.
Regards,
Bart.
On 4/1/06, Bart Busschots <[EMAIL PROTECTED]> wrote:
Right Dakota, enough of your insulting childishness please.
Like I have said before, there is more to choosing a technology than
just picking the most modern and cutting edge one. Like I
<[EMAIL PROTECTED]> wrote:
On 3/29/06, Bart Busschots <[EMAIL PROTECTED]> wrote:
Right, as I see it this all boils down to Jon whinning that the
struts
guys are adopting WebWorks for the basis of struts 2 rather than
Struts
1.X.
And you see it wrongly. Either you came la
like fruit, also wither after a season and I think
the season is well underway for all the participants to just accept
that you've been heard, not everyone will agree, and finger-pointing
isn't productive. -- Paul
--- Al Eridani <[EMAIL PROTECTED]> wrote:
On 3/29/06, Bart Bus
a bad choice? You should fit
right in around here with your logic. Webworks has not be "included",
Busschots. Webworks, which was around when you made your BRILLIANT choice,
is now kicking your choice out the door.
On 3/29/06, Bart Busschots <[EMAIL PROTECTED]> wrote:
Righ
Dakota Jack wrote:
I disagree. From this discussion I have to assume that Dion knows he is not
in a position to argue this point and the point is pretty fundamental in the
community. I tried being soft on that but he just returns expecting to be
hand fed. I am not going to do it.
No one sa
ED]/\\()&$%#*+=-]*$
And this allows me to use spaces, & , - and other special characters
mentioned above. Just that \n does not work here.
Regards,
Sahil Gupta
-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 30, 2006 5:02 PM
To
ote:
Thanks Bart,
Yes, what you said was right, so I have changed \ to \\ to match \.
But still I am unable to allow \n in my Validation.
Regards,
Sahil Gupta
-----Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 30, 2006 3:39 PM
To: Struts Users Ma
Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 30, 2006 3:39 PM
To: Struts Users Mailing List
Subject: Re: Struts Validation
OK, so your Regular expression is trying to match everything between the
start (^) and the end ($) of your input and no where in it do you
ECTED]/\()&$%#*+=
-]*$
maxlength
250
Regards,
Sahil Gupta
-Original Message-----
From: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 30, 2006 2:
Can you show us the mask you currently use and then we will have a
better chance of being able to help.
Bart.
Sahil Gupta wrote:
Hi,
I have used Masking in Validations. I have a text area in which I have
only restricted some special characters. But still if I press Enter
while adding some te
Dakota Jack wrote:
Dion, you are obviously really green. Please read a bit and then come
back. Do you have any idea about architecture and design and testing
issues?
This is an example of the kind of post this list could do without. The
above post basically boils down to:
"you disagree
To answer your question, not in any detail no. I just knew struts was
incorporatng another project. I didn't care about the details then and I
still don't now.
Jonathan Revusky wrote:
Bart Busschots wrote:
OK, I'm keeping this short:
1) No one put a gun to the WebWorks guy
judge the new merged Struts team by the code
they produce from here forward, not what half the team did or did not do
in the past. Time will tell, just let them get on with the task at hand
and let us all get on with our tasks ... building Web Apps!
Bart.
Jonathan Revusky wrote:
Bart Bussc
Right, as I see it this all boils down to Jon whinning that the struts
guys are adopting WebWorks for the basis of struts 2 rather than Struts
1.X. So the problem seems to be that two groups trying to achieve the
same thing have come together and merged. Hang on a sec that's NOT
a problem.
You can calculate the date in your struts action, stick it into the
request and then print it out using the bean tags in your JSP.
Dates in Java are a bit mad but basically you need to set up a calendar
object and give it a spanish locale and then export it to a String.
Have a look at java.ut
Jonathan Revusky wrote:
Bart Busschots wrote:
What IS the question? Does anyone actually KNOW anymore?
Oh, people know what the question is. It's just that apparently the
question is taboo, and rather than answer it, they engage in personal
attacks. The question is:
"Why
x27;t YOU answer
the question, then, Bart? It is amazing to watch someone kiss ass and be
arrogant at the same time.
On 3/28/06, Bart Busschots <[EMAIL PROTECTED]> wrote:
Larry Meadors wrote:
LOL, Jon, do you read your own posts?
On 3/28/06, Jonathan Revusky <[EMAIL PROTECTED]>
Larry Meadors wrote:
LOL, Jon, do you read your own posts?
On 3/28/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote:
Do keep your eye on the ball, Paul. These people have had every chance
to respond to my points via legitimate debate and they chose not to.
OK, so what you are saying he
rties it was picked up perfectly by the standard JSP
tags but not by any of our custom tags. Below is the code for my
function, can anyone see where I am going wrong. Thanks a million,
Bart Busschots,
NUI Maynooth.
public static MessageResources getMessageResources(JspContext theJS
That's a client issue. As a webdesigner you have no control over that.
All you can do is provide a simple link and let the clients save it or
open it what ever way they want. You can't force word to open.
Bart.
Anjishnu Bandyopadhyay wrote:
Hi all,
I have a static MS Word document, which
Using Validation and JDK1.4.2 and will be doing so for at least a year.
Bart.
Niall Pemberton wrote:
What JDK version are you using?
-
[ ] JDK 1.2
[ ] JDK 1.3
[ ] JDK 1.4
[ ] JDK 1.5 (or JDK 5)
-
I'm mainly interested in the impact of moving Commons Va
FYI this problem has now been solved. When I upgraded to the latest
struts in my app I had forgotten to replace my old validation-rules.xml
with the new one. Once I made that replacement everything started
working again.
Thanks for your help,
Bart.
Bart Busschots wrote:
Thanks for your
oyed the correct Commons Validator jar.
Niall
- Original Message -
From: "Bart Busschots" <[EMAIL PROTECTED]>
To:
Sent: Friday, January 20, 2006 12:06 AM
Subject: Problem with Struts Validator on machines without internet access
Hi,
I'm trying to develop a Struts app
problem has been fixed. I'm on the latest version of struts
(1.2.8) and the problem is obviously still here. Basically, where do I
get a copy of this DTD and how do I install it in such a way that Tomcat
will find it without trying to access the web?
Thanks,
Bart Busschots,
Departmen
80 matches
Mail list logo