JSONPlugin problem

2007-06-11 Thread GEDA
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

[OT] RE: How can i get servlet in my sessionDestroy() method?

2007-06-11 Thread Al Sutton
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

RE: sort entries by the selected tag

2007-06-11 Thread Al Sutton
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

RE: servlet.getServletContext().getAttribute(userList) is throwing NullPointerException in my sessionDestroyed() method

2007-06-11 Thread Raghupathy, Gurumoorthy
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

RE: servlet.getServletContext().getAttribute(userList) is throwing NullPointerException in my sessionDestroyed() method

2007-06-11 Thread Al Sutton
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

Can we use jsp scriptlets in struts nested tag(nested:iterate......)

2007-06-11 Thread anillu
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

Re: OGNL question

2007-06-11 Thread Ezequiel Puig
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}

Re: In a merged iterator, know which iterator current item belongs

2007-06-11 Thread Dave Newton
--- 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.

[JAR -CLASSPATH] class-path how to

2007-06-11 Thread miro
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

Re: FormFile: Catching IllegalArgumentException

2007-06-11 Thread Niall Pemberton
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

RE: [JAR -CLASSPATH] class-path how to

2007-06-11 Thread Al Sutton
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]

[JAR -CLASSPATH] class-path how to

2007-06-11 Thread temp temp
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:

Fwd: [JAR -CLASSPATH] class-path how to

2007-06-11 Thread temp temp
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

Re: sort entries by the selected tag

2007-06-11 Thread Anton Pussep
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

Re: [JAR -CLASSPATH] class-path how to

2007-06-11 Thread James Mitchell
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.

[OT] Re: sort entries by the selected tag

2007-06-11 Thread Dave Newton
--- 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

Fwd: virus scanner after fileupload

2007-06-11 Thread temp temp
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

scanning after fileupload

2007-06-11 Thread miro
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

RE: virus scanner after fileupload

2007-06-11 Thread Al Sutton
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.

Re: virus scanner after fileupload

2007-06-11 Thread James Mitchell
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,

struts

2007-06-11 Thread md . ekbaluddin
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]

Re: struts

2007-06-11 Thread Dave Newton
--- [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

Re: struts

2007-06-11 Thread md . ekbaluddin
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 .. ---

Re: struts

2007-06-11 Thread James Mitchell
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

Re: struts

2007-06-11 Thread Dave Newton
--- [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

Re: struts

2007-06-11 Thread md . ekbaluddin
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

Re: struts

2007-06-11 Thread md . ekbaluddin
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

Re: struts

2007-06-11 Thread Dave Newton
--- [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.

Re: How can i get servlet in my sessionDestroy() method?

2007-06-11 Thread Christopher Schultz
-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

Re: struts

2007-06-11 Thread James Mitchell
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

[OT] Re: How can i get servlet in my sessionDestroy() method?

2007-06-11 Thread Dave Newton
--- 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

RE: struts

2007-06-11 Thread Al Sutton
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]

RE: virus scanner after fileupload

2007-06-11 Thread Al Sutton
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

Re: struts

2007-06-11 Thread md . ekbaluddin
thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Re: How can i get servlet in my sessionDestroy() method?

2007-06-11 Thread Christopher Schultz
-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

[S2] Design patterns

2007-06-11 Thread meeboo
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

RE: [S2] Design patterns

2007-06-11 Thread Raghupathy, Gurumoorthy
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

Re: JSONPlugin problem

2007-06-11 Thread Musachy Barroso
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.

Re: Problem with delete confirmation and s:a with ajax

2007-06-11 Thread eschedel
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

Fwd: virus scanner after fileupload

2007-06-11 Thread temp temp
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

Re: [S2] Design patterns

2007-06-11 Thread Jeromy Evans
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

Re: [S2] Design patterns

2007-06-11 Thread Kyle Adams
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

S2 - parameter passing (newbie) question

2007-06-11 Thread Scott Trafton
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

S2 - parameter passing (newbie) question

2007-06-11 Thread Scott Trafton
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

Re: [S2] Design patterns

2007-06-11 Thread Sami Dalouche
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

Re: Programmatic Validation in Action

2007-06-11 Thread Caine Lai
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

Fixing the roseindia tutorial

2007-06-11 Thread Session Mwamufiya
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

[s2] include an external file

2007-06-11 Thread Ezequiel Puig
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

Re: S2 - parameter passing (newbie) question

2007-06-11 Thread Adrian Ost
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

RE : S2 - parameter passing (newbie) question

2007-06-11 Thread Ezequiel Puig
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

RE: [JAR -CLASSPATH] class-path how to

2007-06-11 Thread temp temp
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-

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-11 Thread Jeff Amiel
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:

Best Practice pass data into an included jsp

2007-06-11 Thread Scott Trafton
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

Re: [S2] The question now is about s:radio

2007-06-11 Thread Rafael Dittberner
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

build.xml file for struts 2

2007-06-11 Thread Session Mwamufiya
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

[S2] struts2-archetype-starter not working in WebSphere 6.1.0.7

2007-06-11 Thread Richard Dominguez
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

RE: build.xml file for struts 2

2007-06-11 Thread Carroll, Samuel Nicholas
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 --

Re: Extending DynaValidatorForm

2007-06-11 Thread David Durham, Jr.
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

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-11 Thread Niall Pemberton
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

RE: build.xml file for struts 2

2007-06-11 Thread Session Mwamufiya
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

Re: [OT] class-path how to

2007-06-11 Thread Christopher Schultz
-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

Re: build.xml file for struts 2

2007-06-11 Thread Christopher Schultz
-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

Re: build.xml file for struts 2

2007-06-11 Thread James Mitchell
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

Re: Programmatic Validation in Action

2007-06-11 Thread Matt Luce
This issue is related to my other issue with the ModelDriven interface.

RE: ModelDriven interface

2007-06-11 Thread Matt Luce
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.

Re: [S2] OGNL newbie: obtaining subset of a collection

2007-06-11 Thread Laurie Harper
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 $

Re: ModelDriven interface

2007-06-11 Thread Martin Gainty
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

Embedded s:iterator/ problem

2007-06-11 Thread 徐 伟
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

RE: build.xml file for struts 2

2007-06-11 Thread RoseIndia.net Help
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

RE: build.xml file for struts 2

2007-06-11 Thread Dave Newton
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

Re: Embedded s:iterator/ problem

2007-06-11 Thread Dave Newton
--- Ðì ΰ [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

Re: Embedded s:iterator/ problem

2007-06-11 Thread Davey Xu
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

JasperReports in Struts 2

2007-06-11 Thread honey0303
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

Re: scanning after fileupload

2007-06-11 Thread Zoran Avtarovski
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,

Please sugest how to do the macro validation in velocity

2007-06-11 Thread tallurisuresh
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.

Re: Please sugest how to do the macro validation in velocity

2007-06-11 Thread Jeromy Evans
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.