Re: Validation only occurs client side

2005-03-23 Thread Bill Siggelkow
At first glance it looks okay -- I suggest you set a breakpoint in the ValidatorForm.validate() method (or you could override the method) to see if it gets called. If not, then I would look into your request processor (which I noticed was a custom one). -Bill Siggelkow On 2005-03-23 11:09:06

Re: [Validator] maxlength JavaScript not generated

2005-03-08 Thread Bill Siggelkow
It should be ... I just looked at the latest build and the JS function is defined in the validator-rules.xml and the function itself is located in my commons-1.1.4 jar in the maven repository. On 2005-03-08 18:26:23 -0500, Matt Raible <[EMAIL PROTECTED]> said: I coulda sworn that JavaScript was

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-07 Thread Bill Siggelkow
C'mon man, for all intesive purposes its a Template -- it defines an algorithm that subclasses can override. As far as a way to specific alternative implementations -- there is, the element. But to me this whole conversation is moot. IMO, chain alleviates theses issues ... if you don't like ho

Re: Dispatch Action not working

2005-03-07 Thread Bill Siggelkow
Make sure your "generate" method has the same signature as the standard Action.execute() method (i.e. parameters of ActionForm, etc.) On 2005-03-07 06:39:59 -0500, nitin dubey <[EMAIL PROTECTED]> said: Hello, I have put "dispatch" parameter value as "generate", and have created a generate() metho

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-06 Thread Bill Siggelkow
Michael -- I mean Dakota -- whatever ... as long as you continue publish "baiting" posts like this my guess is that people won't want to give you the time of day. On 2005-03-05 23:34:06 -0500, Dakota Jack <[EMAIL PROTECTED]> said: I inquired why the Template Method pattern is being used with Com

Re: Getting started with struts-chain/commons-chain

2005-03-06 Thread Bill Siggelkow
Ahh ... a chance toot my own horn! http://www.onjava.com/pub/a/onjava/2005/03/02/commonchains.html Also, Richard, I am working on Part II which digs into how Struts uses chain -- Part II should be out in a week or so ... I strongly you suggest that you first get your head wrapped around Chain b

Re: validatorForms and deprecated actionerrors

2005-03-04 Thread Bill Siggelkow
saying that I should just "wait" until a solution comes along? Not sure I'm understanding. How would you fix the deprecation problem in my situation? --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: On 2005-03-03 21:31:43 -0500, Paul Tomsic <[EMAIL PROTECTED]> said:

Re: validatorForms and deprecated actionerrors

2005-03-03 Thread Bill Siggelkow
om Action, the warnings will go away and your code will continue to function w/o modification (at least respect to this call). There are probably some other ways to avoid the error, (for example you could do the same thing that saveErrors is doing) but that would be a worse

Re: Reloading Configuration File

2005-03-03 Thread Bill Siggelkow
ecause it sometimes left things in an unpredictable state. -Bill Siggelkow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problem in custom validation method

2005-03-03 Thread Bill Siggelkow
It looks like to me that the Validator is not finding your method definition. Recheck the declaration in the validator-rules.xml file. The signature and class name there must match your actual class and method exactly. On 2005-03-03 14:28:52 -0500, Sivakumar Santharam <[EMAIL PROTECTED]> said:

Re: html:form complains of bean missing

2005-03-02 Thread Bill Siggelkow
so, I noticed that overrode the "process" method calling super.process() at the end. I think it would have been better to override processPreprocess() -- that's what its designed for. -Bill Siggelkow On 2005-03-02 09:52:49 -0500, =?iso-8859-1?Q?G=FCnther_Wieser?= <[EMAIL PROTECTED]

Re: Handle images path in one place

2005-02-10 Thread Bill Siggelkow
One alternative is to use the "srcKey" attribute for both the and tags to specify a key in your Message Resources properties file whose value is the URL. -Bill Siggelkow Gaet wrote: Hello, I'm writting a web application using J2EE where several pages can contains the same

