Re: seeking quick start struts tutorial

2006-06-26 Thread Kumar deepak
hi, Try http://www.roseindia.net/struts Regards hicham <[EMAIL PROTECTED]> wrote: hello I'm a newbie to struts framework if anybody knows of a quick start easy tutorial that can get me on the road links ? pdf ? Thank you hicham ---

RE: Problem with one of the actions.

2006-06-26 Thread David Friedman
I'm reading this a little differently. It looks like an error with tiles trying to insert something into the JSP that is not there. I recommend checking all tile attributes you are including/importing/inserting into the JSP template. Some path is likely not quite correct or is missing (wrong pat

RE: Problem with one of the actions.

2006-06-26 Thread Mukta
Just make sure your struts-config has proper definition for "/audit.do" -Original Message- From: sim085 [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 8:15 PM To: user@struts.apache.org Subject: Problem with one of the actions. Hello, I have the following exception being thrown

Re: One JSP with an Action Link and a Form

2006-06-26 Thread T. Wong
Can you show us the code of your formBean? It's most likely for the problem to be in it. 2006/6/27, David Friedman <[EMAIL PROTECTED]>: Do you have a more complete stack trace and more detail in any error logs? -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monda

Generated HTML FORM tag is missing "do" and Action Nme

2006-06-26 Thread Steven Mitchell
I've used Struts for years and thought I had seen every way to break it, but this one has me stumped. I'm starting a new Struts 1.2.9/Tiles project at home for http://www.byteworksinc.com. I'm working on the first submittable pages, which display fine, but clicking Submit sends you to the home

Re: Validation errors

2006-06-26 Thread Niall Pemberton
You can use the "property" attribute to filter a specific properties messages: http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section5 Niall On 6/26/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: Hello there! Just as I said in my last message, it's been a while since my

Re: Date Validation like "dd.MM.yyyy HH:mm"

2006-06-26 Thread Niall Pemberton
Commons Validator's JavaScript only support day/month/year validation. Niall On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote: Hello all, Well I am trying to validate a field on the clients side. The field schould be validatet as a date in this format: "dd.MM. HH:mm" but I saw th

RE: One JSP with an Action Link and a Form

2006-06-26 Thread David Friedman
Do you have a more complete stack trace and more detail in any error logs? -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 8:22 PM To: user@struts.apache.org Subject: One JSP with an Action Link and a Form I have a JSP and there are a link (it

One JSP with an Action Link and a Form

2006-06-26 Thread Caroline Jen
I have a JSP and there are a link (it invokes an action) and a form (the form has a submit button). My struts-config.xml looks like: [code] [/code] My JSP works well

Validation errors

2006-06-26 Thread Vinicius Carvalho
Hello there! Just as I said in my last message, it's been a while since my last struts experience :). I'm using automatic validation for my formbeans (using the validator e validation.xml). Well, displaying general errors is ok , as I'm doing this: But how do I present each error in

Re: problems wit h Struts 1.2.9

2006-06-26 Thread Vinicius Carvalho
DOO!! Thanks man, I'd never find this :) On 6/26/06, David Friedman <[EMAIL PROTECTED]> wrote: Vinicius, Your struts-config.xml file is incorrect. In your Actionmapping is incorrect. You have: Change

Re: [shale] symbol replacement on a symbol?

2006-06-26 Thread Ryan Wynn
On 6/26/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: >From: "Ryan Wynn" <[EMAIL PROTECTED]> > > I think that there may be a good case for symbol replacement on a > symbol. Here is what I was trying to do: > > class MyBean { > String prop = "propValue"; > public String getProp(); > public void set

RE: Question about Struts validator

2006-06-26 Thread David Friedman
In your execute method, you can manually call the ActionForm's validate() method. The 'validate="true"' attribute/parameter is there for you convenience - you do not have to use it. Regards, David -Original Message- From: mosho [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 4:20 P

Re: [shale] symbol replacement on a symbol?

2006-06-26 Thread Gary VanMatre
>From: "Ryan Wynn" <[EMAIL PROTECTED]> > > I think that there may be a good case for symbol replacement on a > symbol. Here is what I was trying to do: > > class MyBean { > String prop = "propValue"; > public String getProp(); > public void setProp(String string); > } > > > Client.html

Question about Struts validator

2006-06-26 Thread mosho
Hi All, I want to validate a form by using struts validator, it is working fine. It validates the form if I click submit button, and it also validates the form if I pass it as a url for example: http://111.22.80.244:8989/eNOI/test.do I want to validate the form only if I hit submit button not by

[shale] symbol replacement on a symbol?

2006-06-26 Thread Ryan Wynn
I think that there may be a good case for symbol replacement on a symbol. Here is what I was trying to do: class MyBean { String prop = "propValue"; public String getProp(); public void setProp(String string); } Client.html Template.html (bean and property agnostic)

javascript help

2006-06-26 Thread fea jabi
function setMethodNameCopy() { var copylbl = ''; var mtd=document.getElementById("mtdID"); mtd.value = copylbl; return; } JSP: requestURI="PrepareAction.do" defaultsort="7" pagesize="6"> onclick="setMethodNameCopy();"/> . ... When the user clicks o

Re: Just upgraded to 1.2.9 from 1.2.4 - Cancellable doesn't work right?

2006-06-26 Thread Niall Pemberton
Its this type of issue that is why "action chaining" has been discouraged - the "cancel" request parameter that Struts uses will still be there in the second action and there isn't a way you can remove it. Having said that the check should only be invoked for actions where validate="true" and I w

Validate just certain fields

2006-06-26 Thread Jennifer Jacobs
I'm using the Struts Validator framework. I have a form with two buttons on it, one that calculates a subtotal and one that submits the form. I have validation set to false, because I don't want to validate the shipping address/email/phone number/etc when they calculate the subtotal. So, I do a

Just upgraded to 1.2.9 from 1.2.4 - Cancellable doesn't work right?

2006-06-26 Thread jaybytez
I finished reading the docs and upgrade notes for cancellable property. I have an action that extends LookupDispatchAction and uses the cancelled method. I add a property (like the document shows you) for cancellable: I test the page and the cancel button throughs an InvalidCancelException.

RE: problems wit h Struts 1.2.9

2006-06-26 Thread David Friedman
Vinicius, Your struts-config.xml file is incorrect. In your Actionmapping is incorrect. You have: Change 'className' to 'type'. The 'className' attribute is for something totally different and mainly used if

Re: Possible to programmatically create and use tags?

2006-06-26 Thread Michael Jouravlev
There is no compiler in Struts framework. It is possible to use JSP compiler, its exact usage depends on container. On 6/26/06, Bob Carpenter <[EMAIL PROTECTED]> wrote: Thanks for confirming it's not possible. I didn't think so; but wanted to make sure before I wrote my own HTML generator. For t

RE: Possible to programmatically create and use tags?

2006-06-26 Thread Bob Carpenter
Thanks for confirming it's not possible. I didn't think so; but wanted to make sure before I wrote my own HTML generator. For the limited amount of HTML I'll need I can write a HTML generator in a day or so. I don't suppose it's possible to use the Struts compiler directly? - Feed it the Struts ta

Re: Problem with one of the actions.

2006-06-26 Thread David Durham
javax.servlet.jsp.JspException: ServletException in '/audit.do': null org.apache.jsp.WEB_002dINF.tiles.template_jsp._jspService(org.apache.jsp.WEB_002dINF.tiles.template_jsp:98) Maybe there's a null pointer in template.jsp. -Dave

[Issue Solved]Re: Unable to Load html-el Tags

2006-06-26 Thread Caroline Jen
Wendy, Thank you very much for your help. Things are working OKay now. --Caroline --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > On 6/25/06, Caroline Jen <[EMAIL PROTECTED]> > wrote: > > > I think that I should find the JAR for loading the > > html-el tags, and put the JAR in the WEB_INF\l

Re: Date Validation on the Clients side

2006-06-26 Thread The Jasper
hi, Looking at the js, I agree that this won't work, but that's only client side. Server side validation should work, because that makes use of SimpleDateFormat. So unless your pattern is being cut off somewhere I would expect that to do the trick. For client side you probably will have to write

AW: Date Validation on the Clients side

2006-06-26 Thread Halgurt Mustafa Ali
Hi, Yes I tried it, but no success.. I am using Struts 1.2.9 and commons-validator.jar 1.3.0 I had a look at validateDate.js and it seems for me not to be correct, it seems so, but whether or not, I am not sure. mvg, Halgurt PS:I appreciate your help, many thanks:-) -Ursprüngliche Nachric

Re: Date Validation on the Clients side

2006-06-26 Thread The Jasper
Hi, shot in the dark here, but have you tried datePatternStrict instead of datePattern? mvg, Jasper On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote: Hello All, I posted today the message below, unfortunately without any success. May be can somebody tell me if it is at all possible

Problem with one of the actions.

2006-06-26 Thread sim085
Hello, I have the following exception being thrown for one of my actions: javax.servlet.jsp.JspException: ServletException in '/audit.do': null I do not understand why this is happening :( Here is my full stack trace, I have read it in an attempt to understand what the problem is but I could n

Date Validation on the Clients side

2006-06-26 Thread Halgurt Mustafa Ali
Hello All, I posted today the message below, unfortunately without any success. May be can somebody tell me if it is at all possible to validate date values like "dd.MM. HH:mm" on the clients side. I really appreciate your help, it is really urgent. Best regards, Halgurt -Ursprünglic

problems wit h Struts 1.2.9

2006-06-26 Thread Vinicius Carvalho
Hello there! I'm having a strange problem with my struts app (1.2.9), it's been a long time since the last time I've used struts (being in the Swing world for a while now). The application launches an error on startup: [java] SEVERE: Parsing error processing resource path /WEB-INF/struts-confi

How log JSP level errors in Tomcat 5.5

2006-06-26 Thread priyadarsh kankipati
Hi I am migrating an application from resin to Tomcat 5.5 In resin, we have a configuration to log jsp level errors. But I couldn't find that on Tomcat 5.5.17 Can any one help me to do this configuration for logging JSP level errors? Thanks in advance! regards Priyada

[ANN] Scopes: an extensible way of managing application scopes

2006-06-26 Thread Antonio Petrelli
Hi list! I hope that you don't mind if I introduce you an open source project I started: Scopes. http://scopes.sourceforge.net/ Scopes is another way of managing web application scopes. Instead of using the request to get the session context and the session to get the application context, you

Re: [OT] Re: Log4j -how not to log everything?

2006-06-26 Thread Antonio Petrelli
Ashish Jain ha scritto: It seems , it is not working... log4j.logger.oracle.ccr.view.CCRExceptionHandler = debug, A1 log4j.additivity.ccr.view.CCRExceptionHandler=false It seems that the packages are different (there's an "oracle" more in the first property) --

RE: [shale] t:commandLink issues

2006-06-26 Thread Baker,Jonathan
Thanks for the help. I had this working a few days ago and could not track down what I had changed that would have caused my links not to work. Once I read your post, I realized I had moved the loading of the table from the init method of my controller to the prerender method. Once I moved it

Re: How o display a hashtable in jsp

2006-06-26 Thread Martin Gainty
you can use c:forEach items="MappedVariable" take a look at http://www-128.ibm.com/developerworks/java/library/j-jstl0318/ Viel Gluck, Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addr

Re: [OT] Re: Log4j -how not to log everything?

2006-06-26 Thread Ashish Jain
It seems , it is not working... log4j.rootLogger= ERROR, A1 log4j.logger.oracle.ccr.view.CCRExceptionHandler = debug, A1 log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender log4j.appender.A1.DatePattern='.'-MM-dd log4j.appender.A1.File=D:\\Temp\\log\\Exception.log log4j.appender.A1.A

Re: [OT] Re: Log4j -how not to log everything?

2006-06-26 Thread Antonio Petrelli
Ashish Jain ha scritto: Hi, I am using same strategy as given below to log the debug messages But my application debug message coming twice. What should be done to suppress it. The answer is already there: log4j.additivity.my.package=false Ciao Antonio --

Date Validation like "dd.MM.yyyy HH:mm"

2006-06-26 Thread Halgurt Mustafa Ali
Hello all, Well I am trying to validate a field on the clients side. The field schould be validatet as a date in this format: "dd.MM. HH:mm" but I saw that the time would not be considerd, although I initialize datePattern in validation.xml with this value "dd.MM. HH:mm", the date will

Re: [OT] Re: Log4j -how not to log everything?

2006-06-26 Thread Ashish Jain
Hi, I am using same strategy as given below to log the debug messages But my application debug message coming twice. What should be done to suppress it. log4j.rootLogger=error, debuggingAppender log4j.logger.my.package=debug, debuggingAppender log4j.additivity.my.package=false Thanks, Ashish

AW: How o display a hashtable in jsp

2006-06-26 Thread Martin Kindler
Hi Pankaj, if you use JSTL you can have a java.util.Map as the collection type you are iterating over. The only trick is that the item you operate on in each iteration is a java.util.Map.Entry, i.e. you must access its key/value accordingly. The same is true, if you are using Struts logic tags. M

RE: How o display a hashtable in jsp

2006-06-26 Thread nageshkumar.siddu
Hi Pankaj, Try using inside logic:iterate   I have not tried it. It may work. Regards, Nagesh -Original Message- From: Tejas Bavishi [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 2:36 PM To: 'Struts Users Mailing List' Subject: RE: How o displ

RE: How o display a hashtable in jsp

2006-06-26 Thread Tejas Bavishi
Hi Pankaj Not sure if this can be done by the tag, may be others can comment. But you can definitely do this using a scriptlet. Hashtable has keys() method that returns an Enumeration of keys. You can traverse through this enumeration to print the keys and corresponding values. Hope that helps R

RE: Mistake of syntax in html:button

2006-06-26 Thread José María Tristán
Ok, it's work. Thank you very much. -Mensaje original- De: Karr, David [mailto:[EMAIL PROTECTED] Enviado el: viernes, 23 de junio de 2006 15:36 Para: Struts Users Mailing List Asunto: RE: Mistake of syntax in html:button The problem is your use of a scriptlet. The scriptlet has to be th