RequestProcessor and execute method

2006-05-24 Thread Monkeyden
I recently came to the conclusion that I didn't like the hidden form field markers and conditional logic used in the Action.execute() method, to determine whether the user was performing the initial fetch of an ActionMapping or submitting. The solution I came up with was to extend the Struts Requ

Re: [OT] utility to print DOM object of XML file

2006-05-24 Thread Monkeyden
The beautiful thing is you dont need JDom or Xerces if you have JDK1.4. I'm not going to give you the answer, as that wouldn't truly help either one of us, but I will tell you that the answer can be found in the javax.xml.transform.Transformer class, which is the fruit of the TransformerFactory c

Re: RequestProcessor and execute method

2006-05-24 Thread Monkeyden
doGet and doPost of HttpServlet. On 5/24/06, Dave Newton <[EMAIL PROTECTED]> wrote: Monkeyden wrote: > I'm wondering if anyone else has done something different and/or more > practical. Different, yes; more practical, probably not. In the past I've just used a base Action clas

Re: [OT] utility to print DOM object of XML file

2006-05-24 Thread Monkeyden
u a hint on the next step:serialization. FileOutputStream. On 5/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: There are two example on this page of how to use transform. http://www.kickjava.com/1942.htm Bryan LaPlante -- Original Message --- From: Monkeyden <[

Re: popup

2006-05-25 Thread Monkeyden
Is this a Struts question? On 5/25/06, Abhimanyu Koul <[EMAIL PROTECTED]> wrote: how can i use a popup window to search for a record from the database and on clicking any record in the popup window, i should get that value into my text box. search Abhimanyu Koul FinEng Solutions (P) Ltd

Re: More then 1 Action Forms in JSP

2006-05-25 Thread Monkeyden
As in a pop-up? If so, then you create a HelpAction and JSP, which would be expecting a request parameter specifiying the current screen. Use that parameter to determine what content to fetch. Basically, it's a new Action. The only thing your 10 existing screens will be responsible for is pass

Re: Regardind configuration in server.xml

