Re: struts.xml - change default location

2007-03-20 Thread Bartek
Hi James Well, the person who created the project structure is not me. I just have to fit my development into it. So the discussion if this makes sense or not is not the point of this topic :). But nerevtheless, thank you for confirming what I have also supposed (and what you called a battle).

Re: [s2] Possibility to hide input fields if not empty?

2007-03-20 Thread joey
Just use condition tag to hide your fields,like this: s:if test=user.email==null s:textfield key=user.email name=user.email / /s:if On 3/20/07, Piero Sartini [EMAIL PROTECTED] wrote: Just wondering how you guys would make something like this:

A suggestion for struts.xml!

2007-03-20 Thread joey
I think if struts.xml 's element 'include' support wildcard,it will be better. For example I have ten file to be included in struts.xml,now I have to write include file=/config/struts-xxx.xml / ten times.But if it has supported wildcard, I would only need write once like this include

A suggestion for struts.xml!

2007-03-20 Thread joey
I think if struts.xml 's element 'include' support wildcard,it will be better. For example I have ten file to be included in struts.xml,now I have to write include file=/config/struts-xxx.xml / ten times.But if it has supported wildcard, I would only need write once like this include

Re: Why following is not working

2007-03-20 Thread Dave Newton
--- tom tom [EMAIL PROTECTED] wrote: Can some body let me know why following is not working s:a href=s:url action=myInfor.studentProfile/ span id=blue Personal Details /span /s:a can't we have s:a href like

ldap access

2007-03-20 Thread Philippe Le Gal
Hi, I'm looking for an example of an ldap search with struts. Any pointer ? Thank Philippe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-20 Thread Rene Gielen
Maybe this is the option you are searching for: struts.xml: --- action name=action1 class=acme.Action1 result${targetUrl}/result /action in your acme.Action1 class: --- String targetUrl; public String getTargetUrl() { return this.targetUrl; } public

Re: ldap access

2007-03-20 Thread Dave Newton
--- Philippe Le Gal [EMAIL PROTECTED] wrote: I'm looking for an example of an ldap search with struts. I'm not sure how the two are related; can you be more specific? d. Food fight? Enjoy some healthy

Re: ldap access

2007-03-20 Thread Philippe Le Gal
I'm looking for an example for implementing a LDAP user authentification inside a struts application. I think I've to test java.naming.ldap classes. Am i right ? Thx Philippe Le Tuesday 20 March 2007 13:18:31 Dave Newton, vous avez écrit : --- Philippe Le Gal [EMAIL PROTECTED] wrote: I'm

Re: Please help: Struts tags don't evaluate any expressions

2007-03-20 Thread irene
Hi Laurie, It works! i'm not using servlet 2.4 specification. Now it works (but i have to change the taglib declaration to %@ taglib uri=http://java.sun.com/jstl/core_rt; prefix=c %) Thanks a lot, I wanted to avoid the use of scriptlets. Laurie Harper wrote: You probably *don't* want the

Re: ldap access

2007-03-20 Thread Dave Newton
--- Philippe Le Gal [EMAIL PROTECTED] wrote: I'm looking for an example for implementing a LDAP user authentification inside a struts application. I think I've to test java.naming.ldap classes. Am i right ? Oh, gotcha. IIRC it's javax.naming.ldap but anything I know about it is about a year

RE: ldap access

2007-03-20 Thread Wesley Wannemacher
--- Philippe Le Gal [EMAIL PROTECTED] wrote: I'm looking for an example for implementing a LDAP user authentification inside a struts application. I think I've to test java.naming.ldap classes. Am i right ? Oh, gotcha. IIRC it's javax.naming.ldap but anything I know about it is

Re: A suggestion for struts.xml!

