Tree Component

2008-05-05 Thread Mississippi John Hurt
Anyone know of a Tree component that can be used where the web framework is not Struts nor JSF? We aren't using either framework but would like to use a tree component. Any suggestions? Thanks.

Use Same JSP Page For Several Modes (View, Edit, Approve, Create)

2008-11-18 Thread Mississippi John Hurt
Does anyone have sample JSP with a clean, easy way to utilize the same JSP page for multiple views, maybe even by users with different roles? Is there any best practice? I wonder if anyone has found a way to do it with as little hardcoding as possible, and also being able to handle multiple modes,

Struts Validator, multiple checks on single property

2006-06-28 Thread Mississippi John Hurt
Hi, How can I use the validator plugin to validate a property with a compound rule such as the property must be both 1) 9 digits long 2) contains an uppercase letter 3) contains a symbol I know how to do each individually, but how to make it validate where all 3 have to be true for success? Thanks

Tiles 1.29 and XML definition

2006-06-29 Thread Mississippi John Hurt
Hi, Now that I switched to Tiles from pure jsp I get 404 trying to access page. Before I had an login.jsp. Now all the layout is divided into a masterTemplate.jsp, the tileDefinitions.xml, and each subcomponent jsp's, including a loginBody.jsp. But now, how do I access my login page now directly v

Tiles not rendering body, footer when put <%@ taglib %> at top of body

2006-06-29 Thread Mississippi John Hurt
I'm trying to get Tiles working but not much luck. I have a mainlayout, header, body, footer. I got it so the header, body, footer render, but for some reason the tags dont seem to be displaying the ApplicationResources entries. So I put at the top of my body.jsp... <%@ taglib uri="http://struts

Re: Tiles not rendering body, footer when put <%@ taglib %> at top of body

2006-06-29 Thread Mississippi John Hurt
t html-taglib at the top of the body, then only the header displays, as if the body gets cutoff right when it reads these 2 taglib lines!! On 6/29/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: I'm trying to get Tiles working but not much luck. I have a mainlayout, header, bod

Re: Tiles not rendering body, footer when put <%@ taglib %> at top of body

2006-06-29 Thread Mississippi John Hurt
inBody.jsp: <%@ taglib uri="http://struts.apache.org/tags-bean"; prefix="bean" %> <%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %> ... ... Thanks for any help. On 6/29/06, David Friedman <[EMAIL PROTECTED]> wrote: Ca

Struts 1.2.x, How reference form.field if disallows form Name attribute?

2006-06-30 Thread Mississippi John Hurt
Hi, no longer allows "name" attribute. Problem is I have javascript that refers to a field on the form by the formName.fieldName. So now I get a javascript error. If I can no longer assign a name to the form, then the big question is how can I refer to a field on that form in javascript?? Help!

Re: Struts 1.2.x, How reference form.field if disallows form Name attribute?

2006-06-30 Thread Mississippi John Hurt
Thanks for the help! On 6/30/06, David Durham <[EMAIL PROTECTED]> wrote: Mississippi John Hurt wrote: > Hi, > no longer allows "name" attribute. Problem is I have javascript > that refers to a field on the form by the formName.fieldName. So now I > get a > javas

Struts forwarding to jsp Problem, Losing path to image/css/scripts resources