2006-05-25 Thread Monkeyden
You always have to watch your "testes" when overrriding the RequestProcessor. Looks like you have a typo. java.lang.NoSuchMethodException: Bean has no property named teste at org.apache.commons.digester.SetPropertyRule.begin( On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote: Hi, I wrot

Re: Regardind configuration in server.xml

2006-05-25 Thread Monkeyden
, Miguel Galves <[EMAIL PROTECTED]> wrote: Thats because I've changed the tag before sending the code to the list. The original version was in portuguese...teste... :-) I've definded a setTeste method and a teste property. So that's OK.. On 5/25/06, Monkeyden <[EMAIL PR

Re: Regardind configuration in server.xml

2006-05-25 Thread Monkeyden
damn! Mutator, not accessor. On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote: Ah, ok. This is from the struts-config DTD. Looks like you need to define an accessor, named setTest, in your RequestProcessor. When the object representing the surrounding element is instantiate

Re: More then 1 Action Forms in JSP

2006-05-25 Thread Monkeyden
I considered DispatchAction but it sounds like he is looking for your average context-sensitive help functionality. On 5/25/06, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote: Sure its possible for a JSP to call 2 different actions. You just need 2 different forms pointing to different actions. I

Re: Regardind configuration in server.xml

2006-05-25 Thread Monkeyden
/25/06, Monkeyden <[EMAIL PROTECTED]> wrote: > > Ah, ok. This is from the struts-config DTD. Looks like you need to > define > an accessor, named setTest, in your RequestProcessor. > > > When the object representing the surrounding element is instantiated, the > accessor

Action 1 Framework?

2006-05-25 Thread Monkeyden
I know the "Action 2 Framework" is the WebWork integration branch but is the "Action 1 Framework" just the latest version of traditional Struts? I developing my first NEW Struts project since this new name has appeared.

ActionForm is null

2007-02-25 Thread Monkeyden
Im using Struts 1.2.9 on Tomcat 4.1.31. Somehow, my form is null within my Action. It's even null at the level FormBeanConfig.formBeanClass() is called. The type, returned by FormBeanConfig.getType(), returns the correct String, but the call to classLoader.loadClass(getType()) fails to load the

Re: ActionForm is null

2007-02-25 Thread Monkeyden
If I knew exactly what to tell you, I would likely know enough to fix it. Turns out I did. The root cause of the problem, and the solution, had nothing todo with Struts. On 2/25/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Monkeyden <[EMAIL PROTECTED]> wrote: > Im using

Re: forms in struts-layout tabs ??

2006-05-31 Thread Monkeyden
Whether or not you persist the data between screens is dependent on whether or not the screens make up a single transaction. Suppose you have an HR system that allows the user to enter all new employee information. That system may require that the user enter all the employee's information or he/

Re: Maven + Struts

2006-05-31 Thread Monkeyden
Ok, joke's over. That was funny...notepad. You had me going for a sec. On 5/31/06, Marco Mistroni <[EMAIL PROTECTED]> wrote: Hello, My 2 c ents again.. Maybe everything has worked perferctly for me cos I m still Developing in Notepad :) Rgds marco -Original Message- From:

Re: Disable submit button

2006-05-31 Thread Monkeyden
Is it nested within the tag? What browser are you using? Any JS errors on the client? On 5/31/06, A Amarakoon <[EMAIL PROTECTED]> wrote: Thank you for quick reply.. This does not work for me.. once you click the submit button it disables button. but does not submit action to the server. May

Re: Displaying and error

2006-05-31 Thread Monkeyden
It's no more weird than request.getAttribute(" org.apache.struts.action.EXCEPTION'"), which is what that EL snippet is equivalant to. Either way you need to tell the request which named attribute to give you. On 5/31/06, John Hutchinson <[EMAIL PROTECTED]> wrote: Bingo. Thanks. That's weird.

Re: Global forwards and actions

2006-06-01 Thread Monkeyden
The form action is the same as the action mapping in struts-config, plus the ".do", so if the form has: then the action mapping must be: On 6/1/06, Maya menon <[EMAIL PROTECTED]> wrote: Ok, for delete.jsp I put action="delete.do" form.action="Delete.do"; form.submit(); In struts-config.x

Re: Global forwards and actions

2006-06-01 Thread Monkeyden
If that's the error you're getting, then that can't be your code. You're trying to request "/jsp/Delete" somewhere in your code. I suspect that the /jsp is a directory and thus will only be relevant to the action-forwards, not the form or the action-mapping.

Re: Global forwards and actions

2006-06-01 Thread Monkeyden
tus report message /Delete description The requested resource (/Delete) is not available.\ whats going wrong here ? Monkeyden <[EMAIL PROTECTED]> wrote: The form action is the same as the action mapping in struts-config, plus the ".do", so if the form has: then the action mappin

Re: Global forwards and actions

2006-06-01 Thread Monkeyden
. struts-config entry is like this: Monkeyden <[EMAIL PROTECTED]> wrote: If that's the error you're getting, then that can't be your code. You're trying to request "/jsp/Delete" somewhere in your code. I suspect that the /jsp is a directory and thus will o

Re: Logic:Iterate & HashMap

2006-06-02 Thread Monkeyden
Use the name and property attributes in your iterate tag, where "name" is the name of your DTO and "property" is the name of the Map within the DTO. You can have a look at the docs here: http://struts.apache.org/struts-doc-1.2.7/userGuide/struts-logic.html On 6/2/06, Marco Mistroni <[EMAIL PROT

Re: Uncompress

2006-06-09 Thread Monkeyden
I haven't done it but a Google search returns an example as the for the result. http://www.devx.com/getHelpOn/10MinuteSolution/20447 On 6/9/06, Shabada, Gnaneshwer <[EMAIL PROTECTED]> wrote: Hello all, I have a question which is unrelated to Struts but wanted to try it out here considering th

Re: Cancel button sets the form value

2006-06-19 Thread Monkeyden
Sounds like you're expecting to do something with the form after after cancel is selected. If, from a user experience perspective, the cancel button is doing what it's supposed to, you shouldn't care what the form has in it since the user cancelled anyway. I don't use the execute() method of Act

Re: Cancel button sets the form value

2006-06-20 Thread Monkeyden
n.*doCancel*(mapping, form, req, res)); }else if(actionType.equals("select")){ return (myBaseAction.*doSelect*(mapping, form, req, res)); } On 6/19/06, Rick Reumann <[EMAIL PROTECTED]> wrote: Monkeyden wrote: > I don't use the execute() method of Action at all and hav

