Localization with Struts/Tiles and URLs

2003-10-17 Thread Ruth, Brice
Greetings, all. I'm looking for some guidance on how best to go about a requirement I have from our marketing as far as URL naming goes. We're developing an international (localized) site and we have a requirement that the URLs look something like this: domain/us/whatever domain/fr/whatever

Re: org.apache.action.struts.*

2003-10-17 Thread Ruth, Brice
struts.jar Martin Gainty wrote: Which jar contains org.apache.struts.action.* Many Thanks, -Martin -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: org.apache.action.struts.*

2003-10-17 Thread Ruth, Brice
And even more convenient is the way that you can use Eclipse to show all the packages/classes/etc. when you add a library to a project. ;) Andy Engle wrote: Ruth, Brice [EMAIL PROTECTED] wrote: struts.jar Martin Gainty wrote: Which jar contains org.apache.struts.action

Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Adam Hardy wrote: On 10/17/2003 09:56 PM Ruth, Brice wrote: Greetings, all. I'm looking for some guidance on how best to go about a requirement I have from our marketing as far as URL naming goes. We're developing an international (localized) site and we have a requirement that the URLs look

Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Adam Hardy wrote: On 10/20/2003 04:47 PM Ruth, Brice wrote: Adam Hardy wrote: On 10/17/2003 09:56 PM Ruth, Brice wrote: I'm looking for some guidance on how best to go about a requirement I have from our marketing as far as URL naming goes. We're developing an international (localized) site

Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Craig R. McClanahan wrote: Ruth, Brice wrote: [snip] On the first point, our site will have a global landing page that will present the user with flags to choose their locale. This is semi-offtopic, but might be of interest. When I worked on a large scale multi-lingual app in Europe a few

Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Adam Hardy wrote: On 10/20/2003 05:57 PM Ruth, Brice wrote: Adam Hardy wrote: If that's a real .jsp file then that has to be a real us directory in your website. If that's the case, you can set the locale via a tag in the JSP. Alternatively you could use a filter. Have you thought

Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
sure there would be a better solution out there somewhere. I am new to struts development (and java on the whole!) so pardon my ignorance!!. rp -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 9:41 AM To: Struts Users Mailing List Subject: Re

Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Adam Hardy wrote: On 10/20/2003 07:41 PM Ruth, Brice wrote: Adam Hardy wrote: On 10/20/2003 05:57 PM Ruth, Brice wrote: Adam Hardy wrote: If that's a real .jsp file then that has to be a real us directory in your website. If that's the case, you can set the locale via a tag in the JSP

Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Adam Hardy wrote: On 10/20/2003 10:33 PM Ruth, Brice wrote: Adam Hardy wrote: On 10/20/2003 07:41 PM Ruth, Brice wrote: Adam Hardy wrote: On 10/20/2003 05:57 PM Ruth, Brice wrote: Adam Hardy wrote: If that's a real .jsp file then that has to be a real us directory in your website

Help with URL localization (continued)

2003-10-21 Thread Ruth, Brice
Greetings. As per my previous thread on the best way to create a URL structure like: http://domain/us/whatever http://domain/de/whatever etc. I've implemented the recommendations I received and now have a Filter listening to each request and setting the locale appropriately based on the

html:rewrite doesn't rewrite action contrary to docs?