Re: One more time, Input Array :(

2005-02-10 Thread Bill Siggelkow
Please provide some specifics, e.g. snippet from your validation.xml. You can use the validator to validate indexed fields using the "indexed" attribute. -Bill Siggelkow - To unsubscribe, e-mail: [EMAIL PROT

Re: using modules

2005-02-10 Thread Bill Siggelkow
. using to access module-specific MessageResources) will not resolve to the other module. -Bill Siggelkow Kalra, Ashwani wrote: hi, I have configured one module "module1" apart from the default module. Can I navigate to the jsp files directly in that module or I have to always make a s

Re: Redirect instead of forward in action mapping

2005-02-09 Thread Bill Siggelkow
Set the redirect attribute on the forward to true: Of course, if the success page displays data you will need to make sure that is is available in the session since it you will be issuing a new request. (You may want to look into the saveMessages(HttpSession session) method). Neil Aggarwal wro

Re: request Processor in struts-2.

2005-02-09 Thread Bill Siggelkow
What I like about Chain is that it allows the "step-by-step" definition needed for request processing (ala the Template Method); with the loose coupling provided by CoR and Command patterns. Joe Germuska wrote: There are thousands of lines of discussion on this in the mailing list archives, if

Re: hml:select question

2005-02-09 Thread Bill Siggelkow
I didn't quite follow code sample, but I believe that your Vendor object (not your ActionForm) needs to have getName() getVendor() methods. -Bill Siggelkow Sergey Livanov wrote: I have a vendors collection consisting of bean Vendor( long vendor, String name ) When I'

Re: Application Security

2005-02-07 Thread Bill Siggelkow
hentication and authorization as container-managed security. -Bill Siggelkow Tim Christopher wrote: Hi, I've recently discovered that it is not possible to map an action to j_security_check. Given this situation how is it possible to populate a form bean with user data, or create a log

Re: mapping values in jsp

2005-02-02 Thread Bill Siggelkow
ue or false I know you can use a map, but is there a way to cleanly define it in the jsp page? If not what is the recommended way of doing it? -> outputs yes or no Thanks in advance, Abdullah A straightforward approach would be ... Yes No

Re: [OT] RE: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread Bill Siggelkow
Any reason you don't list "Basketball"? t t wrote: I am not sure. But I guess it's the official one, since I got it from the demo application coming with Struts package. T.T. David Suarez <[EMAIL PROTECTED]> wrote: Is the "Powered By Struts" logo an official Struts logo or something that you cre

Re: session form bean problem

2004-12-23 Thread Bill Siggelkow
Hmm .. please include the code from the PopulateAction. t t wrote: Hi, all, First, happy holidays to you! I got a question. I have such action mapping: type="myClasses.PopulateAction" name="SearchForm" scope="request" v

Re: Struts TestCase and Cactus

2004-12-21 Thread Bill Siggelkow
- The Complete Reference -- it also has a chapter on testing. Let me know if you have some specific questions; I will be glad to help if I can. -Bill Siggelkow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: unknown error message

2004-12-21 Thread Bill Siggelkow
Well, it looks like you are using a tag (bean:message) that is trying to pull a value from the message resources property file. -Bill Siggelkow Olasoji Ajayi wrote: javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE what does this mean, i am

Re: I'm completely lost, please help...

2004-12-21 Thread Bill Siggelkow
ctory; this will let you develop on-the-fly without needing to restart Tomcat. I suggest you get a simple application working the way you want. Then you can start on your custom tag app. -Bill Siggelkow Eric D. Nielsen wrote: Long post follows...I don't know if its an Eclipse, Tomcat or

Re: I want to use data source defined in stuts-config.xml in my bean. How can I do it ?

2004-12-20 Thread Bill Siggelkow
Hmm ... I suggest you don't use the data source unless you are forced to by a legacy application. The data-source element has been deprecated. Instead create and access your data source through means provided by your container (e.g. JNDI). Take a look at this page http://struts.apache.org/faqs/

Re: creating tables from array of DynaBeans

2004-12-17 Thread Bill Siggelkow
--- Excerpted from the Jakarta Struts Cookbook (http://www.oreilly.com/catalog/jakartastrutsckbk) -Bill Siggelkow Olasoji Ajayi wrote: hi, i obtained an array of DynaBeans from a RowSetDynaClass (thrugh the getR

Re: "dynamic" dropdown select list?

2004-12-16 Thread Bill Siggelkow
;foo"];<br> form.action = "/SetFoo.do?foo=";<br> form.action += fooCtl.options[fooCtl.selectedIndex].value;<br> form.submit();<br> }<br> In the SetFoo action, reset the collection used for the second drop-down based on the received

Re: NullPointerException

2004-12-16 Thread Bill Siggelkow
html.tld /WEB-INF/struts-logic /WEB-INF/struts-logic.tld /WEB-INF/struts-nested /WEB-INF/struts-nested.tld /WEB-INF/struts-tiles /WEB-INF/struts-tiles.tld jstl/c /WEB-INF/c.tld -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf

Re: NullPointerException

2004-12-16 Thread Bill Siggelkow
Wierd -- it looks to me from the original message that you are getting the error on line 1219 of TagUtils which is: resources = (MessageResources) pageContext.getAttribute( bundle + moduleConfig.getPrefix(), P

Re: Carriage Returns in MessageResources.properties

2004-12-16 Thread Bill Siggelkow
Maybe try using a double slash (\\r\\n) ... Richard Reyes wrote: Hello Guys, How can I include a carriage return inside a properties file. I tried \r\n and it show as \r\n on the emails being sent. Thanks Richard - To unsubscribe,

Re: NullPointerException

2004-12-16 Thread Bill Siggelkow
I am going way out on a limb here, but I might have something to do with retrieving your message resources. Make sure you have your ApplicationResources.properties file located in your WEB-INF/classes. uma.k wrote: I get NullPointerException when I access this index.jsp page. I also have Applica

Re: actionform session attribute name

2004-12-16 Thread Bill Siggelkow
sort of like this... I know what I have here is wrong :) then I can access the form using the form var: -Abdullah -Original Message- From: Bill Siggelkow [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 3:55 PM To: [EMAIL PROTECTED] Subject: Re: actionform session attribute name

Re: Question about using a HashMap as input for logic-el:iterate

2004-12-15 Thread Bill Siggelkow
Try something like this: -Bill Siggelkow Wessel van Norel wrote: Hi all, I was wondering if it is possible to use a HashMap containing vectors as the input for a logic-el:iterate tag. Why do I use a hashmap? That's because I first have to iterate thro

Re: actionform session attribute name

2004-12-15 Thread Bill Siggelkow
): -Bill Siggelkow Abdullah Jibaly wrote: Hi again, I'm actually trying to get the form name, or a reference to the object, from the JSP page. Also, how can I (using JSTL) get a list of all attributes and their values in request, session, and app

Re: Getting property value from bean in a collection into a script variable

2004-12-15 Thread Bill Siggelkow
, you really should avoid scripting Java in a JSP -- using JSTL your fragment could be rewritten something like as:     * <%-- Consider using the tag here instead --%> &viewLastName=> -Bill Siggelkow [EMAIL PROTECTED] wrote: Hi guys, I am t

Re: Oreilly example question

2004-12-15 Thread Bill Siggelkow
print the stacktrace for logged exceptions (I believe this includes the stack trace of the causing exception). -Bill Siggelkow [EMAIL PROTECTED] wrote: I have done that in 1.1, but the issue I have is that each of my actions could potentially throw many different Exceptions that all have diff

Re: Best practice question: Properties (ShoppingCart) per user

2004-12-07 Thread Bill Siggelkow
Simon, Actions should not hold client-state; instead, you can create a ShoppingCart in the Action but then save it in the HttpSession. Without going into to many details, I suggest you take a look at the Struts MailReader example distributed with Struts. -Bill Siggelkow Simon MARTIN wrote: Hi

Re: Best approach to implement date dropdown

2004-12-07 Thread Bill Siggelkow
://www.mattkruse.com/javascript/calendarpopup/. -Bill Siggelkow Ben wrote: Hi I am using Struts with Velocity as a replacement to JSP. I would like to implement a date drop down list and love to hear your opinions on the best way to implement it. I like to have something like these on my ActionForms and use

Re: struts tags and scriplet

2004-12-03 Thread Bill Siggelkow
) take a few deep breaths (2) look over the examples included with Struts. The Struts community is very helpful; if you don't lose your patience; then they won't either. -Bill Siggelkow Vinicius Caldeira Carvalho wrote: Wendy Smoak wrote: From: "Vinicius Caldeira Carvalho" <[EMAI

Re: - Newbie

2004-12-03 Thread Bill Siggelkow
The reason is that in "classical" HTML; forms are expected to accept input. Struts stores the input data in an ActionForm; the traditional approach for what you are doing would be to use a link and not a button. -Bill Siggelkow Jacques wrote: Hi, Here's what I want to achieve

Re: struts tags and scriplet

2004-12-03 Thread Bill Siggelkow
If you specify the form in the you don't need to use the scriptlet -- Struts will retrieve and display the value for you. -Bill Siggelkow Vinicius Caldeira Carvalho wrote: Hi there! I often find myself writing scriptlet due to struts tags or my misunderstanding about it. Let's supp

Re: JSTL when...test won't work.

2004-12-02 Thread Bill Siggelkow
Found formRoles manager NOT Found Nadia Kunkov wrote: Hello, This is my first try with JSTL and somewhere I'm getting the syntax wrong. Could you please help me? I have a bean called user in the session. One of this bean's properties is a hash map c

Re: Problem with validation using both minlength and maxlength on the same field

2004-12-02 Thread Bill Siggelkow
modification. -Bill Siggelkow David G. Friedman wrote: AHA! It all makes sense then. Since I didn't see a way to make the ... tag pull from a resource, is there any way to do that? Then, theoretically, I can make the arg AND the var pull from the same resource label and make it easier for someone el

Re: Adding rows (beans) to dynamic form

2004-12-02 Thread Bill Siggelkow
Miles, I think you will want to use the indexed attribute of the field. Take a look at http://struts.apache.org/faqs/indexedprops.html. -Bill Siggelkow Daffin, Miles (Company IT) wrote: Hi All, I apologise in advance for this question - but I have searched/tried all day without nailing a

Re: Tiles and Forms

2004-11-30 Thread Bill Siggelkow
portion of the form; it will be included as part of the translation phase; prior to compilation of your JSP. -Bill Siggelkow Graeme Miller wrote: Simple question with no helpful responses so far. I must therefore conclude either a)Noone uses tiles because they are broken b)Noone understands tiles