2007-03-20 Thread Harring Figueiredo
Even though I would like to have something like this for CLASSPATH in say, ant scripts, I would not want something like this in configuration file for 2 reasons: - Sercuty issues - When it comes to error messages, struts does not really provide good messages (I take that this is because the

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread Greg Reddin
On 3/19/07, James Mitchell [EMAIL PROTECTED] wrote: If I continue to think in Java, my ruby code will look (structurally) like Java. That's actually a natural progression that people will make as they learn to think in Ruby. Maybe that's why I haven't fallen in love with Ruby yet. I

CompositeActionMapper

2007-03-20 Thread Deryl Seale
I am having some trouble getting the CompositeActionMapper to work properly. I have the following specified in my struts.properties: struts.mapper.class=org.apache.struts2.dispatcher.mapper.CompositeAction Mapper struts.mapper.composite=org.apache.struts2.dispatcher.mapper.DefaultActi

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread stanlick
Very well stated Greg! What if our physician continued to practice medicine using the techniques of the past. I would imagine everyone here would be in search of a new Dr. I don't like to jettison acquired knowledge any more than the next person. However, to remain viable in this industry, I

s:checkboxlist

2007-03-20 Thread Hartrich, James CTR USTRANSCOM J6
Is there a way to pre-check boxes that meet criteria? I have 2 lists, listA is for all the checkboxes and listB is for checkboxes that will be pre-checked. s:checkboxlist label=Registration list=#allreglist.regList listKey=regId listValue=regNm

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: What if our physician continued to practice medicine using the techniques of the past. You mean like using leeches and maggots to speed the healing process? Oh, wait, they're doing that again. Dammit. d.

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread stanlick
Actually, I was thinking more in terms of nuclear medicine. P.S. - My sledge hammer still works fine for splitting wood too. On 3/20/07, Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: What if our physician continued to practice medicine using the techniques of the past.

Re: CompositeActionMapper

2007-03-20 Thread Deryl Seale
Yes, I tried that, and all I got was an exception when I started up the application saying that an ActionMapper with the name struts had already been loaded, presumedly from struts-default.xml. If there is a way to make Struts use CompositeActionMapper with some configuration entry in

Re: CompositeActionMapper

2007-03-20 Thread Dave Newton
--- Deryl Seale [EMAIL PROTECTED] wrote: I am having some trouble getting the CompositeActionMapper to work properly. I have the following specified in my struts.properties: [...] Have you tried it like this in struts.xml? bean type=org.apache.struts2.dispatcher.mapper.ActionMapper

Re: s:checkboxlist

2007-03-20 Thread Dave Newton
--- Hartrich, James CTR USTRANSCOM J6 wrote: Is there a way to pre-check boxes that meet criteria? I have 2 lists, listA is for all the checkboxes and listB is for checkboxes that will be pre-checked. In my app I currently have: s:checkboxlist list=tags name=tagids

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread Leon Rosenberg
I hope you understand that your argument beats your own argumentation... I mean RoR... hmm integrated full stack scripting language which lacks everything a good language needs... sounds familiar... VBA? PHP? I thought we were moving from scripting and hacking into software engineering...

Migrating to Struts2 from existing Struts1 Tiles1 application

2007-03-20 Thread Avinash Wable
Hi, I would like to hear some advices about migrating to Struts 2. 1. We have developed a website using Struts 1 with Tiles 1. Now as Struts 2 and Tiles 2 is available how much is it feasible to migrate to Struts 2 Tiles 2? Before that I want to know whether I can use Struts 2 with

Re: TAbbedPanel and CSS

2007-03-20 Thread Felipe Rodrigues
Hi, I'm still having problems to take the templates images out of .jar. I'm trying to take the images that compose the Tab in a TabbedPanel, and thus, use my own images with my own colors. I got this replacing the images inside the .jar, but it is not a good approach. I got use my own css

Re: TAbbedPanel and CSS

2007-03-20 Thread Musachy Barroso
Do you mean to extract the images or reference the images inside the jar? Once you are using your css, you can use your own images like you usually do (from a subdir of your webroot for example) musachy On 3/20/07, Felipe Rodrigues [EMAIL PROTECTED] wrote: Hi, I'm still having problems to

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread Dave Newton
--- Leon Rosenberg wrote: [...] integrated full stack scripting language which lacks everything a good language needs... Hey, maybe we should have yet another what is a scripting language or, better yet, static vs. dynamic vs. strong vs. weak typing argument. Nah; I've got LtU for that. All

Re: Migrating to Struts2 from existing Struts1 Tiles1 application

2007-03-20 Thread Dave Newton
--- Avinash Wable wrote: I would like to hear some advices about migrating to Struts 2. Step 1: Determine if you have an actual need to migrate to Struts 2. Before that I want to know whether I can use Struts 2 with Tiles 1, if yes how? I don't know if you even can, but I'm not sure why

[JAVA] suing synchronized block

2007-03-20 Thread temp temp
I using synchronized block and need help in using it ? I have a SingleTon class which has a global valriable Map. I will updating this Map at runtime. Example synchronized (fActionHandlers) { fActionHandlers.put(

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread Larry Meadors
Forget Ruby, use SQL On Rails. http://www2.sqlonrails.org/ Larry On 3/20/07, Dave Newton [EMAIL PROTECTED] wrote: --- Leon Rosenberg wrote: [...] integrated full stack scripting language which lacks everything a good language needs... Hey, maybe we should have yet another what is a

[OT] Re: [JAVA] suing synchronized block

2007-03-20 Thread Dave Newton
--- temp temp [EMAIL PROTECTED] wrote: I using synchronized block and need help in using it http://www.google.com/search?q=java+%2Bsynchronized+%2Bblock d. Be a PS3 game guru. Get your game face on with

Re: [OT][JAVA] suing synchronized block

2007-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, Please note that this is a mailing list for users of the Struts web application framework. Your question is more appropriate elsewhere. That being said, we tend to know a lot about Java... temp temp wrote: I am using a

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread Leon Rosenberg
ROFL! That was great! And the sad thing of all this RoR hype, I actually believed it wasn't a joke. First 10 seconds :) Great link Larry! Thanx Leon On 3/20/07, Larry Meadors [EMAIL PROTECTED] wrote: Forget Ruby, use SQL On Rails. http://www2.sqlonrails.org/ Larry On 3/20/07, Dave

Re: TAbbedPanel and CSS

2007-03-20 Thread Felipe Rodrigues
The problem is, even using the css pointing to my own images, dojo still keep getting the images from inside the jar. Here is a piece of my .css . The url is correct and the tab should be green. (I changed the images to green) But when I test the app, the Tab is still blue. I also deleted the

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread Ted Husted
Should have saved that one for April 1 :) On 3/20/07, Larry Meadors [EMAIL PROTECTED] wrote: Forget Ruby, use SQL On Rails. http://www2.sqlonrails.org/ Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

adding parameters at runtime to actionforward which uses tiles

2007-03-20 Thread temp temp
I am using tiles definitions in my actionforward action path=/action/manage/entity/viewEntity type=com.reisys.fema.ognt.web.action.manage.entity.ViewEntityAction forward name=success path=forward.view.entity/ /action

Re: [OT][JAVA] suing synchronized block

2007-03-20 Thread Romu
http://www-128.ibm.com/developerworks/library/j-dcl.html if u use jdk1.5 , it's the second time i read that volatile is a good solution . 2007/3/20, Christopher Schultz [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, Please note that this is a

Re: [OT][JAVA] suing synchronized block

2007-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Romu, Romu wrote: http://www-128.ibm.com/developerworks/library/j-dcl.html if u use jdk1.5 , it's the second time i read that volatile is a good solution . A few notes: 1. volatile has been available since the beginning. JDK 1.5 is not

Re: [s2] Confused about s:tree

2007-03-20 Thread Brian Thompson
Hey Dave, That helps a lot, thanks! Do you know if the childCollectionProperty has to be a Set, or can it be anything that implements the Collection interface? Also, is there any way to force childCollectionProperty to look in the action class containing the rootNode object, or does the set of

Re: [s2] Confused about s:tree

2007-03-20 Thread Brian Thompson
Hey Martin, I was looking at the Action class you quoted as I was writing the original email in this thread. I saw that the example wanted a Category object for the tree, but I wasn't sure what that Category class was supposed to look like. Thanks, though. -Brian On 3/19/07, Martin Gainty

Re: [s2] Confused about s:tree

2007-03-20 Thread Dave Newton
--- Brian Thompson wrote: Do you know if the childCollectionProperty has to be a Set, or can it be anything that implements the Collection interface? That I don't know (and I don't have the source in front of me) but I would hope any Collection would work... Famous last words ;) Also, is