2003-10-21 Thread Ruth, Brice
The docs (http://jakarta.apache.org/struts/userGuide/struts-html.html#rewrite) indicate that html:rewrite will rewrite an action, forward, href, or page attribute - but the action attribute isn't in the TLD and in the source for org.apache.struts.taglib.html.RewriteTag the call to

Re: html:rewrite doesn't rewrite action contrary to docs?

2003-10-21 Thread Ruth, Brice
it is in in the docs, but not available anywhere except in the nightlies. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:23

Re: html:rewrite doesn't rewrite action contrary to docs?

2003-10-21 Thread Ruth, Brice
rewriting? -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:46 PM To: Struts Users Mailing List Subject: Re: html:rewrite

Re: html:rewrite doesn't rewrite action contrary to docs?

2003-10-21 Thread Ruth, Brice
://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 2:11 PM To: Struts Users Mailing List Subject: Re: html:rewrite doesn't rewrite action contrary to docs? I have a drop-down select that jumps

how to disable (or work around) jsessionid in html:img sources

2003-10-21 Thread Ruth, Brice
Hi. I'm using html:img in certain tiles that are used from very different places in my application with the page attribute to take advantage of module-relative naming for the image sources. However, when cookies aren't enabled, or on the first visit to the web application (with no session

Re: Help with URL localization (continued)

2003-10-21 Thread Ruth, Brice
will chime in. Adam On 10/21/2003 05:40 PM Ruth, Brice wrote: Greetings. As per my previous thread on the best way to create a URL structure like: http://domain/us/whatever http://domain/de/whatever etc. I've implemented the recommendations I received and now have a Filter listening to each request

Re: Help with URL localization (continued)

2003-10-21 Thread Ruth, Brice
unmatched locales eg /crafts/crafts.do would not be checked by the filter, but /fr/crafts/crafts.do is caught, locale set and redirected to /crafts/crafts.do Ruth, Brice wrote: The straightforward wildcarding didn't seem to work (it matched against a literal wildcard). Just an FYI for others, I

Re: [ANN] Struts and JavaServer Faces talk by Craig McClanahan on 11/ 5

2003-10-21 Thread Ruth, Brice
Any chance of getting a webcast setup for this? For those of us not fortunate enough to be local to the 'Valley? :) Van Riper, Mike wrote: The next meeting of the Silicon Valley Struts User BOF will be held at Netscape in Mountain View on Wednesday, November 5th. Craig McClanahan, a senior

Re: Help with URL localization (continued)

2003-10-22 Thread Ruth, Brice
Jason Lea wrote: Ruth, Brice wrote: This seems like a good idea, but I think it would prevent the country code from always being available in the URL (so if you're in the US site, you should always see /US/index.do, etc.) unless I can do this within the Tomcat/Servlet interaction, w/o issuing

Re: how to disable (or work around) jsessionid in html:img sources

2003-10-22 Thread Ruth, Brice
Ruth, Brice wrote: Hi. I'm using html:img in certain tiles that are used from very different places in my application with the page attribute to take advantage of module-relative naming for the image sources. However, when cookies aren't enabled, or on the first visit to the web application

Re: how to disable (or work around) jsessionid in html:img sources

2003-10-22 Thread Ruth, Brice
regards Olivier Dutrieux * * Ruth, Brice a écrit : Ruth, Brice wrote: Hi. I'm using html:img in certain tiles that are used from very different places in my application with the page attribute to take advantage of module-relative naming for the image sources. However, when cookies aren't

Re: [ANN] Struts and JavaServer Faces talk by Craig McClanahan on 11/ 5

2003-10-22 Thread Ruth, Brice
PM To: Struts Users Mailing List Subject: Re: [ANN] Struts and JavaServer Faces talk by Craig McClanahan on 11/ 5 Ruth, Brice wrote: Any chance of getting a webcast setup for this? For those of us not fortunate enough to be local to the 'Valley? :) You'll have to ask Van about

Re: Struts on WebSphere 3.5

2003-10-22 Thread Ruth, Brice
Does WS 3.5 support the minimum JSP requirements set forth by Struts? Thomas Schneider wrote: Has anyone experiences in getting struts installed on a WebSphere Application Server v3.5? I tried to get the struts-example.war running as desribed at

Re: how to disable (or work around) jsessionid in html:img sources

2003-10-22 Thread Ruth, Brice
}/ img src=c:out value=${modulePath}/path/to/image/ Quoting dutrieux [EMAIL PROTECTED]: Maybe you can try, But I think the impacts is all pages send to apache then all virtualhosts defiend by the mod_jk. Ruth, Brice a écrit : Is this something I can do at a global level, so

Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
James Mitchell wrote: A bit of history on this subject: * From: Craig R. McClanahan * Subject: Re: Why would jsessionid not appear? * Date: Wed, 08 Aug 2001 12:09:26 -0700 The jsessionid path parameter will only be added if the servlet container does not know whether your client supports

Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
, and EL expressions within tags, to something that actually works. I am truly amazed at times! :) Kris Schneider wrote: If it's any consolation, I just tried the original JSP-only code I posted with TC 4.1.24 and it worked fine... Quoting Ruth, Brice [EMAIL PROTECTED]: James Mitchell wrote

Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
Saul Q Yuan wrote: -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 9:32 AM To: Struts Users Mailing List Subject: Re: how to disable (or work around) jsessionid in html:img sources James Mitchell wrote: A bit of history on this subject

Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
states: The session id must be encoded as a path parameter in the URL string. The name of the parameter must be jsessionid. Quoting Ruth, Brice [EMAIL PROTECTED]: Saul Q Yuan wrote: -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 9:32 AM

sorting and searching in Struts/tiles

2003-10-23 Thread Ruth, Brice
[Forwarded from Dinh Nguyen, his emails aren't reaching the list] Dinh Nguyen wrote: Hi, I am wondering how do you do the sorting and searching in struts. Let say, when a person views a list of collections (for example, the list consists of 5 people, each person has first name, last name, age),

Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
Craig R. McClanahan wrote: Don't blame Tomcat's JK or JK2 connectors on me! I don't have anything to do with them :-). I've only ever been interested in the standalone Tomcat code (and, for work, the way that Tomcat gets integrated into Sun's web server and app server products). In all of

Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
Craig R. McClanahan wrote: Ruth, Brice wrote: Seems strange that a rule would be set that breaks IETF standards, doesn't it? Or am I seeing this totally wrong? In IETF standards terms, the session identifier is a *path* parameter, not a *query* parameter. Such parameters can actually

Re: Bad email config [was: RE: sorting and searching in Struts/tiles]

2003-10-23 Thread Ruth, Brice
address.not sure. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 1:26 PM To: Struts Users Mailing List Subject: sorting

Good list for JSTL questions?

2003-10-23 Thread Ruth, Brice
What's a good list to address JSTL questions to? Thanks. -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Good list for JSTL questions?

2003-10-23 Thread Ruth, Brice
Thanks. Martin Cooper wrote: The Jakarta taglibs-user list is probably the best one, since the JSTL RI implementors are on that list, along with a good number of JSTL users. -- Martin Cooper Ruth, Brice [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What's a good list to address

Re: hide section of form

2003-10-24 Thread Ruth, Brice
Layers may actually not work, as most browsers have a limitation of layering over active content - active meaning Java applets, Flash, and forms (much to my surprise). Your best bet is probably to use the HTML rewriting capabilities of IE/Mozilla, for IE this is innerHTML, I believe - an

Re: Dynamic JSPs and STRUTS

2003-10-24 Thread Ruth, Brice
You wouldn't even necessarily need to go the route of Struts to accomplish this - you could store your 100 variations in an XML file and use the JSTL core/xml libraries to dynamically generate your JSPs based on parameters. DeBurgo, Jean P. wrote: I am looking for the best approach to

Commenting JSP code?

2003-10-24 Thread Ruth, Brice
How do I go about putting comments in my JSP code that I don't want sent out to the browser? -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Commenting JSP code?

2003-10-24 Thread Ruth, Brice
thanks :) David Graham wrote: --- Ruth, Brice [EMAIL PROTECTED] wrote: How do I go about putting comments in my JSP code that I don't want sent out to the browser? http://java.sun.com/products/jsp/tags/12/syntaxref12.html David -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc

Re: Dynamic JSPs and STRUTS

2003-10-24 Thread Ruth, Brice
JSTL in particular has a lot of tags for wrangling XML, so if you do pull out your 100 odd differences into an XML file, you'll need JSTL, most likely, to re-construct your JSP. I guess this sorta depends on if you understand XML at all ... if you can think of a way of using XML to pull out

Re: Tiles And Images

2003-10-24 Thread Ruth, Brice
On the page that is your main page, insert the Struts HTML tag html:base/ - that should help out somewhat. Also, if that doesn't work, try using the Struts html:img tags with the page= attribute, providing a module-relative path to where your image is stored. That should work without a hitch.

Re: Tiles And Images

2003-10-25 Thread Ruth, Brice
Just an FYI (and correct me if I'm wrong), but just doing html:base/ will pretty much do what all the stuff you have below there does - what you have in there is the default behavior of the Struts-HTML base tag. Holman, Cal wrote: Try searching the archives this is a common issue. The

Re: redirection - please help

2003-10-25 Thread Ruth, Brice
You'll want to issue a Location: URI to relocate to\n\n header to the response stream, that should do the trick. ajay brar wrote: hi! is it possible for me to redirect users to an external site from inside an action class. ie, say a user clicks /foo, this calls FooAction which does some

Re: Tiles And Images

2003-10-26 Thread Ruth, Brice
Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Saturday, October 25, 2003 18:59 To: Struts Users Mailing List Subject: Re: Tiles And Images Just an FYI (and correct me if I'm wrong), but just doing html:base/ will pretty much do what all the stuff you have below there does - what you

Re: Tags creating Tags

2003-10-26 Thread Ruth, Brice
One way of accomplishing what you want to do, I think, is simply making calls to the appropriate Struts classes that are called when html:link is parsed compiled. Instead of outputting an html:link - just call those methods with the arguments that you would write out as html:link attributes,

Re: Tags creating Tags

2003-10-26 Thread Ruth, Brice
I think you'll still end up with a severe performance penalty. If you generate JSP dynamically, that JSP will have to be pre-compiled each time you re-generate it. [EMAIL PROTECTED] wrote: Craig R.McClanahan wrote: To accomplish what you are after, you would need another layer of

Re: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors

2003-10-27 Thread Ruth, Brice
In this particular code, you'd need to use pageContext.getAttribute(airportCode), in your scriptlet, I believe. Ruta Thakkar wrote: Dear All, I have been using Struts 1.1(stable release) with weblogic 6.1,jdk1.3..now we are upgrading to weblogic 8.1/jdk1.4 Here is the code that i was using

Re: question about reset()

2003-10-27 Thread Ruth, Brice
to my knowledge, reset() is called to clear the form (and perform any re-initialization), before calling the setters for the form parameters being submitted by the browser. this way, the action that accesses the actionform will always have the values submitted by the browser, no more, no less

Re: Struts cannot support relative uri ?

2003-10-28 Thread Ruth, Brice
If relative URIs work or don't work is dependent on the HTML being produced, more than anything else, since its the browser that then has to request the correct image from the server. What is the HTML being produced in the cases where you don't see it working? javen fang wrote: Hi, all. I am

Re: Struts cannot support relative uri ?

2003-10-28 Thread Ruth, Brice
, and absolute uri is required: img src=/asales/pages/images/logo.jpg/ If in this condition, I do like this: img src=images/logo.jsp/ then html is : http:/localhost/images/logo.jsp so I think asales/pages/ is required. --- Ruth, Brice [EMAIL PROTECTED] wrote: If relative URIs work or don't work

Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
I have an x:forEach loop (JSTL) that contains within it a tiles:insert statement - and I'd like to pass the current node of XML to the tile for additional processing (conditionally). Is this possible? Within the tile, I'll need to do an x:forEach loop on the passed in fragment, so I believe

Re: Forward Cannot Be Achieved In One Step

2003-10-28 Thread Ruth, Brice
Is your Menu actionforward the welcome screen you want to get to? And does your Action return an ActionForward to this? Caroline Jen wrote: Hi, I have the following code in the navbarMenu.jsp: html:link forward=exitLOGOUT/html:link and in the struts-config.xml, I have: forward name=exit

Re: application.properties

2003-10-28 Thread Ruth, Brice
You can probably reload or stop/start the individual application, whilst leaving the application server running. At least, this is what I do with Tomcat all the time ... Zhou, Qin (Eric) wrote: Can website pick up the changes from application.properties using some way, but without bouncing the

Re: application.properties

2003-10-28 Thread Ruth, Brice
nope Nathan Maves wrote: I use Sun's application server but when I do this all web applications reload when you deploy a new one out there. Does Tomcat do this as well? Nathan On Oct 28, 2003, at 9:48 AM, Ruth, Brice wrote: You can probably reload or stop/start the individual application

Re: Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
(or both) of those approaches... Quoting Ruth, Brice [EMAIL PROTECTED]: I have an x:forEach loop (JSTL) that contains within it a tiles:insert statement - and I'd like to pass the current node of XML to the tile for additional processing (conditionally). Is this possible? Within the tile, I'll need

Re: Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
Tiles and have some handy test XML data, it shouldn't be too hard to test out either (or both) of those approaches... Quoting Ruth, Brice [EMAIL PROTECTED]: I have an x:forEach loop (JSTL) that contains within it a tiles:insert statement - and I'd like to pass the current node of XML to the tile

Re: Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
: That's fine, isn't it? It should just be the string representation of the context node (i.e. nodeclass.toString()). What if you do: x:forEach select=$xml//catalog nameKey: x:out select=@nameKey/ /x:forEach Quoting Ruth, Brice [EMAIL PROTECTED]: Hrmpf, not working they way I expected. When I add var

Re: Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
: x:forEach var=node select=$xml//catalog tiles:insert ... tiles:put beanName=node name=contextNode/ /tiles:insert /x:forEach And then in your tile using contextNode: x:forEach select=$contextNode/family ... Quoting Ruth, Brice [EMAIL PROTECTED]: I'm not having a problem using the proper

Re: Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
I think we're in business. SWEET!! Thanks. Kris Schneider wrote: Ah, well, here's where I'm out of my element. Perhaps (in the tile): tiles:importAttribute name=contextNode/ x:forEach select=$contextNode/family ... Quoting Ruth, Brice [EMAIL PROTECTED]: no, is this what I should be doing

Re: dynamic drop-down changes without calling action class using session

2003-10-28 Thread Ruth, Brice
You'll have to do more than store the data for your drop-down in the session, if you don't want another request to go to the server - you'll have to store all the data for your drop-downs in JavaScript and use JavaScript to dynamically populate the drop-downs as selections change. [EMAIL

Re: tiles question

2003-10-30 Thread Ruth, Brice
There's a method of reducing this duplication in Ted Husted's Struts in Action book - the method, I believe, is called the body wrap method and it addresses a particular situation that is common, that allows you to eliminate this duplication. Also, you can define and extend tile definitions in

Re: How To Submit A Propery/Value Pair That Is Not Selected/Filled-Out By Visitors of the Website?

2003-10-30 Thread Ruth, Brice
Can you just use hidden form variables? Check out the Struts-HTML html:hidden tag - that might get you through this. Caroline Jen wrote: In the welcome page, all visitors of the web site can choose to view any article that is available in the database. But, visitors will not be able to delete

Re: EL Expression in html:hidden tag

2003-10-30 Thread Ruth, Brice
Is ${pageContext.request.servletPath} returning anything? Try something like html:hidden property=requestedPagec:out value=${pageContext.request.servletPath}//html:hidden Use the JSTL core tag library at http://java.sun.com/jstl/core to get c:out ... Arne Brutschy wrote: Hello, I'm having a

Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
If you have the parameters stored in a java.util.Map object, simply specifying the name of that object as the name attribute to html:link (without any paramId/paramName/paramProperty attributes, will do the trick for you. If your bean list isn't a java.util.Map, you can create one on the fly

Eclipse + Ant + precompile - Tomcat

2003-10-31 Thread Ruth, Brice
I've been doing some googling on having a webapp precompiled when deployed to Tomcat via an Ant task and I'm a bit intimidated with what's involved. Has anyone out there done this? Right now, I have an Ant build setup as an external build in Eclipse that does a variety of things, including

Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
How do you go about enabling path mapping v. extension mapping in web.xml (or struts-config.xml)? James Mitchell wrote: First of all, you should never have to put .do any where in your application except the web.xml file. That way, you change the mapping in one place and it flows to the rest of

Re: Eclipse + Ant + precompile - Tomcat

2003-10-31 Thread Ruth, Brice
/somepage.jsp?jsp_precompile If you don't have a huge number of pages this might form the basis of a quick and dirty hack. Paul -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: 31 October 2003 15:14 To: Struts Users Mailing List Subject: Eclipse + Ant + precompile - Tomcat I've

Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
doesn't this still put 'do' somewhere in the URL? Kris Schneider wrote: web.xml: !-- mapping for ActionServlet -- servlet-mapping servlet-nameaction/servlet-name url-pattern/do/*/url-pattern /servlet-mapping Quoting Ruth, Brice [EMAIL PROTECTED]: How do you go about enabling path mapping

Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
) 770.822.3359 (h) AIM:jmitchtx -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 11:03 AM To: Struts Users Mailing List Subject: Re: use html:link pass two param doesn't this still put 'do' somewhere in the URL? Kris Schneider wrote

Re: html-el:form tag question

2003-10-31 Thread Ruth, Brice
The name attribute on the HTML generated by html:form is automatically set to the name of the action that will be receiving the form input, if I'm not mistaken. So, in your case, it would be named doit, if I'm not mistaken. This, I believe, is done to support validation through javascript.

Re: Eclipse + Ant + precompile - Tomcat

2003-10-31 Thread Ruth, Brice
-Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 10:14 To: Struts Users Mailing List Subject: Eclipse + Ant + precompile - Tomcat I've been doing some googling on having a webapp precompiled when deployed to Tomcat via an Ant task and I'm a bit intimidated

Store object in application scope

2003-10-31 Thread Ruth, Brice
I'm writing a servlet that will do some init jobs and I'd like to be able to store some objects in application scope so that they are visible from my JSPs - how best would I go about doing this from a Servlet? My Servlet class is extending HttpServlet and I'm going to be implementing the

Re: Store object in application scope

2003-10-31 Thread Ruth, Brice
Nevermind, I think I have it, thanks. Ruth, Brice wrote: I'm writing a servlet that will do some init jobs and I'd like to be able to store some objects in application scope so that they are visible from my JSPs - how best would I go about doing this from a Servlet? My Servlet class

Re: Eclipse + Ant + precompile - Tomcat

2003-10-31 Thread Ruth, Brice
comes in? thanks, David - Original Message - From: Ruth, Brice [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 31, 2003 10:45 AM Subject: Re: Eclipse + Ant + precompile - Tomcat Thanks for the pointer to your blog, between that and the example

Re: Store object in application scope

2003-10-31 Thread Ruth, Brice
: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 11:20 AM To: Struts Users Mailing List Subject: Store object in application scope I'm writing a servlet that will do some init jobs and I'd like to be able to store some objects in application scope so that they are visible from

Re: Store object in application scope

2003-11-03 Thread Ruth, Brice
the attribute names/elements in the servlet context and see what's there. bn -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 2:47 PM To: Struts Users Mailing List Subject: Re: Store object in application scope OK, I'm having very little luck

ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
I'm following the instructions provided here: http://jakarta.apache.org/struts/userGuide/building_view.html (section 3.4.3) for incorporating tiles definitions in struts-config.xml, and when the ActionServlet receives a request for an action who's parameter is a tile definition name (such as

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
it'll recognize when you app starts up. Make sure yours is listed. I'm using a tile with a ForwardAction now, so I know it works. Hope you find it. --- Ruth, Brice [EMAIL PROTECTED] wrote: I'm following the instructions provided here: http://jakarta.apache.org/struts/userGuide

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
your tile. If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles it'll recognize when you app starts up. Make sure yours is listed. I'm using a tile with a ForwardAction now, so I know it works. Hope you find it. --- Ruth, Brice [EMAIL PROTECTED] wrote: I'm following

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
, bribing is next :)) Ruth, Brice wrote: OK, I have simplelog set to debug and I don't see any errors - it seems to parse my tiles-def.xml just fine, from what I can see. ?!? Hubert Rabago wrote: I got this yesterday. It means Tiles didn't intercept your forward request because 1) Tiles

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
org.apache.struts.tiles.actions.NoOpAction Hubert Rabago wrote: Is this the only tile not working, or is this your first attempt at using Tiles for this app? --- Ruth, Brice [EMAIL PROTECTED] wrote: I'm ripping my hair out here, guys ... what's going on with my config?! I can't see anything

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
in the debug output, yet Struts still is balking at actions that use the ForwardAction class and don't have a parameter that starts with a '/' ... Please, please help!! (currently in begging mode, bribing is next :)) Ruth, Brice wrote: OK, I have simplelog set to debug and I don't see any errors

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
?! I can't see anything wrong in the debug output, yet Struts still is balking at actions that use the ForwardAction class and don't have a parameter that starts with a '/' ... Please, please help!! (currently in begging mode, bribing is next :)) Ruth, Brice wrote: OK, I have simplelog set

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
?! I can't see anything wrong in the debug output, yet Struts still is balking at actions that use the ForwardAction class and don't have a parameter that starts with a '/' ... Please, please help!! (currently in begging mode, bribing is next :)) Ruth, Brice wrote: OK, I have simplelog

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
is next :)) Ruth, Brice wrote: OK, I have simplelog set to debug and I don't see any errors - it seems to parse my tiles-def.xml just fine, from what I can see. ?!? Hubert Rabago wrote: I got this yesterday. It means Tiles didn't intercept your forward

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
, does it show the ff message: '.baseLayout' - processed as uri ? --- Ruth, Brice [EMAIL PROTECTED] wrote: Only one struts-config.xml, and only the default RequestProcessor, far as I know ... here's the controller config parameter in struts-config.xml controller processorClass

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
output, yet Struts still is balking at actions that use the ForwardAction class and don't have a parameter that starts with a '/' ... Please, please help!! (currently in begging mode, bribing is next :)) Ruth, Brice wrote: OK, I have simplelog set to debug and I don't see any errors - it seems

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
. '.baseLayout' - processed as uri -or- '.baseLayout' - processed as definition should appear there just before the request fails. Before these lines, there should be a processForwardConfig(.baseLayout,... as well. --- Ruth, Brice [EMAIL PROTECTED] wrote: Where should I be looking for this message

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
. My test web-app didn't make use of Tiles before, I just plugged it in now. --- Ruth, Brice [EMAIL PROTECTED] wrote: Everything else works, I'm in the midst of following Ted's refactoring approach and moving my JSPs that have tiles:insert statements to tile definitions that I can extend overload

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
was: action path=/ruthTest type=org.apache.struts.actions.ForwardAction name=DynaNew parameter=.success.Page/ :) Regards, David -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 5:20 PM To: Struts Users Mailing List Subject

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
web-app didn't make use of Tiles before, I just plugged it in now. --- Ruth, Brice [EMAIL PROTECTED] wrote: Everything else works, I'm in the midst of following Ted's refactoring approach and moving my JSPs that have tiles:insert statements to tile definitions that I can extend overload

Re: Submitting a Struts Form from outside of it

2003-11-03 Thread Ruth, Brice
there's nothing special about a struts form, really - just the plumbing in the backend. Anything on the front-end, client-side, should work as it would with any other server-side infrastructure. What exactly isn't working? If you've created a form with the html:form tag, that's tied to an

Re: Application objects

2003-11-04 Thread Ruth, Brice
The Tomcat manager application can show how many active sessions a particular application has, so I imagine its possible - probably depends on the particular container. I'm not sure about extending the session class, I imagine so, though I wouldn't know where you would indicate that *your*

Re: html:link ???

2003-11-04 Thread Ruth, Brice
the action attribute has to reflect an action-mapping that is defined in your struts config file. the page attribute should start with a '/' and will output in HTML the correct URL to the resource, based on the web-app that you're running - its purpose is to allow module-relative naming of

Re: OT: Formatting Negative Numbers

2003-11-04 Thread Ruth, Brice
I believe a taglib to do this has already been written, check here: http://www.servletsuite.com/servlets/numtag.htm Google's your friend :) Menke, John wrote: I have asked this question on the TagLib list with no luck. Hoping this is not too annoying asking here :) I have a requirement in