Re: Validator question

2004-11-30 Thread Bill Siggelkow
Make sure you are using the latest release of Struts (http://struts.apache.org/acquiring.html). In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator that caused this problem. -Bill Siggelkow Vinicius Caldeira Carvalho wrote: Hi there! I'm trying to make my validator pro

Re: including external urls in tiles

2004-11-25 Thread Bill Siggelkow
You could use JSTL's tag. -Bill Siggelkow Sarath PS wrote: hello all, is there any solution for including an external url in a tile. All links should be re-written so that the request come back to my server ? Any plug ins ? library is available for that ? Thanks in advance, S

Re: prepopulating forms

2004-11-24 Thread Bill Siggelkow
Did you try changing the LogonAction to implement 'execute' instead of the old 'perform' method? Brij Naald wrote: Not unless you would like to try posting non-private parts of your action class for list members to review. In advance: thanks for all the work you put in some 'newbie'-problems! I'v

Re: how do i get context-param

2004-11-24 Thread Bill Siggelkow
et). In addition to the JavaDocs, you should read the Servlet specification, which tells you how Servlets and Servlet containers are supposed to work. Trust me, it is required reading: http://www.jcp.org/aboutJava/communityprocess/final/jsr154/ Erik Bill Siggelkow wrote: MyServlet extends HttpS

