Re: Problems using JSTL with struts

2005-03-23 Thread Tom Ziemer
Hi again! Maybe you can try to deploy the (jstl) standard-examples.war from the jakarta project. If that doesn't work, your appserver is causing this problem. If these examples work, compare your web.xml to the one from the standard-examples.war. I am quite sure it's just a little mistake in y

RE: Problems using JSTL with struts

2005-03-23 Thread Kalra, Ashwani
IMO your EL is not getting evaluated. You can go through this link for more info http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro13.html Table 12-5 EL Evaluation Settings for JSP Pages JSP Configuration Page Directive isELIgnored EL Encountered Unspecified Unspecified Evaluated if 2

Re: The F5 problem - Best Practice (ActionHierarchy)

2005-03-23 Thread Bernd Schiffer
Hi Leon. I did what you mentioned as the second approach and used a token (precisely: locking mechanism, because in my case it's not "delete" but "edit") to avoid F5 problems. But I'm not happy with that, because, you already said that, the user sees "edit.do" in the URL and not "view.do", but

Struts tag to get Distinct values in vector

2005-03-23 Thread damerla.rojarani
Hi All, I am printing all the values of the vector using logic:iterate. I want to get only the distinct values from this vector. Is there any way to do this using tag properties. Any help is greatly appreciated. Thanks in Advance, Regards, Roja. Confidentiality Notice The information cont

Re: multi-page validation form

2005-03-23 Thread Jack Perrett
Yes, that's right. I mean that the form is passing the validation - which can only mean that the validation is ignoring the validation rules associated with the pages, otherwise it would fail. The action does have validate set to true. And if I remove all references to the page then all the validat

[HELP] How could I catch and process Errors in Struts + iBatis + DAO?

2005-03-23 Thread Pham Anh Tuan
Hi, I don't know how to catch and process errors in Struts + iBatis + DAO. Anyone here can help me, plz :( thank for ur reading. Tuan

Re: [HELP] How could I catch and process Errors in Struts + iBatis + DAO?

2005-03-23 Thread Yuniar Setiawan
There is a good example at http://www.reumann.net/struts/ibatisLesson1.do about this. download the sample war and look inside. cheers On Wed, 23 Mar 2005 17:31:53 +0700, Pham Anh Tuan <[EMAIL PROTECTED]> wrote: > Hi, > > I don't know how to catch and process errors in Struts + iBatis + DAO. >

Re: Struts webapp caused out of memory after some reload

2005-03-23 Thread Joe Germuska
At 10:38 PM -0500 3/22/05, James Mitchell wrote: Struts does not provide this sort of thing. Actually, I just added a call to PropertyUtils.clearDescriptors() to ActionServlet.destroy() on the 1.2.x branch yesterday, which causes a call to Introspector.flushCaches(). From the javadoc for the In

HTML Tag Users Guide

2005-03-23 Thread Scott Purcell
Hello, following up with my select-list issue, I ended up with this next question. First off, I have been referencing the HTML tag users guide. But to be honest, it does me little use, as it does not show how to use the html:select tags, etc. Some make sense, but most do not. I am probably like

RE: HTML Tag Users Guide

2005-03-23 Thread Marsh-Bourdon, Christopher
Scott Can I make a suggestion that if you want to find out about a Tag (or set of) that you open the .tld and have a read through it. Most tag properties (especially in the Struts HTML tags) are quite clear from their labels. This isn't always the case, but certainly with the ones that come with

Re: HTML Tag Users Guide

2005-03-23 Thread Erik Weber
I don't know if there is anything like it for Struts tags, but Sue Spielman's "JSTL Practical Guide for JSP Programmers" (Morgan Kaufmann) is exactly what you are looking for if you also use JSTL tags. It's 200 pages, example-based and 20 bucks. Erik Scott Purcell wrote: Hello, following up wit

Re: The F5 problem - Best Practice (ActionHierarchy)

2005-03-23 Thread Brandon Mercer
Bernd Schiffer wrote: > Hi Leon. > > I did what you mentioned as the second approach and used a token > (precisely: locking mechanism, because in my case it's not "delete" > but "edit") to avoid F5 problems. But I'm not happy with that, > because, you already said that, the user sees "edit.do" in

Re: The F5 problem - Best Practice (ActionHierarchy)

2005-03-23 Thread Leon Rosenberg
On Wed, 2005-03-23 at 09:20 -0500, Brandon Mercer wrote: This was exactly the second approach, the redirect approach :-) Leon > You could forward to a list action. Something like this maybe. > > > > > >parameter="/user.html"/> > > type="org.springframework.web.st

Validation only occurs client side

2005-03-23 Thread tarek.nabil
Hi, I'm having a really weird problem. This is the first time I use the Validator. I expected to have some problems with client side validations, but what I found was client side validations are working but server side validations aren't!! The fact that client-side validations work, I think, mean

REPOST: Relative URLs

2005-03-23 Thread tarek.nabil
Can someone please advise me on this issue. Thanks -Original Message- From: tarek.nabil Sent: Saturday, March 19, 2005 10:14 AM To: user@struts.apache.org Subject: Relative URLs Hi everyone, Can someone please explain how to build relative URLs that are higher in the file hierarchy tha

[OT] JDBC -- batch inserts & generated keys

2005-03-23 Thread Erik Weber
I have a (MySQL) batch insert scenario where I need to retrieve all the generated keys. What is the best approach for this? Can I take advantage of the new "return generated keys" feature for this? Here are three approaches I can think of. I haven't tried any of them yet. Figured someone here m

Action Question

2005-03-23 Thread Scott Purcell
Hello, I have a form, which has an attached bean. I am doing validation, so I have good data going to my action. In the action, I take the bean with good data, and hand it to a DTO object which updates the database with the new user supplied information. What can I do in the Action if my DTO

Re: HTML Tag Users Guide

2005-03-23 Thread Dave Newton
Scott Purcell wrote: following up with my select-list issue, I ended up with this next question. First off, I have been referencing the HTML tag users guide. But to be honest, it does me little use, as it does not show how to use the html:select tags, etc. Some make sense, but most do not. I am pro

RE: Action Question

2005-03-23 Thread Fogleson, Allen
Before forwarding to failure try this... Action: Public ActionForward execute(Mapping mapping Form form, ...) { YourFormClass newuserbeanform = (YourFormClass)form; . . . boolean recordInsert = userbo.insertNewUser(); //By The way this looks backwards... I thought true

EL Mystery

2005-03-23 Thread kurt . e . williams
I have been trying to solve a mystery concerning EL. We are using 4 taglibs in our project: <%-- JSTL tag libs --%> <%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %> <%@ taglib prefix="c" uri="/WEB-INF/c.tld" %> <%-- Struts provided Taglibs --%> <%@ taglib prefix="html" uri="/WEB-INF/struts-htm

RE: EL Mystery

2005-03-23 Thread Benedict, Paul C
Kurt, JSP 2.0 containers have EL turned off implicitly if you are not using the Servlet 2.4 spec. Check the top of your web.xml file -- if you see it is referencing the 2.3 DTD, you need to change it the 2.4 schema. Thanks, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL P

RE: Action Question

2005-03-23 Thread Scott Piker
Should also point out that it's usually better to use mapping.getInputForward() in these situations (instead of defining a "failure" forward), since validator will always redirect the user back to the "input" location if there's a validation error (and this is usually the same place you want them t

logic:iterate Question

2005-03-23 Thread Mike Darretta
Folks, Thanks in advance for answering this urgent question. I know it's basic, but I'm stumped...your help is appreciated. I am trying to update data displayed via a tag with nested tags: type="package.name.AssetReportEntryValue">

RE: Problem with hot deployment

2005-03-23 Thread Mark Bennett
For anyone who experiences this problem there is a fix. http://forums.bea.com/bea/message.jspa?messageID=202463602&tstart=0 Mark -Original Message- From: Mark Bennett [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 3:04 PM To: Struts-Users Subject: Problem with hot deployment I

Re: EL Mystery

2005-03-23 Thread Jeff Beal
On Wed, 23 Mar 2005 19:38:39 +, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Can some one shed some light on this mystery? Also I have heard that using EL > outside of tags can be a security problem and that it is better to use a > instead. The security part of this was mentioned on the

html: tag four buttons, one action problem

2005-03-23 Thread Scott Purcell
Hello, I have a form, lets say that has a select list on it. Under it I have the ability to [edit], [delete], [modify] or [cancel]. Each of these buttons goes to a different but the form page is set for just one of the actions. And to top this off, I cannot do a href_link, I need to submit th

Re: EL Mystery

2005-03-23 Thread Leon Rosenberg
So, it's as much of security risk as bean:write? I mean you could turn the filter off and get the same effect? Leon > Von: Jeff Beal [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 23. März 2005 21:56 > An: Struts Users Mailing List > Betreff: Re: EL Mystery > > On Wed, 23 Mar 2005 19:38:39 +

Re: EL Mystery

2005-03-23 Thread Leon Rosenberg
So, it's as much of security risk as bean:write? I mean you could turn the filter off and get the same effect? Leon > Von: Jeff Beal [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 23. März 2005 21:56 > An: Struts Users Mailing List > Betreff: Re: EL Mystery > > On Wed, 23 Mar 2005 19:38:39 +

Re: EL Mystery

2005-03-23 Thread Jason Lea
The default for bean:write and c:out is to filter the content.  Both can have filtering turned off if you wish. Shame the ${} notation filter by default :( I didn't notice that in the documentation and assumed I could replace all my c:out's with ${} which is nicer to write.  Would be nice if

Re: html: tag four buttons, one action problem

2005-03-23 Thread Folashade Adeyosoye
I am currently doing the same my project... here is it... it involves using javascript to change the buttonAction 1. must have a hidden field buttonAction 2. each (Button) submit button must have a property 3. when you click on the button the JS is involked and the hidden filed buttonAction is

Re: EL Mystery

2005-03-23 Thread Folashade Adeyosoye
Or try escaping the true of false depending hope that helps... On Wed, 23 Mar 2005 15:56:02 -0500, Jeff Beal <[EMAIL PROTECTED]> wrote: > On Wed, 23 Mar 2005 19:38:39 +, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > Can some one shed some light on this mystery? Also I have he

Re: EL Mystery

2005-03-23 Thread Jason Lea
hmm, having said that, it might be weird if the default behaviour was to filter. eg comparing "${company.name} is cool" and "${company.name} is cool" ${companyName} would have the second one filtered twice. It might be possible to only filter when not inside a tag.  But that might then l

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 element's action. // 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 ; // reference to the html form the submit button is in. frm.

Place message in jsp from action?

2005-03-23 Thread Scott Purcell
Hello, After I complete a successful Action, and I forward to my jsp page, I would like to display a status ... something like "New User Added". Something that operates like the ActionErrors object. I tried doing this in my Action class: ActionErrors errors = new ActionErrors(); // Get

RE: Place message in jsp from action?

2005-03-23 Thread Nidel, Mike
Just having learned this last week, it's fresh in my mind. Looks like you are missing the call to this.saveErrors(errors); this puts the ActionErrors into the request for your JSP to display. The other thing I'd say is that ActionErrors is deprecated; you might use ActionMessages instead, which

Re: Place message in jsp from action?

2005-03-23 Thread Jason Lea
I think you are missing the save :) try something like this: ActionMessages messages = new ActionMessages(); MessageResources resource = getResources(request); ... messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("global.error.database.problem")); saveMessages(request, messages)

RE: Place message in jsp from action?

2005-03-23 Thread Fogleson, Allen
You can do this 1) create an ActionMessages object and populate it with the ActionMessage you wish to show. 2) in the jsp include the following snippet: ${message} You can of course format that however you want. Al -Original Message- From: Scott Purcell [m

RE: html: tag four buttons, one action problem

2005-03-23 Thread Folashade Adeyosoye
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 thing you could do is use a js o

Re: html: tag four buttons, one action problem

2005-03-23 Thread Jason King
Yes, you would. If I were doing it myself I'd probably have a 2nd arg to the call to onclick that was the new value for the action, then you could do it with 1. In an intial how-to I tend to simplify things. ... function button_onclick( oBtn , sAction ) { var frm = oBtn.form ; frm.act

Re: Iterate a character array

2005-03-23 Thread Tim Christopher
>> <%-- Display the value. This displays correctly --%> >> May sound like an obvious question but do you have the methods getChar and setChar within your form bean?.. Also as it's nested within a loop it may result in many instances of the input box with the same name, so I'd imagine you'd need

Re: Validation only occurs client side

2005-03-23 Thread Bill Siggelkow
At first glance it looks okay -- I suggest you set a breakpoint in the ValidatorForm.validate() method (or you could override the method) to see if it gets called. If not, then I would look into your request processor (which I noticed was a custom one). -Bill Siggelkow On 2005-03-23 11:09:06 -0

Validation - Mask

2005-03-23 Thread Jaswinder Kaur
Hi all, I want to validate a string value and make sure that it does not have "&", "$" or "=" character in it. I used the following code mask [^/$&=]+$ This work only if the last character is either "&", "$" or "=" else it does not. Please help!! TIA Jaswinder "Attenti

Re: Validation - Mask

2005-03-23 Thread Tim Christopher
I'm not a a development machine so can't test this now but you could try using: ^[~\$]+$ .. Also failing that you could always opt for something like ^[0-9a-zA-Z]* listing valid inputs, as opposed to a value you don't want. Tim Christopher On Wed, 23 Mar 2005 16:37:47 -0800, Jaswinder Kaur

RE: Validation - Mask

2005-03-23 Thread Greg Pelly
Add a ^ to the beginning of the pattern. Try changing: [^/$&=]+$ To ^[^/$&=]+$ That should work. If you're not familiar with regular expressions, a ^ at the beginning of a regexp matches the string starting at the beginning (just as the $ matches at the end). Without it, as long as _somethin

OpenSource CRM that works with struts

2005-03-23 Thread kjc
Looking for an OpenSource CRM that integrates nicely with struts 1.2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Action Mapping Forward Params

2005-03-23 Thread Rajaneesh
Richard, Since your are using forward , the request context is not lost. Hence the dynamic parameter should still be availible. Hope this helps "This message is not an official communication of SLK Software. The sender of this message is neither acting as an agent nor in any other capacity for

General: blankline in jsp question??

2005-03-23 Thread Eain Mat
let say I included some tag library in my jsp and everytime, I have a blank line in my source, I will have a blank line in response too. Is there way to strip off or filter out those blankline. Eain

Re: General: blankline in jsp question??

2005-03-23 Thread Jason Lea
I do this sort of thing: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"; %><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %> So that there are no blank lines for those parts. also for tomcat 5.5

Mysteriously pre-filled ActionForm?

2005-03-23 Thread Keng Onn
Hi, I'm working on an application which manages groups of email addresses, and I came across this puzzling scenario ["Editing contact group" function]: On clicking an "Edit" link, 2 hidden fields in a HTML form are set - 'groupId' to 2 (for example) and 'action' to "edit". The form ( ContactGro

List Archive

2005-03-23 Thread tarek.nabil
Hi, I think the List Archive link on the main page for the Struts project is broken. I tried it several times and it always gives me this message Error occurred Required parameter "listId" or "listName" is missing or invalid This has been the case for the past 2 weeks, I think. The current URL

Re: List Archive

2005-03-23 Thread Matt Raible
tarek.nabil wrote: Hi, I think the List Archive link on the main page for the Struts project is broken. I tried it several times and it always gives me this message Error occurred Required parameter "listId" or "listName" is missing or invalid This has been the case for the past 2 weeks, I think.

Re: General: blankline in jsp question??

2005-03-23 Thread Eain Mat
yes I can remove blank line in source but this will cause less readability in code. I like the option to trim whitespace in web.xml. can you please provide me more information or reference? Eain Jason Lea <[EMAIL PROTECTED]> wrote: I do this sort of thing: %>%>%> So that there are no blank

RE: Mysteriously pre-filled ActionForm?

2005-03-23 Thread David G. Friedman
Ken, > Am I missing something? You are indeed missing something. Your configuration shows ACTION CHAINING. That has complications. The Struts framework is internally called and EVERY step in the RequestProcessor class is performed AGAIN using the same data in the buffer (i.e. whatever came in

Re: General: blankline in jsp question??

2005-03-23 Thread Matt Raible
Eain Mat wrote: yes I can remove blank line in source but this will cause less readability in code. I like the option to trim whitespace in web.xml. can you please provide me more information or reference? Just locate the "jsp" servlet in $CATALINA_HOME/conf/web.xml and add the following :

Re: General: blankline in jsp question??

2005-03-23 Thread Jason Lea
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html It mentions the trimSpaces on that page. Eain Mat wrote: yes I can remove blank line in source but this will cause less readability in code. I like the option to trim whitespace in web.xml. can you please provide me mor