Re: Newbie Lost in the Apache Jungle

2007-01-10 Thread Jason King
grails, http://grails.codehaus.org might be a better choice as it links into several standard java projects (specifically spring and hibernate) w/o you having to learn them up front. Groovy might be a better conceptual fit if you're coming from a 4gl background as well. Ted Husted wrote: You

Re: New twist on old topic? Back button issue with Token

2006-10-04 Thread Jason King
If the user has a workflow that involves cycling back, give them a link or button to cycle back with. If the users need to use the back button as a regular part of their use of the application the application is poorly designed. Chris Pratt wrote: How about basing the value of the tag on some

Re: New twist on old topic? Back button issue with Token

2006-10-04 Thread Jason King
. But not accounting for someone using the back button, that would be poor design. (*Chris*) On 10/4/06, Jason King [EMAIL PROTECTED] wrote: If the user has a workflow that involves cycling back, give them a link or button to cycle back with. If the users need to use the back button as a regular part of their use

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Jason King
Daniel Chacón Sánchez wrote: son = some :P 2006/9/25, Daniel Chacón Sánchez [EMAIL PROTECTED]: Hi all, How I can kill son objects and variables in session, without kill everything in session like with session.invalidate(). I want that some objects always be in session and when I press a

Re: Books on JSF

2006-04-19 Thread Jason King
That and JSF in Action by Kito Mann (from Manning) are the best I've read. I haven't read Jonas Jacobi's book from Apress yet, but I have bought it. Chris Loschen wrote: Hi all, I'd like to start learning more about JSF. I've had a recommendation for _Core Java Server Faces_ -- do people here

Re: I Apologize

2006-03-28 Thread Jason King
Folks, Perhaps its time to table all the I apologize, has struts reached its limits, are the rules for becoming a committer fair etc threads to bed for while. I honestly suspect most of you have reached the point where you're yelling at each other not talking to each other, so perhaps

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Jason King
If indeed this is a get like Frank described you can fake out IE by passing a parameter that changes on every call, e.g. http:/server/app/yourpage.jsp?now=%=System.currentTimeMillis()% You don't have to use the argument for anything, it just makes IE understand that it has to re-fetch the

Re: [OT off topic] Oracle Database Performace Issue