Re: Problem with MessageResources.properties

2006-06-20 Thread Monkeyden
I do this very thing for required field messages and have no problem with it. Are you passing the value to the ActionError constructor? '{0}' is a required field On 6/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote: Hi All, I am using struts 1.2.8 , In my MessageResources.propert

Re: Request parameters in action forward

2006-06-20 Thread Monkeyden
The only thing that I can think of is to redirect the user to a different (perhaps error) exactly, send them back to wherever they go to select the foo they want to look at. Do you have a SelectFooAction? On 6/20/06, Antonis Lebesis <[EMAIL PROTECTED]> wrote: Thank you Don. I have done that

Re: Struts Design question

2006-06-21 Thread Monkeyden
If your implementation is similar to what Scott has mentioned (i.e. different operations on the same type of object), then I consider this a classic example of a DispatchAction, where type of business entity doesn't change...just the selected operation on the business entity, thus it makes sense t

Re: Stopping Double Submits via mutex

2006-06-21 Thread Monkeyden
I'm as forward-thinking as the next guy but let's not lose sight of the fact that, despite how pragmatic we engineers like to be, many more than half of the applications developed and deployed are done so on a single JVM. An overwhelming majority of those applications originally deployed on a sin

Re: Stopping Double Submits via mutex

2006-06-21 Thread Monkeyden
etti <[EMAIL PROTECTED]> wrote: Monkeyden, I'd be careful with that assumption... clustering is pretty common in mid to large organizations based on my experience... I think any design that doesn't take it into consideration is a bad design. Even if your in a 5-person shop now running on

Re: Stopping Double Submits via mutex

2006-06-21 Thread Monkeyden
is no way around it. In an environment where every company has to be online 24/7 failure safety becomes a very crucial subject, especially for small companies. Monkeyden wrote: > I'd be surprised if that data was out there but logic tells me that > there > are far more small-med application

Re: Communicate between two struts apps

2006-06-22 Thread Monkeyden
AFAIK, if the applications are in two separate contexts there is no way to share data between them using a common session Not to mention, some of the Struts tags (form, link) derive context at runtime, so you don't have the ability to specify an external context. You'll be forced to do somethi

Re: Communicate between two struts apps

2006-06-22 Thread Monkeyden
What is this business? Monkeyden <[EMAIL PROTECTED]> 23/06/2006 07:42 AM Please respond to "Struts Users Mailing List" Here is the snippet from the raw message: ... From: Eric Dahnke <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List Subject: R

Re: To get the session size

2006-06-23 Thread Monkeyden
This is particularly difficult in Java, since there is no reliable and invariable way to measure the size of an object. Interestingly, while trying to avoid work the other day, I stumbled onto this write up on the topic. Martin Roth asserts that the only way to do it in Java is to get the curren

Re: To get the session size

2006-06-23 Thread Monkeyden
Correction... ...the operands for the measurement are at RUNTIME scope... On 6/23/06, Monkeyden <[EMAIL PROTECTED]> wrote: This is particularly difficult in Java, since there is no reliable and invariable way to measure the size of an object. Interestingly, while trying to avoid wo

Re: java.lang.OutOfMemoryError when building in Netbeans

2006-06-23 Thread Monkeyden
I suspect you can find an example for setting startup and runtime memory allocation for NetBeans. It would look something like this, and you would add it to the shortcut or shell script that starts NetBeans: -Xms128M -Xmx512M On 6/23/06, A. Lotfi <[EMAIL PROTECTED]> wrote: Hi, I am trying to

Re: Tiles and Struts

2006-06-27 Thread Monkeyden
Your forward's path needs to point to the tile-def name (portal.index), not the JSP page that defines the tile-def (/jsp/frameset.jsp). Also, be sure you are using either the tiles plugin or the TilesRequestProcessor. OR On 6/27/06, Alex Rodrigues da Silva <[EMAIL PROTECTED]> wrot

Re: Javascript problem, how to control special characters from being entered into textbox

2006-06-27 Thread Monkeyden
You could also check to see if the keycode is in a range. See the table below. With a quick search, I found a javascript that will check it. codes 48-57 are numbers 0-9, codes 65-90 are upper letters A-B, codes 97-122 are lower letters a-z. ASCII table http://www.newebgroup.com/rod/newillusion