Re: Getting a regular expression from application.properties

2004-11-24 Thread Bill Siggelkow
Did you try escaping the single qoutes with a backslash? ^[0-9]\'{\'0,10\'}\'(,[0-9]\'{\'0,2\'}\')?$ Simon Matic Langford wrote: I have a regular expression for date formatting (don't ask!) in our application.properties. This can change depending on user locale. I am trying to get the following val

Re: Post Validation

2004-11-24 Thread Bill Siggelkow
com/struts-user@jakarta.apache.org/msg82653.html -Bill Siggelkow David G. Friedman wrote: Bill, Isn't setting the input to another action sort of a bad idea? Wouldn't that cause the framework to start all over internally - request processing everything from scratch and all that? Wouldn't for

Re: Post Validation

2004-11-24 Thread Bill Siggelkow
You're on the right path, Lee. Instead of setting the "input" to the JSP, set it to an action, which creates your pick lists and stuffs them in the request, that precedes the JSP. -Bill Siggelkow Lee Harrington wrote: I'm using DynaValidator forms. Works great, except when

Re: how do i get context-param

2004-11-24 Thread Bill Siggelkow
e at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/servletapi/index.html. -Bill Siggelkow Nishant wrote: hi can anyone tell me how can i get context-param parameter in my servlet . thanks in advance Regards Nishant Patil Software Engineer Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company) West Avenue, Kalyani

