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

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: [FRIDAY/OT] Access Log file reporting tools

2006-12-01 Thread Monkeyden
te: On 12/1/06, Monkeyden <[EMAIL PROTECTED]> wrote: > Does anyone know of an OSS log file reporting tool? We're using a very old > version of WebTrends, which usually works fine (but sometimes not). MGMT > doesn't want to "pony up" so, well, you know. Was hop

[FRIDAY/OT] Access Log file reporting tools

2006-12-01 Thread Monkeyden
Does anyone know of an OSS log file reporting tool? We're using a very old version of WebTrends, which usually works fine (but sometimes not). MGMT doesn't want to "pony up" so, well, you know. Was hoping that Apache had something.

Re: object[] to string[]

2006-11-10 Thread Monkeyden
That wasn't very pedantic of you to mispell it. :) On 11/10/06, Ed Griebel <[EMAIL PROTECTED]> wrote: On 11/10/06, Martin Gainty <[EMAIL PROTECTED]> wrote: > I dont know 'pendantic' so I would suggest System.arrayCopy as in > > (Sorry for being pedantic...) LOL, TGI Friday! :-) -

Re: Sort of OT

2006-09-24 Thread Monkeyden
Nevermind. As it turns out, it works with a nested tag, but not inline. I'm pretty sure this has something to do with the way struts exposes variables vs. the way JSTL does it. On 9/24/06, Monkeyden <[EMAIL PROTECTED]> wrote: Using Struts 1.2.9, Tomcat 4, tag as such:

Sort of OT

2006-09-24 Thread Monkeyden
Using Struts 1.2.9, Tomcat 4, tag as such: Getting "In , value attribute can not be parsed into java.lang.Number: "${result.avgPoints}" "avgPoints" is a Float in the object. Any ideas?

Re: exception when it reach tiles:insert tag ????

2006-09-19 Thread Monkeyden
Was it such a leap to consider posting the tile-def? Does '/coeuslite/mit/irb/common/cwIRBHeader.jsp' exist? Assuming you have a tag named "header" in your main tile-def, it appears as though you're trying to pass in the name of a file that does not exist or is otherwise inaccessible. On 9/19/

Re: Dynamically Generated html:Text

2006-09-18 Thread Monkeyden
It's not finding the ActionForm. It looks like you need a slash before "process" in the form tag, provided that you indeed have an action mapping with path "/process" in your Struts config file. On 9/18/06, Aftab Vhora <[EMAIL PROTECTED]> wrote: Hi, I m dynamically generating the html:text ,

Re: calling method of a bean from JSP

2006-09-13 Thread Monkeyden
or On 9/12/06, Lixin Chu <[EMAIL PROTECTED]> wrote: Hi, would like to check if there is existing tag available to allow method invocation from JSP directly, something similar to this : "Call JavaBean methods from JSP 2.0 pages " http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-callt

Re: why an arbitrary html page can not be displayed in struts

2006-09-08 Thread Monkeyden
yeah, I overlooked those pesky slashes. who needs 'em? :) On 9/7/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: But again, the URL you show here is NOT valid... if your just making a typo, then OK, but http:localhost is a malformed URL... it needs to be http://localhost (the rest after that

Re: why an arbitrary html page can not be displayed in struts

2006-09-08 Thread Monkeyden
Then the answer depends on how you have your app configured. Post the and snippets, from web.xml. On 9/8/06, liner_zhao <[EMAIL PROTECTED]> wrote: no typing error, my context path is C:tomcat/struts_project/x.html, the file is stored in the path http:localhost:8080/struts_project/x.html,

Re: How to validate an ip address

2006-09-08 Thread Monkeyden
As a minimum requirement for this board, and all others, the original poster should state his/her terms. Personally, I'm here to answer (and occasionally ask) questions, not to extract questions. On 9/8/06, David Friedman <[EMAIL PROTECTED]> wrote: > BTW, does anyone know a regular expression

Re: How to validate an ip address

2006-09-08 Thread Monkeyden
But to validate it for what? Syntax? Validity? Connectivity? Network legality? On 9/8/06, Guido García Bernardo <[EMAIL PROTECTED]> wrote: BTW, does anyone know a regular expression to validate an IP address? I think this is what Pankaj is looking for, isn't it ? Thank you. Pankaj Gupta

Re: How to validate an ip address

