Re: [UNICODE characters in Mask validation rule]

2005-01-31 Thread Kishore Senji
Here is the test case

import java.io.*;
import java.util.*;
import org.apache.commons.validator.*;

public class TestValidatorMask{
  public static void main(String[] args)
  throws Exception {
ValidatorResources vr = new ValidatorResources(getFormSetAsInputStream());
Form form = vr.getForm(Locale.US, "testForm");
Field field = form.getField("firstName");
List list = Arrays.asList(new String[]{"AA.Ñ  ", ".C.  ", "  
... ABC ZÑÑ.. ", "  @gÑÑÑ..Ñ."});
for(Iterator iterator=list.iterator(); iterator.hasNext();){
String value = (String)iterator.next();
System.out.println("value = "+value+" mask =
"+field.getVarValue("mask")+" mapassed test? == "+validateMask(value,
field.getVarValue("mask")));
}
  }

  public static boolean validateMask(String value, String mask){
  return GenericValidator.matchRegexp(value, mask);
  }

  public static InputStream getFormSetAsInputStream(){
  StringBuffer sb = new StringBuffer();
  sb.append("")
.append("http://jakarta.apache.org/commons/dtds/validator_1_0.dtd\";>")

.append("zip")
.append("^[A-Z.Ñ\\s]*$")
.append("")
.append("")
.append("mask")
.append("${zip}")
.append("");
return new ByteArrayInputStream(sb.toString().getBytes());
  }

}


On Mon, 31 Jan 2005 23:09:42 -0600, Carlos Cajina - Hotmail
<[EMAIL PROTECTED]> wrote:
> I just couldn't resist :^P  ... Tomorrow I'll try it, but for now this looks
> like a "simpler" solution to the character encoding problem:
> 
> http://www.servletsuite.com/servlets/encflt.htm
> 

It should be very simple to roll your own filter. The main reason to
write a filter is to set the encoding before any reads from the input
stream. You Just have to implement Filter and in the doFilter method
set the character encoding on the request by calling
request.setCharacterEncoding(string). You can have the encoding
initialized as a init parameter or however you want.

for more info on writing filters take a look at
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets8.html#72440

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using XML in struts

2005-01-31 Thread [EMAIL PROTECTED]
You Try with  tag
You can access it..

Jay Chandran wrote:
Hi all,
How can i read XML files using struts? is this possible? Can any one provide
a link or give an example for reading XML files using struts?
:-)
Jay


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [UNICODE characters in Mask validation rule]

2005-01-31 Thread Kishore Senji
> Hi Kishore, thanks for the tip... I tried what you suggested but it didn't
> work... while googling for answers I read somewhere that including UNICODE
> codes was only possible in *.properties files, not in *.XML ... from my
> experience, that seems to be right...

You are right. You have to declare unicode characters using character
entities in xml.

For this example it would be


   
 name
  ^[A-Z.Ñ\s]*$
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [UNICODE characters in Mask validation rule]

2005-01-31 Thread Carlos Cajina - Hotmail
I just couldn't resist :^P  ... Tomorrow I'll try it, but for now this looks 
like a "simpler" solution to the character encoding problem:

http://www.servletsuite.com/servlets/encflt.htm

- Original Message - 
From: "Kishore Senji" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Monday, January 31, 2005 7:47 PM
Subject: Re: [UNICODE characters in Mask validation rule]


Good evening. I'm a little stuck trying to create a global constant in 
validation.xml that allows the mask rule to validate "special" spanish 
characters like Ñ [ UNICODE =  \u00d1 ] for names, surnames, city names 
and so... Can someone give a hint ;^) ? Mi RegExp is like this: 
^[A-Z.Ñ\s]*$
Something like this, I suppose

   
 name
  ^[A-Z.\u00d1\s]*$
 
But make sure you use the right character encoding for the request.
http://marc.theaimsgroup.com/?l=struts-user&m=110484806414499&w=2
should give your more information on character encoding
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [UNICODE characters in Mask validation rule]

2005-01-31 Thread Carlos Cajina - Hotmail
Hi Kishore, thanks for the tip... I tried what you suggested but it didn't 
work... while googling for answers I read somewhere that including UNICODE 
codes was only possible in *.properties files, not in *.XML ... from my 
experience, that seems to be right...

Anyway, I'm going through the thread you pointed... So far it seems the 
Character Encoding Filter is a good solution, but I keep hoping that some 
"simpler" solution is around the corner :^)

Thanks again Kishore... Have a good night!
Regards,
Carlos
- Original Message - 
From: "Kishore Senji" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Monday, January 31, 2005 7:47 PM
Subject: Re: [UNICODE characters in Mask validation rule]


Good evening. I'm a little stuck trying to create a global constant in 
validation.xml that allows the mask rule to validate "special" spanish 
characters like Ñ [ UNICODE =  \u00d1 ] for names, surnames, city names 
and so... Can someone give a hint ;^) ? Mi RegExp is like this: 
^[A-Z.Ñ\s]*$
Something like this, I suppose

   
 name
  ^[A-Z.\u00d1\s]*$
 
But make sure you use the right character encoding for the request.
http://marc.theaimsgroup.com/?l=struts-user&m=110484806414499&w=2
should give your more information on character encoding
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error Pages

2005-01-31 Thread Kishore Senji
> 
> [EMAIL PROTECTED]: Exception
> Processing ErrorPage[errorCode=404, location=/errors/404.do]
> ClientAbortException:  java.net.SocketException: Software caused
> connection abort: socket write error
>at 
> org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:331)
>rest of stack dump...
> 
> Here is what's in my files:
> 

May be http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840241#3840241
would help

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2.0 or Struts 0.0?

2005-01-31 Thread Craig McClanahan
On Mon, 31 Jan 2005 21:04:34 -0600, Vic <[EMAIL PROTECTED]> wrote:
> Craig McClanahan wrote:
> 
> > I have proposed that Shale indeed be adopted in that way, and
> >will continue to encourage it; 
> >:-)
> >
> (It took me a year after Struts .06 was out to find it, it took me a
> year to use CoR after that was there  )
> 
> Remember the WS for Struts at sf.net a week back?
> If I wanted to wire a WS (ex: Hessian, JMS, REST,
> http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html
> (also used by Flash/Flex ;-) or ad noseum) ... would Struts+CoR or Shale
> be better on technical points?
> (right now I use CoR string dispatcher taking http requests)
> 

Shale, as of last Saturday, implements a pattern for doing REST-ful
requests from clients ... such as JavaScript methods running
XmlHttpRequest requests, or Flash remoting, or ... that maps incoming
URLs to a corresponding CoR chain or command.  Even though there
aren't any client side examples of this yet, you can see it in action
by downloading the Use Cases example app, deploying it on your
favorite container, and then executing a query like:

http://localhost:8080/struts-shale-usecases/list/supportedCategories.remote

or

http://localhost:8080/struts-shale-usecases/list/supportedLocales.remote

and you'll get back an XML response.  The requests that match a
specified URL pattern (in the example app it's *.remote) are passed to
a special handler that constructs a specialized CoR Context object
(org.apache.shale.remote.RemoteContext) that makes it easy to do
REST-type queries (including using request parameters to configure
queries), to create XML responses (if you want to do it
programmatically, check out the ResponseWrapper API), and to create
unit tests for your remote commands (because RemoteWrapper isolates
you completely from the servlet API, so it is very easy to mock).

You can do the same thing functionally with Struts 1.x and an Action
that maps a request to a chain, but it's easier to develop and test
the server side functionality with Shale.

> .V

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error Pages

2005-01-31 Thread Curtis Taylor
Hi Tim,
One (maybe obvious) question:
Does your tiles-defs.xml definition for "public.error" have a path to 
your jsp?

If not, that could wreak all kinds of error havoc...
Tim Christopher wrote:
Hi,
I'm trying to setup custom error pages using Tomcat but keep on
getting the following error:
[EMAIL PROTECTED]: Exception
Processing ErrorPage[errorCode=404, location=/errors/404.do]
ClientAbortException:  java.net.SocketException: Software caused
connection abort: socket write error
at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:331)
rest of stack dump...
Here is what's in my files:
Web.xml
--
  
404
/errors/404.do
  
Struts-Config.xml
--

  path="/errors/404" 
  type="org.apache.struts.actions.ForwardAction"
  parameter="public.error" />

Thanks in advance for your help.
Tim
##
Ps.
As a matter of best practices should I be using the above to forward
to the page (Tiles plug-in) or should I use the following, where
BlankAction extends action and whose execute method always returns
"success".

  

##

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


any free tools to design layout with Struts?

2005-01-31 Thread Daniel PC Leung
When the layouts are done by Tiles and
they are composed of a number of JSP files
and Tiles definitions, any tools to facilitate layout design?

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2.0 or Struts 0.0?

2005-01-31 Thread Vic
Craig McClanahan wrote:
I have proposed that Shale indeed be adopted in that way, and
will continue to encourage it; 
:-) 

(It took me a year after Struts .06 was out to find it, it took me a 
year to use CoR after that was there  )

Remember the WS for Struts at sf.net a week back?
If I wanted to wire a WS (ex: Hessian, JMS, REST, 
http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html 
(also used by Flash/Flex ;-) or ad noseum) ... would Struts+CoR or Shale 
be better on technical points?
(right now I use CoR string dispatcher taking http requests)

.V
--
Forums, Boards, Blogs and News in RiA 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts 2.0 or Struts 0.0?

2005-01-31 Thread Curtis Taylor
I think Mr. McClanahan summed it up nicely ;-)
Alex Kravets wrote:
So what do you guys think?
http://www.theserverside.com/news/thread.tss?thread_id=31509

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts 2.0 or Struts 0.0?

2005-01-31 Thread Craig McClanahan
To the "why is it named Shale instead of Struts" question ... I would
very much like it to be called Struts, but in the Apache development
culture that cannot happen until the committers agree that it *is*
Struts.  I have proposed that Shale indeed be adopted in that way, and
will continue to encourage it; the Struts committers have not (yet?
:-) accepted that part of the proposal, but have decided that Shale
deserves a home here as a formal subproject (instead of an ephemeral
"sandbox" thing that would have a harder time gaining traction because
people would wonder about its longevity).

A historical precedent for this idea was the way that the new servlet
container architecture (which ultimately became the container in
Tomcat 4) was introduced -- it was called Catalina (and that happens
to still be the package name), and was not allowed to be called
"Tomcat" until it was officially accepted by the Tomcat developers as
the selected architecture for Tomcat 4.

Craig



On Mon, 31 Jan 2005 17:03:09 -0500, Alex Kravets
<[EMAIL PROTECTED]> wrote:
> So what do you guys think?
> http://www.theserverside.com/news/thread.tss?thread_id=31509
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [UNICODE characters in Mask validation rule]

2005-01-31 Thread Kishore Senji
> Good evening. I'm a little stuck trying to create a global constant in 
> validation.xml that allows the mask rule to validate "special" spanish 
> characters like Ñ [ UNICODE =  \u00d1 ] for names, surnames, city names and 
> so... Can someone give a hint ;^) ? Mi RegExp is like this: ^[A-Z.Ñ\s]*$

 Something like this, I suppose
 
 

  name
   ^[A-Z.\u00d1\s]*$
  


But make sure you use the right character encoding for the request. 
http://marc.theaimsgroup.com/?l=struts-user&m=110484806414499&w=2
should give your more information on character encoding

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2.0 or Struts 0.0?

2005-01-31 Thread Vic
Well, the marketing department of Sturts is in hot water for this one. 
To: [EMAIL PROTECTED] wait, we don't have one.
Oh, well... who cares.

Some people just can't comprehend that there are 2 or more MVC 
frameworks out there.
.V
Alex Kravets wrote:

So what do you guys think?
http://www.theserverside.com/news/thread.tss?thread_id=31509

--
Forums, Boards, Blogs and News in RiA 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to send result into Pop-up window

2005-01-31 Thread Manisha Sathe
Thanks a lot, i think i can work this out. Btw, i could not receive the 
attached file (may be because it is through forum)
 
Would appreciate if can forward attachement again to [EMAIL PROTECTED]
 
Thanks once again,
 
regards
Manisha
 
 


Keshav Shetty <[EMAIL PROTECTED]> wrote:
Hi Manisah,

As I understand this problem is not exactly related to struts but with 
the controlling the flow.
With my knowledge of struts we can't do validation in main page and show 
the report in the
popup screen.

Don't worry I have a alternative solution for this.
Please refer the attached picture in word document which describes the flow.
The explanation is below.
1. Keep the criteria page as it is and let it submit to the Action-1 and 
don't open any popup window.
2. After the validation in Action 1, if the validation fails it will 
goto criteria page with validator message. If everything goes fine then 
forward it to a Dummy JSP.
3. The Dummy JSP will not contain anything but a javascript method to 
load the Action-2 by opening a popup window.
4. Action 2 will load the report page and show on the screen.

Note: Inorder to pass the critirea data between action 1 and 2 you have 
to store the criteria form in the session at execute method of Action 1 
and retrieve at execute method of Action 2.
You can remove this session object when you show the report.

The logic in action 1 will do just validation, store the form in session 
and forward to dummy jsp.
The logic in action 2 will generate the report based on the form by 
retrieving from session.
The dummy jsp may contain just follwoing code.



var winHand = 'someName';
var someWindow = window.open("Action-2",winHand,"menubar=no, 
toolbar=no,scrollbars=no,resizable=no,width=385,height=175,left=300,top=300"); 

document.formName.target= winHand;
document.formName.submit(); 
}


In case if you want to show the criteria page in the main window when 
the report is shown in the popup,
then you can combine criteria and dummyJsp and add some logic tag to 
open the popup window. The logic tag should use the
values which you have to insert in the request object at action 1.

Hope the things are clear.

Please write me if you need any additional info. If any other user knows 
better way please write.

Thanks & regards
Keshav K Shetty





Manisha Sathe wrote:

>Now i get pop-up window but some other problems i am facing
> 
>As u mentioned this will fail if i make use of validator javascript functions 
>on search citeria. 
>I thought i will use serverside validation - but now what's happening is i get 
>validation errors on my new pop-up window and not on my original window- is 
>there any other way do that everything works fine ?
> 
>regards
>Manisha
> 
> 
>
>
>Keshav Shetty wrote:Hi Manisha,
>As I understood your requirement is
>1. In first page you show teh search criteria. User enters all required 
>input and press show report.
>2. The form will be submitted action gets control and retrives required 
>data and forwards to report jsp.
>3. The final report page should come in a separate popup.
>If above requirement is correct then you can use the following mechanism 
>to control the flow.
>
>1. In your criteria page you have a form (I guess) Instead of submitting 
>the form write a javascript function to submit the form and define the 
>target to popup window.
>The javascript function may look like this.
>function submitForm()
>{
>var winHand = 'someName';
>var someWindow = window.open("actionPath",winHand,"menubar=no, 
>toolbar=no,scrollbars=no,resizable=no,width=385,height=175,left=300,top=300"); 
>
>document.formName.target= winHand;
>document.formName.submit(); 
>}
>
>Please replace someName, formName and actionPath with your form values.
>
>But the above technique will fail if the criteria form uses any validation.
>
>Please write me if you need any additional info.
>
>Thanks & regards
>Keshav
>
>Manisha Sathe wrote:
>
> 
>
>>Hi,
>>
>>I am having a serach criteria, depending on that one report will be 
>>generated. After Submit it is going to one Action handler and then going to 
>>JSP report page. Currently i am displaying it in the same window. But if i 
>>want to display result in new window then how can i achieve it ?
>>
>>(I believe this sort of question posted just few days back, but i am not 
>>finding it nowAnybody pls can repost it ? )
>>
>>Thanks in advance,
>>
>>Regards
>>Manisha
>>
>>
>>
>>
>>-
>>Do you Yahoo!?
>>Yahoo! Search presents - Jib Jab's 'Second Term'
>>
>>
>> 
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> 
>-
>Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> 
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

Re: Why is JCL thread-safe in an Action?

2005-01-31 Thread Kris Schneider
In the spirit of equal time:
http://wiki.apache.org/jakarta-commons/Commons_20Logging_20FUD
To summarize the last paragraph (that quotes an entry from the blog of one 
of JCL's creators), JCL is intended to be used by *library* code so it can 
leverage the logging implementation used by the application it is being 
called from. In other words, JCL is not intended to be used by applications.

Kris Schneider wrote:
I'll be looking into UGLI as well, but I currently code directly to the 
log4j API. Not that it doesn't have it's own set of issues in a J2EE 
environment, but my impression is that JCL can be much worse. Here's 
something else to chew on:

http://www.qos.ch/logging/thinkAgain.jsp
Vic wrote:
That's great about Java.
I am going the other way, from JCL to the new log4j:
http://logging.apache.org/log4j/docs/ugli.html
.V
[EMAIL PROTECTED] wrote:
Today I find myself converting an existing webapp from using Log4J 
directly to using JCL instead.  As per the JCL User's Guide, I'm 
creating a private static Log variable in all my classes, Struts 
Actions included.

My question is, why is this OK?  Static variables in Actions are a 
Bad Thing, that's a ell-known fact, but why is a Log instance an 
exception to this rule?

Is it only a bad thing to have static members that might be updated?  
Is that the difference here? Thanks all!
--
Kris Schneider 
D.O.Tech   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[UNICODE characters in Mask validation rule]

2005-01-31 Thread Carlos Cajina
Good evening. I'm a little stuck trying to create a global constant in 
validation.xml that allows the mask rule to validate "special" spanish 
characters like Ñ [ UNICODE =  \u00d1 ] for names, surnames, city names and 
so... Can someone give a hint ;^) ? Mi RegExp is like this: ^[A-Z.Ñ\s]*$

Regards,

Carlos

Re: Why is JCL thread-safe in an Action?

2005-01-31 Thread Kris Schneider
I'll be looking into UGLI as well, but I currently code directly to the 
log4j API. Not that it doesn't have it's own set of issues in a J2EE 
environment, but my impression is that JCL can be much worse. Here's 
something else to chew on:

http://www.qos.ch/logging/thinkAgain.jsp
Vic wrote:
That's great about Java.
I am going the other way, from JCL to the new log4j:
http://logging.apache.org/log4j/docs/ugli.html
.V
[EMAIL PROTECTED] wrote:
Today I find myself converting an existing webapp from using Log4J 
directly to using JCL instead.  As per the JCL User's Guide, I'm 
creating a private static Log variable in all my classes, Struts 
Actions included.

My question is, why is this OK?  Static variables in Actions are a Bad 
Thing, that's a ell-known fact, but why is a Log instance an exception 
to this rule?

Is it only a bad thing to have static members that might be updated?  
Is that the difference here? 
Thanks all!
--
Kris Schneider 
D.O.Tech   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Why is JCL thread-safe in an Action?

2005-01-31 Thread Vic
That's great about Java.
I am going the other way, from JCL to the new log4j:
http://logging.apache.org/log4j/docs/ugli.html
.V
[EMAIL PROTECTED] wrote:
Today I find myself converting an existing webapp from using Log4J directly to 
using JCL instead.  As per the JCL User's Guide, I'm creating a private static 
Log variable in all my classes, Struts Actions included.
My question is, why is this OK?  Static variables in Actions are a Bad Thing, 
that's a ell-known fact, but why is a Log instance an exception to this rule?
Is it only a bad thing to have static members that might be updated?  Is that the difference here?  

Thanks all!
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Forums, Boards, Blogs and News in RiA 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PreparedStatements

2005-01-31 Thread Jeff_Caswell




And it would seem this may be the ptf:

http://www-912.ibm.com/j_dir/JTOpen.nsf/8178b1c14b1e9b6b8525624f0062fe9f/a81403b611a0583686256bab006d7543?OpenDocument


JC



  
  "Woodchuck"   
  
  <[EMAIL PROTECTED]To:   "Struts Users Mailing 
List" , "sudip 
  o.com>shrestha" <[EMAIL PROTECTED]>   
   
   cc:  
  
  01/31/2005 03:25 Subject:  Re: PreparedStatements 
  
  PM
  
  Please respond to 
  
  "Struts Users 
  
  Mailing List" 
  

  




wow.. i guess there is a parameter limit with your specific
configuration  :p

--- sudip shrestha <[EMAIL PROTECTED]> wrote:

> It seems that it is a bug with OS/400 R 5.1.
> It has been documented before:
>
http://www-124.ibm.com/developerworks/bugs/?func=detailbug&bug_id=3160&group_id=29

>
>
> On Mon, 31 Jan 2005 12:48:55 -0600, sudip shrestha <[EMAIL PROTECTED]>
> wrote:
> > Using JDBC- JTOpen 4.6 for AS/400 DB2
> > I have a PreparedStatement that inserts 25 values into a table with
> 25
> > attributes...
> > When I supply  23 or less attributes with values, the insert
> operation
> > works normally.
> > However, if I supply 24 or 25 attributes it throws an exception:
> > java.sql.SQLException: [SQL0804] SQLDA not valid.
> >
> > There seems to be nothing wrong the the database/table/metadata, I
> can
> > run insert/update/delete operations normally with direct sql.  It
> is
> > the PreparedStatements with JDBC that I am having problems with.
> > I was wondering if there was limitation on number of parameters
> that
> > you can supply with PreparedStatements??
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





**
The information contained in this communication is confidential, private, 
proprietary, or otherwise privileged and is intended only for the use of the 
addressee.  Unauthorized use, disclosure, distribution or copying is strictly 
prohibited and may be unlawful.  If you have received this communication in 
error, please notify the sender immediately at (312)653-6000 in Illinois; 
(972)766-6900 in Texas; or (800)835-8699 in New Mexico.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Logging Question

2005-01-31 Thread Frank W. Zammetti
Well, I got an "actual" answer... Here's what I was told...
"Log4J is not J2EE complient so we should not be coding to it
directly.  Log4J requires direct file manipulation.  J2EE forbids
direct file manipulation, requires URL of "file://..." usage."
"WAS uses commons logging in it's implementation, currently with
Log4J underneath.  Log4j is notorious for getting confused with too
many initializers."
(WAS being Websphere, in case anyone wasn't sure... that's what we've 
settled on here).

I completely agree with the part about not coding to Log4J directly (or 
to any other logging package directly), hence I have no problems going 
to JCL.  But, what I'm being told is that Log4J should not be used 
underneath, at least down the road (many of our apps do use it, and no 
one is yet being pushed off of it).

What about the file manipulation and Log4J getting confused points?  Any 
comments on those?  I wasn't aware that manipulating files was contrary 
to J2EE rules.  What did I miss?

(I should point out that the person who gave me these quotes is 
generally a very knowledgable person, someone who's expertise I'd say I 
trust, so I'm not trying to throw anything in his face or anything, but 
if my company is laboring under a false bit of information, namely that 
Log4J is a problem for someone reason, and it's not actually true, 
someone, looks like me!, has to let them know).

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Eddie Bush wrote:
On Mon, 31 Jan 2005 01:33:22 -0500, Frank W. Zammetti
<[EMAIL PROTECTED]> wrote:
Quick question... I wanted to get answers from real-world Struts developers, so 
I hope no one minds the OT post...
Is anyone using Commons Logging in their webapps, and if so, what logging toolkit are you using under it?

Log4J ... awesome, flexible stuff.

Also, for anyone that is using Log4J... I've been told at work that we cannot use it because it isn't "J2EE-compliant"... 

No clue :-/ I know it seems to work pretty well though :-D
How can you say something that has nothing to do with the J2EE spec to
is(n't) compliant with it though?  I'd wager it has something to do
with how it loads classes ...

Thanks all!
Frank W. Zammetti



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Struts 2.0 or Struts 0.0?

2005-01-31 Thread Alex Kravets
So what do you guys think?
http://www.theserverside.com/news/thread.tss?thread_id=31509
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PreparedStatements

2005-01-31 Thread Woodchuck
wow.. i guess there is a parameter limit with your specific
configuration  :p

--- sudip shrestha <[EMAIL PROTECTED]> wrote:

> It seems that it is a bug with OS/400 R 5.1.
> It has been documented before: 
>
http://www-124.ibm.com/developerworks/bugs/?func=detailbug&bug_id=3160&group_id=29
> 
> 
> On Mon, 31 Jan 2005 12:48:55 -0600, sudip shrestha <[EMAIL PROTECTED]>
> wrote:
> > Using JDBC- JTOpen 4.6 for AS/400 DB2
> > I have a PreparedStatement that inserts 25 values into a table with
> 25
> > attributes...
> > When I supply  23 or less attributes with values, the insert
> operation
> > works normally.
> > However, if I supply 24 or 25 attributes it throws an exception:
> > java.sql.SQLException: [SQL0804] SQLDA not valid.
> > 
> > There seems to be nothing wrong the the database/table/metadata, I
> can
> > run insert/update/delete operations normally with direct sql.  It
> is
> > the PreparedStatements with JDBC that I am having problems with.
> > I was wondering if there was limitation on number of parameters
> that
> > you can supply with PreparedStatements??
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PreparedStatements

2005-01-31 Thread Woodchuck
afaik, there is no parameter limit

your problem is probably related to the actual data value you're trying
to set as parameter values for your preparedstatement.  just my guess.

find out whether your problem is always happening on specific
parameters or not... ie. the 24th or 25th parameter that breaks the
camel's back


--- sudip shrestha <[EMAIL PROTECTED]> wrote:

> Using JDBC- JTOpen 4.6 for AS/400 DB2
> I have a PreparedStatement that inserts 25 values into a table with
> 25
> attributes...
> When I supply  23 or less attributes with values, the insert
> operation
> works normally.
> However, if I supply 24 or 25 attributes it throws an exception: 
> java.sql.SQLException: [SQL0804] SQLDA not valid.
> 
> There seems to be nothing wrong the the database/table/metadata, I
> can
> run insert/update/delete operations normally with direct sql.  It is
> the PreparedStatements with JDBC that I am having problems with.
> I was wondering if there was limitation on number of parameters that
> you can supply with PreparedStatements??
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PreparedStatements

2005-01-31 Thread sudip shrestha
It seems that it is a bug with OS/400 R 5.1.
It has been documented before: 
http://www-124.ibm.com/developerworks/bugs/?func=detailbug&bug_id=3160&group_id=29


On Mon, 31 Jan 2005 12:48:55 -0600, sudip shrestha <[EMAIL PROTECTED]> wrote:
> Using JDBC- JTOpen 4.6 for AS/400 DB2
> I have a PreparedStatement that inserts 25 values into a table with 25
> attributes...
> When I supply  23 or less attributes with values, the insert operation
> works normally.
> However, if I supply 24 or 25 attributes it throws an exception:
> java.sql.SQLException: [SQL0804] SQLDA not valid.
> 
> There seems to be nothing wrong the the database/table/metadata, I can
> run insert/update/delete operations normally with direct sql.  It is
> the PreparedStatements with JDBC that I am having problems with.
> I was wondering if there was limitation on number of parameters that
> you can supply with PreparedStatements??
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Coupling between view and domain model (off topic)

2005-01-31 Thread Vic
I guess it be a new case.
If there are 2 logical forms like master (name) and detail(list of 
transactions, that means the 1 form bean has to mirror it so you would 
have to nest a bean.
(and... once the client approves... I would write a DAO).

As far as MDA I myself use requirments based iterative development. 
(and therefore I do not model untill the both the mock and the prototype 
are validated. Then I model).
But... any kind of matianance grays the area.

I kind of disagreee with people that do UML or MDA BEFORE they validate 
what the client wants.
.V

Leandro Melo wrote:
Suppose that one year later your client decided to
change the information contained in one of the pages.
He now wants the all the stuff from 2 pages in only 1
page. You`d probably have to make some changes in your
action. As you said, you created form beans based on
the html fields. Naturally, the way that the actions
manipulate these form beans will change (maybe just a
little if well disigned). 
THis is the other coupling i`m talking about.
I`m not saying this is wrong or this is bad modelling,
whatever. I`m just asking if there`s a very abstract
model where we don`t have the coupling. Maybe i`m
looking a little for mda...

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


PreparedStatements

2005-01-31 Thread sudip shrestha
Using JDBC- JTOpen 4.6 for AS/400 DB2
I have a PreparedStatement that inserts 25 values into a table with 25
attributes...
When I supply  23 or less attributes with values, the insert operation
works normally.
However, if I supply 24 or 25 attributes it throws an exception: 
java.sql.SQLException: [SQL0804] SQLDA not valid.

There seems to be nothing wrong the the database/table/metadata, I can
run insert/update/delete operations normally with direct sql.  It is
the PreparedStatements with JDBC that I am having problems with.
I was wondering if there was limitation on number of parameters that
you can supply with PreparedStatements??

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why is JCL thread-safe in an Action?

2005-01-31 Thread fzlists
Makes sense, thanks.  Somewhere along the line I got it in my head that
all static vars are bad.  It makes sense that they wouldn't be, I guess I
just got it in my head that they are always bad and never really
questioned why.  If nothing else, that quote you references says it all
quite clearly.  Thanks!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, January 31, 2005 1:05 pm, Dakota Jack said:
> 
>> Static variables in Actions are a Bad
>> Thing, that's a ell-known fact, but why is a Log instance an exception
>> to
>> this rule?
>>
>> Is it only a bad thing to have static members that might be updated?  Is
>> that the difference here?
> 
>
> The documentation for Action says:
>
> "Instance and static variables MUST NOT be used to store information
> related to the state of a particular request. They MAY be used to
> share global resources across requests for the same action."
>
> In other words, you just have to think about what you are doing,
> Frank.  There is nothing inherently wrong with static variables.  If
> you are storing state for a particular action in a static variable,
> this will clearly cause a problem.  If you are storing state in a
> particular action where that state has nothing to do with the
> particular Action, that is different.  Here there is no problem with
> using the same Log class object for distinct uses of the same Action
> class object.
>
> Jack
>
> --
> "You can lead a horse to water but you cannot make it float on its back."
> "Heaven has changed.  The Sky now goes all the way to our feet.
>
> ~Dakota Jack~
>
> "This message may contain confidential and/or privileged information.
> If you are not the addressee or authorized to receive this for the
> addressee, you must not use, copy, disclose, or take any action based
> on this message or any information herein. If you have received this
> message in error, please advise the sender immediately by reply e-mail
> and delete this message. Thank you for your cooperation."
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Why is JCL thread-safe in an Action?

2005-01-31 Thread Dakota Jack

> Static variables in Actions are a Bad
> Thing, that's a ell-known fact, but why is a Log instance an exception to
> this rule?
> 
> Is it only a bad thing to have static members that might be updated?  Is
> that the difference here?


The documentation for Action says:

"Instance and static variables MUST NOT be used to store information
related to the state of a particular request. They MAY be used to
share global resources across requests for the same action."

In other words, you just have to think about what you are doing,
Frank.  There is nothing inherently wrong with static variables.  If
you are storing state for a particular action in a static variable,
this will clearly cause a problem.  If you are storing state in a
particular action where that state has nothing to do with the
particular Action, that is different.  Here there is no problem with
using the same Log class object for distinct uses of the same Action
class object.

Jack

-- 
"You can lead a horse to water but you cannot make it float on its back."
"Heaven has changed.  The Sky now goes all the way to our feet.

~Dakota Jack~

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Why is JCL thread-safe in an Action?

2005-01-31 Thread fzlists
Today I find myself converting an existing webapp from using Log4J directly to 
using JCL instead.  As per the JCL User's Guide, I'm creating a private static 
Log variable in all my classes, Struts Actions included.

My question is, why is this OK?  Static variables in Actions are a Bad Thing, 
that's a ell-known fact, but why is a Log instance an exception to this rule?

Is it only a bad thing to have static members that might be updated?  Is that 
the difference here?  

Thanks all!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Why is JCL thread-safe in an Action?

2005-01-31 Thread Frank W. Zammetti (MLists)
Today I find myself converting an existing webapp from using Log4J
directly to using JCL instead.  As per the JCL User's Guide, I'm creating
a private static Log variable in all my classes, Struts Actions included.

My question is, why is this OK?  Static variables in Actions are a Bad
Thing, that's a ell-known fact, but why is a Log instance an exception to
this rule?

Is it only a bad thing to have static members that might be updated?  Is
that the difference here?

Thanks all!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Coupling between view and domain model (off topic)

2005-01-31 Thread Leandro Melo
Vic, the separation of view and model is clear on your
approach, liked it.
However, there`s still one of the coupling i
mentioned.
Suppose that one year later your client decided to
change the information contained in one of the pages.
He now wants the all the stuff from 2 pages in only 1
page. You`d probably have to make some changes in your
action. As you said, you created form beans based on
the html fields. Naturally, the way that the actions
manipulate these form beans will change (maybe just a
little if well disigned). 
THis is the other coupling i`m talking about.
I`m not saying this is wrong or this is bad modelling,
whatever. I`m just asking if there`s a very abstract
model where we don`t have the coupling. Maybe i`m
looking a little for mda...



--- Vic <[EMAIL PROTECTED]> wrote:

> 
> See if this methodology helps you separate the 2.
> When I start a project I do not care about DB or
> model; I only care 
> what the client wants, like what fields, where, etc.
> 
> I work w/ them to create html mock ups as
> requirments.
> Is this what they want?
> Once that's done, it's easy.
> I rename HTML to jsp and write Struact actions to
> get to each of the 
> said JSPs
> Then I write formbeans (since I know html fileds, I
> know get/set :-) ; 
> nothing w/ model).
> Now I have a prototype where I validate... is this
> what you want?
> ( See, no model. )
> 
> If yes... I design CURD of DAO and model (sometimes
> E/R, sometimes I 
> have to get data from various existing dbs)  in a
> way to populate or 
> save my form beans fields..
> I unit test the DAO's CRUD outside of container and
> outside of Struts. 
> If it does not CRUD here ... it won't start working
> once I put it in Struts.
> The 2 are as separate as possible. The CRUD might be
> simple or complex; 
> I assume the client does not care, as long as they
> get what they want.
> Only then do I integrate the 2.
> 
> .V
> 
> Leandro Melo wrote:
> 
> >Hi all.
> >This might seem more a design question than a
> struts
> >specific question. Anyway, if anyone could help me
> out
> >a little here.
> >I`m going to explain what is my approach for an
> >specific situation, then you tell me what you think
> >about that, ok.
> >When i`m designinig the web interface for a
> software,
> >i go something like this.
> >Suppose i have a table USER in database and also
> have
> >2 other tables that have relationships to this one.
> >They`re table USER_PROFILE and USER_ADDRESS.
> >I`m very used to build CRUD pages, so i usually go
> >with a design like this.
> >I got, for example, a UserCRUDPage, where the user
> can
> >set attributes like name, age, e-mail, etc... that
> >belong to the USER table in db. I also use
> something
> >like a navigation bar that in this specific case
> would
> >have 2 links, one for User Profile and other for
> User
> >Email.
> >This way, if the user wants to set/update his/her
> >address, he would just click on the link and go to
> the
> >AddressCRUDPage. The same thing would happen to
> >profile.
> >This design seems to be very nice to me.
> >Unfortunatelly, i had an experience last week that
> >made me think about that.
> >I had some Actions associated whith the updates. In
> >this case i had ActionUserUpdate,
> >ActionUserAddressUpdate and
> ActionUserProfileUpdate.
> >Naturally, this classes performed all the control
> >layer associated with those operations. It doesn`t
> >matter right now if the Actions are in diferent
> >classes or in the same one. If you want, you can
> think
> >that i actually had a DispatchActionUserCRUD for
> >example.
> >The "problem" started when my client decided that
> from
> >now on he would like to have the address operation
> >page in the same page of the user page. In this
> case i
> >had to mix the UserCRUDPage with the
> AddressCRUDPage
> >in only one page. My client also wanted that all
> the
> >data on the page could be updated with only one
> mouse
> >click (in other words, only one 'save' button).
> >Naturally, i was forced to make some small changes
> in
> >my pages (and it`s forms) and the associated
> Actions,
> >so now i need to a way of centralizing the
> operation
> >of both actions (User and Address). Briefly, i need
> to
> >make a few changes in my Action, that`s the point
> >here.
> >Although the changes were actually small, i started
> to
> >think that :
> >
> >My view is coupled to my control layer, wich is
> even
> >more coupled with my domain model.
> >
> >Well, i`m not talking about big coupling here, but
> it
> >exists. In other workds i`m saying that in more
> >abstract point of view, this is what happens.
> >I really would like to hear comments about this
> whole
> >thing...
> >Thanks for reading.
> >
> >
> >
> > 
> >__ 
> >Do you Yahoo!? 
> >Yahoo! Mail - Easier than ever with enhanced
> search. Learn more.
> >http://info.mail.yahoo.com/mail_250
> >  
> >
> 
> 
> -- 
> Forums, Boards, Blogs and News in RiA
> 

question about form buttons

2005-01-31 Thread Norris Shelton
I need 3 buttons 
1) normal submit button - works correctly - yeah



2) reset button - press this and any changes since the last form
submit are removed
Tried (displayed image, but submitted:

used (resets correctly, but no image:


3) clear button - runs some javascript to blank all of the
fields.
Displays image correctly, clears form, but submits.

A complicating factor is that all of these need to be images.

=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton




__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Coupling between view and domain model (off topic)

2005-01-31 Thread Vic
See if this methodology helps you separate the 2.
When I start a project I do not care about DB or model; I only care 
what the client wants, like what fields, where, etc.

I work w/ them to create html mock ups as requirments.
Is this what they want?
Once that's done, it's easy.
I rename HTML to jsp and write Struact actions to get to each of the 
said JSPs
Then I write formbeans (since I know html fileds, I know get/set :-) ; 
nothing w/ model).
Now I have a prototype where I validate... is this what you want?
( See, no model. )

If yes... I design CURD of DAO and model (sometimes E/R, sometimes I 
have to get data from various existing dbs)  in a way to populate or 
save my form beans fields..
I unit test the DAO's CRUD outside of container and outside of Struts. 
If it does not CRUD here ... it won't start working once I put it in Struts.
The 2 are as separate as possible. The CRUD might be simple or complex; 
I assume the client does not care, as long as they get what they want.
Only then do I integrate the 2.

.V
Leandro Melo wrote:
Hi all.
This might seem more a design question than a struts
specific question. Anyway, if anyone could help me out
a little here.
I`m going to explain what is my approach for an
specific situation, then you tell me what you think
about that, ok.
When i`m designinig the web interface for a software,
i go something like this.
Suppose i have a table USER in database and also have
2 other tables that have relationships to this one.
They`re table USER_PROFILE and USER_ADDRESS.
I`m very used to build CRUD pages, so i usually go
with a design like this.
I got, for example, a UserCRUDPage, where the user can
set attributes like name, age, e-mail, etc... that
belong to the USER table in db. I also use something
like a navigation bar that in this specific case would
have 2 links, one for User Profile and other for User
Email.
This way, if the user wants to set/update his/her
address, he would just click on the link and go to the
AddressCRUDPage. The same thing would happen to
profile.
This design seems to be very nice to me.
Unfortunatelly, i had an experience last week that
made me think about that.
I had some Actions associated whith the updates. In
this case i had ActionUserUpdate,
ActionUserAddressUpdate and ActionUserProfileUpdate.
Naturally, this classes performed all the control
layer associated with those operations. It doesn`t
matter right now if the Actions are in diferent
classes or in the same one. If you want, you can think
that i actually had a DispatchActionUserCRUD for
example.
The "problem" started when my client decided that from
now on he would like to have the address operation
page in the same page of the user page. In this case i
had to mix the UserCRUDPage with the AddressCRUDPage
in only one page. My client also wanted that all the
data on the page could be updated with only one mouse
click (in other words, only one 'save' button).
Naturally, i was forced to make some small changes in
my pages (and it`s forms) and the associated Actions,
so now i need to a way of centralizing the operation
of both actions (User and Address). Briefly, i need to
make a few changes in my Action, that`s the point
here.
Although the changes were actually small, i started to
think that :
My view is coupled to my control layer, wich is even
more coupled with my domain model.
Well, i`m not talking about big coupling here, but it
exists. In other workds i`m saying that in more
abstract point of view, this is what happens.
I really would like to hear comments about this whole
thing...
Thanks for reading.

		
__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250
 


--
Forums, Boards, Blogs and News in RiA 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Coupling between view and domain model (off topic)

2005-01-31 Thread Leandro Melo
Hi all.
This might seem more a design question than a struts
specific question. Anyway, if anyone could help me out
a little here.
I`m going to explain what is my approach for an
specific situation, then you tell me what you think
about that, ok.
When i`m designinig the web interface for a software,
i go something like this.
Suppose i have a table USER in database and also have
2 other tables that have relationships to this one.
They`re table USER_PROFILE and USER_ADDRESS.
I`m very used to build CRUD pages, so i usually go
with a design like this.
I got, for example, a UserCRUDPage, where the user can
set attributes like name, age, e-mail, etc... that
belong to the USER table in db. I also use something
like a navigation bar that in this specific case would
have 2 links, one for User Profile and other for User
Email.
This way, if the user wants to set/update his/her
address, he would just click on the link and go to the
AddressCRUDPage. The same thing would happen to
profile.
This design seems to be very nice to me.
Unfortunatelly, i had an experience last week that
made me think about that.
I had some Actions associated whith the updates. In
this case i had ActionUserUpdate,
ActionUserAddressUpdate and ActionUserProfileUpdate.
Naturally, this classes performed all the control
layer associated with those operations. It doesn`t
matter right now if the Actions are in diferent
classes or in the same one. If you want, you can think
that i actually had a DispatchActionUserCRUD for
example.
The "problem" started when my client decided that from
now on he would like to have the address operation
page in the same page of the user page. In this case i
had to mix the UserCRUDPage with the AddressCRUDPage
in only one page. My client also wanted that all the
data on the page could be updated with only one mouse
click (in other words, only one 'save' button).
Naturally, i was forced to make some small changes in
my pages (and it`s forms) and the associated Actions,
so now i need to a way of centralizing the operation
of both actions (User and Address). Briefly, i need to
make a few changes in my Action, that`s the point
here.
Although the changes were actually small, i started to
think that :

My view is coupled to my control layer, wich is even
more coupled with my domain model.

Well, i`m not talking about big coupling here, but it
exists. In other workds i`m saying that in more
abstract point of view, this is what happens.
I really would like to hear comments about this whole
thing...
Thanks for reading.




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Thanks

2005-01-31 Thread bmf5




I'm moving to a new project and won't need to subscribe to this list for
the time being.  Before moving on though, I wanted to say thank you to
everyone.  The people here are great.

Seven months ago I had heard and read of Struts but never used it.  I'm now
leaving behind a small web app built on 1.1.  Between a few good books, the
Struts website and this list I was able to do it.  Everyone here has been
very helpful, offering insight, clarification and examples countless times.

Special thanks to Craig, Ted and all the other contributors.  Struts is a
great tool.

Thank you all.  I wish you the best.

Bart



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accessing Database Information

2005-01-31 Thread Larry Meadors
Read Rick's ibatis tutorial, it covers DAO quite well:

http://reumann.net/struts/ibatisLesson1.do


On Sun, 30 Jan 2005 09:57:03 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Brandon Mercer" <[EMAIL PROTECTED]>
> > They both talk about accessing information from a database and DAO and DTO
> > and all that jazz and quite frankly I don't understand it.  :-P
> 
> This should explain the DAO and DTO references:
> http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
> 
> This is the pattern I used to write my data access layer.  But I'm unlucky
> in that my database is weird and SQL/JDBC doesn't work well with it.  It has
> a proprietary API, so I had to write all the DAO classes myself.  It looks
> like you have a normal SQL database, so you could use one of the persistence
> frameworks like Hibernate if you wanted.
> 
> What you've got so far looks pretty good!  From your intro I expected to see
> JDBC in the Action code, but you have it separated out. :)
> 
> Is 'BillPayForm'  Struts form bean?  If so, [IMO] you should get it out of
> your BillpayData class.  (The data access classes shouldn't know about
> Struts or HTTPRequests.)  You might also consider having the data access
> class "know" how to get its own connection rather than passing one in.  I
> use a static Factory, but you can [I hear] configure a Datasource in the
> Servlet container and then any class should be able to look it up [JNDI??].
> 
> The magic of BeanUtils looks like this:
> 
>Person person = personDAO.read( "012345" );
> BeanUtils.copyProperties( form, person );
> 
> That prepopulates the form for display.
> When the user has submitted his changes, you go back the other way:
> 
>BeanUtils.copyProperties( person, form );
> personDAO.update( person );
> 
> --
> Wendy Smoak 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DynaActionForm problem (newbie probably :)

2005-01-31 Thread Jeff Beal
Joe Germuska wrote:
At 9:02 AM -0600 1/31/05, Hubert Rabago wrote:
I only recently became aware of BeanUtils' non-static object 
counterparts,
and I haven't had a chance to use them yet or figure out if Struts can
use them.

I think I raised this question recently on the user list, but if not, 
it's worth raising again.  What would be a plausible configuration model 
for Struts to use multiple instances of the beanutils classes? Ted has 
(at least once) suggested giving ActionForm the responsibility for 
population itself (by adding a "populate" method) -- this makes a 
certain amount of sense, but before implementing it, I would want to try 
hard to come up with a design which insulated Struts from the details of 
the HTTP Servlet API.
I like the idea of adding a populate() method to ActionForm.  If you 
make the argument to this a Map that you retrieve from 
request.getParameterMap(), the ActionForm will be insulated from the 
Servlet API.

-- Jeff Beal
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DynaActionForm problem (newbie probably :)

2005-01-31 Thread Hubert Rabago
I think as far as configuration is concerned, it shouldn't be about
the developer configuring multiple BeanUtils instances, but
configuring how individual fields should be formatted.  This is what I
went for with FormDef.
http://www.rabago.net/struts/formdef/manual.htm#specifyingformats


On Mon, 31 Jan 2005 09:13:07 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
> At 9:02 AM -0600 1/31/05, Hubert Rabago wrote:
> >I only recently became aware of BeanUtils' non-static object counterparts,
> >and I haven't had a chance to use them yet or figure out if Struts can
> >use them.
> 
> I think I raised this question recently on the user list, but if not,
> it's worth raising again.  What would be a plausible configuration
> model for Struts to use multiple instances of the beanutils classes?
> Ted has (at least once) suggested giving ActionForm the
> responsibility for population itself (by adding a "populate" method)
> -- this makes a certain amount of sense, but before implementing it,
> I would want to try hard to come up with a design which insulated
> Struts from the details of the HTTP Servlet API.
> 
> If not that, could anyone suggest a way to support this which wasn't
> too cumbersome?
> 
> Joe
> 
> 
> >You're right, though.  If the same converter will be used throughout the
> >application, then there's no conflict, and it may as well be registered
> >in a plugin.
> >
> >Hubert
> >
> >
> >On Sun, 30 Jan 2005 15:53:28 -0600, Kishore Senji <[EMAIL PROTECTED]> wrote:
> >>  > Wouldn't you then run into possible conflicts if you have other areas
> >>  > of the code or other forms using BeanUtils?
> >>
> >>  May be I misunderstood. I thought he is using that (a
> >>  special)converter only for a specific action (registering the
> >>  converter inside the execute method) and he wants that converter not
> >>  to be there once the action saves the form in the execute. If the
> >>  converter is needed for form population or some where else best thing
> >>  is to register the converter in a Plugin.
> >>
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> --
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DynaActionForm problem (newbie probably :)

2005-01-31 Thread Joe Germuska
At 9:02 AM -0600 1/31/05, Hubert Rabago wrote:
Last time I checked (which was a couple of months back), Struts uses the
static methods of BeanUtils.  This means that they just use the same
instance used by all classes for the same application.  The same goes for
ConvertUtils.register().  So, from what I understand, once you register a
converter, that converter becomes active for all BeanUtils calls from that
point on, not only for the method that registered the converter,
but also for other threads which may be running and using BeanUtils.
So if you have ActionA registering ConverterA for java.util.Date, and
ActionB registering ConverterB for java.util.Date, and two different
users trigger these two actions at roughly the same time, the last
converter that got registered is the one that will be called when
BeanUtils.copyProperties() gets called.
I only recently became aware of BeanUtils' non-static object counterparts,
and I haven't had a chance to use them yet or figure out if Struts can
use them.
I think I raised this question recently on the user list, but if not, 
it's worth raising again.  What would be a plausible configuration 
model for Struts to use multiple instances of the beanutils classes? 
Ted has (at least once) suggested giving ActionForm the 
responsibility for population itself (by adding a "populate" method) 
-- this makes a certain amount of sense, but before implementing it, 
I would want to try hard to come up with a design which insulated 
Struts from the details of the HTTP Servlet API.

If not that, could anyone suggest a way to support this which wasn't 
too cumbersome?

Joe


You're right, though.  If the same converter will be used throughout the
application, then there's no conflict, and it may as well be registered
in a plugin.
Hubert
On Sun, 30 Jan 2005 15:53:28 -0600, Kishore Senji <[EMAIL PROTECTED]> wrote:
 > Wouldn't you then run into possible conflicts if you have other areas
 > of the code or other forms using BeanUtils?
 May be I misunderstood. I thought he is using that (a
 special)converter only for a specific action (registering the
 converter inside the execute method) and he wants that converter not
 to be there once the action saves the form in the execute. If the
 converter is needed for form population or some where else best thing
 is to register the converter in a Plugin.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DynaActionForm problem (newbie probably :)

2005-01-31 Thread Hubert Rabago
Last time I checked (which was a couple of months back), Struts uses the 
static methods of BeanUtils.  This means that they just use the same 
instance used by all classes for the same application.  The same goes for
ConvertUtils.register().  So, from what I understand, once you register a 
converter, that converter becomes active for all BeanUtils calls from that
point on, not only for the method that registered the converter,
but also for other threads which may be running and using BeanUtils.
So if you have ActionA registering ConverterA for java.util.Date, and 
ActionB registering ConverterB for java.util.Date, and two different
users trigger these two actions at roughly the same time, the last
converter that got registered is the one that will be called when
BeanUtils.copyProperties() gets called.

I only recently became aware of BeanUtils' non-static object counterparts,
and I haven't had a chance to use them yet or figure out if Struts can
use them.

You're right, though.  If the same converter will be used throughout the
application, then there's no conflict, and it may as well be registered 
in a plugin.

Hubert


On Sun, 30 Jan 2005 15:53:28 -0600, Kishore Senji <[EMAIL PROTECTED]> wrote:
> > Wouldn't you then run into possible conflicts if you have other areas
> > of the code or other forms using BeanUtils?
> 
> May be I misunderstood. I thought he is using that (a
> special)converter only for a specific action (registering the
> converter inside the execute method) and he wants that converter not
> to be there once the action saves the form in the execute. If the
> converter is needed for form population or some where else best thing
> is to register the converter in a Plugin.
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Another ODBC OT Question

2005-01-31 Thread Martin Gainty
Brandon:

With regards to Oracle
Accessing Sequence will work if you make sure the Sequence is SELECTED
within your session otherwise you should use .nextval to ensure you get
a unique and valid value for your sequence
for details Please read
http://www.orafaq.net/usenet/comp.databases.oracle.tools/1999/12/11/0592.htm
As with all things try the Statements in TOAD or SQLPlus environment first..
(My apologies for this OT discussion)

Keep me apprised of your progress,

Martin-
617-852-7822

- Original Message -
From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Monday, January 31, 2005 7:57 AM
Subject: Re: Another ODBC OT Question


> Depends on your database. Most db's like MaxDB, Oracle and so on which
> support sequences can retreive the current value of the sequence after
> it has been used.
> Usually something along the lines of .CURRVAL for Oracle. Typically
> you can only use it if you've used the sequence in the first place
> (can't remember if true or not).
> Not sure if MySQL can do that.
> HIH.
>
> Brandon Mercer wrote:
>
> > Hello,
> > Ok, I've got another off topic question :-P.  That's two in a day!
> > Three strikes and I'm out.  lol  Anyhow, I am inserting information
> > into a database and I need to get the auto_increment value from my
> > first insert and use the value it returns to create an entry in
> > another table.  Does anyone have a code snippet that they could show
> > me?  Thanks,
> > Brandon
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Another ODBC OT Question

2005-01-31 Thread Kwok Peng Tuck
Depends on your database. Most db's like MaxDB, Oracle and so on which 
support sequences can retreive the current value of the sequence after 
it has been used.
Usually something along the lines of .CURRVAL for Oracle. Typically 
you can only use it if you've used the sequence in the first place 
(can't remember if true or not).
Not sure if MySQL can do that.
HIH.

Brandon Mercer wrote:
Hello,
Ok, I've got another off topic question :-P.  That's two in a day!  
Three strikes and I'm out.  lol  Anyhow, I am inserting information 
into a database and I need to get the auto_increment value from my 
first insert and use the value it returns to create an entry in 
another table.  Does anyone have a code snippet that they could show 
me?  Thanks,
Brandon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to send result into Pop-up window

2005-01-31 Thread Keshav Shetty
Hi Manisah,
As I understand this problem is not exactly related to struts but with 
the controlling the flow.
With my knowledge of struts we can't do validation in main page and show 
the report in the
popup screen.

Don't worry I have a alternative solution for this.
Please refer the attached picture in word document which describes the flow.
The explanation is below.
1. Keep the criteria page as it is and let it submit to the Action-1 and 
don't open any popup window.
2. After the validation in Action 1, if the validation fails it will 
goto criteria page with validator message. If everything goes fine then 
forward it to a Dummy JSP.
3. The Dummy JSP will not contain anything but a javascript method to 
load the Action-2 by opening a popup window.
4. Action 2 will load the report page and show on the screen.

Note: Inorder to pass the critirea data between action 1 and 2 you have 
to store the criteria form in the session at execute method of Action 1 
and retrieve at execute method of Action 2.
   You can remove this session object when you show the report.

The logic in action 1 will do just validation, store the form in session 
and forward to dummy jsp.
The logic in action 2 will generate the report based on the form by 
retrieving from session.
The dummy jsp may contain just follwoing code.


var winHand = 'someName';
var someWindow = window.open("Action-2",winHand,"menubar=no, toolbar=no,scrollbars=no,resizable=no,width=385,height=175,left=300,top=300");


document.formName.target= winHand;
document.formName.submit(); }
In case if you want to show the criteria page in the main window when the report is shown in the popup, then you can combine criteria and dummyJsp and add some logic tag to open the popup window. The logic tag should use the values which you have to insert in the request object at action 1. Hope the things are clear. Please write me if you need any additional info. If any other user knows better way please write. Thanks & regards Keshav K Shetty Manisha Sathe wrote: Now i get pop-up window but some other problems i am facing As u mentioned this will fail if i make use of validator javascript functions on search citeria. I thought i will use serverside validation - but now what's happening is i get validation errors on my new pop-up window and not on my original window- is there any other way do that everything works fine ? regards Manisha Keshav Shetty <[EMAIL PROTECTED]> wrote:Hi Manisha, As I understood your requirement is 1. In first page you show teh search criteria. User enters all required input and press show report. 2. The form will be submitted action gets control and retrives required data and forwards to report jsp. 3. The final report page should come in a separate popup. If above requirement is correct then you can use the following mechanism to control the flow. 1. In your criteria page you have a form (I guess) Instead of submitting the form write a javascript function to submit the form and define the target to popup window. The javascript function may look like this. function submitForm() { var winHand = 'someName'; var someWindow = window.open("actionPath",winHand,"menubar=no, toolbar=no,scrollbars=no,resizable=no,width=385,height=175,left=300,top=300"); document.formName.target= winHand; document.formName.submit(); } Please replace someName, formName and actionPath with your form values. But the above technique will fail if the criteria form uses any validation. Please write me if you need any additional info. Thanks & regards Keshav Manisha Sathe wrote: Hi, I am having a serach criteria, depending on that one report will be generated. After Submit it is going to one Action handler and then going to JSP report page. Currently i am displaying it in the same window. But if i want to display result in new window then how can i achieve it ? (I believe this sort of question posted just few days back, but i am not finding it nowAnybody pls can repost it ? ) Thanks in advance, Regards Manisha - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Logging Question

That would depend upon how your cluster is setup though too.  Each
node in our clusters/farms has its own independent disk, running its
own independent copy of the app ... and has its own independent log
file.

I can't imagine why someone would use a shared mount in a cluster
environment.  The whole thing about a cluster is generally a
combination of performance and high-availability.  I guess not
everyone clusters for HA, but having a cluster share a mount would
certainly work against HA.

On Mon, 31 Jan 2005 01:03:18 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote:
> Log4J in a cluster is an issue if you are using FileAppender.

-- 
Eddie Bush

Thank you for removing unnecessary dialog when posting a response!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Re: Another ODBC OT Question

Thanks for the post. I didn't realize MySQL had implemented so much of 
JDBC 3. A standard API for retrieval of RDBMS-generated keys rocks! This 
on top of the recent improvements in driver performance. Awesome.

Erik
Brandon Mercer wrote:
Erik Weber wrote:
Sorry for all those local disk links and other junk. Cut and paste.
Thanks everyone this article 
http://dev.mysql.com/tech-resources/articles/autoincrement-with-connectorj.html 
was the ticket for me.  We all know how it gets when you're writing 
code all day long and you start to forget how to function!  :-P  
Thanks for the patience and help.  I've got working now. Regards,
Brandon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Logging Question

Log4J in a cluster is an issue if you are using FileAppender. The
problem arises because of multiple process from multiple machines
writing to the same file. Either you need to synchronize these
processes by writing a buffer around the FileAppender or use some
other appender like the SocketAppender or the JMSAppender.

http://www.onjava.com/pub/a/onjava/2003/04/02/log4j_ejb.html?page=last&x-order=date
http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
http://www-130.ibm.com/developerworks/
http://logging.apache.org/log4j/docs/TROUBLESHOOT.html#notfound



On Mon, 31 Jan 2005 01:33:22 -0500, Frank W. Zammetti
<[EMAIL PROTECTED]> wrote:
> Also, for anyone that is using Log4J... I've been told at work that we cannot 
> use it because it isn't "J2EE-compliant"... I'm awaiting clarification on 
> what that actually means in this context... It sounds nonsensical to me, 
> but... Does anyone know of any concerns that might make sense in the context 
> of that statement?


Jack

-- 
"You can lead a horse to water but you cannot make it float on its back."
"Heaven has changed.  The Sky now goes all the way to our feet.

~Dakota Jack~

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Logging Question


I've been told at work that we cannot use it because it isn't
"J2EE-compliant"... I'm awaiting clarification on what that actually 
means in this context


Probably because the configureAndWatch() method in
o.a.l.x.DOMConfigurator will cause a 'file watcher' thread to be
spawned. The fact that the J2EE spec regards thread management as the
responsibility of the container not the application might lead some
people to decry the use of log4J in a J2EE environment.  Of course, you
don't have to use configureAndWatch() method, in fact the
DOMConfigurator and all its methods will be deprecated in log4j 1.3 so
any one using configureAndWatch() might have to find another approach to
dynamic reconfiguration.

Note: I'm not presenting this as my opinion on whether Log4J is J2EE
compliant.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: 31 January 2005 07:01
To: Struts Users Mailing List
Subject: Re: [OT] Logging Question


Commons Logging over Log4J.


I've been told at work that we cannot use it because it isn't 
"J2EE-compliant"... I'm awaiting clarification on what that actually 
means in this context


Sounds like someone may have got incorrect information?
Ive not heard of anything in log4j that makes it unsuitable for use in a

j2ee environment (otoh Ive never peered to deeply into the details 
either). Its use seems so ubiquitious that its almost a defacto 
standard, and Ive not had any issues with it.


Frank W. Zammetti wrote:

> Quick question... I wanted to get answers from real-world Struts
developers, so I hope no one minds the OT post...
> 
> Is anyone using Commons Logging in their webapps, and if so, what
logging toolkit are you using under it?  I'm guessing Log4J is the most
common answer, but I'd like to hear what you all are doing.  Note that
I'm only interested in those using Commons Logging and their answers,
for the sake of the reason I'm asking in the first place. :)
> 
> Also, for anyone that is using Log4J... I've been told at work that we
cannot use it because it isn't "J2EE-compliant"... I'm awaiting
clarification on what that actually means in this context... It sounds
nonsensical to me, but... Does anyone know of any concerns that might
make sense in the context of that statement?
> 
> Thanks all!
> 
> Frank W. Zammetti
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] 

 
If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail. http://www.ml.com/email_terms/ 

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to send result into Pop-up window

Now i get pop-up window but some other problems i am facing
 
As u mentioned this will fail if i make use of validator javascript functions 
on search  citeria. 
I thought i will use serverside validation - but now what's happening is i get 
validation errors on my new pop-up window and not on my original window- is 
there any other way do that everything works fine ?
 
regards
Manisha
 
 


Keshav Shetty <[EMAIL PROTECTED]> wrote:Hi Manisha,
As I understood your requirement is
1. In first page you show teh search criteria. User enters all required 
input and press show report.
2. The form will be submitted action gets control and retrives required 
data and forwards to report jsp.
3. The final report page should come in a separate popup.
If above requirement is correct then you can use the following mechanism 
to control the flow.

1. In your criteria page you have a form (I guess) Instead of submitting 
the form write a javascript function to submit the form and define the 
target to popup window.
The javascript function may look like this.
function submitForm()
{
var winHand = 'someName';
var someWindow = window.open("actionPath",winHand,"menubar=no, 
toolbar=no,scrollbars=no,resizable=no,width=385,height=175,left=300,top=300"); 

document.formName.target= winHand;
document.formName.submit(); 
}

Please replace someName, formName and actionPath with your form values.

But the above technique will fail if the criteria form uses any validation.

Please write me if you need any additional info.

Thanks & regards
Keshav

Manisha Sathe wrote:

>Hi,
> 
>I am having a serach criteria, depending on that one report will be generated. 
>After Submit it is going to one Action handler and then going to JSP report 
>page. Currently i am displaying it in the same window. But if i want to 
>display result in new window then how can i achieve it ?
> 
>(I believe this sort of question posted just few days back, but i am not 
>finding it nowAnybody pls can repost it ? )
> 
>Thanks in advance,
> 
>Regards
>Manisha
>
> 
>
> 
>-
>Do you Yahoo!?
> Yahoo! Search presents - Jib Jab's 'Second Term'
> 
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Do you Yahoo!?
 Take Yahoo! Mail with you! Get it on your mobile phone.

Re: DynaActionForm problem (newbie probably :)

Kishore Senji wrote:
The idea is that the Converter should be available only when saving the
specific form (atleast for now).

Once you register it, the same converter is available for that type
from that point onwards. It doesn't matter whether you do it in the
Plugin or an Action. So, if you want your Converter to be available
only when saving the specific form, you should deregister it after
your form gets saved
Yeah, I noticed. On the other hand it might be better to use different 
properties on the bean that converts to the correct datatype.


regards,
Robin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]