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:
s:url id=smdURL action=SMDAction.do /
h1Testing Remote Procedure Call from Ajax/h1
script type=text/javascript
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: Struts
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
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
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
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
nested:notEmpty property=combine
nested:iterate id=comfil property=combine
% if(comfil instanceof SomeBean){%
ul
nested:root
A bit late, but just for info, i think you can do that by using the
status:
s:iterator value=type status=stat
tr
td
s:url id=url%{#stat.index} action=Variables
s:param name=typeId value=id/s:param
/s:url
s:a id=tipo${module}%{id}
--- 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.
s:if test=#foo.class.name == 'java.lang.String'
d.
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
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
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]
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:
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.---BeginMessage---
I have a jar file it has the follwing structure
META-INF
lib
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
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.
--- 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
Note: forwarded message attached.
-
Choose the right car based on your needs. Check out Yahoo! Autos new Car
Finder tool.---BeginMessage---
After I upload the file I want to check the file for virus .Are there any open
source virus scanners which I
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
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.
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,
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]
--- [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 still
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] 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, 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
--- [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
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, 2007, at 7:59
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 programme
--- [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.
-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 have
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
--- 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 have
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]
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
thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-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
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
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
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 help me.
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
Note: forwarded message attached.
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.---BeginMessage---
After I upload the file I want to check the file for virus .Are there any open
source virus
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
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 to
All,
I am having difficulty accessing the parameters I am passing into the
s:include.. 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
I am having difficulty accessing the parameters I am passing into the
s:include.. 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
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 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
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
Hi,
There is a way to use the s :include tag to include a file that is
another application ??
What i want to do is something like that:
s:include value=http://.mycompany.org/myJsp.jsp;
The problem is that the tag tries to find the value inside the webapp.
Ezequiel
not ognl-syntax but these work:
s:property value=${param.param2} /
s:property value=${param['param2']} /
c:out value=${param['param2']} /
Scott Trafton schrieb:
I am having difficulty accessing the parameters I am passing into the
s:include.. tag.
I have tried everything I can think
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:
s:param name=param value=%{'666'}/
if you do
s:param name=param value='666'/
the tag tries to find a property named get666, that probably
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-
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:
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
tr id=sub-s:property value=#parameters.param1/
td class=canFade indent2s:property
I just replaced radio for select and it worked.
s:select name=autoridade.sexo list=#{'M':'Masculino',
'F':'Feminino'} label=Sexo value=%{autoridade.sexo} /
The problem seems to be in the tag radio. Workaround anyone?
Rafael Dittberner
Rafael Dittberner escreveu:
I had some problems with
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
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
Here is the basic layout for a build.xml for the struts appilcations I
develop:
?xml version=1.0?
project name=PROJECT NAME default=PICK_A_TARGET basedir=./
descriptionFULL PROJECT NAME/description
!-- ** --
!-- Application Properties --
On 6/11/07, Ambaris Mohanty [EMAIL PROTECTED] wrote:
My code is as following...
struts-config.xml
form-beans
form-bean name=DynaLoginForm
type=org.apache.struts.validator.DynaValidatorForm
form-property name=username type=java.lang.String/
form-property
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 issues
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
-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
-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
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
This issue is related to my other issue with the ModelDriven interface.
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.
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
$
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
First, you can look through next jsp codes:
s:iterator status=stat value=destObjects
tr
s:iterator value=visibleColumns
td
s:property value=destObjects[%{#stat.index}].%{fieldDefName} /
/td
/s:iterator
/tr
/s:iterator
Variable destObejcts is a LIST type which contains a
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
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 along with
--- Ðì ΰ [EMAIL PROTECTED] wrote:
First, you can look through next jsp codes:
s:iterator status=stat value=destObjects
tr
s:iterator value=visibleColumns
td
s:property
value=destObjects[%{#stat.index}].%{fieldDefName}
/
/td
/s:iterator
/tr
/s:iterator
s:iterator value=destObjects id=do
s:iterator value=visibleColumns id=vc
s:property value=#do.%{vc.fieldDefName}/
/s:iterator
/s:iterator
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
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
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,
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.
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.
76 matches
Mail list logo