2006-09-08 Thread Monkeyden
Even if this was on topic, no one would know what you're talking about. In any case, read the spec. http://www.w3.org/Protocols/rfc2616/rfc2616.html On 9/8/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote: hi, please tell me how can i validate an ip address. Validation needs to eb both client side

Re: Security for the Struts web application

2006-09-05 Thread Monkeyden
chime in soon with other ways of securing webapps. If not you can check the Struts Wiki Security page for at least 4 more (some are OLD like SecurityFilter) http://wiki.apache.org/struts/ApplicationSecurity?highlight=%28security%29 Regards, David -Original Message- From: Monkeyden [mailto:[

Re: How to avoid the same user logging several times at the same time?

2006-09-05 Thread Monkeyden
Data Structure - Initialize a static map somewhere (perhaps the Servlet). Verification - For every login, check the map to see if the supplied credentials exist. Clean up - Implement HttpSessionBindingListener to remove the credentials from the map when the Session expires. On 9/5/06, Pedro Del

Re: Security for the Struts web application

2006-09-05 Thread Monkeyden
You could override the processPreprocess or processRoles method of RequestProcessor. If you only need to check for a session, more likely the former. If you have more fine-grained security (like role-based screens) then you could do it in the latter. On 9/5/06, SrinivasaReddy <[EMAIL PROTECTED

Re: tiles with struts 1.2.9

2006-09-05 Thread Monkeyden
Add an init-param to the ActionServlet Add the plug-in the struts-config.xml Add the taglib directive to the JSP pages using tiles. http://struts.apache.org/1.x/struts-tiles/installation.html On 9/5/06, Darren Hall <[EMAIL PROTECTED]> wrote: Ignore that last message. I see the tiles package i

Re: Workflow implementation with Struts

2006-08-31 Thread Monkeyden
just check the WF_DEPT_TRANSFER table. Again, not a DBA, but that's my deranged perspective. Phew! I'm going home. On 8/31/06, Joel Espinosa <[EMAIL PROTECTED]> wrote: Thanks for your quick responses. I agree with you Monkeyden, there are differences between two definitions webflow a

Re: java.lang.OutOfMemoryError with ant javac task

2006-08-31 Thread Monkeyden
I asked this same question on the "Ryan Seacrest Fan Club" list. Can you believe they couldn't answer it either?! On 8/31/06, temp temp <[EMAIL PROTECTED]> wrote: I using ant build file to compile ".java" files .I get java.lang.OutOfMemoryError. Here is the build file

Re: Workflow implementation with Struts

2006-08-31 Thread Monkeyden
Ah, now I see. What you're looking for is a way to persist incomplete webflows. Well, in a *typical* webflow, you have 1 screen per table, where each screen is a new record/relationship. Each subsequent screen might use the previous screen's primary key (or composite, if necessary for the relat

Re: Workflow implementation with Struts

2006-08-31 Thread Monkeyden
Understanding that different companies interpret them in different ways, I have always thought of webflow and workflow in the following terms: webflow - the path by which a user travels through a WEB application to complete a unit of work. An example would be a series of screens used by a manage

Re: yet another struts eulogy?

2006-08-31 Thread Monkeyden
If you're looking for someone to tell you which is the best framework, you won't find the answer here, because there isn't one. You have to determine which framework best suits your preferences, your organization, the current development resources/assets and most of all, the requirements. If you

Re: Creating new Session without invalidating the old one

2006-08-29 Thread Monkeyden
It's not that he wants to save everything when the session is invalidated. He wants to have two HttpSession objects, representing the same user. On 8/29/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: On 8/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hello! > > Is it possible to crea

Re: Creating new Session without invalidating the old one

2006-08-29 Thread Monkeyden
I'm dying to know why you could possibly want 2 sessions. On 8/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello! Is it possible to create a new session for an already logged in person (which has an actual session) without invalidating the existing session? It's necessary for me to h

Re: Tiles & JSP question

2006-08-25 Thread Monkeyden
Yes, Adam, you MUST be a little more cordial. If there's anyone you don't want to off, it's yourself. On 8/25/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: Adam Gordon wrote: > Duh > > I was thinking to myself how rude a reply this was... then I noticed the sender was the same. Nice

Re: about overriding the excute method

2006-08-23 Thread Monkeyden
"Object Oriented Programming" I would suggest investing in a copy of Java POOP [ http://stevenf.com/mt/gfx/javapoop.jpg]? Of course we know it's an acronym for "Principles of Object Oriented Programming", but good times nonetheless. On 8/23/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote: the o

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

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

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

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

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

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

  1   2   >