Re: [ANN] Hoople 1.0

2006-06-27 Thread Monkeyden
managing the action mappings in the struts-config.xml file can be a big headache, especially with multiple developers. And how! That's why I use XDoclet. Only Ant knows. On 6/27/06, Nathan Voxland <[EMAIL PROTECTED]> wrote: The Hoople team just released the 1.0 version of Hoople. We've b

Re: Validation does not verify the hidden controls?

2006-06-29 Thread Monkeyden
Is the content of each tab within a tag, and you're just hiding and showing the div? Do they share the same form tag? Are all of them nested within it? On 6/29/06, José María Tristán <[EMAIL PROTECTED]> wrote: Hello: I have five tabs. When i click into a tab one css hide and other cs

Re: how to use dwr in myeclipse 5.0

2006-07-05 Thread Monkeyden
yeah, it's called Google. You can find pretty much anything there. On 7/5/06, Gomathi <[EMAIL PROTECTED]> wrote: how to create ajax application using dwr in myeclipse5.0 Is there is any site to follow this Kindly regards gomes

Re: Cannot find examples.war

2006-07-05 Thread Monkeyden
You looking for the jar or the war? In either case, there isn't one that I know of. However, an exploded examples app come with Struts and the classes you would expect to find in an examples.jar file can be found in the WEB-INF\classes subdirectory of the exploded WAR. On 7/5/06, Jim Reynolds <

Re: Tiles: Passing a bean to tiles in a definition file

2006-07-06 Thread Monkeyden
When you say different beans, will they have different accessor methods? Even if the bean has a collection, you ultimately have to call accessor methods to build the table, save introspection. On 7/6/06, Dan Langer <[EMAIL PROTECTED]> wrote: Antonio, Thanks for the suggestion. From a design PO

Re: html:text

2006-07-06 Thread Monkeyden
Who can tell by this documentation? How can both "if any" [corresponding bean property] and [Required] both be true? Name of this input field, and the name of the corresponding bean property if value is not specified. The corresponding bean property *(if any)* must be of type String. *[Required]

Re: Using properties files other than ApplicationProperties

2006-07-11 Thread Monkeyden
Assuming you meant that you want to add errors in the Action, rather than the ActionForm, in your Action... 1. Create an empty ActionErrors object. Let's call it "errors". 2. Add messages to it as necessary (e.g. errors.add("propertyName" ,new ActionMessage("msg.key"));) 3. Then call the

Where oh where is my ActionForm?

2006-07-12 Thread Monkeyden
Tomcat 4.1 & Struts 1.2.9 Anyone seen this? I get this message when I try to access properties of my ActionForm, though the form is clearly there, since I can print the values using JSTL: No getter method for property: "hPlayer1Team1Name" of bean: " com.foo.web.action.captain.ScoreSubmitForm"

Re: Where oh where is my ActionForm?

2006-07-12 Thread Monkeyden
Thanks Wendy, that worked. I ended up replacing the "H" with "home" and "V" with "visiting", which is what they represent. I'm not sure I would have considered that, since worked. The usual... consult the JavaBeans specification for property naming conventions. :) If a property name begins

Re: Calling a struts action from Javascript

2006-07-13 Thread Monkeyden
To elaborate on Frank's reply, the name of the form comes from the name attribute of the in the struts-config, but this value is just a reference to the configuration. Within the context of the , I might even call it a misnomer. People new to struts might be better served by a "bean", "form" o

Re: [OT] Re: Struts Action + Multiple Request

2006-07-13 Thread Monkeyden
I love this part: "...you should avoid doing standard Web browsing while these settings are in effect" Why should "standard Web browsing" not be subject to the HTTP Protocol Specification? These guys are characters. I'm glad I made the right decision years ago when I chose the Java camp, and no

Re: Calling a struts action from Javascript

2006-07-13 Thread Monkeyden
Did you try ? Set the value dynamically if need be, just before you submit. document.forms['yourFormName'].hiddenInputName.value = newValue; document.forms['yourFormName'].submit(); On 7/13/06, Akshay Ahooja <[EMAIL PROTECTED]> wrote: Hmm ok that makes sense and the form submits.. The probl

Re: Calling a struts action from Javascript