RE: DownloadAction IE problem on Open

2007-03-20 Thread Scott Smith
I finally was able to google the problem on a PHP board. Apparently, it's a cache issue with IE6. You can work around it by adding the following lines to your download code. res.setHeader(Cache-Control, private); res.setHeader(Expires, 0); res.setHeader(Pragma, cache);

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread Harring Figueiredo
If you need the following on your project: 1) SOP (Service Oriented Programming) 2) SaaS (Software as a Service) 3) IoC pattern 4) and XML coding with logic I would not recommend http://www2.sqlonrails.org/ yet, UNLESS you are willing to wait for the next version as they claim all of these and

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread Dave Newton
--- Harring Figueiredo [EMAIL PROTECTED] wrote: 3) IoC pattern Wait, I thought SQL injection was commonplace. d. The fish are biting. Get more visitors on your site using Yahoo! Search Marketing.

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-20 Thread Rene Gielen
Maybe this is the option you are searching for: struts.xml: --- action name=action1 class=acme.Action1 result${targetUrl}/result /action in your acme.Action1 class: --- String targetUrl; public String getTargetUrl() { return this.targetUrl; } public

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-20 Thread arunkumar S
Hi Rene, It works.Thanks Regards, Arun. Maybe this is the option you are searching for: struts.xml: --- action name=action1 class=acme.Action1 result${targetUrl}/result /action in your acme.Action1 class: --- String targetUrl; public String getTargetUrl() {

Re: TAbbedPanel and CSS

2007-03-20 Thread Musachy Barroso
That should be it, I would try with Dojo first (download Dojo distribution), specify the custom css in one of their examples and make sure that everything works as expected and then try with S2. musachy On 3/20/07, Felipe Rodrigues [EMAIL PROTECTED] wrote: The problem is, even using the css

Re: [s2] Confused about s:tree

2007-03-20 Thread Musachy Barroso
The tree tag needs more documentation. I have it on my todo list for 2.1(read: Dave could you help on this one on the wiki? :) ) musachy On 3/20/07, Dave Newton [EMAIL PROTECTED] wrote: --- Brian Thompson wrote: Do you know if the childCollectionProperty has to be a Set, or can it be

