It's important to understand that S2 validation applies to objects, not
to the html fields in your form.
That is, first the setters in your action are called, then the validator
calls the getters to check the values. If the parameters aren't
reaching your action then validation will fail.
The
Hi,
I am using the velocity for UI purpose.when i am developing the velocity
pages i am using the macros. now i am validating the velocity page where i
am using the macro's those fields are not validating. I am using the
struts2.0.6 and tomcat6.0
. I am writing the macro in my velocity page.
#mac
http://www.openantivirus.org/projects.php
>
> After I upload the file I want to check the file for virus .Are there any
> open source virus scanners which I can I call in java .
> Thanks & Regards
> Miro
-
To unsubscribe, e
Hi.. i followed the tutorial for JasperReport in the Struts 2
Documentation..my problem is the
code produces .jasper file but didnt return PDF on my browser but there is
no error message.
here is my code:
package apps;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List
It does not work yet :(
Maybe it is a defect of Struts2 which should be improved in the future.
As a choice, it is a good way to mix some JSTL tag or JS scripts in. But
that seems to be complicated and boring.
Is there any other solutions for this kind of question in Struts2.0?
--- Ðì ΰ <[EMAIL PROTECTED]> wrote:
> First, you can look through next jsp codes:
>
>
>
>
>
> value="destObjects[%{#stat.index}].%{fieldDefName}"
> />
>
>
>
>
Try something like:
I do something very similar in one of my apps but
don't have
Oh, you fixed it?
IIRC the original poster noted some issues he'd had
with it.
--- "RoseIndia.net Help" <[EMAIL PROTECTED]>
wrote:
> HI,
>
> Please visit
>
http://www.roseindia.net/struts/struts2/struts-2-hello-world.shtml
> and read the tutorial.
> You can download the helloworld project alon
HI,
Please visit
http://www.roseindia.net/struts/struts2/struts-2-hello-world.shtml
and read the tutorial.
You can download the helloworld project along with directory strutcture and
build.xml file from
http://www.roseindia.net/struts/struts2/struts2tutorial.zip
code is tested and will work on y
First, you can look through next jsp codes:
Variable "destObejcts" is a type which contains a serial of objects
named "destObject".
Variable "visibleColumns" is also a LIST of objects named "visibleColumn",
and
"fieldDefName" is a property of "visibleColum
What do you mean not what you thought it was?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately
Paolo Beccari wrote:
Hi there,
here:
http://struts.apache.org/2.x/docs/ognl.html
I found that:
To select a subset of a collection (called projection), use a wildcard
within the collection.
? - All elements matching the selection logic
^ - Only the first element matching the selection logic
$ -
After working on this for a while, I beginning to think that that
ModelDriven interface is not what I had thought it was. It is certainly not
a replacement for the formBeans in Struts 1. I guess I just need to forget
most of what I've used in Struts 1 :) Thanks all for your help.
This issue is related to my other "issue" with the ModelDriven interface.
You can generate an Ant build file from any project that uses Maven.
$ mvn ant:ant
--
James Mitchell
On Jun 11, 2007, at 4:49 PM, Session Mwamufiya wrote:
Thanks for the file, but I would really need to see a working example,
because all of these files and directories here and there are
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Session,
Session Mwamufiya wrote:
> Thanks for the file, but I would really need to see a working example,
> because all of these files and directories here and there are too confusing.
> I wish someone could point me to a helloworld tutorial that act
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Miro,
temp temp wrote:
> I am struts using fileupload I want to scan to uploaded -files .
The classpath in your JAR library below does not include any struts
classes. Only Jakarta commons ones.
The Class-Path in a JAR file cannot refer to JAR files
Thanks for the file, but I would really need to see a working example,
because all of these files and directories here and there are too confusing.
I wish someone could point me to a helloworld tutorial that actually has a
working version.
Thanks
Session A. Mwamufiya
Carnegie Mellon University
MB
On 6/11/07, Jeff Amiel <[EMAIL PROTECTED]> wrote:
On 6/7/07, Jeff Amiel <[EMAIL PROTECTED]> wrote:
> Thanks muchwill continue to investigate.
> I really appreciate the information and will post back if I get any
> concrete results
>
Shortly thereafter, while pouring through the tomcat i
On 6/11/07, Ambaris Mohanty <[EMAIL PROTECTED]> wrote:
My code is as following...
struts-config.xml
Is this something where just adding "initial" will work for you?
This will affect the behavior of an html-reset control, because it
determines th
Here is the basic layout for a build.xml for the struts appilcations I
develop:
FULL PROJECT NAME
..
I am trying to get started with Struts2 using Maven
archetypes, and have had trouble getting the .war file
generated from struts2-archetype-starter to run under
WebSphere 6.1.0.7 (the most recent version). When I
navigate to the index.action, I get a 404 message:
"Error 404: SRVE0190E: File not fou
Hello,
Could someone point me to a working build.xml file that I could use for a
simple struts 2 application (helloworld)? I tried the tutorial from
roseindia, and that build file doesn't result in a working web app, though
ant says that the build was successful. I don't see all of the lib/*.
I just replaced radio for select and it worked.
The problem seems to be in the tag radio. Workaround anyone?
Rafael Dittberner
Rafael Dittberner escreveu:
I had some problems with and the people of this list was very
kind to clear it out. Now I am struggling to make work the way
it should
Here is the issue:
I have a block of code that needs to be run on several different jsp's.
Sometimes in a loop other times just once.
The common code would be something like below
File: callPassRow.jsp
">
...
File: Random jsp's
The calling code is the following.
I am
On 6/7/07, Jeff Amiel <[EMAIL PROTECTED]> wrote:
Thanks muchwill continue to investigate.
I really appreciate the information and will post back if I get any
concrete results
Shortly thereafter, while pouring through the tomcat issues
repository, I stumbled across this:
http://issues
I am struts using fileupload I want to scan to uploaded -files .
Thanks
Miro
Al Sutton <[EMAIL PROTECTED]> wrote: I'm afrid this mailing list focuses on
development with Struts
(struts.apache.org). Can you tell me how your question relates to the struts
framework?
-Original Message-
Fro
Take a look at: http://struts.apache.org/2.x/docs/tag-syntax.html
There you can read "value is an Object !".
So, you have to use the param tag like that:
if you do
the tag tries to find a property named get666, that probably doesn't exist.
I hope it helps.
Ezequiel.
-Message d'origi
not ognl-syntax but these work:
Scott Trafton schrieb:
I am having difficulty accessing the parameters I am passing into the
tag.
I have tried everything I can think of to get access to these
parameters.
Could anyone tell me where I am going wrong and how you are suppose to
access t
Hi,
There is a way to use the tag to include a file that is
another application ??
What i want to do is something like that:
http://.mycompany.org/myJsp.jsp";>
The problem is that the tag tries to find the "value" inside the webapp.
Ezequiel
Hi,
Has anyone used the helloworld tutorial at
http://www.roseindia.net/struts/struts2/struts-2-hello-world.shtml? I like
the fact that it uses a build.xml file to compile the whole thing, but the
tutorial doesn't work as such:
- the index.html file is never changed from the original that comes w
I hope this code:
public void setAttribue(String attr)
{
this.attribute = attr;
}
Is a typo? If not, this is why your attribute is not being set in your
action class.
Also, since you are forwarding to the same page regardless of success,
failure and input... are you sure it is actuall
Hi,
I personally :
1] Do NOT use inheritance, besides ActionSupport that provides the basic
methods (getText, ..) to work with Struts2.
2] Group all methods of a form inside the same Action. Usually, I need
the same code to prepare the input and the validation of the form, so
why would I bother
I am having difficulty accessing the parameters I am passing into the
tag.
I have tried everything I can think of to get access to these
parameters.
Could anyone tell me where I am going wrong and how you are suppose to
access the parameter values.
Thanks,
Scott
==
All,
I am having difficulty accessing the parameters I am passing into the
tag.
I have tried everything I can think of to get access to these
parameters.
Could anyone tell me where I am going wrong and how you are suppose to
access the parameter values.
Thanks,
Scott
=
meeboo wrote:
>
> Do you create an action class (e.g. UserAction.java) for all User actions,
> or do you separate them into UpdateUser.java/CreateUser.java etc...?
>
I am also interested in the community's thoughts on this question.
On one hand, having an action class for each use case tends
I agree with Guru. After you've gained familiarity with S2, you need to
consider about what's appropriate for the particular use-cases and
business/domain model.
As soon as you start repeating yourself in your action/view code you
know its time to refactor.
Here's some of my approaches:
- For
Note: forwarded message attached.
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.--- Begin Message ---
After I upload the file I want to check the file for virus .Are there any open
source virus
Thanks Musachy,
Now I use notifyTopics in the anchor tag instead of onclick with following:
dojo.event.topic.subscribe("/confirmDelete", function(data, type,
request)
{
//cancel request
if ( type == 'before' ) {
if ( !confirm('Do y
I think you forgot the "new" operator to create the service, it should be:
var service = new dojo.rpc.JsonService("${smdURL}");
musachy
On 6/11/07, GEDA <[EMAIL PROTECTED]> wrote:
Hi. I know this isn't strictly related to Struts, I have this problem with
JSONPlugin and maybe you guys can hel
It all "Depends"
If the business logic for each operation (CRUD) is complex then better
use 1 jsp and one action.
Otherwise go for the other one (one class which handles all CRUD
operations) .
However If you have designed and developed your business layer very well
then either
Hey all
How do you build up your Struts 2 applications architecture wise? Say for
instance that you have a User model object. Do you create an action class
(e.g. UserAction.java) for all User actions, or do you separate them into
UpdateUser.java/CreateUser.java etc...? We thought Struts 2 was a b
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Wow, you have a gift for following multiple simultaneous threads ;)
Oh, yeah, and the whole thing is off-topic... this has nothing to do
with Struts (other than the fact that this listener extends action).
Dave Newton wrote:
> --- Christopher
thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Argghhh :(
Thanks.
Al.
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: 11 June 2007 12:47
To: Struts Users Mailing List
Subject: Re: virus scanner after fileupload
We can't remove him, he is posting through nabble. You'll have to setup an
ignore filter on
There is an absolutley fantastic resource at http://struts.apache.org/
please read it all for great joy and places to find answers.
Dave was offering good advice, plz don't disturb those trying to help
through this type of on line whatsit.
-Original Message-
From: [EMAIL PROTECTED] [mailt
--- Christopher Schultz wrote:
> Which servlet do you want access to?
I think he actually just wants the ServletContext so
he can remove the "userList" object:
Srinivasula Reddy A wrote:
> The listener class is extending Action as well as
> implementing HttpSessionListener interface.
> Cant I ha
Yes, if you go to the wiki (as Dave mentions ;) you can find lots of
wonderful information.
To be honest, MVC is one of those things that you can't really
appreciate until you been forced to do or maintain some old school
(Model 1) code. Count your blessings!
--
James Mitchell
On Jun
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Srinivasula,
Srinivasula Reddy A , Bangalore wrote:
> [nothing]
It is considered bad form to post an empty message to a mailing list
(even though the question /is/ in the subject line).
When you say "sessionDestroy" method, do you mean that you ha
--- [EMAIL PROTECTED] wrote:
> will you give me some code that follows struts.
Have you tried Googling for Struts? Or sample code? Or
tutorials? There is so much information available,
particularly for Struts 1, and complete tutorials for
both S1 and S2.
d.
_
sorry dave,
actually i have clicked on
> Sucker-punch spam with award-winning protection.
> Try the free Yahoo! Mail Beta.
> http://advision.webevents.yahoo.com/mailbeta/features_spam.html
>
and see the kids and lost my temp,
ok at first i will buy a book and i will try the simplest one programm
thnks,
james. but i can't understand how can i start,
will you give me some code that follows struts.
James Mitchell <[EMAIL PROTECTED]> wrote ..
> Not sure what was wrong with Dave's response, I would have to told
> you to go buy a book.
>
>
> --
> James Mitchell
>
>
>
> On Jun 11, 20
--- [EMAIL PROTECTED] wrote:
> but what type of answer it is?
It's the type of answer that directs you to the
resources best able to answer your open-ended
question.
d.
Sucker-punch spam with award-winning p
Not sure what was wrong with Dave's response, I would have to told
you to go buy a book.
--
James Mitchell
On Jun 11, 2007, at 7:59 AM, [EMAIL PROTECTED] wrote:
thanks Dave Newton
but what type of answer it is?
i have told na that i am new to struts
so why are u sending me that type o
thanks Dave Newton
but what type of answer it is?
i have told na that i am new to struts
so why are u sending me that type of urls. simply don't reply if u can't help
plz don't disturb those who want to learn through this type of on line help
>>>
Dave Newton <[EMAIL PROTECTED]> wrot
--- [EMAIL PROTECTED] wrote:
> give me some details of struts1 and struts 2
> mvc 1 and mvc 2, because struts 1 follows mvc
> architecture
Have you tried looking at the Struts 1 & 2 websites /
wikis and Googling, say, for "mvc"? (You may want to
refine that search, but most of my results were stil
i am new to struts,
give me some details of struts1 and struts 2
mvc 1 and mvc 2, because struts 1 follows mvc architecture
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
We can't remove him, he is posting through nabble. You'll have to
setup an ignore filter on your client.
Sorry
--
James Mitchell
On Jun 11, 2007, at 7:44 AM, Al Sutton wrote:
Would anyone object if this guy was removed from the mailing list?
He seems to sending non-struts mails, sendin
Would anyone object if this guy was removed from the mailing list?
He seems to sending non-struts mails, sending multiple copies of some his
messages, making them hard to read by putting them inattachements, and not
answering queries as to the releavnce his queries have to the lists topic
(i.e. s
After I upload the file I want to check the file for virus .Are there any
open source virus scanners which I can I call in java .
Thanks & Regards
Miro
--
View this message in context:
http://www.nabble.com/scanning-after-fileupload-tf3900814.html#a11058345
Sent from the Struts - User mailing l
Note: forwarded message attached.
-
Choose the right car based on your needs. Check out Yahoo! Autos new Car
Finder tool.--- Begin Message ---
After I upload the file I want to check the file for virus .Are there any open
source virus scanners which I
--- Anton Pussep <[EMAIL PROTECTED]> wrote:
> It [could be a map] that just guarantees that its
> elements keep the order in that they have been
added.
LinkedHashMap.
d.
Be a better Heartthrob. Get be
I have a cat that won't come when I call it. Can you (temp temp)
help me with this?
--
James Mitchell
On Jun 11, 2007, at 12:03 AM, temp temp wrote:
I have a jar file it has the follwing structure
META-INF
lib
com
This is my manifest.mf file.
Manif
I think you're right, the View should not be responsible for sorting.
But now I would like to sort by values and I could not find any Map that
is capable of doing so. Do you have any suggestion? Or probably you had
to solve this problem already, then I would love to hear how you did it.
It does no
Note: forwarded message attached.
-
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.--- Begin Message ---
I have a jar file it has the follwing structure
META-INF
lib
I have a jar file it has the follwing structure
META-INF
lib
com
This is my manifest.mf file.
Manifest-Version: 1.0
Main-Class: project.converter.Test
Class-Path:
lib/converter-actions-xsd.jar;lib/commons-lang-2.3.jar;lib
I'm afrid this mailing list focuses on development with Struts
(struts.apache.org). Can you tell me how your question relates to the struts
framework?
-Original Message-
From: miro [mailto:[EMAIL PROTECTED]
Sent: 11 June 2007 11:35
To: user@struts.apache.org
Subject: [JAR -CLASSPATH] clas
On 6/8/07, Eric Jain <[EMAIL PROTECTED]> wrote:
I have a form with a FormFile field, which works great, except that when
someone submits a plain string for this field (e.g. a spammer crawling the
site and doing random submissions) I get an ugly stack trace logged... I
wonder is there a way to cat
I have a jar file it has the follwing structure
META-INF
lib
com
This is my manifest.mf file.
Manifest-Version: 1.0
Main-Class: project.converter.Test
Class-Path:
lib/converter-actions-xsd.jar;lib/commons-lang-2.3.jar;lib/commons-io-1.3.1.jar;
lib/xbean.jar;
I run jar file using co
--- Anton Pussep <[EMAIL PROTECTED]> wrote:
> In this case numbers is of type double[] and
> operators is of type String[]. Would be great if you
> could tell me how to check for the type.
OGNL.
d.
Bored
A bit late, but just for info, i think you can do that by using the
"status":
cssClass="listItem"
notifyTopics="changeTypeListItem"
theme="ajax"
showLoadingText="false">
hi all,
I have a question regarding nested tag.
can we use jsp scriptlet in struts nested tag for checking type of the bean
to iterate,for example
<% if(comfil instanceof SomeBean){%>
<%=fil%>
<%}%>
will the above code work or do i have to follow different approach
I'm with Guru on this one (theres a surprise for you).
I'd hate to see this list turn into a non-struts Webapp tutorial, can
someone point this guy at a good webapp tutorial and then just keep pointing
him at it until he reads it.
-Original Message-
From: Raghupathy, Gurumoorthy [mailto:[
Guys,
I think we are wasting our time here ... this thread has nothing
to do with struts in the first case . why are we trying to teach him
when he is not ok to get a good book and get his basics right ..
I think he needs to read the spec first ...
I think he lacks the basic underst
I've always put sorting as part of the action by determining the sort order
creating an appropriate Comparator implementation and using it in the
constructor for the TreeMap.
I've done this because imho your view should just be about presentation, and
the logic for determining and implementing you
The bit that makes me laugh "Before opening any mail and attachments please
check them for viruses and defect."
What is defect and who produces a scanner for it :) :) :)
-Original Message-
From: Srinivasula Reddy A , Bangalore [mailto:[EMAIL PROTECTED]
Sent: 11 June 2007 06:35
To: Strut
Hi. I know this isn't strictly related to Struts, I have this problem with
JSONPlugin and maybe you guys can help me.
This is the code rom the jsp page:
Testing Remote Procedure Call from Ajax
dojo.require("dojo.rpc.*");
var service = dojo.rpc.JsonService("${smdURL}
76 matches
Mail list logo