2006-07-13 Thread Monkeyden
, you get it for free. I.e., Struts uses reflection to find the name of the setter methods on the bean and calls them when the form is submitted. Monkeyden also just mentioned another way. Just know that anyone can see your hidden fields with the right browser - Firefox has that feature built in -

Re: FlashScope: anyone has a better name?

2006-07-24 Thread Monkeyden
I agree with Paul (and Shale). Dialog, or even "Conversation", scope makes the most sense. It's exactly as descript as it needs to be. If you can't figure out what it means than you probably shouldn't venture out of page scope. On 7/22/06, Paul Benedict <[EMAIL PROTECTED]> wrote: Shale calls

Re: and

2006-07-24 Thread Monkeyden
Search for: JSTL and URL generation http://www.sitepoint.com/article/java-standard-tag-library/3 uses tags nested within On 7/24/06, David Haynes <[EMAIL PROTECTED]> wrote: I want to be able to generate a URL with a GET method for a scenario so that the result looks like: http://my_host.co

Re: Give me a solution

2006-07-24 Thread Monkeyden
"Give me a solution" Ha! That's rich. On 7/24/06, senthil.s <[EMAIL PROTECTED]> wrote: Hi all I have a table of records in SQL Server with UniqueID (unique ID enabled with increment of 1 starting from 1 for each record, now I have 100 records in that having Unique ID 1 - 100 now I want to

Re: input submit button, ??

2006-07-26 Thread Monkeyden
What behavior are you seeing? I believe you have to do the swap inline with , like so: onMouseOut="this.src='images/title_history.gif';" onMouseOver="this.src='images/title_leaderboard.gif';" Works in FF and IE6. On 7/26/06, A. Lotfi <[EMAIL PROTECTED]> wrote: Hi, I want to have a sbmit b

Re: [ANNOUNCE] New article: The AjaxParts Taglib from Java Web Parts: AJAX for Java Developers the Easy (yet powerful) Way!

2006-07-27 Thread Monkeyden
You may have a battle with my former co-worker, Coach Wei at Nexaweb, to lay claim to the first "Ajax-like" application. He is widely referred to as an Ajax pioneer. We were doing this in '99-2000 and he was well into it before I got involved. Our initial approach was pretty unique, however. W

Re: [ANNOUNCE] New article: The AjaxParts Taglib from Java Web Parts: AJAX for Java Developers the Easy (yet powerful) Way!

2006-07-27 Thread Monkeyden
re few among us, however, who would have realized the value of an "Internet", like Al Gore did. :) On 7/27/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: On Thu, July 27, 2006 11:59 am, Monkeyden wrote: > You may have a battle with my former co-worker, Coach Wei at Nexaweb,

Re: very urgent

2006-07-27 Thread Monkeyden
Follow Lance, he knows the way. I use JSTL whenever I can. I also use Struts-EL to give Struts a dash of JSTL's expression language flavor. On 7/27/06, Lance <[EMAIL PROTECTED]> wrote: You can also use JSTL c:out tag Using The JSTL tags means you no longer require struts-bean or struts-log

Re: dynamic key/value parameters in the request url with struts/tiles

2006-07-27 Thread Monkeyden
The TilesRequestProcessor appears to do an exact text match, to determine whether its a tile or not, so with a querystring it won't work. To get around it you could overrride that method in a subclass. On 7/27/06, prasad pondugula <[EMAIL PROTECTED]> wrote: Hello all, In struts/tiles environ

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Monkeyden
I don't mind if people/companies aren't onboard. I also have a policy not to work with them. BTW, a "strategic offshore outsourcing" company? That's the devil's work. :) On 7/28/06, Thomas Joseph <[EMAIL PROTECTED]> wrote: Hi All, I have often felt that, we need a slogan for the Open Sourc

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Monkeyden
Great marketing! This reminds me of those "...for Dummies" books. To download, like buying those books, is to submit to the idea that you are, in all likelyhood, an idiot. On 7/28/06, Larry Meadors <[EMAIL PROTECTED]> wrote: How about "Software by idiots for idiots...download here." Larry

Re: [FRIDAY][OT] Slogan for Open Source

2006-07-28 Thread Monkeyden
Larry, I didn't believe you'd be able to to improve on the first incarnation of it, but there, you've gone and done it. On 7/28/06, Larry Meadors <[EMAIL PROTECTED]> wrote: Would you prefer half-wit? Or maybe "retard", one definition of that is "A person considered to be foolish or socially i