Re: [s2] Confused about s:tree

2007-03-20 Thread Dave Newton
--- Musachy Barroso [EMAIL PROTECTED] wrote: The tree tag needs more documentation. I have it on my todo list for 2.1(read: Dave could you help on this one on the wiki? :) ) :p Yep, but it might not happen until the weekend. Busy little bee this week! Dave

Re: s.autocompleter with JSON Plugin

2007-03-20 Thread Piero Sartini
I tried to apply the patch that is in JIRA - but it does not work. I guess it is not only the change in the JavaScript but somewhere in the Java classes as well. Is there a prepackaged 2.0.7 somewhere? Or do I have to build it by myself? Need to present s2 soon and it would be great if I get

Re: s.autocompleter with JSON Plugin

2007-03-20 Thread Musachy Barroso
I think the daily builds are for 2.1 only. If you want to build it: http://struts.apache.org/2.x/docs/building-with-maven.html The autocompleter tag can be used without the json plugin, check showcase for examples. musachy On 3/20/07, Piero Sartini [EMAIL PROTECTED] wrote: I tried to apply

Time of displaying data on the page

2007-03-20 Thread puchacz
Hi Hi If anybody could tell me, how can I measure the time of displaying some data on the screen? code %@ include file=/WEB-INF/jsp/include.jsp% [EMAIL PROTECTED] import=bus.TimeHold% [EMAIL PROTECTED] import=java.util.Date% html link type=text/css href=./css/main.css rel=stylesheet

