Please show me an example of Struts client side javascript validation for Array

2005-02-20 Thread Anthony Hong
I have two fields with same name Could I use validation.xml to config validation for customerName field? How to write it? I tried But it didn't work. Who know the problem? Thanks a lot! -- Anthony Hong --

The method setValue(String, Object) in the type TagSupport is not applicable for the arguments (Object)

2005-02-20 Thread Vijay Kumar
Here is my code and iam getting the error The method setValue(String, Object) in the type TagSupport is not applicable for the arguments (Object) Can any one tell wht the problem is Bye vijay <% if(request.getAttribute("pass")!=null) { %> <%}%>

Converting Model Data to View

2005-02-20 Thread Tushar Agrawal
Hi Folks, I am using Struts1.1, Tiles and Validator framework. In my application user enters data into a portlet and that data gets stored as comma seperated values. While retreveing we tokenize and displayed it in View JSPs. I want to store this data in some structured format (Such as XML).

Date class in java-help

2005-02-20 Thread Sab
I have the user enter the date in string format. I want to convert it to Date object. How do I do it? Also, please let me know if I use Date from util or Date from sql here? I have Hibernate database methods which will put date object in it. -

Does Javascript validation support Array?

2005-02-20 Thread Anthony Hong
I have a question about validation framework use javascipt in struts. If I define a rule in validation.xml with field "customerName" required, and there are two input text items use this name, then javascript validation doesn't work. What should I do? I use struts 1.1 -- Anthony Hong --

RE: Tiles scope headache assistance still needed.

2005-02-20 Thread Jason Long
I am still no closer to a solution to my problem with tiles. I will explain the scenario again in hopes that someone will provide some insight into my problem. I am using tiles to provide layouts in my xml syntax JSP pages. Here is the original page that I want to use within a tag. I attempt

RE: Tiles scope headache assistance still needed.

2005-02-20 Thread Jason Long
I am still no closer to a solution to my problem with tiles. I will explain the scenario again in hopes that someone will provide some insight into my problem. I am using tiles to provide layouts in my xml syntax JSP pages. Here is the original page that I want to use within a tag. I attempt

Re: Struts and iBATIS

2005-02-20 Thread Larry Meadors
The code there is: === MappedStatement ms = (MappedStatement) mappedStatements.get(id); if (ms == null) { throw new SqlMapException("There is no statement named " + id + " in this SqlMap."); } return ms; === Looks like you have a sqlmap, but that the statement "insertModule"

Struts and iBATIS

2005-02-20 Thread Tim Christopher
Hi, I'm in the middle of incorporating iBATIS into my Struts project, but am having slight trouble in getting it to work. The problem starts when I call sqlMap.startTransaction() from within my BaseDAO file as I get a null pointer exception... Yet when I print out the value of sqlMap I get somet

Model 2 based framework for .NET released - Totally OFF TOPIC

2005-02-20 Thread Leandro Melo
Hi. Sorry for this, hope nobody gets mad at met. But I'm pretty sure there are people here that also work with .NET. So... I've worked in a MVC (Model-View-Controller) framework for Microsoft .NET Web applications. The framework has now been released and is in Beta version. The framework is based o

Re: Display a form without using .do

2005-02-20 Thread J Q
Hmm... Of course, the next question should probably be raised if it's a good idea to base your security model on paths that don't even exist in reality... It seems a bit odd to me to place your trust on how the URI string will be handled internally. If there isn't such a path as .../protected/...,

[NEED] I need example and document about DispathAction

2005-02-20 Thread Pham Anh Tuan
Hi, I'm looking for some tutorial or document of Dispath Action. Who knows where I can find it, plz show me! thanks for advance! Anh Tuan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Validation for methods in DispatchAction

2005-02-20 Thread Stjepan Brbot
I use DispatchAction for CRUD activities in my application. Using methods like "create", "populate", "update" etc. I manage each particular activity for my entity (e.g. User) but in some of these activities I need validation (e.g. update/create) and in some of them not (e.g. populate/delete). C

Re: Display a form without using .do

2005-02-20 Thread Erik Weber
Well, in my opinion that author is using faulty logic. He offers a poor security implementation and then blames the Struts code for a hole in it. However, it's good to imagine every possible means of a security breech, so I appreciate you bringing it up. Erik Christian Bollmeyer wrote: On Sunda

Re: Display a form without using .do

2005-02-20 Thread Christian Bollmeyer
On Sunday 20 February 2005 16:52, Erik Weber wrote: > Could you elaborate please? Is this a Servlet model security problem, > one specific to Struts, or one that is only exposed by neglect in > some other area (which is what I suspect)? This is news to me. I've > used path mapping all my Java life.

Re: Display a form without using .do

2005-02-20 Thread Erik Weber
Could you elaborate please? Is this a Servlet model security problem, one specific to Struts, or one that is only exposed by neglect in some other area (which is what I suspect)? This is news to me. I've used path mapping all my Java life. I've also posted numerous path-mapping strategies on th

Re: Display a form without using .do

2005-02-20 Thread Christian Bollmeyer
On Friday 18 February 2005 19:00, Erik Weber wrote: > Learn to use (Servlet) path mapping ("/something/*") instead of > extension mapping ("*.something"). Hm. Extension mapping is typically safe, while path-prefix mapping may be *not*. The details are laid out in Bergsten's 'Java Server Pages' 2nd

Re: Displaying mulitpage results -> Néstor

2005-02-20 Thread Peter Neu
Hello Néstor, I'm quite happy using your taglib. I got only one problem: How can I get an index for the rows which are created. In Struts you would have something like this: There I could easily tell which row some data belongs to by usign the index above. How can I do the same thing in Datagrid