RE: Set the tree node to a given value

2007-09-13 Thread GEDA
Thank you for the info. It was really helpful although I didn't use it :( Because the expansion of the parents is not done automatically ... I see no reason for using this. Maybe in the future they will integrate the automatic expansion of the parents of selected node. Manu Mahajan-2 wrote: >

Re: Unable to read TLD "META-INF/taglib.tld"

2007-09-13 Thread abhiram
hi!! i usually place all the tlds in the WEB-INF folder..may be this helps if it is the problem... aarthy <[EMAIL PROTECTED]> wrote: Hi, I tried to implement captcha in my struts project using guidelines from this link http://forge.octo.com/jcaptcha/confluence/display/general/Struts+integration

Re: SessionAware vs ActionContext access to session - confused..

2007-09-13 Thread Nils-Helge Garli
If there are features you're missing, please go ahead and register issues in jira. Nils-H On 9/14/07, tom tom <[EMAIL PROTECTED]> wrote: > Thats sounds good, also try to have model-driven > interfaces to have the session scope Action forms in > the next release, > > that also not working currentl

Re: problem with

2007-09-13 Thread msg2ajay
hi, Yaa i have done mistake. I have placed my ActionForm Name insted of Confingfile form name. But the problem still there i am not able to get the form (setLableParam())value to my jsp. I have created an object in my jsp and tried to print the object, but it is returning null. and one more

[Struts 2] baseRelativePath Problem

2007-09-13 Thread Roger Ye
Question: how to change the default baseRelativePath? using struts 2.0.9 and the xhtml template, the tag insert the following content in the page, where baseRelativePath: "/p/struts/dojo", while I want it to be "/p/js/dojo", so how can I change that? or I have to follow its requirement and put al

Re: creating a dummy session object for unit testing