Class path basic question and FileInputStream

2007-03-20 Thread Zhang, Larry \(L.\)
I have a program.xml file phycially located in a directory in my web project class path in WSAD,then in my jsp I am trying to read this file, I got an error saying the file is not found. Why? When creating File file = new File(program.xml); on earth, which directory does JVM tries to find out the

Re: s.autocompleter with JSON Plugin

2007-03-20 Thread Piero Sartini
Am Dienstag, 20. März 2007 schrieb Musachy Barroso: I think the daily builds are for 2.1 only. If you want to build it: http://struts.apache.org/2.x/docs/building-with-maven.html I tried to build tags/STRUTS_2_0_7 as well as trunk. both seem to be broken: [surefire] Running

Re: Class path basic question and FileInputStream

2007-03-20 Thread Harring Figueiredo
Larry: When you ran the webapp, the container has a _different_ view of the file system. The root of the file system for the web application will the root of your web app. The class path you are describing plays no role in finding the program.xmlfile when you try to open a file the way you are

Re: Is Struts version 1.2.4 compatible with J2EE 1.4 and Java 5?

2007-03-20 Thread Paul Benedict
Yes. Sun never deprecates the Servlet API. Anything that works in 1.4 will work in 5. Sunitha Garapati wrote: Is Struts version 1.2.4 compatible with J2EE 1.4 and Java 5? Thanks for your help! - To unsubscribe, e-mail:

Re: adding parameters at runtime to actionforward which uses tiles

2007-03-20 Thread Paul Benedict
temp temp wrote: Is there a way I can add parameters to an actionforward which uses tiles definition ? If its not tiles I can append to actionForward.getActionPath() what in case of tiles , how can I append parameters at runtime ? Temp, Tile views shouldn't need parameters.

Re: [s1] Struts 1.3.8: property actionId causes load() Exception

2007-03-20 Thread Paul Benedict
Pierre, Ever solve this problem? Paul Pierre Thibaudeau wrote: 2007/3/18, Paul Benedict [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: What version of the DTD are you using? The heading of my struts-config.xml file reads as follows: ?xml version=1.0 encoding=UTF-8? !DOCTYPE

Re: adding parameters at runtime to actionforward which uses tiles

2007-03-20 Thread temp temp
What in case of redirect and I donot want to use session? Thanks Regards Paul Benedict [EMAIL PROTECTED] wrote: temp temp wrote: Is there a way I can add parameters to an actionforward which uses tiles definition ? If its not tiles I can append to actionForward.getActionPath()

Re: Time of displaying data on the page

2007-03-20 Thread Ed Griebel
Hi- Do you mean to say that the time difference is much less than the time from when you click the mouse, to when page is rendered in browser? In your code below, since you are using %=scriptlets% you are only going to measure the time that the Java servlet itself takes. This will not take into

Re: A suggestion for struts.xml!

2007-03-20 Thread joey
Thank your reply! I only want more choices.I think wildcard style would be more easier in developing stage, and the current style would be more suitable in deploying stage. On 3/20/07, Harring Figueiredo [EMAIL PROTECTED] wrote: Even though I would like to have something like this for

Re: JSTL Empty equivalent for struts 2.0.6

2007-03-20 Thread tom tom
I believe the simple answer in struts 2.0.6 is s:if test=#session.myBean.myProperty == null The property is null /s:if which is same in struts 1.x as logic:empty name=myBean property=myProperty The property is null /logic:empty Pls let me know if any other alternative or a better