Re: Tiles - proper way for choosing a tile dynamically

2004-08-27 Thread Michael McGrady
+1 David Friedman wrote: Janne, You could set everything dynamically in the tile using something like this (don't quote me if you like it, just look it up!): public class TestAction extends TilesAction { public ActionForward execute(ComponentContext context, ActionMa

Re: Tiles - proper way for choosing a tile dynamically

2004-08-27 Thread Jason Lea
If you are using container managed security or the security filter you could use request.isUserInRole("admin") checking in the action. But Tiles also supports request.isUserInRole checking in the definition and tags eg You could probably try using this in your definition then on the page you

RE: Problems with Struts - newbie

2004-08-27 Thread David Friedman
Dear S.C.S, You listed a struts-config.xml message resource as "Embragec" so it needs to find a file "WEB-INF\classes\Embragec.properties" yet you didn't list that file with sample contents. Instead, you seem to have listed "Embragec" as a JDBC (container level) resource. I don't believe Struts

RE: Tiles - proper way for choosing a tile dynamically

2004-08-27 Thread David Friedman
Janne, You could set everything dynamically in the tile using something like this (don't quote me if you like it, just look it up!): public class TestAction extends TilesAction { public ActionForward execute(ComponentContext context, ActionMapping mapping, ActionFo

Resolved: RequestProcessor: include() instead of forward()

2004-08-27 Thread Derek Richardson
Turns out the problem was a negative synergy between Tomcat 5 and a badly written request wrapper. The include() simply solved the problem by avoiding the code in tomcat 5 that triggered the issue with the wrapper. Time to rewrite the wrapper... From: Derek Rich

RequestProcessor: include() instead of forward()

2004-08-27 Thread Derek Richardson
I'd like my RequestProcessor to do a RequestDispatcher.include() instead of a .forward(). This is so that I can have a JSP that includes the output of several actions by using c:import tags. I've looked at the Servlet 2.4 spec and I don't see a negative to doing this; however, I'd like the opini

ActionForm: simply calling reset() or have to recreate one ?

2004-08-27 Thread lixin chu
Hi, IN one of my Actions I need to clear the existing session scoped ActionForm, should I just call form.reset() and then repopulate values, or I have to remove it and recreate it using RequestUtils ? I saw a recent message talking about this, but I am not sure if I have to recreate one. If so, ho

Re: Interesting tiles/redirect interaction problem

2004-08-27 Thread Jason Lea
From what I can see here it looks like the page is already being written out when the error occurs from what I can see. You have gone to your first action, done some work, then return the mainLayout tile. The tile then starts building the response based on layout2.jsp. It includes the pages yo

Re: ApplicationProperties_es_ES

2004-08-27 Thread Jason Lea
The resource bundles try to match the most specific bundle it can find eg is language and country are provided it will use that. If only language then it will try that. So the order for a locale of 'es_ES' will look for files in this order 1. ApplicationProperties_es_ES.properties 2. Applicatio

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Craig McClanahan
On Sat, 28 Aug 2004 11:47:14 +1200, Jason Lea <[EMAIL PROTECTED]> wrote: > Tomcat 5 includes *"JSP Custom Tag Pooling* - The java objects > instantiated for JSP Custom Tags can now be pooled and reused. This > significantly boosts the performance of JSP pages which use custom tags." > This is tru

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Jason Lea
Tomcat 5 includes *"JSP Custom Tag Pooling* - The java objects instantiated for JSP Custom Tags can now be pooled and reused. This significantly boosts the performance of JSP pages which use custom tags." I seem to remember reading somewhere (can't remember where, does someone have a link) that

Re: updating values in a collection of beans through JSP

2004-08-27 Thread Rick Reumann
Olve Sæther Hansen wrote: I am also struggeling with the same problem.. As you said earlier, a demo would be helpful. I have a demo app and some notes here explaining how to accomplish this: http://www.reumann.net/struts/nested.do -- Rick ---

Re: [OT:Humour]

2004-08-27 Thread Rick Reumann
Bill Siggelkow wrote: There once was a coder from Atlanta Whose income he wished to supplanta On a Struts Cookbook he tarried Yet to Bristol he carried Sweetwater Blue and Glen Moranga There once was a man on a strut list, who tried to be funny but got dissed. His limricks were lame, yet he wrote w

FRIDAY very OT: Tuesday's Mac Envy grows?

2004-08-27 Thread Vic
http://news.com.com/Apple+fans+abuzz+over+new+iMac/2100-1041_3-5327370.html?tag=nefd.top .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: updating values in a collection of beans through JSP

2004-08-27 Thread Olve Sæther Hansen
Muhammad Momin Rashid wrote: Finally I figured out the solution on my own, I would like to thank everyone who made an effort to help me resolve the issue at hand. Regards, Muhammad Momin Rashid. "Muhammad Momin Rashid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, I have

Re: [OT] Good luck Dream Team

2004-08-27 Thread ksitron
Your team won this game fair and square. I have no problem with that. I live in San Antonio, Texas and watch Manu all the time. He can flat out hoop. But, it's one thing to be proud of this accomplishment for the country of Argentina. And, celebrate this victory, I understand that. But, don't po

Re: [OT] Good luck Dream Team

2004-08-27 Thread Vic
Argentina is an upset winer. The faviorites lost by a point earlier (to Argentina) http://www.rediff.com/sports/2002/sep/09basket.htm .V Lucas Gonzalez Pearson wrote: Hey we won! Lucas ps.- an argentinian guy - Original Message - From: "ksitron" <[EMAIL PROTECTED]> To: "Struts Users Mailin

RE: ApplicationProperties_es_ES

2004-08-27 Thread Jim Barrows
> -Original Message- > From: Lucas Gonzalez Pearson [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 2:10 PM > To: Struts Users Mailing List > Subject: Re: ApplicationProperties_es_ES > > > I thought that if no resource bundle matched the ones you > had, then the > default wou

Re: [OT] Good luck Dream Team

2004-08-27 Thread Lucas Gonzalez Pearson
Hey we won! Lucas ps.- an argentinian guy - Original Message - From: "ksitron" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 27, 2004 5:45 PM Subject: Re: [OT] Good luck Dream Team > That's Ok. You guys can talk smack now. But, I'm sure i

Re: ApplicationProperties_es_ES

2004-08-27 Thread Lucas Gonzalez Pearson
I thought that if no resource bundle matched the ones you had, then the default would be chosen... isn´t that correct? We are developing in argentina, and many people has es_ES instead of es_AR in their locales, so the default resource bundle is used (english in our case) =/ - Original Mess

Interesting tiles/redirect interaction problem

2004-08-27 Thread Jim Barrows
I'm using tiles, and some of the tiles are summary pages. For instance a payment summary, it just shows the date and the amount. While the detail page shows how the payment was applied (how much to interest etc.) So my tiles definition looks like:

RE: ApplicationProperties_es_ES

2004-08-27 Thread Jim Barrows
> -Original Message- > From: Eric Dahnke [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 1:53 PM > To: Struts Users Mailing List > Subject: ApplicationProperties_es_ES > > > > Hello list, > > > We're building an internationalized site, and we're having an > issue with > lo

ApplicationProperties_es_ES

2004-08-27 Thread Eric Dahnke
Hello list, We're building an internationalized site, and we're having an issue with locales and resource bundles. If we have two specific resource bundles for Spanish from Spain (ApplicationProperties_es_ES.properties) and Spanish from Argentina (ApplicationProperties_es_AR.properties), one wo

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread David Durham
Craig McClanahan wrote: (1) Scriptlets, since they are Java code, require someone at least passably familiar with Java to change them later. If you have folks that are primarily page authors, you are faced with a cost of teaching them enough about Java syntax to make the code it needs to do, or hav

Re: [OT] Good luck Dream Team

2004-08-27 Thread ksitron
That's Ok. You guys can talk smack now. But, I'm sure in four years you'll be eating humble pie. AGAIN. Guillermo Meyer wrote: Hey, Dream Team, Argentina wishes you good luck in bronze medal match! Cheers. Guillermo Argentinian Basketball fan. PD: Go Ginobili Go!!! ___

Re: Jboss database config?

2004-08-27 Thread ksitron
Tim, I believe that is part of the spec. Slattery, Tim - BLS wrote: change this: datasource = (DataSource) ic.lookup("ds.Freqs"); to: datasource = (DataSource) ic.lookup("java:/ds.Freqs"); Thanks! That makes it work in Jboss. Of course, the same source breaks in BEA. Hmm...I guess I could s

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Woodchuck
--- Craig McClanahan <[EMAIL PROTECTED]> wrote: > On Fri, 27 Aug 2004 10:21:58 -0700 (PDT), Woodchuck > <[EMAIL PROTECTED]> wrote: > > sorry to bring this up on a Friday... > > Yah, I didn't know we could have serious discussions on Fridays any > more :-). Monday is just as bad i guess... nobod

Re: taglib prefix="s"

2004-08-27 Thread Craig McClanahan
On Fri, 27 Aug 2004 13:00:21 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > been off the list for a while so play nice ;-) > > I'm looking through one of the struts-faces examples and am curious about this > taglib: > <%@ taglib prefix="s" uri="http://jakarta.apache.org/struts/tags-faces";

Re: [OT] Good luck Dream Team

2004-08-27 Thread David Durham
Guillermo Meyer wrote: Hey, Dream Team, Argentina wishes you good luck in bronze medal match! Is someone from the Dream Team on the list? Can I get a public key and a signed message? BTW, congrats! Effort and determination pay off (whether you win or lose). - Dave --

Re: taglib prefix="s"

2004-08-27 Thread James Mitchell
It belongs to the faces integration library. http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/ -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

taglib prefix="s"

2004-08-27 Thread benanderson
been off the list for a while so play nice ;-) I'm looking through one of the struts-faces examples and am curious about this taglib: <%@ taglib prefix="s" uri="http://jakarta.apache.org/struts/tags-faces"; %> I see the source for this taglib, but I'm wondering if there's any documetation for it?

RE: [OT] Good luck Dream Team

2004-08-27 Thread Jim Barrows
> -Original Message- > From: Jirole, Amar [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 12:57 PM > To: 'Struts Users Mailing List' > Subject: RE: [OT] Good luck Dream Team > > > Its actually a "creamed team" Yeh, they're just a bunch of twinkies. > > -Original Me

RE: [OT] Good luck Dream Team

2004-08-27 Thread Jirole, Amar
Its actually a "creamed team" -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 3:55 PM To: [EMAIL PROTECTED] Subject: [OT] Good luck Dream Team Hey, Dream Team, Argentina wishes you good luck in bronze medal match! Cheers. Guillermo Argen

[OT] Good luck Dream Team

2004-08-27 Thread Guillermo Meyer
Hey, Dream Team, Argentina wishes you good luck in bronze medal match! Cheers. Guillermo Argentinian Basketball fan. PD: Go Ginobili Go!!! FiberTel, el nombre de la banda ancha http://www.fibertel.com.ar

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Craig McClanahan
On Fri, 27 Aug 2004 10:21:58 -0700 (PDT), Woodchuck <[EMAIL PROTECTED]> wrote: > sorry to bring this up on a Friday... Yah, I didn't know we could have serious discussions on Fridays any more :-). > > does everyone here have pure Struts/JSTL jsp pages that is absolutely > void of scriptlets? Ex

Re: Jboss database config?

2004-08-27 Thread James Mitchell
You'll get the same thing in Tomcat (standalone). -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Frida

RE: Jboss database config?

2004-08-27 Thread Slattery, Tim - BLS
> change this: > datasource = (DataSource) ic.lookup("ds.Freqs"); > to: > datasource = (DataSource) ic.lookup("java:/ds.Freqs"); Thanks! That makes it work in Jboss. Of course, the same source breaks in BEA. Hmm...I guess I could search for one, and if the "NamingException" exception is thrown

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Michael McGrady
I have not heard of the 80/20 view. I definitely spend the majority of my time coding: I would be more like 10/90. However, on most design issues, the ideas in circulation are the ones I use and I don't have to reinvent the axel. (Why people talk about reinventing the wheel is a mystery to m

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Woodchuck
--- Michael McGrady <[EMAIL PROTECTED]> wrote: > Woodchuck wrote: > > >hehe, you make it sound as if scriptlets are the ball and chain and > >shackles that you are free from! > > > >no doubt that scriptlets can easily fit that description, but i > guess > >what i'm referring to are 'nice' script

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Michael McGrady
Woodchuck wrote: hehe, you make it sound as if scriptlets are the ball and chain and shackles that you are free from! no doubt that scriptlets can easily fit that description, but i guess what i'm referring to are 'nice' scriptlets :) little tiny scriptlets that are hands down easier than than the

Re: Jboss database config?

2004-08-27 Thread ksitron
change this: datasource = (DataSource) ic.lookup("ds.Freqs"); to: datasource = (DataSource) ic.lookup("java:/ds.Freqs"); Slattery, Tim - BLS wrote: Once more for a Jboss newby please? I can't get connected to my database. The sybase-ds.xml is as follows: ds.Freqs jdbc:sy

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Woodchuck
hehe, you make it sound as if scriptlets are the ball and chain and shackles that you are free from! no doubt that scriptlets can easily fit that description, but i guess what i'm referring to are 'nice' scriptlets :) little tiny scriptlets that are hands down easier than than the would-be non-sc

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Jim Barrows
> -Original Message- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 11:21 AM > To: Struts Users Mailing List > Subject: RE: philosophical question/poll about Struts/JSTL, scriptlets > --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > -Original Message- >

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Woodchuck
--- "Taylor, Kevin" <[EMAIL PROTECTED]> wrote: > Wherever possible we try to use only tag libs in JSP pages. When we > feel the > need to resort to scriptlets, it usually means that we are doing more > than > presentation logic in the JSP page. Or there is reusable code that > can be > pulled int

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Woodchuck
--- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Woodchuck [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 27, 2004 10:22 AM > > To: struts > > Subject: philosophical question/poll about Struts/JSTL, scriptlets > > > > > > sorry to bring this up on a

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Michael McGrady
Jim Barrows wrote: Mozilla is the core behind netscape. Not sure about firefox, as that's pretty much all new code. The original mozilla is all netscape based code, and netscape still uses the latest mozilla as their core. Gotcha, Jim. You might find the following of interest: http://www.m

Jboss database config?

2004-08-27 Thread Slattery, Tim - BLS
Once more for a Jboss newby please? I can't get connected to my database. The sybase-ds.xml is as follows: ds.Freqs jdbc:sybase:Tds:146.142.44.41:4100 com.sybase.jdbc2.jdbc.SybDriver Slattery_T xxx org.jboss.resource.adapter.jdbc.vendor.SybaseEx ce

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Jim Barrows
> -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 11:03 AM > To: Struts Users Mailing List > Subject: Re: philosophical question/poll about Struts/JSTL, scriptlets > > > Jim Barrows wrote: > > >Considering that Netscape is mozilla...

Re: Reseting one field on a DynaActionForm to it's initial value?

2004-08-27 Thread Paul Spencer
Hubert, Thank you for your help! Below is the resulting code. DynaActionForm inputForm = (DynaActionForm) form; FormBeanConfig formConfig = ModuleUtils.getInstance() .getModuleConfig(request) .findFormBeanConfig(mapping.getAttribute()); FormPropertyConfig formProperty = formConfig

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Michael McGrady
Jim Barrows wrote: Considering that Netscape is mozilla. how so? Mozilla Firefox (www.mozilla.com) versus Netscape 7.1 (www.netscape.com). Why do you mean by "Netscape is [M]ozilla"? I am going to learn something new here. Yippity skippity! Michael

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Taylor, Kevin
Wherever possible we try to use only tag libs in JSP pages. When we feel the need to resort to scriptlets, it usually means that we are doing more than presentation logic in the JSP page. Or there is reusable code that can be pulled into a custom tag lib. The only exception to this that I have see

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Jim Barrows
> -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 10:55 AM > To: Struts Users Mailing List > Subject: Re: philosophical question/poll about Struts/JSTL, scriptlets > > > Jim Barrows wrote: > > > > >Are you restarting the server, or t

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Jim Barrows
> -Original Message- > From: Daniel Perry [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 10:49 AM > To: Struts Users Mailing List > Subject: RE: philosophical question/poll about Struts/JSTL, scriptlets > > > One thing i would suggest, is that if you are working in a > team,

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Michael McGrady
Jim Barrows wrote: Are you restarting the server, or the app? On tomcat it takes me about 30 seconds to do the same... then again that's on my own local server with nothing else running. I concur. Bouncing the app instead of the server is so sweet. Also, a little tip, doing this is especiall

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Daniel Perry
One thing i would suggest, is that if you are working in a team, and you wish to include these really simple one line scriptlets (like the example i gave you), then put the scriptlets at the top of the jsp along with the "<%@ page" type declarations, taglib declarations, etc. It makes it easier for

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Jim Barrows
> -Original Message- > From: Daniel Perry [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 10:42 AM > To: Struts Users Mailing List > Subject: RE: philosophical question/poll about Struts/JSTL, scriptlets > > > > Using scriptlets, to me is like going back to the bad old days of

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Woodchuck
--- Daniel Perry <[EMAIL PROTECTED]> wrote: > hah forget the 'purist' approach! > > I use jstl / struts taglibs whereever possible. > > if i had a choice between writing my on taglib or scriptlet for > me > scriptlet wins - much less hassel, and the code is there for you on > the jsp, > and

Re: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Michael McGrady
How much wood could a woodchuck chuck if a woodchuck could chuck wood? I have freed myself of scriptlets on all pages except my entry page. I just have not bothered to clean up the entry page as yet. I think getting rid of them is a good philosophical position but it is so because the result

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Daniel Perry
> Using scriptlets, to me is like going back to the bad old days of > out.println(" -Original Message- > From: Jim Barrows [mailto:[EMAIL PROTECTED] > Sent: 27 August 2004 18:35 > To: Struts Users Mailing List > Subject: RE: philosophical question/poll about Struts/JSTL, scriptlets > > > >

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Daniel Perry
hah forget the 'purist' approach! I use jstl / struts taglibs whereever possible. if i had a choice between writing my on taglib or scriptlet for me scriptlet wins - much less hassel, and the code is there for you on the jsp, and it's only normally for very simple things. The main times i us

RE: philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Jim Barrows
> -Original Message- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 10:22 AM > To: struts > Subject: philosophical question/poll about Struts/JSTL, scriptlets > > > sorry to bring this up on a Friday... > > does everyone here have pure Struts/JSTL jsp pages

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Rick Reumann
Woodchuck wrote: ugh. i don't want to use scriptlets but it seems so much easier to. do you think it's bad to mix scriptlets with Struts and JSTL? For the most part, I think so yes. I'd use the Unstandard Tag you posted http://marc.theaimsgroup.com/?l=struts-user&m=109352654917026&w=2 (which,

philosophical question/poll about Struts/JSTL, scriptlets

2004-08-27 Thread Woodchuck
sorry to bring this up on a Friday... does everyone here have pure Struts/JSTL jsp pages that is absolutely void of scriptlets? or do you have jsp pages that use a combination of Struts/JSTL and scriptlets, all living together harmoniously using whichever method is easiest/cleanest? is mixing St

RE: Question about authentication

2004-08-27 Thread Jim Barrows
> -Original Message- > From: Joe Hertz [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 10:01 AM > To: 'Struts Users Mailing List' > Subject: RE: Question about authentication > > > > > > > > THIS IS NOT A TOMCAT OR STRUTS ISSUE. THIS IS THE WAY THE > > SPEC SAYS TO DO IT.

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Woodchuck
hi Rick, with the help of Paul McCulloch, the best i've found so far is this: http://marc.theaimsgroup.com/?l=struts-user&m=109352654917026&w=2 it uses a tag library, which i suspect the tag is doing something similar to what you suggested initially the tag binds the static variable that you wa

Re: indexed properties

2004-08-27 Thread Michael McGrady
The best thing to do, in my humble opinion, is to chase the code down back through to commons beanutils and like classes in Struts. Then you will see what is not documented and will know how you can change things if you want or extend and change things if you want more in a tag. Michael Lynn S

Re: [OT] Flex, openamf, flash remoting, or ?

2004-08-27 Thread Bryce Fischer
Wennberg, Mathias wrote: We're considering putting a new interface on our app and are currently looking into flex, openamf, and flash remoting. Have anyone tried these products and what are your experiences with them? Flex was too much $$ for us. I did some stuff in Flash Remoting, and it worke

RE: Question about authentication

2004-08-27 Thread Joe Hertz
> > > THIS IS NOT A TOMCAT OR STRUTS ISSUE. THIS IS THE WAY THE > SPEC SAYS TO DO IT. > > Thank you for your time. Don't think I tried implied otherwise. Just that I've only seen how this works on Tomcat and that I wasn't speaking to other containers. But given that it's a spec thing I'm not

indexed properties

2004-08-27 Thread Lynn Stevens
OK, I am new to struts...so if someone could help it would be great! I was trying out the indexed properties that struts talks about on their home page and I just copied their example. I can get the bean:write tag to work and properly display the element with index 1. However when I try to ge

RE: Question about authentication

2004-08-27 Thread Jim Barrows
> -Original Message- > From: Joe Hertz [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 9:44 AM > To: 'Struts Users Mailing List' > Subject: RE: Question about authentication > > > > > > > My gripe with container managed authentication for Tomcat > > was the inability > > > to ha

RE: Question about authentication

2004-08-27 Thread Joe Hertz
> > > My gripe with container managed authentication for Tomcat > was the inability > > to have a login page I could show the user myself (it > redirected the user to > > one, but showing one yourself wasn't possible). I would > have used it myself > > if it did what I wanted. :-/ > > What's wrong

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Rick Reumann
Woodchuck wrote: before i use this suggestion, would anyone else like to challenge this solution with a *more elegant* solution? ;) If you find one, let me know. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

RE: Somewhat OT: moving Struts app from BEA to Jboss

2004-08-27 Thread Slattery, Tim - BLS
> > Make sure to copy your dir structure to > > JBOSS_HOME/server/all/deploy/"nameOfYouWebApp.war" > Right, even in unexpanded form, the *directory*'s name containing the > app must end in .war THANK YOU!! That turned out to be the missing magic word! Nowhere in the introductory docs that I w

RE: Question about authentication

2004-08-27 Thread Jim Barrows
> -Original Message- > From: struts Dude [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 7:47 PM > To: Struts Users Mailing List > Subject: Re: Question about authentication > > > > - Original Message - > From: "David Suarez" <[EMAIL PROTECTED]> > To: "Struts Users

RE: Question about downloading files from a Struts servlet

2004-08-27 Thread Daniel Perry
Not sure what is wrong, but for a possible work-around, have you tried making the target for the form (or link) a new window? Daniel. > -Original Message- > From: Eric Hodges [mailto:[EMAIL PROTECTED] > Sent: 27 August 2004 17:17 > To: Struts Users Mailing List (E-mail) > Subject: Questi

RE: Question about authentication

2004-08-27 Thread Jim Barrows
> -Original Message- > From: struts Dude [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 7:51 PM > To: Struts Users Mailing List > Subject: Re: Question about authentication > > > > - Original Message - > From: "Emmanouil Batsis" <[EMAIL PROTECTED]> > To: "Struts U

Question about downloading files from a Struts servlet

2004-08-27 Thread Eric Hodges
I have a Struts form and action that downloads a file to the client. The servlet code looks like this: response.reset(); AdminSetupForm setupForm = (AdminSetupForm) form; response.setContentType("application/download"); // also tried "application/octet-stream", "junk/xml", etc. response.

RE: Struts or JSTL equivalent for this?

2004-08-27 Thread Paul McCulloch
There was a thread asking exactly the same question earlier in the week. Have a look in the archives. Paul > -Original Message- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 5:06 PM > To: Struts Users Mailing List > Subject: Re: Struts or JSTL equivalent for

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread Erik Weber
I tested this and it worked (allowed my to reuse the form after a post-form validation error requires returning to the form, yet still denies true ("back" button) duplicate submissions): execute { if (!isTokenValid(request)) { // throw error } saveToken(request); // in case there is still a retu

Re: Reseting one field on a DynaActionForm to it's initial value?

2004-08-27 Thread Hubert Rabago
In this case, you're dealing with a submitted form, and the form name is available through mapping.getAttribute(). hth, Hubert On Fri, 27 Aug 2004 11:58:44 -0400, Paul Spencer <[EMAIL PROTECTED]> wrote: > My web application has a common form that contains the property > "SortOrder". The value of

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Woodchuck
lol! not what i was expecting, but very interesting! :) before i use this suggestion, would anyone else like to challenge this solution with a *more elegant* solution? ;) and without making getters and setters!! woodchuck --- Rick Reumann <[EMAIL PROTECTED]> wrote: > Woodchuck wrote: >

Re: Reseting one field on a DynaActionForm to it's initial value?

2004-08-27 Thread Paul Spencer
My web application has a common form that contains the property "SortOrder". The value of the property is a list of fields used by the Action for sorting a list. I want my Action to reset the value of the "SortOrder" to it's initial value, as defined in struts-config.xml. When a value of the

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Emmanouil Batsis
Of course supplying getters for your constant values would work like a charm for JSTL ;-) Rick Reumann wrote: Woodchuck wrote: how can i do the following the non-scriptlet way on my jsp page? <%@ page import="MyPackage.Constants"%> <%= Constants.BUTTON__KEY %> is there an elegant Struts or JSTL e

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Rick Reumann
Woodchuck wrote: how can i do the following the non-scriptlet way on my jsp page? <%@ page import="MyPackage.Constants"%> <%= Constants.BUTTON__KEY %> is there an elegant Struts or JSTL equivalent for the above? Thankfully Kris Schneider demonstrated a good way to handle this... In your Constants c

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread Erik Weber
Yeah I see now that there are two challenges here (thanks struts dude)! Perhaps this would work: 1) resetToken right off the bat, but also do a saveToken (in case of a backend error like I described -- seemingly the saveToken here would make returning to the form OK) 2) do the possibly long logi

Re: Reseting one field on a DynaActionForm to it's initial value?

2004-08-27 Thread Hubert Rabago
Unfortunately, you'll have to provide it. ActionForms don't carry the name they were declared with. The only object with that information is FormBeanConfig. There's no surefire failproof way to know what name, if any, is associated with a DynaActionForm with just an instance of it. What are you

Struts or JSTL equivalent for this?

2004-08-27 Thread Woodchuck
how can i do the following the non-scriptlet way on my jsp page? <%@ page import="MyPackage.Constants"%> <%= Constants.BUTTON__KEY %> is there an elegant Struts or JSTL equivalent for the above? thanks in advance! __ Do you Yahoo!? Yahoo! Mail

RE: Hi, is that possible to dynamically config struts?

2004-08-27 Thread Yufan Shi
Thanks, no more reply. I have found a lot of threads in this mail list about automatically detect struts config file changes. Sorry! Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 11:05

RE: Hi, is that possible to dynamically config struts?

2004-08-27 Thread Yufan Shi
Thanks, no more reply. I have found a lot of threads in this mail list about automatically detect struts config file changes. Sorry! Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 11:05

RE: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread Zhang, Larry \(L.\)
In my application, there will be no validation error in the FINAL submission stage; the validation error would be called earlier. If however there are other types of error (like database error, we just stop processing, but the second submission will be identified. Your question is valid, however

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread PC Leung
Thank you Zhang. It is OK now. On Fri, 27 Aug 2004 11:19:48 -0400, Zhang, Larry (L.) <[EMAIL PROTECTED]> wrote: > There maybe a same question in the archive, but I can simply state here again: > > if(!isTokenValid(request){ > return mapping.findForward("error_page"); > }else{ > // good token

Re: [OT] Flex, openamf, flash remoting, or ?

2004-08-27 Thread Ovidiu EFTIMIE
I think Laszlo is a bit faster and simpler to set up, than Flex, but Macromedia has Flex Builder which is a very,very useful tool that helps you visualy design your interfaces. Ovidiu - Original Message - From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Fri, 27 Aug 2004 10:52:22 -0400

Re: Somewhat OT: moving Struts app from BEA to Jboss

2004-08-27 Thread Emmanouil Batsis
ksitron wrote: Make sure to copy your dir structure to JBOSS_HOME/server/all/deploy/"nameOfYouWebApp.war" Right, even in unexpanded form, the *directory*'s name containing the app must end in .war - To unsubscribe, e-mail: [EMA

RE: Somewhat OT: moving Struts app from BEA to Jboss

2004-08-27 Thread Paul McCulloch
I use 3.2.3... The debug messages can be turned off by playing with the log4j config file in C:\jboss\jboss-3.2.3\server\default\conf\log4j.xml You should deploy your application (as either a .war file, or a .war directory) by copying to C:\jboss\jboss-3.2.3\server\default\deploy. I have never se

Re: Somewhat OT: moving Struts app from BEA to Jboss

2004-08-27 Thread ksitron
Make sure to copy your dir structure to JBOSS_HOME/server/all/deploy/"nameOfYouWebApp.war" Slattery, Tim - BLS wrote: I've got a rather small Struts app that runs fine on BEA Weblogic. Now we're looking in to Jboss, so I've got a copy of Jboss 3.2.5. I've added a sybase-ds.xml file defining my dat

Re: Reseting one field on a DynaActionForm to it's initial value?

2004-08-27 Thread Paul Spencer
Hubert, Where do I get the name of the form? Paul Spencer Hubert Rabago wrote: Well, it ain't that easy: // code taken from DynaActionFormClass DynaActionForm formBean = (DynaActionForm) form; FormBeanConfig config = ModuleUtils.getInstance().getModuleConfig(request).findFor

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread PC Leung
resetToken(request); is added to DispatchAction. Behavior is the same. If I click the back button after submission, the token is the old one as the initial display. How to make it able to check duplicated submission? Thanks if (!isTokenValid(request, true)) { errors.add(ActionEr

Re: Reseting one field on a DynaActionForm to it's initial value?

2004-08-27 Thread Hubert Rabago
By the way, this code works in 1.2. In 1.1, I think you'll only have to change the ModuleUtils.getInstance() with RequestUtils. On Fri, 27 Aug 2004 10:21:32 -0500, Hubert Rabago <[EMAIL PROTECTED]> wrote: > Well, it ain't that easy: > >// code taken from DynaActionFormClass >Dyna

Somewhat OT: moving Struts app from BEA to Jboss

2004-08-27 Thread Slattery, Tim - BLS
I've got a rather small Struts app that runs fine on BEA Weblogic. Now we're looking in to Jboss, so I've got a copy of Jboss 3.2.5. I've added a sybase-ds.xml file defining my database connection, and I copied my Freqs directory (that's my small Struts app) from the Bean directory structure to the

Re: Reseting one field on a DynaActionForm to it's initial value?

2004-08-27 Thread Hubert Rabago
Well, it ain't that easy: // code taken from DynaActionFormClass DynaActionForm formBean = (DynaActionForm) form; FormBeanConfig config = ModuleUtils.getInstance().getModuleConfig(request).findFormBeanConfig("myFormName"); FormPropertyConfig props[] = config.findFor

  1   2   >