Re: Question regarding getRequestURI()

2006-07-28 Thread Monkeyden
You have to parse it. Something like this: String requestUri = request.getRequestURI(); String resourceName = requestUri.substring(requestUri.lastIndexOf("/"), requestURI.length-1); On 7/28/06, mosho <[EMAIL PROTECTED]> wrote: Hi All, I am using struts 1.1 I need to get the process.do fro

Re: Question regarding getRequestURI()

2006-07-28 Thread Monkeyden
Actually, the mapping parameter may give you something. Try mapping.getPath () On 7/28/06, Monkeyden <[EMAIL PROTECTED]> wrote: You have to parse it. Something like this: String requestUri = request.getRequestURI(); String resourceName = requestUri.substring(requestUri.lastI

Re: Question regarding getRequestURI()

2006-07-31 Thread Monkeyden
the "/" character. I believe it's File.getName() - it returns everything after the last "/" character. Of course, you do have to construct a new File object so I've no idea if it's more or less efficient than what Monkeyden suggested. -Adam -Original Mes

Re: two form one jsp

2006-07-31 Thread Monkeyden
Your example WILL always point to the first form, since you use the index of 0 (zero). You need to use 1 to point to the second form. This works fine for me: function tellMe(){ alert("Form 1: " + document.forms[0].form2Text.value); alert("Form 2: " + document.forms[1].form2Text.value)

Re: two form one jsp

2006-08-01 Thread Monkeyden
Hari, Form name won't work, or won't be reliable, since two forms have the same name (via Struts). You MUST use the index. Caroline (or Jen?) All I can say is "Wow!" document.getElementById() only works in IE, not FF. Your response is an arduous elaboration of my document.forms[0] and document

Re: html:optionsCollection problem

2006-08-01 Thread Monkeyden
Looks like it may not be wrapped in a tag in your JSP. You probably also want a field named "toSelect", with accessor and mutators in your form bean, to hold the selected value. On 8/1/06, Francisco Exposito Aguilera <[EMAIL PROTECTED]> wrote: Hi, I have a Bean: package project.struts.Gener

Re: two form one jsp

2006-08-01 Thread Monkeyden
Can we please stop suggesting use of the form name? It.will.not.work. If both forms have the same name, it makes a reference to document.forms['foo'] an array and not a reference to the form. Of course you *could *do this: function tellMe(){ alert("Form 1: " + *document.forms['foo'][0].

Re: Sturts form validation

2006-08-02 Thread Monkeyden
If I understand you correctly If you have references to the "subforms" within an "outter form", just call each subform's validate() method in the outter forms validate() method. Couldn't tell you how you'll get Struts to auto-populate those subforms though. MainActionForm{ validate(...){ myS

Re: Find out the old url after struts forwarding

2006-08-02 Thread Monkeyden
I suppose you could get the http referer but it would have nothing to do with what you see in the browser address bar. req.getHeader("Referer"); On 8/2/06, Wbyeats <[EMAIL PROTECTED]> wrote: Hi guys, I have this problem: I'm using websphere 4, wth JDK 1.3 and J2EE 1.2, and struts. I have s

Re: Find out the old url after struts forwarding

2006-08-02 Thread Monkeyden
mapping.getPath() On 8/2/06, Wbyeats <[EMAIL PROTECTED]> wrote: > I suppose you could get the http referer but it would have nothing to do > with what you see in the browser address bar. > req.getHeader("Referer"); Nope, that's not what I want. I need this as I want to make a link to reload p

Re: Find out the old url after struts forwarding

2006-08-02 Thread Monkeyden
Pass it to the JSP from the action in the request object? action form? session? Pick your poison. request.setAttribute("URL", mapping.getPath() + "?language=swahili"); On 8/2/06, Wbyeats <[EMAIL PROTECTED]> wrote: But how would I use a mapping.getPath() inside a jsp? mario -- View this

Re: Accepting multiple date masks with the "date" validator

2006-08-03 Thread Monkeyden
HAHA! I would have done the same thing. I don't want things like that (regexp) creeping around my application, even if I do only have to touch it once. Ech! On 8/3/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: Adam Gordon wrote: > IIOC, the only way you can do this with the stock validator

Re: Unlock Your Mind's Hidden Power, Today...

2006-08-06 Thread Monkeyden
Human Data Transfer? Is that like transferring Ted's Struts knowledge to my brain or is like transferring Ted himself, as data? If it's either one of those, I have to click on it. On 8/6/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Yes, I too can practically feel the presence of Xenu touc

Re: Browser History by HTTP-REFERER

2006-08-07 Thread Monkeyden
I don't include any tiles in my application(s). It's the layout JSP page that includes the screen specific HTML and handles the common code (META, HTML, BODY, menus, etc.). Implemented this way, it's not nearly as easy to inadvertently avoid the META tags as you would have us believe. That said

Re: Browser History by HTTP-REFERER

2006-08-07 Thread Monkeyden
ges requiring a referer and define another layout for pages which don't. There are many ways to do this, each with it's own measure of artistic license. I don't think there's a silver bullet however. On 8/7/06, Monkeyden <[EMAIL PROTECTED]> wrote: I don't include an

Re: [OT] Re: Unlock Your Mind's Hidden Power, Today...

2006-08-08 Thread Monkeyden
Now that gave me a chuckle. On 8/8/06, Christopher Goldman <[EMAIL PROTECTED]> wrote: On Mon, 2006-08-07 at 01:12 -0400, Monkeyden wrote: > or is like transferring Ted himself, as data? Only if he implements the Serializable or Externalizable interfaces. Chris -- Christopher D

Re: Stream ended unexpectedly

2006-08-08 Thread Monkeyden
How big is the file? On 8/8/06, Jon Koberstein <[EMAIL PROTECTED]> wrote: We are using struts to develop an online classifieds site. While uploading pictures for the classified a few clients get the error message given below. We spoke briefly with one of the clients that is having this problem

Re: Stream ended unexpectedly

2006-08-08 Thread Monkeyden
This is where I was going with it: Search for maxFileSize. Default is 250M, which sounds big. http://struts.apache.org/1.2.x/userGuide/configuration.html#struts-config On 8/8/06, Monkeyden <[EMAIL PROTECTED]> wrote: How big is the file? On 8/8/06, Jon Koberstein <[EMAIL PROTECTE

Re: click first table rows, the rows of second table change ??

2006-08-11 Thread Monkeyden
If I understand you correctly, here is how it might look: YourActionForm Collection table1Data (retrieved from persistence on the first request of the Action) Collection table2Data (empty on first request) YourAction Loads table1 data Expects a table1RowNum parameter (from clicking o

Re: click first table rows, the rows of second table change ??

2006-08-11 Thread Monkeyden
ROTECTED]> wrote: Thank you Monkeyden, 1) That exactly what I want, but I did not understand : > Expects a table1RowNum parameter (from clicking on one of the rows > in table1 I have never used AJAX, is there any example on how to do it with ajax ? thank you, Monkeyden <[EMAIL PRO

Re: Validator

2006-08-11 Thread Monkeyden
Who cares where they're called or what their values are? Just add them to the application resources file. On 8/11/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, I would like to change the key name of errors.header, errors.footer, errors.suffix ... but I don't see where they are called.

Re: JavaScript validation errors

2006-08-11 Thread Monkeyden
Are you returning false when there is an error in the validation? if(userName.trim().length() == 0){ alert("Pathetic, technologically inept users must enter a user name."); return false; } On 8/11/06, O'Shea, Sean wrote: Hi Adam, I changed my login form to look like this:

Re: How to convert absolute URL to context-relative URL?

2006-08-14 Thread Monkeyden
You may want to look at ActionMapping.getPath(). "Return context-relative path of the submitted request, starting with a slash ("/") character, and omitting any filename extension if extension mapping is being used." On 8/14/06, Michael Cheung <[EMAIL PROTECTED]> wrote: Hi, all; I get reques

Re: Struts encoding problem ?

2006-08-14 Thread Monkeyden
First, what does "send the Euro character via struts" mean? Second, are you using the entity or numeric references (€ and € respectively)? Do you really need to "send the character" itself? It may be best to use the character itself just for presentation purposes and pass some string that indica

Re: Struts encoding problem ?

2006-08-14 Thread Monkeyden
This avoids the real question. I would have to hear a pretty good case as to why the character itself needs to be sent to begin with. On 8/14/06, Chetan Pandey <[EMAIL PROTECTED]> wrote: Try sending its Unicode Equivalent. Available from www.unicode.org. CHetan -Original Message- Fro

Re: Re[2]: How to convert absolute URL to context-relative URL?

2006-08-15 Thread Monkeyden
Cheung <[EMAIL PROTECTED]> wrote: Hi,Monkeyden; Thanks for your reply. Now I can get the context-relative path, but the extension is also omitted. How to get the path with extension? Actually, I want to do this. URL: /context-name/appname.do?param1=1¶m2=2 I want to get /appname.do?param1=1¶m2=

Re: Re[2]: How to convert absolute URL to context-relative URL?

2006-08-15 Thread Monkeyden
...by the way, they are on the HttpServletRequest object. On 8/15/06, Monkeyden <[EMAIL PROTECTED]> wrote: Then it will probably look something like the following: getRequestURI() + "?" + getQueryString() If not, print out all of the methods below and see what they give

Re: Congratulations Frank

2006-08-15 Thread Monkeyden
Either that or get the best price. Not my publisher of choice but I'm always willing to support a colleague. The only place to buy tech books http://www.bookpool.com/ss?qs=1-59059-695-1&sourceid=mozilla-search&x=1-59059-695-1&y=1-59059-695-1 On 8/15/06, Frank W. Zammetti <[EMAIL PROTECTED]> w

Re: Congratulations Frank

2006-08-15 Thread Monkeyden
1590596951 On 8/15/06, Martin Gainty <[EMAIL PROTECTED]> wrote: 404 on all of the addresses Ive seen thu far..can you send me the ISBN? (Congratulations on publishing your book) Martin -- * This email message and any files tra

Re: Reload Message resources i.e Resource Bundle

2006-08-17 Thread Monkeyden
I usually just touch the web.xml, to redeploy the app, but this isn't always feasible in production. On 8/17/06, Harsh Gupta <[EMAIL PROTECTED]> wrote: How to Reload Message resources i.e Resource Bundles in struts 1.1??? ___ Harsh Gupta Software Engin

Re: Page contentType

2006-08-17 Thread Monkeyden
Sure, flatter us so we don't notice you're breaking a rule. Is it a straight JSP application or do you have a controller? On 8/17/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, Excuse-me, I know it is not the right forum to ask this question but there are the best developper registered

Re: RE : Page contentType

2006-08-17 Thread Monkeyden
, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Thanks, my application is struts based. -Message d'origine- De: Monkeyden [mailto:[EMAIL PROTECTED] Envoyé: jeudi 17 août 2006 17:08 À: Struts Users Mailing List Objet: Re: Page contentType Sure, flatter us so we don't notice

Re: RE: Struts2

2006-08-17 Thread Monkeyden
you need a path attribute for the action mapping. On 8/17/06, Peter Steil <[EMAIL PROTECTED]> wrote: The exact same thing happens. I give you some more information. You know how my web.xml looks like. Here are the other files: struts.xml: http://struts.apache.org/dtds/struts-2.

Re: RE: Struts2

2006-08-17 Thread Monkeyden
cher.java:215) Also, Tomcat logs the following: SEVERE: Attribute "path" must be declared for element type "action". at (null:9: 72) Original-Nachricht Datum: Thu, 17 Aug 2006 15:47:54 -0400 Von: Monkeyden <[EMAIL PROTECTED]> An: "Struts Users Mailin

[Semi-OT] Build versioning strategies

2006-08-18 Thread Monkeyden
It is Friday, after all. I'm looking to simplify the QA handoff and defect tracking, so I wondered what the other readers have employed for build version strategies. We're currently using Ant, but may move to Maven down the road. I have heard (perhaps on this list) of people using Ant to read a

Re: When my JSP calls the action class SErvlet Exception is thrown.

2006-08-23 Thread Monkeyden
You should really look at the Tomcat logs, as the message mentions. Perhaps if you posted the root cause of the exception, and more context, someone could help you. That said, what gives you the impression that it's the Action and not something else, like the ActionForm? Did it manifest itself

Re: request processor

2006-08-23 Thread Monkeyden
Classic! What is the purpose of a lawn mower? What about a hair brush? A screwdriver? Noun + [implied] Verb = clearly stated purpose On 8/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Is this a bad Karnak routine? Johnny: "To parse requests" Ed McMahon: "To parse requests" -tears en

  1   2   >