Re: HI Everybody

2004-11-24 Thread Bill Siggelkow
Bikram, It is really bad etiquette (sic) to repost the same question with a different subject. Please post this question to the OJB mailing lists. You'll find information on this list at http://db.apache.org/mail.html. -Bill Siggelkow Bikram B Kapoor wrote: Hi All, I am not a newbie in s

Re: XTag problem

2004-11-24 Thread Bill Siggelkow
Though I haven't used the xtags, it looks like to me that the tag is expecting a Reader not a String. You could probably make it work by doing something like this: <% StringReader xml = new StringReader((String) request.getAttribute("xmlString")); %> -Bill Siggelkow Nis

Re: [OT] Plug for Geary's JSF book

2004-11-24 Thread Bill Siggelkow
I also recently got this book and am enjoying it so far ... I met David Geary at the recent Atlanta No Fluff Just Stuff conference ... his talks on JSF and Tiles were excellent and down-to-earth ... his (and Cay's) writings reflect these qualities as well. -Bill Siggelkow Rick Reumann

Re: dynabean and jstl

2004-11-23 Thread Bill Siggelkow
DynaActionForm, which implements DynaBean, contains a getMap() method; however, DynaBean does not expose the backing Map in a public property. To use a DynaBean with JSTL, you could create your own extension that exposed the protected 'values' HashMap using a public getter meth

Re: Struts 1.2.4 - DynaActionForm.initialize(ActionMapping) no longer called ?

2004-11-22 Thread Bill Siggelkow
ActionForm { public void reset(ActionMapping mapping, HttpServletRequest request) { initialize(mapping); } } ----- -Bill Siggelkow Natraj Gujran wrote: Hi, This has come up during migration of our Struts 1.1 app to 1.2.4. It doesn't look like the 'ini

Re: validator form not working

2004-11-22 Thread Bill Siggelkow
Make sure that the files for the validator plug-in do exist in the specified location. Also, make sure that the ActionForm for employeeForm extends ValidatorForm or DynaValidatorForm. Also, make sure that 'validate="true"' is set on your action mapping in the struts-config.x

Re: Switching modules

2004-11-22 Thread Bill Siggelkow
Modules are contained within one web application -- you cannot switch modules between web applications. This section from the Struts User's Guide should help: http://struts.apache.org/userGuide/configuration.html#dd_config_modules -Bill Siggelkow Gopinathan,Sekar wrote: I am creating a s

Re: Multi-Page Wizard Validation Problem

2004-11-22 Thread Bill Siggelkow
I believe you need a form-property named 'page' with a type of 'java.lang.Integer'. -Bill Siggelkow Jeff Smith wrote: Let me paste the files in instead -- struts config starts here -- http://struts.apache.org/dtds/s

Re: Can't get modules to work in struts

2004-11-19 Thread Bill Siggelkow
o put something in the default modul right?? And what?? Bill Siggelkow wrote: Well, what exactly are you trying to do? I assumed you wanted to create something like a link that takes you to the admin module. You cannot just specify the module name for the path of a global forward .. you have to spec

Re: Can't get modules to work in struts

2004-11-19 Thread Bill Siggelkow
I only need to put something in the default modul right?? And what?? Bill Siggelkow wrote: Well, what exactly are you trying to do? I assumed you wanted to create something like a link that takes you to the admin module. You cannot just specify the module name for the path of a global forward ..

Re: Newbie With Question

2004-11-18 Thread Bill Siggelkow
he server's JVM using your debugger. You only need to specify the host name and port for the remote JVM. -Bill Siggelkow kjc wrote: Debugging a server side component only works when the IDE has the ability to launch the appServer inside the VM which is also running the IDE. You can then set

Re: Help with message resource on Struts module

2004-11-18 Thread Bill Siggelkow
Maybe this is just a typo but shouldn't you be using 'bundle="mymodulekey"' instead of 'bundle="mymodule"'? Radu Badita wrote: Hello, I have a Struts module with the following message bundle: Inside an Action I can get messages from it with: dateFormat = getResources(request,"mymodulekey").get

Re: Newbie With Question

2004-11-18 Thread Bill Siggelkow
RequestProcessor to figure out where its failing. -Bill Siggelkow Scott Purcell wrote: Hello Bill, I checked everything again, and still do not see anything obvious. What did you mean by a debugger? Do you know of one for Tomcat and checking this type of problem? If so, please let me know. Thanks

Re: Newbie With Question

2004-11-18 Thread Bill Siggelkow
thing like 'com.vertisinc.SubmitAction') -Bill Siggelkow Scott Purcell wrote: Hello, I am just getting underway with struts and found an example here: http://javaboutique.internet.com/tutorials/Struts/ I have completely followed the directions and I can get the initial form to d

