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

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 Struts 1.2.9 on Tomcat

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

2006-12-01 Thread Monkeyden
/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 hoping that Apache had something. What sort of log files

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

Sort of OT

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

Re: Sort of OT

2006-09-24 Thread Monkeyden
, Monkeyden [EMAIL PROTECTED] wrote: Using Struts 1.2.9, Tomcat 4, fmt-rt:number tag as such: fmt-rt:formatNumber value=${result.avgPoints} pattern=#.##/ Getting In formatNumber, 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

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 , i

Re: calling method of a bean from JSP

2006-09-13 Thread Monkeyden
c:out value=${beanName.methodName}/ or c:set var=myVar value=${beanName.methodName}/ 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

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

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 servlet and servlet-mapping 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

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

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

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
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:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 12:10 PM To: Struts Users Mailing

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

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

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

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 property

Re: Workflow implementation with Struts

2006-08-31 Thread Monkeyden
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 and workflow, I'm planing to code a webflow. Monkeyden your aproach is very close to what I need but... certainly I

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

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 create a new

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 tiles:getAsString ... I was thinking to myself how rude a reply this was... then I noticed the sender

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

[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

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

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 you're breaking

Re: RE: Struts2

2006-08-17 Thread Monkeyden
you need a path attribute for the action mapping. action path=/helloWorld name=helloWorld class=HelloWorld 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:

Re: RE: Struts2

2006-08-17 Thread Monkeyden
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 Mailing List user@struts.apache.org Betreff: Re: RE: Struts2 you

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

2006-08-15 Thread Monkeyden
] 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=1param2=2 I want to get /appname.do?param1=1param2=2 and use this string

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 you. I've always hated

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-1sourceid=mozilla-searchx=1-59059-695-1y=1-59059-695-1 On 8/15/06, Frank W. Zammetti [EMAIL PROTECTED]

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

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 requestURL

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 (euro; and #8364; 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

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-

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

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

2006-08-11 Thread Monkeyden
: 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 PROTECTED] wrote: If I understand

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 Sean.O'[EMAIL PROTECTED] wrote: Hi Adam, I changed my login form to look

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. Goldman [EMAIL

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 PROTECTED] wrote

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

Re: Browser History by HTTP-REFERER

2006-08-07 Thread Monkeyden
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 any tiles in my application(s). It's the layout

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

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! shivers On 8/3/06, Scott Van Wart [EMAIL PROTECTED] wrote: Adam Gordon wrote: IIOC, the only way you can do this with the stock

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(...){

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 set

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 page

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

Re: html:optionsCollection problem

2006-08-01 Thread Monkeyden
Looks like it may not be wrapped in a html:form 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

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: html head /head script language=JavaScript type=text/javascript

Re: Question regarding getRequestURI()

2006-07-31 Thread Monkeyden
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 Message- From: Monkeyden [mailto:[EMAIL PROTECTED] Sent: Friday, 28

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: html head /head script language=JavaScript type=text/javascript function tellMe(){ alert(Form 1: +

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

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 On

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

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 from

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

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

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
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, to lay claim to the first Ajax-like application. He is widely

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 c:out value=${formName.propertyName} / Using The JSTL tags means you no

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

Re: input submit button, ??

2006-07-26 Thread Monkeyden
What behavior are you seeing? I believe you have to do the swap inline with input type=image, 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

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: select multiple=true and html:link

2006-07-24 Thread Monkeyden
Search for: JSTL and URL generation http://www.sitepoint.com/article/java-standard-tag-library/3 uses c:set/ tags nested within c:url/c:url On 7/24/06, David Haynes [EMAIL PROTECTED] wrote: I want to be able to generate a URL with a GET method for a select multiple=true scenario so that the

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: 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 action-mapping in the struts-config, but this value is just a reference to the form-bean configuration. Within the context of the action-mapping, I might even call it a misnomer. People new to struts might

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 not

Re: Calling a struts action from Javascript

2006-07-13 Thread Monkeyden
Did you try html:hidden/? 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..

Re: Calling a struts action from Javascript

2006-07-13 Thread Monkeyden
. 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 - so they're

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 Here

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 c:out worked. The usual... consult the JavaBeans specification for property naming conventions. :) If a property name begins

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 base

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

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: 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: Validation does not verify the hidden controls?

2006-06-29 Thread Monkeyden
Is the content of each tab within a div 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

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. plug-in className=org.apache.struts.tiles.TilesPlugin set-property

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

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

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

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 work

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

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 user@struts.apache.org Subject: Re

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

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

Re: Stopping Double Submits via mutex

2006-06-21 Thread Monkeyden
: 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 a single server, do you want to deal with it 2

Re: Stopping Double Submits via mutex

2006-06-21 Thread Monkeyden
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 applications than there are med-large. Of course

Re: Cancel button sets the form value

2006-06-20 Thread Monkeyden
, 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 have implemented a separate abstract doCancel method in my

  1   2   >