2006-02-10 Thread Jason King
Have you run an explain plan? Jonnalagadda, Sumithra wrote: Here is the query SELECT PTI.PARTY_ID AS CUSTID, PTI.CMA_CUSTOMER_NUMBER AS CUSTNUM, PTI.SOURCE_ID AS CUSTSOURCE, PTI.PARTY_CLASS_CD AS CLASS, (SELECT CMAPSV.STATUS_VALUE FROM type3 CMAPS, type4 CMAPSV WHERE

Re: [OT] Anyone else mess around with Wicket?

2006-01-20 Thread Jason King
I looked at it also. The idea seems good, but I didn't see any fancy UI like grids or treeviews. As somebody at a bigger shop the separation of concerns appeals to me, but if I have to create all the interesting components myself I think I'll do JSF instead.

Re: Record locking

2005-11-01 Thread Jason King
This isn't a struts question so much as a persistence layer question. There are several approaches you can use depending on your data and your users. For infrequently updated tables you can hope for the best and probably be safe. If you're in an EJB world the EBJ layer takes care of that (I

Re: DynaActionForm and html:hidden

2005-09-21 Thread Jason King
document.forms[0][mybean.name].value = myname ; will work [EMAIL PROTECTED] wrote: I haven't tried it, however, I would have to see if JavaScript would handle it. I am updating the hidden field using javascript, so I am not sure if it would like: script language=JavaScript

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread Jason King
gollinger wrote: form name=next action=/jsp/awp/awpoutput.jsp target=display / script language=javascript document.next.submit(); /script The problem I have is that the form tag in Struts has no name! Why? So how can I execute the java-script? Which name should I use instead? Regards

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-13 Thread Jason King
form defined for the HTML document) Personally I caution against using this convention as the caller does not properly identify the form (by name) Anyone else ? M- - Original Message - From: Jason King [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Jason King
We need to agree to disagree on the virtue/detriment of javascript in web pages. Different applications for different audiences with different purposes have different solutions. At my company we've implemented intranet apps where the users do a significant amount of heads-down data entry.

Re: AJAX: Whoa, Nellie!

2005-04-18 Thread Jason King
Woodchuck wrote: As soon as IE becomes open source we can start that. Until then, or until IE's market share drops into single digits we're forced to deal with browsers as a given. Besides, much of the visceral dislike for javascript is based on older browsers that were not at all consistend.

Re: AJAX: Whoa, Nellie!

2005-04-18 Thread Jason King
Now, you raise a good point as to how the Javascript could capitalize on the presence of the errorStyle attribute, which normally is only interpreted on page load. That is, if you did any client side validation, you'd probably like to be able to switch the style of the invalid field to

Re: AJAX: Whoa, Nellie!

2005-04-18 Thread Jason King
Frank, What do we need extra tags for? We already have hooks to call javascript functions, whether those functions run 100% client-side or interact through an xmlhttp object or even through a 1x1 pixel iframe should be totally unknown to the individual input elements. Frank W. Zammetti wrote:

Re: AJAX: Whoa, Nellie!

2005-04-18 Thread Jason King
Frank W. Zammetti wrote: You lost me Jason... what extra tags are you referring to? My proposal specifically didn't require any new tags, only additions to the existing ones. You previously said: why not just modify the existing Struts tags to have some at least minimal AJAX functionality?

Re: Pressing enter in a form

2005-03-30 Thread Jason King
Put the submit button first is the simplest most-straightforward answer.. If having cancel appear on the page first is a requirement that can't be worked around, put both buttons in divs and use css to position the divs so the cancel-div appears first. The click the first button looks through

Re: html: tag four buttons, one action problem

2005-03-23 Thread Jason King
Another thing you could do is use a js onclick handler to change the form element's action. input type=submit onclick=return edit_onclick(this) // I'm better at the html/js end so you'll have to figure out how to html:submit this. function edit_onclick( oBtn ) { var frm = oBtn.form ; //

Re: html: tag four buttons, one action problem

2005-03-23 Thread Jason King
; } Folashade Adeyosoye wrote: I think with this, you would have multiple JS functions... -Original Message- From: Jason King [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 23, 2005 4:25 PM To: Struts Users Mailing List Subject: Re: html: tag four buttons, one action problem Another

Re: ActionForm problem

2005-03-17 Thread Jason King
You want to validate your input anyway. If user puts in script tags then ERASE his input after the validation. Bare ${} is only dangerous if the items being evaluated are unsafe. For instance your bean.isIdiot is safe since you control bean. Of course if you have a big team requiring the use

Re: OT: JDeveloper trouble

2005-03-01 Thread Jason King
Save your directories under mywork, delete this install of JDev, reinstall, put your projects back under mywork. Slattery, Tim - BLS wrote: Last night, my (WinXP) computer crashed as I was shutting down JDeveloper. Today, JDeveloper won't start. I get the splash screen, and just a couple of bars

Re: OT: JDeveloper trouble

2005-03-01 Thread Jason King
In a normal JDev setup all your projects are under the $JDEV_HOME\jdev\mywork directory, with each application under a different subdirectory. If your applications *.jws files aren't under the $JDEV_HOME tree then you can just delete it and re-install. If your *.jws files are under

Re: AW: Multi-select file chooser

2005-02-28 Thread Jason King
Haven't tried this lately but there used to be security restrictions about reading the filename in input type=file elements or writing the filename. Frank W. Zammetti wrote: Ah, didn't see this until I posted that form code :) This is what I was talking about with the better ways to present the

Re: OT: multiple column update statement using subqueries

2004-12-08 Thread Jason King
I can't guarantee this is ANSI, but I know it works in Oracle. UPDATE tableA SET (a,b,c) = ( select a,b,c FROM tableB where tableB.key = tableA.key ) Just make sure the select returns the same number of columns as in the set and that the select only returns one row per updated table row.

Re: Performance issues

2004-11-28 Thread Jason King
It caches by default. To test this, put some arbitrary obscure string like I am not a number, I am a free man inside your js file, clear the browser cache, load the page once and you should find this in the cache once. You'll have to use a find utility that searches on strings. Then load

Re: javascript question

2004-11-03 Thread Jason King
document.formname[parent.nestedname] will reference an element in the form formname which has a period in it's name. Michael Rush wrote: I've got a form that's using nested forms, with the following type of layout.. [radio] option 1 [text] value 1 [text] value 2 [radio] option 2

Re: non-standard attributes in taglib

2004-10-19 Thread Jason King
+1 on that solution. It also serves as a work-around in the (unlikely) event that some property gets added to the standard. Kichline, Don (EM, PTL) wrote: Searching on the new groups, that is what I have been hearing... Unfortunately that is not going to fly in this case. What I am

Re: Modifying an object within the form bean?

2004-10-06 Thread Jason King
Ok, I misunderstood the problem the first time, my bad. Try opener.document.formBean[moderator.selected_ndx] The arrays are also hashtables. Mike Elliott wrote: On Wed, 06 Oct 2004 14:38:36 -0500, Jason King [EMAIL PROTECTED] wrote: This is a javascript problem. The DOM-compliant way

Re: Why does Resin run on port 8080?

2004-09-28 Thread Jason King
Joe, Please remember this is all volunteer effort. None of us are your paid support staff so its not your perogative to bad-mouth us. That having been said, the reason why appservers default to some high port numbers is because in a unix or unix-like (linux,*BSD) environment only the root user

Re: How to implement Custom webapp classloader? [OT]

2004-09-13 Thread Jason King
What compression do you use to stuff a laywer into a JAR? :) I've always thought the Dahmer method was best, but there's some things even HE wouldn't eat! Greg (Forgive the Friday-style comment on a Monday...) - To