Re: Help with Exception handling

2004-11-17 Thread Bill Siggelkow
n the RequestProcessor. I think you will find that using the debugger is (a) fun, (b) educational, and (c) fun ;) -Bill Siggelkow Wendy Smoak wrote: I know I've tried this before, but so far I haven't gotten all the pieces properly arranged so it works. :/ I currently have code like th

Re: Using constants for form property names.

2004-11-17 Thread Bill Siggelkow
I believe this is documented in the JSP spec. Daffin, Miles (Company IT) wrote: Paul, Thanks. This worked. Where is this fact documented? -Miles -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: 17 November 2004 17:16 To: 'Struts Users Mailing List' Subject: RE: Us

Re: Error running CactusStrutsTest case with an ExtendedActionServlet instead of ActionServlet

2004-11-16 Thread Bill Siggelkow
Hmm .. the NoClassDefFoundError would indicate that the struts.jar is not included in your WEB-INF/lib. [EMAIL PROTECTED] wrote: Any help with this please... We extended our actionServlet with ExtendedActionServlet and when I tried to run my test from a browser in this fashion: http://localhost:

Re: Contrib tld files on ibiblio ?

2004-11-16 Thread Bill Siggelkow
Keith, I did notice that JAR files for Struts-EL (which will contain the TLDs) are available for access from maven at http://cvs.apache.org/repository/struts/jars/ Bishop, Keith wrote: Hi, Could anyone direct me to the location of the contrib tld files ( i.e. struts-html-el.tld etc etc) on www.i

Re: talking about paradigms

2004-11-16 Thread Bill Siggelkow
The controller should be deciding what to do about user input given whatever strategy the application has adopted. Jack On Tue, 16 Nov 2004 10:55:52 -0500, Bill Siggelkow <[EMAIL PROTECTED]> wrote: Jack, What I found was that alot of Java code to generate XML (using DOM API) had to be ad

[OT] Re: talking about paradigms