2007-09-13 Thread Jim Cushing
The session object is a simple Map, so creating it is easy. First, you have to define an instance variable in which to store the session, and second, you need to implement the setSession() method. public class MyAction implements SessionAware { private Map session; public void setSessi

Captcha in Struts

2007-09-13 Thread aarthy
Hi, I tried to implement struts in my project using guidelines from this link http://forge.octo.com/jcaptcha/confluence/display/general/Struts+integration i am getting the below error. org.apache.jasper.JasperException: File "/jcaptcha" not found org.apache.jasper.compiler.DefaultErrorHandler.j

Re: SessionAware vs ActionContext access to session - confused..

2007-09-13 Thread tom tom
Thats sounds good, also try to have model-driven interfaces to have the session scope Action forms in the next release, that also not working currently. Also in the s:url the action tag does not evaluate expressions, e.g if you want to have a dynamic action name. Pls try to address that as wel

[s2] Creating a part of some form using macro

2007-09-13 Thread Dragan Stankovic
I have multiple forms which sometimes have similar parts (for instance couple of fields required for entering the address). For that similar parts I want to avoid code duplication so I was thinking of doing that by using freemarker macro orderDataForm with a parameter orderDataObject: <#macro ord

Re: creating a dummy session object for unit testing

2007-09-13 Thread Session A Mwamufiya
Thanks for the tip, but I'll need an actual code snippet, because when I make my action implement SessionAware, I need to also implement the setSession() method, and I'm back to square 1, trying to figure out how to create a session object. I can send a HashMap to the method, but what does it h

Re: file upload exception

2007-09-13 Thread Session A Mwamufiya
I guess I'll address my question to newbies: have any of you successfully implemented the fileUpload from the showcase? Please let me know whether you've come across the same issue as me with the actual file not being uploaded. Any fixes? Thanks > I've attempted to get the upload to work, b

Re: creating a dummy session object for unit testing

2007-09-13 Thread Jim Cushing
If your Action implements SessionAware, you don't need to make a mock HttpSession at all. You just make a new HashMap, stuff it with the values you want, and call action.setSession(). Just one more of the things I love about Struts 2. :) But there are libraries around that do allow mock Htt

Re: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread kkjacks
Because I was dealing with multiple List that a simple iterate tag could not handle. I have since added extra logic to the action in the getter methods to handle what I needed which perhaps is a better solution. It would be nice for future reference to be able to have an instance of my action in

Re: creating a dummy session object for unit testing

2007-09-13 Thread Dave Newton
Spring has a MockHttpSession, or perhaps you could use jMock? d. --- Session A Mwamufiya <[EMAIL PROTECTED]> wrote: > Hi, > > How do I go about creating a dummy HttpSession > object for unit testing a struts 2 app? > > I have created a dummy HttpServletRequest object, > but I can't instanciate

Re: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Dave Newton
--- kkjacks <[EMAIL PROTECTED]> wrote: > I am interested in the actual writing of custom tags > and I also hoped that by learning how to do this it > would help facilitate my previous unanswered question > of how to access the action through scriptlet code in > the jsp. Ah; sorry. I'd probably

creating a dummy session object for unit testing

2007-09-13 Thread Session A Mwamufiya
Hi, How do I go about creating a dummy HttpSession object for unit testing a struts 2 app? I have created a dummy HttpServletRequest object, but I can't instanciate an HttpSession in teh Request.getSession() method, because HttpSession is an abstract interface and I can't create an instance of

Re: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread kkjacks
I am interested in the actual writing of custom tags and I also hoped that by learning how to do this it would help facilitate my previous unanswered question of how to access the action through scriptlet code in the jsp. I know the action is on the ValueStack but I am not sure of the "correct"

Re: file upload exception

2007-09-13 Thread Session A Mwamufiya
I've attempted to get the upload to work, but I get some inconsistencies in the getters. I get the correct filename in the filename getter, but I don't get that same filename in the file getter (it's something totally different). Here's the code for my getters: public String getUploadFileNa

{S2}doublselect How to create the doubleList

2007-09-13 Thread Skip Hollowell
2 days is my limit on attempting to implement a feature before I finally beg: I have read the doc, and am able to create a double list with static data in the jsp. list="{'fruit','other'}" doubleName="dishes" doubleList="top == 'fruit' ? {'apple', 'orange'} : {'monkey', 'chicken'}" /> And I

RE: Struts anchor question

2007-09-13 Thread Slattery, Tim - BLS
> I have Microsoft Internet Explorer 6.0.2 on my computer. > > If I use the struts anchor the URL parameters are separated > by the & character and the link works. > If I use the html anchor with a struts property the URL > parameters are separated by the amp; characters and the link > doesn'

Re: [OT] RE: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Chris Pratt
On 9/13/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote: > The next will most likely be on using the Struts2 tags Sounds good, please remember to let us know when you get around to the custom tag articles. Thanks. (*Chris*) -

[OT] RE: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Wesley Wannemacher
>On 9/13/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote: >> I like to think the ones I wrote are good :) >> >> http://www.wantii.com/wordpress/?cat=3 >> >Wesley, > I don't see anything up there on writing Custom Tags, which was the original caller's question. Did >I miss them? > (*Chris*)

Re: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Dave Newton
--- Chris Pratt wrote: > Wesley Wannemacher wrote: > > I like to think the ones I wrote are good :) > > http://www.wantii.com/wordpress/?cat=3 > I don't see anything up there on writing Custom > Tags, which was the original caller's question. Actually, the original question was whether or not ther

Re: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Chris Pratt
On 9/13/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote: > I like to think the ones I wrote are good :) > > http://www.wantii.com/wordpress/?cat=3 > Wesley, I don't see anything up there on writing Custom Tags, which was the original caller's question. Did I miss them? (*Chris*) ---

[OT] Re: How to invalidate a session in struts 2.0

2007-09-13 Thread Dave Newton
--- Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > Anyway, I'm still not convinced that invalidating > the session in the > action class would yield any more positive results > than doing it in > the JSP page. > Nobody gave any examples, counter-examples or use > cases that shows it is more co

In-process acceptance testing with Jetty

