RE: Hot deploying struts application

2006-12-14 Thread George.Dinwiddie
Yes, I'm using Tiles. I've just got the Auto Update Interval set for 3000 milliseconds ("Configuration | Applications" on the WL console) and I drop the war file into the incoming directory. The appserver explodes them and restarts the application. Over time, it loses memory and I have to restar

[OT] RE: log4j configurations?

2006-12-13 Thread George.Dinwiddie
Where do your class files go? > -Original Message- > From: Mallik [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 13, 2006 7:04 AM > To: user@struts.apache.org > Subject: log4j configurations? > > > > Hi friends > i am working on struts in Exadel studio > i am getting the error:

RE: Hot deploying struts application

2006-12-13 Thread George.Dinwiddie
I'm successfully hot-deploying war files to WebLogic 8.1 > -Original Message- > From: Harish Kumar [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 13, 2006 1:54 AM > To: Struts Users Mailing List > Subject: Re: Hot deploying struts application > > > hi, > Thanks for the reply.But

RE: Query regarding file upload

2006-12-08 Thread George.Dinwiddie
You would have to control this on the client end, perhaps using javascript to break the transaction into two HTTP requests. > -Original Message- > From: Rahul Joshi [mailto:[EMAIL PROTECTED] > Sent: Friday, December 08, 2006 8:50 AM > To: user@struts.apache.org > Subject: Query regarding

RE: Formatting numbers in text field

2006-12-07 Thread George.Dinwiddie
Have you tried the JSTL tag? > -Original Message- > From: chamal desilva [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 07, 2006 3:35 AM > To: Struts Users Mailing List > Subject: RE: Formatting numbers in text field > > > Thanks Richard > > But if do it uing getter methods I wi

RE: file download without opening a window

2006-12-07 Thread George.Dinwiddie
You need to serve the XML file, itself--not forward to a JSP. In your action class, one of the parameters is an HttpServletResponse instance. Call addHeader() on that object. Then copy the file contents to the OutputStream returned by getOutputStream() on that object. Finally, the action cla

RE: file download without opening a window

2006-12-06 Thread George.Dinwiddie
add a header "Content-Disposition attachment; filename=myFile.xml" using response.addHeader() > -Original Message- > From: Søren Blidorf [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 06, 2006 4:56 PM > To: Struts Users Mailing List > Subject: OT: file download without opening a w

RE: Filter problem

2006-12-05 Thread George.Dinwiddie
How are you inserting your XML/HTML into the JSP? I don't think the filter method is causing your problem. I think you're not expressing that the output should not be filtered. If you're using you might want to add 'escapeXml="false"', for example. > -Original Message- > From: Hehl, Th

RE: Handling breadcrumbs with Struts

2006-09-21 Thread George.Dinwiddie
Creating a working sample would be quite a bit of work, and I don't have time at the moment. In a nutshell, I would have a bean something like: public class Breadcrumb { public String getName() {...} public String getUrl() {...} } The BreadcrumbTileController would do something

RE: Handling breadcrumbs with Struts

2006-09-20 Thread George.Dinwiddie
I would use a tile. The tile controller can retrieve information from the request and add it to a list kept in session scope. The tile, itself, can display that list as breadcrumbs. > -Original Message- > From: Darren Hall [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 20, 2006

RE: Struts2

2006-08-17 Thread George.Dinwiddie
It looks like you're requesting a page with suffix mapping ("helloWorld.do") but you've configured struts to use prefix mapping ("/*"). What happens if you change to "*.do"? - George http://www.idiacomputing.com/ > -Original Message- > From: Peter Steil [mailto:[EMAIL PROTECTED]

RE: retrieve image from database

2006-08-17 Thread George.Dinwiddie
Your image is probably being cached in the browser. > -Original Message- > From: Gomathi [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 17, 2006 9:41 AM > To: Struts Users Mailing List > Subject: retrieve image from database > > > hai, > thanks in advance. > when we edit image l

RE: Browser History by HTTP-REFERER

2006-08-09 Thread George.Dinwiddie
Monkeyden said: > Sorry George, I misread one of the previous posts in my > response to yours. You're correct. JSP is not the place for > this type of authentication/validation, although I don't know > that I would want everything to ActionServlet handles to > require a referer. I dont suspec

RE: Browser History by HTTP-REFERER

2006-08-07 Thread George.Dinwiddie
I would suggest that a servlet filter is a better choice than depending on the inclusion of a particular tile. > -Original Message- > From: Thomas Joseph [mailto:[EMAIL PROTECTED] > Sent: Monday, August 07, 2006 2:36 AM > To: Struts Users Mailing List > Subject: Re: Browser History by HTT

RE: Browser History by HTTP-REFERER

2006-08-03 Thread George.Dinwiddie
Do you realize that browsers are not required to send a Referer header? And that many proxies strip out such a header? You will have far better success if you create a robust application that can do the correct thing even if URLs are received out of the expected order. Trying to hamstring the bro

RE: Error with c:for Each and c:out

2006-07-26 Thread George.Dinwiddie
It's the javabean specification. Normally the methods "getFoo()" and "setFoo()" operate on the property "foo". The code doesn't really care what the property is called internally (it could even be calculated on the fly), but it infers the property name from the method name. Normally variables

RE: Error with c:for Each and c:out

2006-07-26 Thread George.Dinwiddie
Assuming you have a method public String getNombre() in the class project.struts.OTD.OTDEmpresa, try with a lower-case 'n'. > -Original Message- > From: Francisco Exposito Aguilera [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 26, 2006 10:35 AM > To: user@struts.apach

RE: Struts forward and redirect

2006-07-20 Thread George.Dinwiddie
Felix Khazin asked; > Hi all, > > I have a quick question: > > My struts-config.xml has a forward line such as: > > In my controller if I set an attribute such as: > > Request.setAttribute("test", "test string"); > Return (mapping.findForward("show")); > > This works fine and I am able to use

RE: interface for constants

2006-07-18 Thread George.Dinwiddie
One (of many) problems with this approach is that it may fail to initialize, but that won't happen until the class is loaded at first use. If an application is broken because the database is inaccessible, it's better to know at deployment. I use a servlet startup listener (javax.servlet.ServletCo

SSLEXT on a per-session basis

2006-07-17 Thread George.Dinwiddie
We have a situation where certain appservers are behind a webserver proxy, but also available to internal users directly. This means that the SSLEXT plugin must sometime rewrite the URLs based on ports 80 and 443, and sometimes between 7001 and 7002. This will remain constant throughout a particu

RE: Junit tests on remote Struts application in Eclipse

2006-07-10 Thread George.Dinwiddie
Chris, It sounds like you're trying to run the tests inside the container. If so, JUnit can't do that on it's own. You can use Cactus to proxy from the testrunner (outside the container) to the tests (inside the container). I've always found Cactus to be a bit of a PITA, however, and have chang

RE: Reload Problem with IE

2006-07-06 Thread George.Dinwiddie
Use the pattern of redirecting to a GET after POST. In other words, use the POST to perform the action, and then redirect to a GET to show the current status after performing the action. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 06, 2

RE: Tiles W/JSP Sans Struts

2006-07-06 Thread George.Dinwiddie
Standalone Tiles (as opposed to Struts Tiles) seems to be a nomad, at the moment. It seems to be currently residing at http://svn.apache.org/repos/asf/struts/sandbox/trunk/tiles/ While waiting for a more official status report, you might want to read these messages: * http://forums.opensymphony.

RE: The content of element type "web-app" must match

2006-07-05 Thread George.Dinwiddie
A. Lotfi asked: > Hi, I have a web.xml , I am using Netbeans, I got this error : > The content of element type "web-app" must match > > Here is my web.xml , I will appreciate if you can help me : > > [snip] Generally that means that something is out of order or misspelled.

RE: Ejb

2006-06-29 Thread George.Dinwiddie
If you do a good job of separating your business logic from your presentation, then it's quite easy to put that business logic into an EJB behind a BusinessDelegate that implements the same API. This ease means that you can defer going to an EJB solution until you actually need the advantages (pri

RE: ejb

2006-06-28 Thread George.Dinwiddie
EJB Design Patterns: Advanced Patterns, Processes, and Idioms (http://www.amazon.com/exec/obidos/ASIN/0471208310/alberg30-20) by Floyd Marinescu Core J2EE Patterns: Best Practices and Design Strategies (http://www.amazon.com/exec/obidos/ISBN=0131422464/alberg30-20) by Deepak Alur, John Crupi, Dan

RE: [ANN] Hoople 1.0

2006-06-28 Thread George.Dinwiddie
That sounds good. I like to use a tile as the outer skin of the onion so that it can extend a layout tile declaratively, and substitute the inner tiles as needed. > -Original Message- > From: Nathan Voxland [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 27, 2006 6:05 PM > To: Struts Use

RE: [ANN] Hoople 1.0

2006-06-27 Thread George.Dinwiddie
Nathan Voxland announced: > Hoople has worked well for us by allowing us to configure the > action mappings in separate XML config files that are stored > where the URL would be on the filesystem if Struts wasn't > there. There are also several other features that make > working with the actio

RE: upgrading from struts version 1.2.6 to 1.2.9

2006-06-27 Thread George.Dinwiddie
Adding the Commons Collections jar (http://jakarta.apache.org/commons/collections/) to your war file isn't working for you? > -Original Message- > From: Picha, Gayatri [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 27, 2006 1:09 PM > To: Struts Users Mailing List > Subject: RE: upgrading

RE: Generated HTML FORM tag is missing "do" and Action Nme

2006-06-27 Thread George.Dinwiddie
Wendy Smoak said: > > On 6/27/06, Steven Mitchell <[EMAIL PROTECTED]> wrote: > > > You can make the Action Servlet servlet-mapping anything you want. > > Rather than use /MyAction.do, I have used /do/MyAction for > years. In > > fact, I usually have two servlet-mapping patterns for the Action

[OT] RE: Dynamic log names

2006-06-15 Thread George.Dinwiddie
You could generate files named like event.log.2006-05-03 using the DailyRollingFileAppender. See http://logging.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFi leAppender.html Or you could write your own appender. > -Original Message- > From: Darren Hall [mailto:[EMAIL PROTECTE

RE: [newb question] Turning on DEBUG level logging

2006-06-14 Thread George.Dinwiddie
I'm not sure about using 'DEBUG' as the name of an appender. Why not try something like 'logfile'? I'm not very familiar with configuring Log4j using XML. A simple .properties file has always done everything I need. > -Original Message- > From: Darren Hall [mailto:[EMAIL PROTECTED] > S

RE: [newb question] Turning on DEBUG level logging

2006-06-14 Thread George.Dinwiddie
Darren Hall asked: > I've included the log4j.jar in my WEB-INF/lib directory and > created a log4j.xml file based on an example I found online > (rather then a log4j.properties file). The application > deploys error free and executes - however my log files are > not created. > > I can think of

RE: [newb question] Turning on DEBUG level logging

2006-06-13 Thread George.Dinwiddie
Commons-logging is most often used as a wrapper around Log4J, but it can wrap other logging frameworks, too. Maybe check what Tomcat uses natively. > -Original Message- > From: Darren Hall [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 13, 2006 12:39 PM > To: 'Struts Users Mailing List'

RE: [newb question] Turning on DEBUG level logging

2006-06-13 Thread George.Dinwiddie
Darren Hall asked: > Essentially I'm looking for a setting that I'm missing in > some config file (possibly the web.xml file, or the > struts-config.xml file). It's missing from log4j.properties (or xml). See http://idiacomputing.com/moin/Log4jDotProperties for some links. When you find it in

RE: Poll: What part of a Struts will be the most important to support for migration?

2006-06-13 Thread George.Dinwiddie
Frank W. Zammetti said: > I suppose we could recommend people use ContextListeners > instead, which > I've come to prefer frankly, but if we're talking about > upgrading/compatibility, that's maybe not the best answer. A ContextListener that calls all the plugins shouldn't be too hard. ---

RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread George.Dinwiddie
Scott Van Wart moaned > Wish Eclipse had a Search/Replace in Files... Search | File... | Replace... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Multiple checkboxs in jsp using struts tags.

2006-05-25 Thread George.Dinwiddie
Albert L. Sapp asked: > This is my first post so I will try to make it short. I am trying to > use the logic:iterate and html:multibox. I found what I > thought was a > good example through a google search, but I just can't get it to work. > > Here is the exception I get: javax.servlet.Servl

RE: Struts with Eclipse 3.1

2006-05-25 Thread George.Dinwiddie
My point is that Eclipse does not, in the base IDE, have the knowledge to build and deploy a web-app. You can get that capability with ANT, which gives you all the flexibility in the world about how you arrange your project, or with a plugin, which requires you to arrange your project in a part

RE: Struts with Eclipse 3.1

2006-05-25 Thread George.Dinwiddie
If you don't want to build with ANT (or equivalent) then I think you must use one of the plugins with webapplication support. These, in my experience (mostly with MyEclipse), require particular layouts of the source for it to work. It seems to be your choice which work you want to do. > -

RE: How do I remove myself from this mailing list?

2006-05-24 Thread George.Dinwiddie
from the message headers: List-Unsubscribe: List-Help: > -Original Message- > From: Pradeep Shekade [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 24, 2006 2:12 PM > To: user@struts.apache.org > Subject: How do I remove myself from

RE: Browser Back Button

2006-05-12 Thread George.Dinwiddie
I strongly recommend AGAINST that technique. 1. It's very narrow and easily circumvented (by turning off javascript, by opening an new window or tab instead of leaving the page you might want to come back to). 2. It's very user un-friendly. It's against W3C recommendations. It breaks the web

RE: [OT] Problem in saving file content in DB using BLOB

2006-05-12 Thread George.Dinwiddie
Srinivas, >From the error, it sounds like you're not doing the OutputStream write in the context of an open database connection. You don't show enough code to know, however. You might find http://idiacomputing.com/moin/OracleLobs of interest. - George Dinwiddie > -Original Message- >

RE: Tiles without Struts

2006-05-08 Thread George.Dinwiddie
Hmmm... You're right that http://struts.apache.org/ doesn't list any 1.3 versions in the menu. If you go to the 1.2.x page and "download" "development releases" you can find http://svn.apache.org/dist/struts/action/ with later builds. Standalone tiles may be downloaded at http://cvs.apache.org/b

RE: Are layers 'that evil'?

2006-05-04 Thread George.Dinwiddie
It seems to me that the problem Paul Reedman describes isn't that of building layers on top of frameworks, but of building frameworks on top of frameworks. I find that I often build an adapter layer around third-party subsystems to create an interface written specifically in the terms of my applic

RE: Session Id for the HTTP Session in Struts application

2006-05-01 Thread George.Dinwiddie
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.htm l#getId() > -Original Message- > From: Raghuveer [mailto:[EMAIL PROTECTED] > Sent: Monday, May 01, 2006 3:16 AM > To: user@struts.apache.org > Subject: FW: Session Id for the HTTP Session in Struts application > >

RE: date picker (tried javawebparts but facing problem)

2006-04-21 Thread George.Dinwiddie
http://cvs.sourceforge.net/viewcvs.py/javawebparts/javawebparts/WEB-INF/ src/javawebparts/taglib/uiwidgets/CalendarTag.java?rev=1.3&view=log or http://tinyurl.com/efdrt > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Friday, April 21, 2006 3:11 PM > To

RE: log4j and Struts v1.2.9

2006-04-18 Thread George.Dinwiddie
What does your log4j.properties file look like and where is it in the .war file? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Alan Treece > Sent: Tuesday, April 18, 2006 2:27 PM > To: Struts Users Mailing List > Subject: log4j and Struts v1.2.9 >

RE: Efficient session object and cookie checks in struts

2006-04-17 Thread George.Dinwiddie
Jeff Thorne wrote: > I have been reading that it May be more > efficient to just pass the resultset back to the view rather > Than deal with the overhead of several transfer objects. Does > this make sense? I don't thinks so. 1. Object creation time is trivial compared with database access tim

RE: How to make work Log4j with Struts?

2006-04-12 Thread George.Dinwiddie
I don't see anything wrong, right off the bat, with your log4j.properties file. Where in the startup log are you seeing the "No appenders" warning? Could it be that something else is starting up log4j prior to your application being loaded, and there's not log4j.properties on the classpath at tha

RE: Proxy rewrites

2006-04-10 Thread George.Dinwiddie
If you put https://machine1/proxy/machine2//application/index.jsp";> into the head of your index.jsp, what is the redirect URL? > -Original Message- > From: Anil Arora [mailto:[EMAIL PROTECTED] > Sent: Friday, April 07, 2006 6:42 PM > To: Struts Users Mailing List > Subject: RE: Pro

RE: Proxy rewrites

2006-04-07 Thread George.Dinwiddie
Anil, Have you tried using a tag? http://www.htmlhelp.com/reference/html40/head/base.html > -Original Message- > From: Anil Arora [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 06, 2006 2:35 PM > To: user@struts.apache.org > Subject: Proxy rewrites > > > Didn't see this go through.

RE: White page flashing between request and response.

2006-04-06 Thread George.Dinwiddie
I would suggest sniffing the network traffic to see what's going on between the browser and server. This will give clues as to where you might look further. > -Original Message- > From: Haim Raman [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 06, 2006 10:55 AM > To: user@struts.apach

RE: Some questions

2006-04-05 Thread George.Dinwiddie
Mário Lopes asked: > 3) Is MyEclipse worth it? If you're using Eclipse for J2EE development, MyEclipse is worth it even if you only use the JSP validation. It's not perfect, but it's well worth the price. As for the rest, I see you've already gotten some good answers and some irrelevant noise.

RE: Re: Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-23 Thread George.Dinwiddie
Jonathan Revusky wrote: > George Dinwiddie wrote: > > There are many companies using Struts for far > > more important things than simple websites. I believe that many of > > these companies would be unwilling to trust Struts for > > these uses if > > the project were to greatly open up the co

RE: Re: Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-22 Thread George.Dinwiddie
Jonathan Revusky wrote: > First of all, pPeople seem to be addressing things I never said. For > example, I don't think I ever said that people should be allowed to > commit _anonymously_. I simply said that I believed you could > be quite > liberal about granting commit privileges to people an

Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-21 Thread George.Dinwiddie
Jonathan Revusky wrote: > I revert to my statement that a version repository makes it > quite easy > to restore the code to any point it was at in the past. > > In any case, consider some potential bad consequence of letting just > about anybody commit: > > 1. On occasion, people start committ

RE: Struts-el and Weblogic 9.1

2006-03-14 Thread George.Dinwiddie
Wendy Smoak > My guess is that you've switched from Servlet 2.3 to 2.4, the > same as if you'd moved from Tomcat 4.x to 5.x. Hard to tell, > though, without more information. Yep, see http://e-docs.bea.com/wls/docs81/notes/new.html#1184292 and http://e-docs.bea.com/wls/docs90/notes/new.html#11

RE: problems with enclosed by a

2006-03-13 Thread George.Dinwiddie
per http://struts.apache.org/struts-taglib/tagreference-struts-html.html # Render an input tag of type "image" Renders an HTML tag of type "image" # Render an HTML img tag Renders an HTML element with the image at the specified URL > -Original Message- > From: Markus Demetz [mailto:[E

RE: Autosumbit before Action

2006-03-10 Thread George.Dinwiddie
Do you have a separate form for each detail record? If so, I'd suggest not doing that and putting the entire thing in a single form with multiple submits. > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Danny Lee > Sent: Friday, March 10, 2006 6:39 AM > To: user@s

RE: about Junit

2006-03-10 Thread George.Dinwiddie
Test Driven Development: By Example ([ISBN]0321146530) by Kent Beck. Test Driven Development: A Practical Guide ([ISBN]0131016490) by David Astels You can find these on Amazon: http://www.amazon.com/exec/obidos/ISBN=0321146530/alberg30-20 http://www.amazon.com/exec/obidos/ISBN=0321146530/alberg30-

RE: can anyone tell me how 2 use this mailing forum

2006-03-08 Thread George.Dinwiddie
I advise taking out the disclaimer. The addressee is a bot, and if you want people to read your message, it may be helpful if you don't tell them it's forbidden. Messages sent to the list are automatically archived in a number of places, and it's not likely that someone will go through deleting y

RE: Struts validation and XML Constants

2006-03-08 Thread George.Dinwiddie
Krishna, Mattam (M.) asked: > > What is the meaning of "^\(?(\d{3})\)?[-| ]?(\d{3})[-| > ]?(\d{4})$" in > > the above code.? It's the regular expression for a US-style phone number. - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

[OT] RE: JavaT Application Verification Kit (AVK) : test results

2006-03-07 Thread George.Dinwiddie
http://developers.sun.com/prodtech/javatools/jsenterprise/reference/pres entations/jse8/jse8_avk.html > -Original Message- > From: Raghuveer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 07, 2006 1:44 AM > To: user@struts.apache.org > Subject: JavaT Application Verification Kit (AVK) :

RE: Why global error handling doesn't work with struts?

2006-03-02 Thread George.Dinwiddie
In Internet Explorer, under Advanced Internet Options, uncheck "Show friendly HTTP error messages." You may have to log out of your computer and back in for this to take affect. > -Original Message- > From: Dinwiddie, George > Sent: Thursday, March 02, 2006 10:03 AM > To: user@struts.apa

RE: Why global error handling doesn't work with struts?

2006-03-02 Thread George.Dinwiddie
You'll have to ask Microsoft why it works that way. In the meantime, I would advise checking your site with Firefox so that you can see your custom 404 page. - George > -Original Message- > From: Partha Pratim Dutta [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 02, 2006 3:41 AM > T

RE: Why global error handling doesn't work with struts?

2006-03-01 Thread George.Dinwiddie
What browser are you using? Note that a custom 404 page is still a 404 page, and Internet Explorer will insist on showing you its own 404 page instead of the one sent by the server. > -Original Message- > From: Partha Pratim Dutta [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 28, 2

RE: html:link, etc, looking for full url, not just context name

2006-02-27 Thread George.Dinwiddie
Jim, If you don't want advice, don't ask. If you ask, don't get snippy about the answers you receive. Google and other indexing robots are perfectly capable of inferring the full URL from a relative URL. I may be wrong, but I think it's significantly harder to "game" your Google placement than

RE: html:link, etc, looking for full url, not just context name

2006-02-27 Thread George.Dinwiddie
FWIW, I've never had any trouble getting robots to index relative URLs. In fact, it would seem pretty silly to me if all URLs on a site had to be absolute. The inclusion of query parameters in your URL is more likely to cause it to be ignored than the use of relative URLs. - George > -Origi

RE: [FRIDAY] Truthiness is ..

2006-02-24 Thread George.Dinwiddie
> * http://en.wikipedia.org/wiki/Truthiness http://www.testing.com/cgi-bin/blog/2006/02/20#truthish-mocks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: AW: Disabling Back Button in IE

2006-02-23 Thread George.Dinwiddie
But it *is* a good way to lose customers. ;-) I, for one, tend not to do business with sites like that. > -Original Message- > From: Josh McDonald [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 5:45 PM > To: user@struts.apache.org > Subject: Re: AW: Disabling Back Button

RE: BusinessObject and DataTransferObject

2006-02-23 Thread George.Dinwiddie
A Business Object is generally a part of the Domain Model (see http://martinfowler.com/eaaCatalog/domainModel.html). A Data Transfer Object is a data "object" used to transfer information to/from a remote system (see http://martinfowler.com/eaaCatalog/dataTransferObject.html). I highly recommend M

RE: extension-mapping path-mapping

2006-02-17 Thread George.Dinwiddie
Jim Reynolds asked: > For whatever reason, I have alwasy called the application > with /test/welcome.do or something like that. > > Question1) Does the name in the servlet-name, have to be the > same name as the context? Or did it just work because of that. I don't know Tomcat configuration, bu

RE: [OT] Hiding methods

2006-02-17 Thread George.Dinwiddie
LOL! Wunnerful! And I agree. > -Original Message- > From: Josh McDonald [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 16, 2006 7:04 PM > To: user@struts.apache.org > Subject: Re: [OT] Hiding methods > > > Strewth! I just went back and read this thread... Throw an > exception a

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
I'm just telling you what I find easier. > -Original Message- > From: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 16, 2006 4:51 PM > To: Struts Users Mailing List > Subject: RE: Re: [SHALE] Using the Test Framework > > > Although those are interesting co

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
CONNER, BRENDAN wrote: > I understand the concept; I'm just worried about the amount > of effort required to mock up all those calls, relative to > the complexity of my Action methods themselves. One nice > thing about using JSF is that our Action methods themselves > are almost ridiculously s

RE: [OT] Hiding methods

2006-02-16 Thread George.Dinwiddie
Michael Jouravlev replied > On 2/16/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > In the method you want to "protect", immediately throw an exception > > and catch it. Then, parse the stack trace and see who the > caller was. > > If it's not a class you want to have access to the method

RE: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
CONNER, BRENDAN (SBCSI) asked: > Sent: Thursday, February 16, 2006 1:08 PM > To: Struts Users Mailing List > Subject: RE: [SHALE] Using the Test Framework > > > OK, so maybe I have to learn more about the injection > process. For all this talk about simplifying the process, > it's starting to

RE: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
CONNER, BRENDAN replied: > So are you agreeing that there is currently no framework that > can currently do round-trip testing as I've described it? Or > am I missing something? No, but I'm saying that you'll likely find it messy and difficult to mock out part of a big environment but include o

RE: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
What Cactus does is allow your test code to run from within the container, controlled by the same test code outside the container. It connects the two with a proxy arrangement. It can call anything in your code or available to your code. Cactus *is* a PITA to work with, and complicated to think

RE: Re: Multiple File Upload using Struts (number of files dynamic)

2006-02-15 Thread George.Dinwiddie
The way I do it is skip using the form for the files and retrieve them from the request. > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of shubu > Sent: Tuesday, February 14, 2006 9:23 AM > To: user@struts.apache.org > Subject: Re: Multiple File Upload using Struts (

RE: Struts application WAR file creation.

2006-02-09 Thread George.Dinwiddie
[EMAIL PROTECTED] asked: > > How do I add war task in Ant build file from eclipse ? There is an ant buildfile editor in Eclipse and the ant manual describes the war task. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

RE: [OT] Upgrading existing applications so they're maintainable--who pays?

2006-02-09 Thread George.Dinwiddie
Dave Newton wrote: > My question is really targeted at the politics, ethics, and > finances of the switch: being a refactor-early, > refactor-often kind of guy I'm already quite adept at the mechanics. You'll probably still find Michael Feather's book worthwhile. I certainly did, even though I'

RE: [OT off topic] Oracle Database Performace Issue

2006-02-09 Thread George.Dinwiddie
sumithra devi asked: > We have sql query that is generated dynamically(this is what > is causing teh problem) I'm no expert in tuning database access, but even for a one-time use, Oracle can do a better job if you use a PreparedStatement rather than a Statement. Of course, if you can re-use that

RE: [OT] Upgrading existing applications so they're maintainable--who pays?

2006-02-09 Thread George.Dinwiddie
Dave Newton asked: > > Assume a large body of existing work used across multiple websites: > - No documentation > - Buggy home-grown libraries (DB, connection pooling, > strings, everything) > - Home-grown "custom tag" system (parse the file on each page load) > - Essentially un-maintainable and

RE: Struts application WAR file creation.

2006-02-09 Thread George.Dinwiddie
[EMAIL PROTECTED] asked: > What's other manual way to create WAR file, which is > deployable on > any Tomcat instance ? Look at the 'war' task in ant. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: looking for struts,ejb,jboss,ant demo

2006-02-09 Thread George.Dinwiddie
Or use the struts,ejb,jboss,eclipse demo and then learn how to set up the ant build. I use eclipse for day-to-day work and ant for the reference builds. - George Nick Sophinos wrote: > > An alternative would be to find an EJB example that you are > comfortable with and then find a Struts exam

RE: show single html:error message for multiple fields validation

2006-02-08 Thread George.Dinwiddie
Maybe something like: > -Original Message- > From: fea jabi [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 08, 2006 3:24 PM > To: user@struts.apache.org > Subject: RE: show single html:error message for multiple > fields validation > > > yes, I've seen this. but not really sur

RE: Accessing static methods from Struts/JSTL

2006-02-08 Thread George.Dinwiddie
Keith Fetterman asked: > Is there is a direct way to access the static method without > fetching it > from request scoped variable or object? Why not use an application-scoped object (and non-static method)? - To unsubscribe,

RE: show single html:error message for multiple fields validation

2006-02-08 Thread George.Dinwiddie
http://struts.apache.org/struts-taglib/tagreference-struts-html.html#htm l:messages > -Original Message- > From: fea jabi [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 08, 2006 10:14 AM > To: user@struts.apache.org > Subject: RE: show single html:error message for multiple > fiel

RE: help for file upload

2006-02-08 Thread George.Dinwiddie
Debendra Barik > Now the matter is how do i store uploaded file into company > bean logo filed and send it to the database by calling > nsertCompany(Company company) method. And again how do i > retrive it and store in the CompanyAction form logo field to > show in the GUI. Anybody can suggest

RE: Writing Filters

2006-02-08 Thread George.Dinwiddie
chuanjiang lo asked: > > Is it the correct way to implement session management using > filters? I'm rather new to structs and i would like to know > is there any good sites or tutorials i can refer on writing filters? > what does the url-pattern do? > > and in the codes > filterChain.doFilter(

RE: Populate action

2006-02-07 Thread George.Dinwiddie
I would use a UserCredentials interface that gets passed down to the DAO. My action would be more like: public void execute(...) { // marshall the input UserCredentials userCredentials = new PresentationLayerUserCredentials(request); // invoke the business layer PapersList list

RE: modules and url

2006-02-03 Thread George.Dinwiddie
see http://struts.apache.org/struts-action/userGuide/configuration.html#5_4_2_Configure_the_ActionServlet_Mapping "WARNING - If you are using the new module support since Struts 1.1, you should be aware that only extension mapping is supported." > -Original Message- > From: Raúl Eduardo

RE: Stress Load AJAX web application

2006-02-03 Thread George.Dinwiddie
Stas Ostapenko wrote: > After I decided to test our application i'm was looking > something like http client with js support (and AJAX > features). I had a look at HttpUnit - as i saw it's have a > limited js support (am i wrong ?). Starting from srcratch I > have considered commons-httpclient.

RE: Just adding log4j.jar to struts 1.2.7 project under weblogic causes stack trace

2006-02-01 Thread George.Dinwiddie
Could there be something outside your app that's using commons logging, and therefore needs log4j once it's installed? Try putting the log4j.jar in your server classpath, e.g., weblogic81/server/lib, and see if that helps. I'm really grasping at straws, here. Alternatively, could there be anothe

RE: Just adding log4j.jar to struts 1.2.7 project under weblogic causes stack trace

2006-02-01 Thread George.Dinwiddie
Are you using the jdk that comes with WebLogic? Under WebLogic 8.1.2, that was in C:\bea\jdk141_05 for my installation. WebLogic plays some intricate games with the ClassLoader. > -Original Message- > From: J T [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 01, 2006 4:27 PM > To:

RE: Just adding log4j.jar to struts 1.2.7 project under weblogic causes stack trace

2006-02-01 Thread George.Dinwiddie
None that are related to log4j. It's curious that your stack trace doesn't name the class that can't be instantiated. What version of Java are you using? This might be a question for BEA. - George > -Original Message- > From: J T [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February

RE: [OT] Serving an pdf file in a struts action

2006-02-01 Thread George.Dinwiddie
No, but I would recommend response.getOutputStream() in case the PDF contains any binary data. Garner, Shawn asked: > Is there any trick in sending the user a pdf by setting the > content type to application/pdf and then using the > response.getWriter() to write out the data? --

RE: Just adding log4j.jar to struts 1.2.7 project under weblogic causes stack trace

2006-02-01 Thread George.Dinwiddie
I've used log4j 1.2.9 with struts 1.2.7 and Weblogic 8.1.2 without any problems. Do you have any indication of what class is not being found? Are you missing a dependency for an appender that you're using? (See http://www.jguru.com/faq/view.jsp?EID=1007095, though this may be out-of-date.) > ---

  1   2   >