2004-11-16 Thread Bill Siggelkow
then marshalled the returned object(s) into XML, adding in the "presentation-enabling" data. By the way, in the recent past I played around with stxx (http://stxx.sourceforge.net). If I wanted to go the Struts/XSLT route I would certaninly consider this framework. I haven't used Str

Re: file upload, HttpSession content serialization failure, session size

2004-11-16 Thread Bill Siggelkow
OutputStreams are not serializable; in other words, when the object is deserialized chances are it cannot be restored the state it was in when it was serialized. Probably the best way to solve your problem is to to mark the field that holds the OutputStream (FormFile?) as "transient". [EMAIL PR

Re: Switching Modules and Request Processors

2004-11-16 Thread Bill Siggelkow
I believe your observations are correct. If you want to avoid the "special features" you could conditionally skip them if the request is a SwitchAction to the new module ... just one idea. Susan Bradeen wrote: I have a Struts application that uses a custom request processor. Now I am trying to

Re: Question regarding filters in html-tags

2004-11-16 Thread Bill Siggelkow
nts of the latter both tags from getting parsed and converted? Many thanks in advance Kind regards Rene, Can you explain what you are trying to do? Are you trying to prohibit/allow the user inputting HTML markup? -Bill Siggelkow --

Re: talking about paradigms

2004-11-16 Thread Bill Siggelkow
t buy me a whole lot. -Bill Siggelkow Dakota Jack wrote: Yet, Bill, that is not the problem of the XML/XSLT model, is it? That model is really cool in separating the model from the view. Indeed, that model is great at separating the view data from the view presentation. I am not sure what the app

Re: Can't get modules to work in struts

2004-11-15 Thread Bill Siggelkow
through Struts so you the path needs to be an action. marc wrote: I can't follow that, can you explain that a bit more. Thank you. Bill Siggelkow wrote: You need the path of the global forward to be an action in your /admin module. Something like: -Bill Siggelkow marc wrote: I'm

Re: Can't get modules to work in struts

2004-11-15 Thread Bill Siggelkow
You need the path of the global forward to be an action in your /admin module. Something like: -Bill Siggelkow marc wrote: I'm trying to get modules to work in struts but with no luck. First I made a standard struts app. And It works fin, but now I what it to be a module. So I m

Re: talking about paradigms

2004-11-15 Thread Bill Siggelkow
nd separation of the model and view. -Bill Siggelkow Daniel Perry wrote: I think the idea that MVC architecture should have a 'dumb view' is totally wrong. The view should be as smart as possible. MVC should separate the M, V and C. With a really smart view you dont have to do any preparation

Re: AW: AW: Are there Struts Applications in real life out there?

2004-11-09 Thread Bill Siggelkow
Thanks for the mention, Ted. According to Amazon the book is slated for release on February 15, 2005 -- I am hoping it will be sooner, though. -Bill Siggelkow Ted Husted wrote: On Tue, 09 Nov 2004 17:12:06 +0100, Stahlhut, Axel wrote: but the one of ted and some others i see standing 'rou

Re: how do I count array in logic:iterate

2004-11-03 Thread Bill Siggelkow
Number of fruits: -Bill Siggelkow Peng, Meimin wrote: Hi, I've an array list called fruits. And, I want to count the number of fruit. How can I do it to write out the number? <%=index%> Thanks. --MM CONFIDENTIALITY NOTICE: The information in thi

Re: Struts form problem.

2004-10-25 Thread Bill Siggelkow
The NPE is thrown on this line: obj = formBeanClass().newInstance(); in the FormBeanConfig -- this indicates that the class you specified by the type attribute cannot be found -- check for typos and how you are building your deployment as well. -Bill Siggelkow Matias Surdi wrote

Re: Error handling basics

2004-10-25 Thread Bill Siggelkow
No worries, Freddy -- in fact, I apologize; I just wasn't reading careful enough. I am glad you solved your problem. -Bill Siggelkow Freddy Villalba A. wrote: By the way... I was being sarcastic with my last comment, Bill. Second-read it and thought it could have been offensive / rude.

Re: Error handling basics

2004-10-25 Thread Bill Siggelkow
Hmmm... it looks like you *didn't* specify the input attribute on the mapping. Freddy Villalba A. wrote: Hello, I've made myself a small test application. I wanted to test error handling within the "validate" method. The problem is that I'm not being redirected to the jsp I have specified inside

Re: html:form doesn't return action

2004-10-25 Thread Bill Siggelkow
I don't know if this is a cut-and-paste error but you are missing a '>' in your action mapping after ' parameter="method" ' Carl F. Hall wrote: Whenever I use html:form, I only get the name of the context as the action. What would cause the action to not return correctly? See below for my specif

Re: tab UI controls for struts

2004-10-25 Thread Bill Siggelkow
kjc wrote: looking for a tab UI control for use with struts. Tiles comes with a Tabbed Layout ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: file validation best practice

2004-10-24 Thread Bill Siggelkow
the user has some .exe file with .doc extension. I mean somefile.exe.doc. How do I check the valid file type with the extension. Thanks once again. --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: U can set the accepted mime types on the input tag; however, the browser may not do anything wit

Re: struts-faces: ActionForm not populated

2004-10-24 Thread Bill Siggelkow
lance at the login screen in the example :-), the differences in your JSP are pretty simple: and where "logonForm" is the registered name of your form bean. Craig On Sun, 24 Oct 2004 14:59:12 -0400, Bill Siggelkow <[EMAIL PROTECTED]> wrote: Okay -- I know doing something s

Re: file validation best practice

2004-10-24 Thread Bill Siggelkow
U can set the accepted mime types on the input tag; however, the browser may not do anything with this information; so in your ActionForm, I suggest you validate the type by checking the extension of the received file name. struts lover wrote: Hi Everyone, I wanted to know what is the best prac

struts-faces: ActionForm not populated

2004-10-24 Thread Bill Siggelkow
ting Struts and JSF My struts-config.xml is straightforward normal stuff -- I am using Struts 1.2.4 and the nightly build of Struts faces (also JSF 1.1) ... any ideas would be most appreciated. -Bill Siggelkow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help! problem with checkbox ( relevant code included)

2004-10-20 Thread Bill Siggelkow
I believe the problem is the property name in your ActionForm. Having a method named getSAll() is going to cause problems. Make it getSall() and then the property will be 'sall' and everything will be much happier. Or you could try more meaningful names ;) -Bill Siggelkow t t wrote:

Re: Help! problem with checkbox

2004-10-20 Thread Bill Siggelkow
Tong, While I appreciate that you are trying to present your information in a generic manner -- it is rather difficult to know what's going on without specifics. For checkboxes, the property needs to be a boolean. If you cannot figure out the problem, I suggest you include the relevant portions

Re: Map-backed action forms with JSTL tags

2004-10-20 Thread Bill Siggelkow
Ryan, JSTL does not support the getValue(String key) syntax for accessing mapped properties. Instead you need to expose the Map itself in a getter method. If you made getMappedProperty() return the map then your JSTL will work. -Bill Siggelkow Asleson, Ryan wrote: I tried this: And received

Re: [OT] RE: AspectJ question / lumberjack

2004-10-19 Thread Bill Siggelkow
- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 19, 2004 12:56 PM Subject: Re: AspectJ question Bill, how is it that you write an entire message in surfer-speak, but then at the very end use a hood term like "word"?!? POSER! :) On

Re: Validating start and end dates

2004-10-19 Thread Bill Siggelkow
). For item 2, in the ActionForm.validate() method I'd implement the date ordering rule. There may be more clever ways ... YMMV. -Bill Siggelkow Milind Rao wrote: I'm using the Validator framework to validate dates and I have two questions 1. I'd like the user to be able to ent

Re: last available function call when web app stops or app server shuts down

2004-10-19 Thread Bill Siggelkow
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html Woodchuck wrote: hihi all, which class/function do i need to extend/override so that i can absolutely guarantee that code is executed before the web app is killed? ie. if someone stops Tomcat or stops my Str

Re: AspectJ question

2004-10-19 Thread Bill Siggelkow
Busted! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AspectJ question

2004-10-19 Thread Bill Siggelkow
Duude, Like, man ... no question is stupid ... some of them just aren't very gnarly ... for sure, dude, this is like asking "Bro, does Struts work well with XML?" For sure, Aspects rock like Nirvana (Cobain lives, dude!) ... google "AspectJ Struts" an

Re: Using StrutsTestCase with 1.2, wildcards and MappingDispatchAction

2004-10-18 Thread Bill Siggelkow
tCase, but I have tested wildcard mappings without any problems. -Bill Siggelkow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

  1   2   3   4   >