2007-09-13 Thread Eric D Nielsen
I've been trying to adapt the approach shown at http://today.java.net/pub/a/today/2007/04/12/embedded-integration-testing-of-web-applications.html for building acceptance tests that can be run more simply within the IDE and that don't require creating a multi-module POM in Maven (since all articl

Re: How to invalidate a session in struts 2.0

2007-09-13 Thread Gabriel Belingueres
I think this is becoming an off topic for this list, so this will be my last post. Anyway, I'm still not convinced that invalidating the session in the action class would yield any more positive results than doing it in the JSP page. Nobody gave any examples, counter-examples or use cases that sho

how action url mapping has been controlled

2007-09-13 Thread Yahzz Yan
Hello, Look at existing Struts 2 package, after using the blank app war file, I cannot figure out how the actions url has been controlled. >From web.xml, the url-pattern specify as following, and it seems that any url >patten /* will work, but the framework doesn't behave that way. Why only >

Re: Struts anchor question

2007-09-13 Thread Dave Newton
Hrm, yeah, it must have been added since then :/ I really don't like the wiki sometimes because of issues like that; it's too easy to get confused (obviously! :) d. --- TonyD <[EMAIL PROTECTED]> wrote: > > Sorry Dave, now I will explain what happed. > > I have struts version 2.0.6 installed a

RE: Set the tree node to a given value

2007-09-13 Thread Manu Mahajan
Hi. For your specific question Try treeSelector = dojo.widget.byId('treeSelector_TREENAME') treeNode = dojo.widget.byId(ID) treeSelector.doSelect(treeNode); dojo.event.topic.publish("treeSelected", {node:dojo.widget.byId(treeSelection)}); Replace TREENAME with the name of your tree, ID is th

RE: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Wesley Wannemacher
I like to think the ones I wrote are good :) http://www.wantii.com/wordpress/?cat=3 I don't consider it complete yet, since I haven't covered tags/freemarker/spring/etc. But it covers basics and will keep you reading for a while. -Wes -Original Message- From: kkjacks [mailto:[EMAIL PR

Re: Struts anchor question

2007-09-13 Thread TonyD
Sorry Dave, now I will explain what happed. I have struts version 2.0.6 installed and my URL local documentation doesn't contain the "escapeAmp" attribute. That means I must update to the latest struts version 2.0.9 to use that attribute? Because I just used it in my url code and I got an "Excep

Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread kkjacks
Struts 2 literature seems to be pretty limited right now. Any detailed tutorial at all would be nice. I have looked through roseindia but it seems to just skim the surface. -- View this message in context: http://www.nabble.com/Know-of-any-good-custom-tag-tutorials-for-struts-2--tf4435689.html

Re: nested:iterate Validator problem

2007-09-13 Thread Matthew Schrader
I have my beans inheriting ValidtorActionForm. Is there anything else that I need to do to turn on server-side validation? At this point neither server-side or client-side validation is picking up this field. Paul Benedict wrote: I don't the client-side validator handles arrays? You should in

Re: JAAS struts 2 Tutorial?

2007-09-13 Thread Muhammad Momin Rashid
Hello tom, I am building a J2EE application, that is going to be viewed using Web Browser and Mobile Devices. I am trying to implement security so that only a logged in user with the correct role can access the different parts of the application e.g. a non-logged in user can only access the

Re: Struts anchor question

2007-09-13 Thread Dave Newton
--- TonyD <[EMAIL PROTECTED]> wrote: > Why have you sent me this link? So you'd read what's on the page. > Do you think I never seen that link? Apparently not, otherwise you would have seen the "escapeAmp" attribute. > Do you think the answer to my question is in that link? Yes, because if you

Re: where can i download struts-layout.tld's

2007-09-13 Thread Antonio Petrelli
Please start a new thread, and say what you want more concisely, I just cannot understand a word! Antonio 2007/9/13, msg2ajay <[EMAIL PROTECTED]>: > > > hi thanQ very much for reply, > Yaa i have done mistake the form > name is different in my config file.

Re: where can i download struts-layout.tld's

2007-09-13 Thread msg2ajay
hi thanQ very much for reply, Yaa i have done mistake the form name is different in my config file so i tried with that but then also i am not able to get the values. I tried to print back in my Action class it is printing in actionClass also but it is

Re: [s2] Is it possible to have seperate validtion files for each method without using wildcards.

2007-09-13 Thread Zoran Avtarovski
We use conditional validation by placing a method string our model and using that as a conditional check during validation. Z. > Is it possible to have seperate validtion files for each method. > > Bascially it would be very nice to be able to have > > > > > and be able to ha

Re: Action instances

2007-09-13 Thread Paul Benedict
It doesn't matter as long as you can justify it :-) If the behaviors "belong" together, you may choose to use a Dispatch-like action. Otherwise, make them separate. Alot of this is stylistic but you'll figure out the answer based on how related the business code is. Paul On 9/12/07, Zhang, Larry

Re: nested:iterate Validator problem

2007-09-13 Thread Paul Benedict
I don't the client-side validator handles arrays? You should instead allow server-side validation to take care of complex scenarios. Paul On 9/12/07, Matthew Schrader <[EMAIL PROTECTED]> wrote: > > Users, > > I have been googling like crazy to find a workaround, or fix, to the > problem of Valida

Re: problem with

2007-09-13 Thread Paul Benedict
X32Form is the name of your java class, not the bean. You get the name of the bean from the "name" attribute of your action mapping. Paul On 9/12/07, msg2ajay <[EMAIL PROTECTED]> wrote: > > > hi, > i am trying to get the collection object (Vector) form Action > Class > to my Jsp. I alrea

Re: Based on struts 1.3.8 , now adding 2.0.9 jar to use funcs from 2.x

2007-09-13 Thread Paul Benedict
I do not believe the two are currently compatible. On 9/12/07, Emi Lu <[EMAIL PROTECTED]> wrote: > > Hello List, > > I am using struts1.3.8. May I know is it possible that I can use some > functions/tags provided by 2.0.9. > > For example, > . do not change any 1.3.8 .jar files > . Add struts2-cor

Re: where can i download struts-layout.tld's

2007-09-13 Thread msg2ajay
thank's a lot Antonio Petrelli-3 wrote: > > 2007/9/13, msg2ajay <[EMAIL PROTECTED]>: >> >> >> hi, >> >>i am trying to use struts-layout for demonstration of Grid model. >> so >> Can anybady tell me from where i can download the relevent supported >> file's >> needed to me. >> i am using

configuration property

2007-09-13 Thread Pablo Vázquez Blázquez
Hi all, I´m trying to read the StrutsConstants.STRUTS_ACTION_EXTENSION at execution time and I´m not able to. String ext = (String) DefaultSettings.get(StrutsConstants.STRUTS_ACTION_EXTENSION); gives me an error, and, besides that, I have modified the extension attribute in my struts.xml,

Re: where can i download struts-layout.tld's

2007-09-13 Thread Antonio Petrelli
2007/9/13, msg2ajay <[EMAIL PROTECTED]>: > > > hi, > >i am trying to use struts-layout for demonstration of Grid model. > so > Can anybady tell me from where i can download the relevent supported > file's > needed to me. > i am using struts 1.2.9 and jdk1.5.. 1) Open Firefox or IE or wha

RE: Struts anchor question

2007-09-13 Thread TonyD
I have Microsoft Internet Explorer 6.0.2 on my computer. If I use the struts anchor the URL parameters are separated by the & character and the link works. If I use the html anchor with a struts property the URL parameters are separated by the amp; characters and the link doesn't work. I return

Re: Struts anchor question

2007-09-13 Thread TonyD
Why have you sent me this link? Do you think I never seen that link? Do you think the answer to my question is in that link? You don't need to reply if you don't know the answer with another question. Thanks. newton.dave wrote: > > http://struts.apache.org/2.x/docs/url.html > > --- TonyD <[EMA

Set the tree node to a given value

2007-09-13 Thread GEDA
Hi. All worked great for displaying the http://www.nabble.com/Set-the-tree-node-to-a-given-value-tf4433953.html#a12649709 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTE