Re: Interesting problem...

2005-03-18 Thread Martin Wegner
You can also use the Jakarta Commons ID packageto generate a GUID which is guaranteed to be unique in the universe. You could then convert the GUID to your seed. --- Kris Schneider [EMAIL PROTECTED] wrote: Will InetAddress.getLocalHost() work for you? NetworkInterface.getNetworkInterfaces()

Re: Interesting problem...

2005-03-18 Thread Martin Wegner
Frank, I was a little hinky myself about using Common ID in production. But I've been using it or over a year and it has performed admirably. We haven't seen any problems with the package. As for getting the MAC address I had to solve that problem about six months ago. I had to resort to

Re: BeanUtils: examples

2005-03-15 Thread Martin Wegner
Check out this e-book from Manning: http://www.manning.com/goyal It might have some info on this topic. I haven't read the book but the blurb I got in the email was interesting. --Marty --- Vinicius Caldeira Carvalho [EMAIL PROTECTED] wrote: Well, I know it's not the right list, but

Re: Caching Appliction Level Data?

2005-02-14 Thread Martin Wegner
A PlugIn works nicely as well. I am not sure which is the recommended Struts practice. --- Wendy Smoak [EMAIL PROTECTED] wrote: From: David Johnson [EMAIL PROTECTED] I have a need in an app I'm working on to cache data that is valid and shared across users, like standard country codes,

RE: Opinions : Need a good Struts Tiles book

2005-02-11 Thread Martin Wegner
+1 on that article. That is how I first learned Tiles. Then get Ted Husted's book. His Tiles chapter (which I think is on the net) is very good. --- James Holmes [EMAIL PROTECTED] wrote: Hey David, I wrote an article on Tiles for Oracle Magazine that might be helpful to you. You can

Re: PlugIn and the base URL

2005-01-28 Thread Martin Wegner
a lot of help from this group. Sorry to have taken up so much bandwidth. --Marty --- Kishore Senji [EMAIL PROTECTED] wrote: On Thu, 27 Jan 2005 21:17:07 -0800 (PST), Martin Wegner [EMAIL PROTECTED] wrote: David, Also, as I said early the Axis architecture is such that it does

Re: WEB-INF and non-JSP files

2005-01-27 Thread Martin Wegner
and javascripts, unless you have a custom servlet or Struts action to retrieve those artifacts, would NOT belong under WEB-INF - those are specific to presentation. w On Wed, 26 Jan 2005 21:59:53 -0800 (PST) Martin Wegner [EMAIL PROTECTED] wrote: I recently saw a post about moving all web app

RE: PlugIn and the base URL

2005-01-27 Thread Martin Wegner
: Martin Wegner wrote: In have a Struts PlugIn that needs to determine the URL for the containing web application (http://localhost:8080/BlahBlahBlah/). Martin, since you seem firm on this issue, can we/I ask WHY you need this information in your webapp during initialization? What

RE: PlugIn and the base URL

2005-01-27 Thread Martin Wegner
David, Also, as I said early the Axis architecture is such that it does not provide any of the information related to the HTTP layer beneath SOAP. The only think you know is that your dispatcher gets called. So my problem may be considered a limitation in Axis. --Marty Martin, since you

Re: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
] wrote: dave-thomas-voicewhy does it have to be a plugin?/dave-thomas-voice On Tue, 25 Jan 2005 22:18:20 -0800 (PST), Martin Wegner [EMAIL PROTECTED] wrote: I am looking for the: http://blahblahblah.com:8080/AppName/ As Craig said I can get that if I have a Request object

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
comes in. Similar kind of idea. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, January 26, 2005 10:12 am, Martin Wegner said: David, My Struts app contains an Axis-based SOAP service. The Struts app initializes

Re: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
that initializes your SOAP service? plug-in className=... set-property property=url value=http://blahblahblah.com:8080/AppName// /plug-in Niall - Original Message - From: Martin Wegner [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, January

