Re: Generating valid HTML from tag

2004-12-14 Thread Martin Wegner
The Struts doc does suggest that should cause the 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 elements. Struts does not close them: . --Marty --- Derek Broughton <[EMAIL PROTECTED]> wrote: > On Tuesday 14 D

Re: Generating valid HTML from 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 tag could be troublesome. But closing the t

Re: Generating valid HTML from 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 or the tags did not cause Struts to close the tags or to remove the name attribute from the form tag (which I am not advocating anyway). If someone could pr

Re: Generating valid HTML from 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 or the tags did not cause Struts to close the tags or to remove the name attribute from the form tag (which

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 something

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. --Ma

Re: Required help to name a worksheet in xls

2004-12-29 Thread Martin Wegner
Jakarta POI works great for binary Excel. And if you are a glutton for punishment, you can write to the Excel XML format. It is torturous to do so but it does indeed work. And in theory MS is headed in that direction. --Marty --- Derek Broughton <[EMAIL PROTECTED]> wrote: > On Sunday 26 Dec

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: [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 cho

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 o

Re: Pre-compiling Struts-based JSPs

2005-01-14 Thread Martin Wegner
an be completely > free of jsp files, so your war file is smaller 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 &

Re: Pre-compiling Struts-based JSPs

2005-01-14 Thread Martin Wegner
gt; > to load the web fragment file. > > to replace the token i created in my web.xml with the entire > contents of the web fragment. > > for example: > > > value="${jsp_mappings}"/> > > > i just had to make sure my token was in the correct pl

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 unsu

Re: PlugIn and the base URL

2005-01-25 Thread Martin Wegner
in anyway. Can anyone prove me wrong? :) > > > > > > Your looking for the application context correct? > > In the init you are passed the ActionServlet, which inherits from > > HttpServlet, which will give you the ServletContext. IIRC you can get > > the context fro

Re: PlugIn and the base URL

2005-01-25 Thread Martin Wegner
l String SLASH= File.separator; > public static final String HERE = > Classpath.class.getClassLoader().getResource("whatever" + SLASH + > > "Classpath.class").getFile(); > }

Re: PlugIn and the base URL

2005-01-25 Thread Martin Wegner
the URL 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 c

Re: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
AIL PROTECTED]> wrote: > why does it have to be a plugin? > > > 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 Cr

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
tive depending on > your requirements (ie. A Filter that would instantiate the objects you > need to populate on the first request? A base action that lazy loads > your config stuff?) > > Just a thought...djsuarez > > -----Original Message- > From: Martin Wegner [ma

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
n pool. This way I know it's done before the first request > 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

Re: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
y to the > PlugIn > that initializes your SOAP service? > > > value="http://blahblahblah.com:8080/AppName/"/> > > > Niall > > - Original Message - > From: "Martin Wegner" <[EMAIL PROTECTED]> > To: "Struts Users

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 cal

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
ata). If the file exists, 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. > > -

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
have the correct data. > >> > >> With that in mind, the Devil's Advocate suggests: > >> > >> Can you provide a plug-in to check a file for the information you > >> require? > >> On first run, there would be no data so let them, upon first >

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
s long as you saved the URL in a file so future > restarts/reboots > would not need that manual (first-time) URL ever again. > > Regards, > David > > -Original Message- > From: Martin Wegner [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 26, 2005 3:39 PM &g

Re: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
CTED]> > wrote: > > Since this is SOAP and a dynamic 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: > > > D

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 do

Re: WEB-INF and non-JSP files

2005-01-26 Thread Martin Wegner
verything > except the index page there, and my index page is merely a forward. > > Jack > > > 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

Re: WEB-INF and non-JSP files

2005-01-26 Thread Martin Wegner
ill want to have everything inside WEB-INF/ here is a an > example > 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 a

Re: WEB-INF and non-JSP files

2005-01-27 Thread Martin Wegner
However, images 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

RE: PlugIn and the base URL

2005-01-27 Thread Martin Wegner
n" <[EMAIL PROTECTED]> wrote: > >>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 is

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 see

Re: PlugIn and the base URL

2005-01-28 Thread Martin Wegner
ot 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

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

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 countr

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 s

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.getNetworkInterface

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 Runti