2006-07-09 Thread Mississippi John Hurt
Can someone help? When I access my /appname/jsp/login.jsp directly in browser its able to find my images and stylesheets (I use relative ie "../images/file.ext" paths) and everything renders fine. But once I click login, and it goes to my Action then forwards it back to a jsp (for instance "failu

Re: Struts forwarding to jsp Problem, Losing path to image/css/scripts resources

2006-07-09 Thread Mississippi John Hurt
olve this simply change the link to the image from ../images/foo.gif into images/foo.gif regards leon On 7/9/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: > Can someone help? When I access my /appname/jsp/login.jsp directly in > browser its able to find my images and st

Tiles: Why need to declare taglibs in each sub-jsp?

2006-07-10 Thread Mississippi John Hurt
I have a MainTemplate.jsp with header, body, footer in it. Weird thing is it seems that even though I put taglib declaration in my header.jsp, as in ... <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %> I still also have to put taglibs declaration in the subBody.jsp o

ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Mississippi John Hurt
Hi, I know ActionForm can be used to transfer html-form-input-fields to the Action class. But what about the other way around? Can it be used to say get a DAO object and transfer its properties to the ActionForm, which when the request is forwarded to a jsp, is readily available or populates the l

Re: ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Mississippi John Hurt
avlev <[EMAIL PROTECTED]> wrote: On 7/18/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: > Hi, > I know ActionForm can be used to transfer html-form-input-fields to the > Action class. But what about the other way around? Can it be used to say get > a DAO object and t

Multiple Image Submit Buttons in Form?

2006-08-09 Thread Mississippi John Hurt
Hi, What's the best way to handle a page that has 3 clickable image buttons: A list of Items indexed, each row has an image button, if clicked, routes to a EditItem action. An Add Item image button, that routes to a AddItem action. An input text box, with a Search image button, that routes to a S

EventActionDispatcher, specifying event from ActionClass not JSP?

2006-08-09 Thread Mississippi John Hurt
I'm using EventActionDispatcher and it works fine dispatching to events from jsp. But I have an ActionClass that I want to forward to another ActionClass so how can I do a Struts forward so that I can specify which event on the 2nd ActionClass to invoke? I can only do a /2ndActionClass.do which w

Re: EventActionDispatcher, specifying event from ActionClass not JSP?

2006-08-10 Thread Mississippi John Hurt
It doesn't seem to pick up the eventName. It forwards to the 2nd action class alright, but somehow the EventActionDispatcher is told which event, is it via a form parameter or request attribute? Which one? On 8/10/06, kalpesh modi <[EMAIL PROTECTED]> wrote: You can do something like return ne

Re: EventActionDispatcher, specifying event from ActionClass not JSP?

2006-08-10 Thread Mississippi John Hurt
meters ie methods as 'delete', then the dispatcher could very well match the delete methodparam with the delete value of the form input field and trigger the delete() method. Isn't this an issue anybody? On 8/10/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: It doesn't

Validator Client-Side and Custom Classes

2006-08-15 Thread Mississippi John Hurt
Hi, I want to do client-side validation using a custom class I can specify in the validator.xml section. But my question is if I use a custom class, then how the heck can Struts generate the custom javascript for it in the jsp if I'm using a custom java class I wrote that exists only on the serve

Do Session Attributes get GC'ed After Session Times Out?

2006-08-19 Thread Mississippi John Hurt
Hi, Say I set some HttpSession attributes. If I set the timeout to 30 minutes, and the user leaves for lunch and never comes back for 3 days, does the session attributes get garbage collected? Or do I have to explicitly invalidate the session (ie when the user comes back say 3 days later and hits

RePopulating EditScreen with ActionForm Data

2006-08-21 Thread Mississippi John Hurt
Hi, What's the best way to do this? User finished an edit screen, formaction is populated, and info is displayed on a ReviewInfo page. User clicks "go-back-edit" goes back to the editscreen, but now data is gone. So how should I fix this? Is the best way to put hidden properties for the form on t

Problem with JSTL and Struts tag But Not with

2006-08-23 Thread Mississippi John Hurt
Why is it that when I do the below with struts tag I get an error "Unterminated text ... but when I use a regular HTML tag, its able to handle the JSTL fine? ">text ... Any ideas? I very much want to use the Struts tag and JSTL so I

Re: Problem with JSTL and Struts tag But Not with

2006-08-24 Thread Mississippi John Hurt
10.8017 On Aug 24, 2006, at 1:19 AM, Vishal Seth wrote: > Nested tags...i guess does not work.. > > -----Original Message- > From: Mississippi John Hurt [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 24, 2006 10:48 AM > To: Struts Users Mailing List > Subject: Proble

Re: Problem with JSTL and Struts tag But Not with

2006-08-24 Thread Mississippi John Hurt
Yes, thanks, I tried , with but still couldn't get it to work. Anyway I just used the Map feature of and its working fine. Thanks all. On 8/24/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 8/24/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: > Hi thanks for the help

Problem with Checkbox from Database to JSP

2006-08-26 Thread Mississippi John Hurt
I'm trying to populate a list of checkboxes, some checked, some not from the database. I followed the Husted Tip#7 but still have problem. My actionform has 2 arrays 1 for selected (selectedFormPropertyArray), 1 for all checkboxes (allFormPropertyArray) populated fine. But when I go to the jsp, i

Re: How to specify default displayed value in html:select

2006-08-31 Thread Mississippi John Hurt
Too bad something simple like this the struts tags doesn't have a nice solution for like a defaultValue property. On 6/19/06, Rick Reumann <[EMAIL PROTECTED]> wrote: Pankaj Gupta wrote: > Hi, > > Please suggest how can I specify which value(s) to be displayed as > selected by default in html:se

tag and User bypassing onclick() by pressing

2006-09-01 Thread Mississippi John Hurt
I have an tag with onClick set. So when users press button, it does something. The problem is what if user type input into a field say keywordSearch, then they press . In that case the logic in the onClick attribute is not executed. I tried to put that into an onSubmit tag, but there's no such

Re: tag and User bypassing onclick() by pressing

2006-09-01 Thread Mississippi John Hurt
The has an onsubmit but how would it know which button was pressed? On 9/1/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: I have an tag with onClick set. So when users press button, it does something. The problem is what if user type input into a field say keywordSearch, the

Can I Bypass using actionform? Cannot retrieve definition for form bean null on action...

2006-09-06 Thread Mississippi John Hurt
Is there some way to not use an actionform bean in your JSP. I get the error message... Cannot retrieve definition for form bean null on action when I do not include a "name=" in my struts config action. Thanks.

Validator and At Least 1 Checkbox Checked

2006-09-19 Thread Mississippi John Hurt
Can struts validator validate that at least one checkbox in a set is checked? I guess somehow it has to validate that a String[] array property of the form has size of 1 or more, but I dont know how.

Can general error/exception page point to a struts action?

2006-09-21 Thread Mississippi John Hurt
Can the "path" below map to a struts action? That way I can route to an errorAction that logs all the details with a unique key, then display just a simple general message with unique key to the user that they can give helpdesk if they call.

Re: FRIDAY #1 JavaBeans/Model

2006-10-06 Thread Mississippi John Hurt
I also like Ibatis better. To me, Ibatis is a better, more efficient, more flexible, practical, transparent framework that gives you more control than Hibernate. On 10/6/06, Albert L. Sapp <[EMAIL PROTECTED]> wrote: +1 Al Larry Meadors wrote: > On 10/6/06, Ivo Limmen <[EMAIL PROTECTED]> wrote

does Not handle exceptions in JSP file?

2006-10-13 Thread Mississippi John Hurt
I know setting this will handle exceptions from struts actions, but say an action forwards to a jsp, then in the jsp file you get an exception. How can you catch those exceptions? I need to use the web.xml exception handling instead of the struts tag right? Yes, No? Thanks.

How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-01 Thread Mississippi John Hurt
Help, I can make readonly by setting readonly="true" which works. has no readonly attribute, only a disabled. If I use disabled attribute, then the value of the select is no longer recognized and my form validation says its required. How can I make the disabled or readonly while keeping the va

Re: why/when to use redirect

2006-11-23 Thread Mississippi John Hurt
How could I forward via redirect option but have struts pass any request attributes or parameters to the new redirect url? I think its only possible to pass the request parameters and not the attributes right? How can I do that? Thanks. On 11/23/06, Adam Hardy <[EMAIL PROTECTED]> wrote: You

HTML Input field event with ' (quote) in name of var being set breaking javascript var assignment

2006-12-01 Thread Mississippi John Hurt
Hi, I have onclick handler which sets a form property via javascript. Problem is when the myWeirdName has a quote in the name, this breaks my javascript handling below. Can anyone help me get around this easily? Thanks. '; return true" property="takeaction" src="button.gif" >

Re: HTML Input field event with ' (quote) in name of var being set breaking javascript var assignment

2006-12-01 Thread Mississippi John Hurt
1 John, Mississippi John Hurt wrote: > '; > return > true" property="takeaction" src="button.gif" > Sorry, I didn't see that you were using . Is there a Struts tag that can help you with this? If not, you might have to do it yourself by writin

Re: HTML Input field event with ' (quote) in name of var being set breaking javascript var assignment

2006-12-01 Thread Mississippi John Hurt
e's got to be a better way. I dont want to have 2 versions of the same name (coming from the db). On 12/1/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: Actually its escaping it fine but it just doesnt work... The rendered html looks like... Can anyone spot what's wrong? Don&