Re: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
Cedric, No doubt it is confusing. I admit it is an odd requirement. The WS response has to contain the URL that was used to access the WS. This is a requirement of the XML Schema that defines the WS response payload. I have no control over this. So when the WS call comes in the Axis-based

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
Agreed. That approach works more often than not. Except in this case. The client of the WS does indeed use the URL that is sent back. That is part of the overal protocol. So it has to be a valid URL that reaches the WS inside of my Struts app. One could argue that the real problem is within

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
, the action could politely return a page explaining the requested function is not available (to prevent someone from potentially screwing things up by running that action again). Regards, David, the devil's advocate today. -Original Message- From: Martin Wegner [mailto:[EMAIL

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
. -Original Message- From: Martin Wegner [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 12:53 PM To: Struts Users Mailing List Subject: RE: PlugIn and the base URL Agreed. That approach works more often than not. Except in this case. The client of the WS does indeed use

Re: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
feature, wouldn't and IP address work as well, or better? Jack On Wed, 26 Jan 2005 07:12:03 -0800 (PST), Martin Wegner [EMAIL PROTECTED] wrote: David, My Struts app contains an Axis-based SOAP service. The Struts app initializes the call dispatcher for the SOAP service

WEB-INF and non-JSP files

2005-01-26 Thread Martin Wegner
I recently saw a post about moving all web app files underneath the WEB-INF directory. Unfortunately the search mechanism on the Struts web site appears to be unavailable and I can't find those emails. So I understand why some would put Javascript, JSP, images, etc. under WEB-INF. But if you

Re: WEB-INF and non-JSP files

2005-01-26 Thread Martin Wegner
http://www.michaelmcgrady.com/eschew_url.jsp On Wed, 26 Jan 2005 21:59:53 -0800 (PST), Martin Wegner [EMAIL PROTECTED] wrote: I recently saw a post about moving all web app files underneath the WEB-INF directory. Unfortunately the search mechanism on the Struts web site appears

Re: DisplayTag

2005-01-25 Thread Martin Wegner
Check out the displaytag mailing list. It has an excellent community which is very quick to help. --Marty --- Flávio Maldonado [EMAIL PROTECTED] wrote: Hello people! Has anybody here used DisplayTag lib? I'm trying to use here but I'm having some problems with Locale... 115609

PlugIn and the base URL

2005-01-25 Thread Martin Wegner
In have a Struts PlugIn that needs to determine the URL for the containing web application (http://localhost:8080/BlahBlahBlah/). I am unable to find a way to determine this information. Any ideas? Thanks. --Marty - To

Re: PlugIn and the base URL

2005-01-25 Thread Martin Wegner
the ServletContext. IIRC you can get the context from there. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Martin Wegner wrote: In have a Struts PlugIn that needs to determine the URL for the containing web application (http

Re: PlugIn and the base URL

2005-01-25 Thread Martin Wegner
static final String HERE = Classpath.class.getClassLoader().getResource(whatever + SLASH + Classpath.class).getFile(); } On Tue, 25 Jan 2005 19:25:21 -0800 (PST), Martin Wegner [EMAIL PROTECTED] wrote

Re: PlugIn and the base URL

2005-01-25 Thread Martin Wegner
or the Internet Protocol address? I have some ideas on the latter. Jack On Tue, 25 Jan 2005 21:05:30 -0800 (PST), Martin Wegner [EMAIL PROTECTED] wrote: Jack, That tells me where the JAR files are stored which is cool. But what I am looking for a valid URL (of which there may be many

Re: [OT] Re: Using XML in struts

2005-01-14 Thread Martin Wegner
+1 on JDOM unless you know upfront that the XML file is going to be big (greater than a couple of MB). --- sudip shrestha [EMAIL PROTECTED] wrote: JDOM: http://www.jdom.org/. If you are new to xml-java parsing, then this is the way to go. When I started learning about xml parsing with

Pre-compiling Struts-based JSPs

2005-01-14 Thread Martin Wegner
I have been looking into using the jspc ant task to pre-compile our Struts-based application. In comparing the Java code generated by the jspc task and the Java code generated by Tomcat 4.1.x there are some differences, in particular the package names. Also, jspc wants to generate the fraction

Re: Pre-compiling Struts-based JSPs

2005-01-14 Thread Martin Wegner
and your client never sees any jsp source. woodchuck --- Martin Wegner [EMAIL PROTECTED] wrote: I have been looking into using the jspc ant task to pre-compile our Struts-based application. In comparing the Java code generated by the jspc task and the Java code generated

Re: Pre-compiling Struts-based JSPs

2005-01-14 Thread Martin Wegner
to make sure my token was in the correct place in my web.xml file hth, woodchuck --- Martin Wegner [EMAIL PROTECTED] wrote: Woodchuck, Thanks for the advice. Glad to hear someone has followed the road before me. I found this useful link as well: http

Re: [almost OT] Struts in Practice

2005-01-13 Thread Martin Wegner
+1 on www.oswd.org They are a great place to start your next web project. --- M. Bitner [EMAIL PROTECTED] wrote: As a programmer with no design skills, one resource I've found to be helpful is Open Source Web Design: http://www.oswd.org/ There are quite a few site designs to choose

Re: struts and testing

2005-01-10 Thread Martin Wegner
If you are looking to test your Actions and Forms outside of the container then StrutsTetstCase is an excellent choice. For integration testing you could use something HttpUnit. --Marty --- Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi what is the best way of testing struts action classes,

RE: Tips on testing pages with multiple potential paths?

2004-12-19 Thread Martin Wegner
Thanks for the tip on StrutsTestCase. This is exactly what I have been looking for. Now I can TDD with my Actions. How cool is that? If you want to do unit testing of your Actions and Forms without the browser, then get StrutsTestCase. And make sure you are using at least Struts 1.2.4.

StrutsTestCase

2004-12-18 Thread Martin Wegner
Thanks to this list I just found the StrutsTestCase package. I think its a great tool. Testing my forms and actions OUTSIDE the container has increased my velocity 10 fold. But it seems that not many Struts people talk about this package (aside from page 510 of J.B.'s book). Is there

Re: Generating valid HTML from html:form tag

2004-12-15 Thread Martin Wegner
Agreed. That is where GoGoogleook me after I first tried to run the W3C conformance tester against a Struts generated page. Applying the hthtmlhxhtml or the hthtmlthtmlhxhtmltrue tags did not cause Struts to close the input tags or to remove the name attribute from the form tag (which I am not

Re: Generating valid HTML from html:form tag

2004-12-15 Thread Martin Wegner
[Curse that Yahoo Mail spell checker. Take 2] Agreed. That is where Google took me after I first tried to run the W3C conformance tester against a Struts generated page. Applying the html:xhtml / or the html:htmlh xhtml=true tags did not cause Struts to close the input tags or to remove the

Re: Generating valid HTML from html:form tag

2004-12-14 Thread Martin Wegner
The Struts doc does suggest that html:xhtml / should cause the form tag to be XHTML compliant but for some reason it does not. The W3C XHTML validator also does not like the Struts output of the input elements. Struts does not close them: input ... /. --Marty --- Derek Broughton [EMAIL

Re: Generating valid HTML from html:form tag

2004-12-14 Thread Martin Wegner
Niall, I would agree with you until a customer makes XHTML conformance a requirement in the contract. Strict XHTML conformance is very important to some customers, for various reasons. As previously posted, getting rid of the name attribute on the form tag could be troublesome. But closing the