Re: Trying to come up with Mapping-Dispatch-Combo Action?

2004-09-09 Thread Jason King
Rick, I'm new to struts but the environment I'm coming from Oracle Designer Web PL/SQL generator has a way to deal with this sort of thing that I'm likely to be using in Struts. Every form has a hidden field in it named z_action and the buttons all have some js in the onclick that populates

Re: Trying to come up with Mapping-Dispatch-Combo Action?

2004-09-09 Thread Jason King
(0,a.lastIndexOf(.)) + else.do ; // replace something.do with somethingelse.do Rick Reumann wrote: Jason King said the following on 9/9/2004 2:42 PM: I'm new to struts but the environment I'm coming from Oracle Designer Web PL/SQL generator has a way to deal with this sort of thing that I'm

Re: ActionForm data type X BeanUtils - using Dates

2004-09-08 Thread Jason King
Could you point us at some code that does this? Do you customize in the action, the form or the DTO? Bryce Fischer wrote: You can register a different converter that BeanUtils uses to copy from a string to a date. Write your own converter, using the date format you need, then use

Re: Hibernate VS ibatis, which is better?

2004-09-01 Thread Jason King
This is very much a YMMV type question. If your background/experience/expertise is in database then ibatis (where the sql is all clearly deliniated) is a fine choice. If you're a java person, then having a wrapper like Hibernate to shield you from the SQL may be more to your liking. Ask

Re: struts webapp failure

2004-08-30 Thread Jason King
If you can't find the *.class file then likely its not compiling. Take one of your static pages and rename it from .html to .jsp and see what happens. Chuck Chopp wrote: I was able to find an automatically generated JSP file that seems to correspond to an action name. The action name is

Re: Back Button

2004-08-26 Thread Jason King
Comment all those out, and your problem should go away. Jim Barrows wrote: -Original Message- From: struts lover [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 12:47 PM To: Struts Users Mailing List Subject: RE: Back Button Hi, I have the following settings in my jsp.

Re: Deploying Struts ???

2004-08-20 Thread Jason King
The container can manage multiple versions of the classes. Each one is living in its own environment. Lykins Don H Contr AFSAC/ITS wrote: What are you referring to as a classpath loader?? Won't this cause conflicts if each project has their own WAR with struts inside? What happens if they use

Re: [OT]1,2,3,4 I declare a pun war!

2004-08-18 Thread Jason King
I cheddar at the thought of a pun war. Sometimes it's a real feta to get to work though That's cheesy. Hey, as long is it doesn't make you blue, or throw bricks...

Re: Problems on disabling inputs

2004-08-15 Thread Jason King
This is an HTML-HTTP thing not a Struts thing. Disabled input elements aren't included in the get/post, just like unchecked check boxes. Mike Deegan wrote: Not sure the exact error you are getting, but I had a similar and going from memory ... when using the html:text tag with disable=true for

Re: Check boxes and struts

2004-08-06 Thread Jason King
Jignesh Kapadia wrote: hi , We are designing an application with strtus 1.1. In one of the screen we have to display multiple records of a list with checkboxes. Then user will select some records from that list and hit submit button and on next screen I should see only those records of list

html: and fmt: tags

2004-08-03 Thread Jason King
I'm using jstl tags whereever I can. I want to i18n my buttons, and so I tried this: %@ taglib uri=/WEB-INF/lib/struts-html-el.tld prefix=html % html:form action=/details !-- other fields-- html:submit value=${fmt:message key=todo.editSaveButton bundle=${loc}/}/ /html:form I get: