bean:message key in javascript

2004-02-10 Thread Richard Raquepo
i have this entry on one of my property files that show a message in korean.

error.client.register.exist=li#45320;#44032;#45936;#51060;#53440;#48288;#51060;#49828;#50504;#50640;
 #51316;#51116;#54616;#45716; #51060;#48120; 
#46321;#47197;#54620;#44163;#51012; #54644;#48372;#44256; #51080;#45716; 
#51204;#51088; #50864;#54200; #51452;#49548;!/li

i was wondering how i can show this on the client side using html.

using this:
script
var msg = bean:message key=error.client.register.exist/
/script

only shows the actual number i.e. li#45320;#44032;#45936.

is it possible or is there a way that this will be converted on to the correct 
characters so that javascript will be able to show the actual msg.

thanks a lot.

richard

Re: web spider

2004-02-05 Thread Richard Raquepo
we hope you can share it here.

thanks,
Richard
- Original Message - 
From: McCormack, Chris [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 5:19 PM
Subject: RE: web spider


 I would be interested to see how you have set it up :)
 
 thanks
 Chris
 
 -Original Message-
 From: Tomeu Vizoso [mailto:[EMAIL PROTECTED]
 Sent: 30 January 2004 10:03
 To: 'Struts Users Mailing List'
 Subject: RE: web spider
 
 
 Hi, I'm using a custom solution using Websphinx as the spider and Lucene
 as the indexing and search engine. This results in an all-java solution
 that can be deployed in any hosting provider. It requires very very
 little coding, request if you want to see our code.
 
 I'm right now having some problems with session handling, but don't
 expect to be real show-stoppers.
 
 Regards,
 
 Tomeu Vizoso
 
 -Mensagem original-
 De: Franck Lefebure [mailto:[EMAIL PROTECTED] 
 Enviada: quinta-feira, 22 de Janeiro de 2004 16:34
 Para: Struts Users Mailing List
 Assunto: Re: web spider
 
 
 Le Thursday, January 22, 2004 11:15 AM,
 McCormack, Chris [EMAIL PROTECTED] m'a, d'une plume
 avisee, ecrit:
 
  Hello all
  Has anyone tried to successfully spider their struts website using any
 
  open-source/free spider app ?
 
 No problem with htdig
 -- 
 Franck Lefebure
 
 
 -
 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]
 
 
 ***
 This e-mail and its attachments are confidential
 and are intended for the above named recipient
 only. If this has come to you in error, please 
 notify the sender immediately and delete this 
 e-mail from your system.
 You must take no action based on this, nor must 
 you copy or disclose it or any part of its contents 
 to any person or organisation.
 Statements and opinions contained in this email may 
 not necessarily represent those of Littlewoods.
 Please note that e-mail communications may be monitored.
 The registered office of Littlewoods Limited and its
 subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
 Registered number of Littlewoods Limited is 262152.
 
 
 
 -
 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]



maybe OT: help in customizing error pages

2003-11-09 Thread Richard Raquepo
i am trying to customize 404 error pages:

but i can't seem to get the original URI that caused the error: i.e. 
http://myhost/blahasdfasfsd

i search the web and found these but they all return null.

System.out.println(javax.servlet.forward.request_uri :  +
request.getAttribute(javax.servlet.forward.request_uri));
System.out.println(javax.servlet.forward.context_path :  +
request.getAttribute(javax.servlet.forward.context_path));
System.out.println(javax.servlet.forward.servlet_path :  +
request.getAttribute(javax.servlet.forward.servlet_path));
System.out.println(javax.servlet.forward.path_info :  +
request.getAttribute(javax.servlet.forward.path_info));
System.out.println(javax.servlet.forward.query_string :  +
request.getAttribute(javax.servlet.forward.query_string));

can someone help me. thx


Richard

reloading of properties/resources file

2003-10-10 Thread Richard Raquepo
how can i force the reloading of my properties/resource file
in struts?

thanks.

struts performance

2003-09-23 Thread Richard Raquepo
we are building an application in struts. though the application is developed in resin
our boss want's to deploy it in resin + IIS or apache + IIS.

does anyone know any site i can based the performance when using resin or apache with 
IIS?

any links? any comments?

thanks a lot.

binaries for struts 1.0.2

2003-09-22 Thread Richard Raquepo
does anyone knows the link where i can download the old struts 1.0.2 release?

i need it for test/development purposes. thanks.

Re: Invalid Class file Format (help same problem)

2003-09-16 Thread Richard Raquepo
hello,

I get the same error. Although i have copied the tools.jar from the jdk
installation to both j2ee/home and j2ee/home/lib

followed what others have done but im still not able to hack my application
to run. :p

can someone help me get my struts application work on Oracle 9iAS
(9.0.3.0.0)

Im using Win2K SP3, JDK 1.4.2, Oracle 9iAS, latest sruts1.1 stable release.

thanks in advance.

 here's ny error details 
500 Internal Server Error
OracleJSP: oracle.jsp.provider.JspCompileException:

Errors
compiling:C:\oc4j_extended\j2ee\home\application-deployments\default\default
WebApp\persistence\_pages\\_login.java

error: Invalid class file format in C:\Program
Files\Java\j2re1.4.2\lib\rt.jar(java/lang/Object.class).  The major.minor
version '48.0' is too recent for this tool to understand.
C:\oc4j_extended\j2ee\home\application-deployments\default\defaultWebApp\per
sistence\_pages\_login.java:0: Class java.lang.Object not found in class
com.orionserver.http.OrionHttpJspPage.

^
2 errors

many thanks,

Richard

- Original Message -
From: Stefan Frank [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; Christian
Bollmeyer [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 2:43 PM
Subject: Re: Invalid Class file Format


 Hi Christian,

 found the reason: tools.jar was a good hint and setting the jvm to
 verbose showed, that bea forks a new process for the jsp-compile:
 Unfortunately, there is an older jvm running on the same box, which
 results in the JAVA_HOME being set to a jdk1.1: ergo, the 45 is correct.
 Pointing the JAVA_HOME to the right jdk fixed this (and also
 significantly speeds up the page-compile) .

 Uhh, that Oracle-Story really sounds like great fun :) At least, we can
 all be very grateful, that Oracle dumped its own App-Server, Orion was
 aat least a good thing to start with (I wonder how much time it will
 take Oracle to screw this one up, too) - BTW: how does 10g feel?!
 Compared to eclipse and/or IntellliJ?! From the Product-Description, I'm
 really thinking about giving it a try...  Maybe I'm a little prejudiced
 about Oracle, but the only really good thing that ever came from Oracle
 is the Database (and I'm very curious what they exactly mean with the
 g=grid)

 cheersmany thanks for the help
 stefan
 Christian Bollmeyer wrote:

 Am Montag, 15. September 2003 17:03 schrieb Stefan Frank:
 
 
 Hi Christian,
 
 
 
 Hi Stefan,
 
 
 
 no, unfortunately not:
 System.getProperty(java.version): 1.3.1
 System.getProperty(java.vendor): Sun Microsystems Inc.
 
 
 
 Now this is interesting. Still, obviously the JSP compiler
 can't cope with Platform 2 files, though. I don't know anything
 about the BEA server, but I remember having a similar
 problem when upgrading the Oracle iAS to JDK 1.4 (with
 class file versions of 48.0 instead of 46). Finally, the culprit
 proved to be tools.jar shipped with the default installation
 which was a 1.3 version. The solution was to replace the
 tools.jar shipped with iAS 9i with the one from the JDK
 we used for development (Sun 1.4.1_02). Then, it might
 well be that the BEA server get ships with the correct
 tools.jar already, but the class loader instantiates a
 different version first, so I'd check the CLASSPATH, too.
 It *might* be that an 'old' implementation of the JSP
 compiler classes get loaded first.
 
 
 
 I'm currently trying to find out if bea somehow tweaked the magic -
 has anybody gotten struts 1.1 to run on weblogic 6.1 on solaris?
 (Solaris is important, as 1.1 runs on the windows-box without
 complaining. Looks like solaris has a different magic...)
 
 
 
 Though I have only limited experiences with Solaris, that's
 still a Sun OS and should adhere the standards even better
 than others in case of doubt. BTW, the aforementioned
 iAS installation runs under Linux, so it's not really too
 far from the spot.
 
 BTW - want to know I found it all out? Well, finally I
 remembered that Oracle had bought the iAS sources
 from Orion (after their first attempt in this direction had
 failed) just some time ago. So I downloaded the Orion
 server to see if it behaved likewise, as this problem
 nearly drove me mad. Then, in the Orion docs, right
 from the beginning they almost insisted on copying
 tools.jar from the JDK to its proper place (/lib or
 something). And: alas, it worked perfectly. Finally,
 the same recipe was applied to iAS and showed
 equal results. And: when it comes to Oracle, consulting
 their OTN site is no really good idea if searching
 for something, not even to speak of a solution. Well,
 Ifinally did so anyway, but my expectations were
 not disappointed, again. Just to show the level
 of despair I had finally reached.
 
 
 
 cheers
 Stefan
 
 
 
 Cheers, and HTH,
 
 -- Chris (SCPJ2)
 
 developing his private things for Struts 1.1 with
 JDeveloper 10g now.; under SuSE Linux 8.2 and
 JDK 1.4.2, which is against all official rules (the
 single supported OS is Windows 2000 |  XP
 and JDK 1.4.1), but up to 

Re: Invalid Class file Format (help same problem)

2003-09-16 Thread Richard Raquepo
i only have JDK 1.4.2  installed on my PC
anyway here's the value of environment variables
PATH = c:\utils;C:\j2sdk1.4.2\bin;c:\mysql4\bin;C:\jakarta-ant\bin
 JAVA_HOME=C:\j2sdk1.4.2\
 CLASSPATH=.;C:\j2sdk1.4.2\lib\tools.jar;%JAVALIB%
JAVALIB=C:\crm-dev\others.lib\pp-tools.jar;c:\javalib2\ms\msbase.jar;c:\java
lib2\ms\mssqlserver.jar;c:\javalib2\ms\msutil.jar;C:\datamapper\source\;

anymore suggestion?

thanks,
Richard


- Original Message -
From: Stefan Frank [EMAIL PROTECTED]
To: Richard Raquepo [EMAIL PROTECTED]
Cc: Struts Users Mailing List [EMAIL PROTECTED]; Christian
Bollmeyer [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 5:05 PM
Subject: Re: Invalid Class file Format (help same problem)


 Hi Richard,

 it looks like your also using an older compiler. Do you have some older
 jdk's (1.3) on your machine?! Last time I installed Oracle, they used a
 jdk1.1 and set it into the path (and they also used to run java-stored
 procedures in the database). Can you check you enviroment for:

 PATH
 JAVA_HOME
 CLASSPATH

 maybe one of them contains an older jdk?! If orion forks for compiling
 the jsp's (as bea does), you may fall back to these
 enviroment-variables, ignoring the j22home you started the server with.

 cheers
 stf



 Richard Raquepo wrote:
  hello,
 
  I get the same error. Although i have copied the tools.jar from the jdk
  installation to both j2ee/home and j2ee/home/lib
 
  followed what others have done but im still not able to hack my
application
  to run. :p
 
  can someone help me get my struts application work on Oracle 9iAS
  (9.0.3.0.0)
 
  Im using Win2K SP3, JDK 1.4.2, Oracle 9iAS, latest sruts1.1 stable
release.
 
  thanks in advance.
 
 
 here's ny error details 
 
  500 Internal Server Error
  OracleJSP: oracle.jsp.provider.JspCompileException:
 
  Errors
 
compiling:C:\oc4j_extended\j2ee\home\application-deployments\default\default
  WebApp\persistence\_pages\\_login.java
 
  error: Invalid class file format in C:\Program
  Files\Java\j2re1.4.2\lib\rt.jar(java/lang/Object.class).  The
major.minor
  version '48.0' is too recent for this tool to understand.
 
C:\oc4j_extended\j2ee\home\application-deployments\default\defaultWebApp\per
  sistence\_pages\_login.java:0: Class java.lang.Object not found in class
  com.orionserver.http.OrionHttpJspPage.
 
  ^
  2 errors
 
  many thanks,
 
  Richard
 


 -
 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: Invalid Class file Format (help same problem)

2003-09-16 Thread Richard Raquepo
running oc4j.jar with the parameter -version only gives this:

Oracle9iAS (9.0.3.0.0) Containers for J2EE (build 020927.1699)

actually i can't also run the jsp included in the Oracle 9iAS like the
examples
found on tomcat. but the servlets example are working just fine. seem's that
Oracle 9iAS can't compile the jsp files. how come?

do i have to lower the java version i am using right now?

anymore suggestions?

thanks.

-Richard

- Original Message -
From: Stefan Frank [EMAIL PROTECTED]
To: Richard Raquepo [EMAIL PROTECTED]
Cc: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 6:31 PM
Subject: Re: Invalid Class file Format (help same problem)


 hmm, just guessing: Maybe Oracle 9iAS runs on its own, older jvm? What
 does java.version/java.vendor say, when you start it from the server?
 Before replacing the tools.ja, were you able to compile a plain jsp
 without any struts-tags in it? (this does not look like a struts
 problem, as he complains about a wrong Version of Object)

 Richard Raquepo wrote:

  i only have JDK 1.4.2  installed on my PC
  anyway here's the value of environment variables
  PATH = c:\utils;C:\j2sdk1.4.2\bin;c:\mysql4\bin;C:\jakarta-ant\bin
   JAVA_HOME=C:\j2sdk1.4.2\
   CLASSPATH=.;C:\j2sdk1.4.2\lib\tools.jar;%JAVALIB%
 
JAVALIB=C:\crm-dev\others.lib\pp-tools.jar;c:\javalib2\ms\msbase.jar;c:\java
  lib2\ms\mssqlserver.jar;c:\javalib2\ms\msutil.jar;C:\datamapper\source\;
 
  anymore suggestion?
 
  thanks,
  Richard
 
 
  - Original Message -
  From: Stefan Frank [EMAIL PROTECTED]
  To: Richard Raquepo [EMAIL PROTECTED]
  Cc: Struts Users Mailing List [EMAIL PROTECTED];
Christian
  Bollmeyer [EMAIL PROTECTED]
  Sent: Tuesday, September 16, 2003 5:05 PM
  Subject: Re: Invalid Class file Format (help same problem)
 
 
 
 Hi Richard,
 
 it looks like your also using an older compiler. Do you have some older
 jdk's (1.3) on your machine?! Last time I installed Oracle, they used a
 jdk1.1 and set it into the path (and they also used to run java-stored
 procedures in the database). Can you check you enviroment for:
 
 PATH
 JAVA_HOME
 CLASSPATH
 
 maybe one of them contains an older jdk?! If orion forks for compiling
 the jsp's (as bea does), you may fall back to these
 enviroment-variables, ignoring the j22home you started the server with.
 
 cheers
 stf
 
 
 
 Richard Raquepo wrote:
 
 hello,
 
 I get the same error. Although i have copied the tools.jar from the jdk
 installation to both j2ee/home and j2ee/home/lib
 
 followed what others have done but im still not able to hack my
 
  application
 
 to run. :p
 
 can someone help me get my struts application work on Oracle 9iAS
 (9.0.3.0.0)
 
 Im using Win2K SP3, JDK 1.4.2, Oracle 9iAS, latest sruts1.1 stable
 
  release.
 
 thanks in advance.
 
 
 
 here's ny error details 
 
 500 Internal Server Error
 OracleJSP: oracle.jsp.provider.JspCompileException:
 
 Errors
 
 
 
compiling:C:\oc4j_extended\j2ee\home\application-deployments\default\default
 
 WebApp\persistence\_pages\\_login.java
 
 error: Invalid class file format in C:\Program
 Files\Java\j2re1.4.2\lib\rt.jar(java/lang/Object.class).  The
 
  major.minor
 
 version '48.0' is too recent for this tool to understand.
 
 
 
C:\oc4j_extended\j2ee\home\application-deployments\default\defaultWebApp\per
 
 sistence\_pages\_login.java:0: Class java.lang.Object not found in
class
 com.orionserver.http.OrionHttpJspPage.
 
 ^
 2 errors
 
 many thanks,
 
 Richard
 
 
 
 -
 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]





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



Re: Invalid Class file Format (help same problem)

2003-09-16 Thread Richard Raquepo
I guess so. Bcoz i downloaded Oracle 9iAS developer version 9.0.4 and my app
worked.

i guest the production version of Oracle 9iAS 9.0.3 is for jdk 1.3 only.

thanks a lot guys...

-richard
- Original Message -
From: Stefan Frank [EMAIL PROTECTED]
To: Richard Raquepo [EMAIL PROTECTED]
Cc: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 7:14 PM
Subject: Re: Invalid Class file Format (help same problem)


 I guess, Oracle comes with its own runtime-enviroment (a fellow stated
 in the other mail, that oracle 9iAs runs on jdk1.3). The jsp-examples
 work, as they ship pre-compiled. Going back to 1.3 should not be such a
 big problem, as struts runs fine on 1.3 - Maybe there is an oracle-guy
 somewhere, that can enlighten us, if and how you can teach oracle to run
 with 1.4...

 Richard Raquepo wrote:

  running oc4j.jar with the parameter -version only gives this:
 
  Oracle9iAS (9.0.3.0.0) Containers for J2EE (build 020927.1699)
 
  actually i can't also run the jsp included in the Oracle 9iAS like the
  examples
  found on tomcat. but the servlets example are working just fine. seem's
that
  Oracle 9iAS can't compile the jsp files. how come?
 
  do i have to lower the java version i am using right now?
 
  anymore suggestions?
 
  thanks.
 
  -Richard
 
  - Original Message -
  From: Stefan Frank [EMAIL PROTECTED]
  To: Richard Raquepo [EMAIL PROTECTED]
  Cc: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Tuesday, September 16, 2003 6:31 PM
  Subject: Re: Invalid Class file Format (help same problem)
 
 
 
 hmm, just guessing: Maybe Oracle 9iAS runs on its own, older jvm? What
 does java.version/java.vendor say, when you start it from the server?
 Before replacing the tools.ja, were you able to compile a plain jsp
 without any struts-tags in it? (this does not look like a struts
 problem, as he complains about a wrong Version of Object)
 
 Richard Raquepo wrote:
 
 
 i only have JDK 1.4.2  installed on my PC
 anyway here's the value of environment variables
 PATH = c:\utils;C:\j2sdk1.4.2\bin;c:\mysql4\bin;C:\jakarta-ant\bin
  JAVA_HOME=C:\j2sdk1.4.2\
  CLASSPATH=.;C:\j2sdk1.4.2\lib\tools.jar;%JAVALIB%
 
 
 
JAVALIB=C:\crm-dev\others.lib\pp-tools.jar;c:\javalib2\ms\msbase.jar;c:\java
 

lib2\ms\mssqlserver.jar;c:\javalib2\ms\msutil.jar;C:\datamapper\source\;
 
 anymore suggestion?
 
 thanks,
 Richard
 
 
 - Original Message -
 From: Stefan Frank [EMAIL PROTECTED]
 To: Richard Raquepo [EMAIL PROTECTED]
 Cc: Struts Users Mailing List [EMAIL PROTECTED];
 
  Christian
 
 Bollmeyer [EMAIL PROTECTED]
 Sent: Tuesday, September 16, 2003 5:05 PM
 Subject: Re: Invalid Class file Format (help same problem)
 
 
 
 
 Hi Richard,
 
 it looks like your also using an older compiler. Do you have some
older
 jdk's (1.3) on your machine?! Last time I installed Oracle, they used
a
 jdk1.1 and set it into the path (and they also used to run java-stored
 procedures in the database). Can you check you enviroment for:
 
 PATH
 JAVA_HOME
 CLASSPATH
 
 maybe one of them contains an older jdk?! If orion forks for compiling
 the jsp's (as bea does), you may fall back to these
 enviroment-variables, ignoring the j22home you started the server
with.
 
 cheers
 stf
 
 
 
 Richard Raquepo wrote:
 
 
 hello,
 
 I get the same error. Although i have copied the tools.jar from the
jdk
 installation to both j2ee/home and j2ee/home/lib
 
 followed what others have done but im still not able to hack my
 
 application
 
 
 to run. :p
 
 can someone help me get my struts application work on Oracle 9iAS
 (9.0.3.0.0)
 
 Im using Win2K SP3, JDK 1.4.2, Oracle 9iAS, latest sruts1.1 stable
 
 release.
 
 
 thanks in advance.
 
 
 
 
 here's ny error details 
 
 500 Internal Server Error
 OracleJSP: oracle.jsp.provider.JspCompileException:
 
 Errors
 
 
 
 
compiling:C:\oc4j_extended\j2ee\home\application-deployments\default\default
 
 WebApp\persistence\_pages\\_login.java
 
 error: Invalid class file format in C:\Program
 Files\Java\j2re1.4.2\lib\rt.jar(java/lang/Object.class).  The
 
 major.minor
 
 
 version '48.0' is too recent for this tool to understand.
 
 
 
 
C:\oc4j_extended\j2ee\home\application-deployments\default\defaultWebApp\per
 
 sistence\_pages\_login.java:0: Class java.lang.Object not found in
 
  class
 
 com.orionserver.http.OrionHttpJspPage.
 
 ^
 2 errors
 
 many thanks,
 
Richard
 
 
 
 -
 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

jstl question

2003-09-10 Thread Richard Raquepo
i have a bean that has this gettter method

...

public String getValueNum(String param){

}

...

using struts tag i can call it like:
bean:write name=bean value=valueNum(test)/

and it will works.

now i can't seem to figure out how can i do that using jstl.

i need your expert advice on this very simple problem that i can't seem to hack.

thanks




struts-tags to jstl on resin

2003-09-04 Thread Richard Raquepo
hello everyone.

i have been using struts tags and struts-el tags for sometime now.
my application works both on Resin and Tomcat.

Now my boss told me to re-write my jsp to use JSTL instead.

I was developing in a tomcat environment but here comes the problem...
When i move my application to tomcat, my /core tags doesn't get executed.

i can't use c:if test, but resin does not show any errors.

has anyone experience the same errors.

please help me...

thanks.



Re: struts-tags to jstl on resin

2003-09-04 Thread Richard Raquepo
In tomcat c:if  c:out, etc...  works.

but in resin c:out works but c:if doesn't work.

Im sure my URI is correct. Is this a bug in resin?

what seems to be the problem.

thanks.


many thanks,
Richard
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 10:40 PM
Subject: Re: struts-tags to jstl on resin


 What does Tomcat do?  Print the tag code?  Throw an error?  Is your taglib
 URI correct?  Do other JSTL tags (like fmt:message/) work?

 David

 --- Richard Raquepo [EMAIL PROTECTED] wrote:
  hello everyone.
 
  i have been using struts tags and struts-el tags for sometime now.
  my application works both on Resin and Tomcat.
 
  Now my boss told me to re-write my jsp to use JSTL instead.
 
  I was developing in a tomcat environment but here comes the problem...
  When i move my application to tomcat, my /core tags doesn't get
  executed.
 
  i can't use c:if test, but resin does not show any errors.
 
  has anyone experience the same errors.
 
  please help me...
 
  thanks.
 
 


 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com

 -
 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]



bean 'xxxx' already defined in Orion

2003-08-14 Thread Richard Raquepo
how can make my app work in orion when i need a variable in to be defined using 
iterate.
here's my JSP.
 logic:iterate id=policyinfo offset=offsetA length=length name=person 
property=policyInfo
  !--
   bean:define id=policynum name=policyinfo property=policynum/
  --
  tr bgcolor=#D3D9E2 class=tablecontentdata 
td width=150nbsp;bean:write name=policyinfo 
property=product//td
td width=52nbsp;bean:write name=policyinfo 
property=policynum//td
td width=58nbsp;bean:write name=policyinfo 
property=producttype//td
td width=79nbsp;bean:write name=policyinfo 
property=inceptiontext//td
td width=81nbsp;bean:write name=policyinfo 
property=expirytext//td
td width=92nbsp;bean:write name=policyinfo property=agent//td
td width=73nbsp;bean:write name=policyinfo 
property=referror//td
td width=61nbsp;bean:write name=policyinfo property=claims//td
td width=108nbsp;bean:write name=policyinfo 
property=paymentstatus//td
td width=107 align=rightnbsp;bean:write name=policyinfo 
property=premiumvalue/nbsp;/td
  /tr
 /logic:iterate

   logic:notPresent name=policynum
 bean:define id=policynum name=NULL/
   /logic:notPresent

i need to get the last policynum on my iterate because i would use it in a link. i put 
the logic:notPresent tag to check that just in case there were no policy i would need 
to create a NULL value policynum to that i will not get an error if i use policynum in 
my link.

the error i am having is bean 'policynum' already defined. so i tried removing it. my 
app work only if it will enter the iterate tag because policynum will have a value but 
form some instance that there is no record to iterate to i will have a bean undefined 
error. How can do this in Orion, the code above works on tomcat,resin and Sun ONE.

thanks a lot...

passing parameter to a getter method

2003-07-29 Thread Richard Raquepo
help.

how can i pass a parameter  to a getter method using
JSTL of Struts-EL?

example

in a java i can get values from my bean using
ArrayList values = mybean.getSampleValues(id01);

now how can i do that in struts/jsp. 
using logic-el:iterate or for each.
Id01 is dynamic it will come from a logic-el:iterate.

any dea how?

thanks a lot

passing parameter to a getter method

2003-07-29 Thread Richard Raquepo
help.

how can i pass a parameter  to a getter method using
JSTL of Struts-EL?

example

in a java i can get values from my bean using
ArrayList values = mybean.getSampleValues(id01);

now how can i do that in struts/jsp. 
using logic-el:iterate or for each.
Id01 is dynamic it will come from a logic-el:iterate.

any dea how?

thanks a lot

Re: using Struts datasource from a normal servlet

2003-07-17 Thread Richard Raquepo
i got it.

here's what i did:

import org.apache.struts.Globals;
.
 HttpServlet servlet = (HttpServlet)
getServletContext().getAttribute(Globals.ACTION_SERVLET_KEY);
MyService service = new MyService();
service.setServlet(servlet);

viola... it worked!

-richard

- Original Message -
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 11:43 AM
Subject: using Struts datasource from a normal servlet


 i have a service class that i can use in my actions by passing the servlet
 variable to it
 MyService service = new MyService(servlet);
 or
 MyService service = new MyService()
 service.setServlet(servlet);

 this works fine on my action classes. My question is
 how can i use this service in a normal servlet.

 public class MyServlet extends HttpServlet{
 
 }

 how can i pass the servlet variable and how to get it so i can use my
 service in a normal servlet. Please help me
 thanks.

 -richard



 -
 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]



getting hash map values

2003-07-13 Thread Richard Raquepo
Hi.

Assuming i have this king of bean:

public class MyJavaBean implements Serializable{
 public HashMap values = new HashMap();
  
 public String get(String name){
  String value = (String) values.get(name);
if (value == null) {
throw new NullPointerException
(No mapped value for ' + name);
}
return value;
 }
 
 public void set(String name,String value){
  if(name == null){
throw new NullPointerException
(No name given);  
  }
  if(value == null){
   value=;
  }
  values.put(name,value);
 }
}

---
during my action for example i did:
MyJavaBean obj = new MyJavaBean();
obj.set(test,Hope this work);
HttpSession session = request.getSession()
session.setAttribute(obj,obj);

now, my question is how will i be able to get the value i set
for test? is that possible?

is there other way i can get to the hashmap values directly from struts?

thanks a lot...



using struts datasource from a servlet

2003-06-30 Thread Richard Raquepo
can i call/use the a struts datasource in my servlet.

the thing is, i have a struts app. then i created a servlet to do some specific thing. 
now my question is,
can i use the datasource defined in my struts config file in my servlet. if so, how? 
example code will
be very much appreciated.

thanks.

-richard

Re: using struts datasource from a servlet

2003-06-30 Thread Richard Raquepo
ic... another question.
what if it's not a servlet. just a class i made wherein i call it from one
of my action or servlet
but still i will need to use struts datasource. how can it be done.

thanks everyone.

-richard

- Original Message -
From: Steve Raeburn [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 30, 2003 2:34 PM
Subject: RE: using struts datasource from a servlet


 Struts stores the datasources as servlet context attributes.

 You can access the default datasource in your servlet using -

 (DataSource) getServletContext().getAttribute(Globals.DATA_SOURCE_KEY);

 Take a look at the struts-config dtd for more info (particularly if you
use
 modules)
 http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd

 Steve

  -Original Message-
  From: Richard Raquepo [mailto:[EMAIL PROTECTED]
  Sent: June 29, 2003 11:22 PM
  To: Struts Users Mailing List
  Subject: using struts datasource from a servlet
 
 
  can i call/use the a struts datasource in my servlet.
 
  the thing is, i have a struts app. then i created a servlet to do
  some specific thing. now my question is,
  can i use the datasource defined in my struts config file in my
  servlet. if so, how? example code will
  be very much appreciated.
 
  thanks.
 
  -richard



 -
 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: using struts datasource from a servlet

2003-06-30 Thread Richard Raquepo
 Another option would be to configure the DS in struts but register it with
a
 singleton (Service Locator) that can retrieve the datasource in your data
 access classes.

maybe you can give me some link about this? tutorials maybe? any code maybe?
:p

thanks a lot.

- Original Message -
From: Steve Raeburn [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 30, 2003 3:20 PM
Subject: RE: using struts datasource from a servlet


 You can either pass the datasource from your servlet/action as a method
 parameter or you need to register the datasource somewhere that the class
 can access.

 That might be using JNDI, in which case you probably don't need to
configure
 your datasource in Struts but in your container.

 Another option would be to configure the DS in struts but register it with
a
 singleton (Service Locator) that can retrieve the datasource in your data
 access classes.

 Steve

  -Original Message-
  From: Richard Raquepo [mailto:[EMAIL PROTECTED]
  Sent: June 29, 2003 11:54 PM
  To: Struts Users Mailing List; [EMAIL PROTECTED]
  Subject: Re: using struts datasource from a servlet
 
 
  ic... another question.
  what if it's not a servlet. just a class i made wherein i call it from
one
  of my action or servlet
  but still i will need to use struts datasource. how can it be done.
 
  thanks everyone.
 
  -richard
 
  - Original Message -
  From: Steve Raeburn [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Monday, June 30, 2003 2:34 PM
  Subject: RE: using struts datasource from a servlet
 
 
   Struts stores the datasources as servlet context attributes.
  
   You can access the default datasource in your servlet using -
  
   (DataSource)
getServletContext().getAttribute(Globals.DATA_SOURCE_KEY);
  
   Take a look at the struts-config dtd for more info (particularly if
you
  use
   modules)
   http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd
  
   Steve
  
-Original Message-
From: Richard Raquepo [mailto:[EMAIL PROTECTED]
Sent: June 29, 2003 11:22 PM
To: Struts Users Mailing List
Subject: using struts datasource from a servlet
   
   
can i call/use the a struts datasource in my servlet.
   
the thing is, i have a struts app. then i created a servlet to do
some specific thing. now my question is,
can i use the datasource defined in my struts config file in my
servlet. if so, how? example code will
be very much appreciated.
   
thanks.
   
-richard
  
  
  
   -
   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]





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



java.net.ConnectException: Connection refused

2003-06-27 Thread Richard Raquepo
hi.

i have a struts application that is perfectly running in resin and tomcat in my win2k 
PC.

but then i put in our production server (debian linux) and i got this error:

Unable to connect to any hosts due to exception: java.net.ConnectException: Connection 
refused 

i can't connect to my MySQL Database because of that error:

  String connDriver = org.gjt.mm.mysql.Driver;//even tried com.mysql.jdbc.Driver
  String connURL = jdbc:mysql://localhost:3306/charddb;
  String user = root;
  String pass = password;

i've check the database. it is working on my linux shell...

how come it doesn't work in my app.

thanks a lot.
-richard

display an image

2003-06-25 Thread Richard Raquepo
i want to write a web app to display an image from a mssql db (image datatype).

my action should be

displayImage.do?imageid=1
where:
imageid is the id of a particular image from the db.

now my action class would retrieve this for example:
byte[] dataBytes; //an array of bytes
 if (rs.next()) //if there is a record
 {
  dataBytes = rs.getBytes(imagedata)
}
request.setAttribute(imagedate,imagedate);

my action would now forward to a jsp.

my question is how will i be able to display the image in my jsp?

can someone enlighten me on what should i do?

thanks.




display an image

2003-06-25 Thread Richard Raquepo

i want to write a web app to display an image from a mssql db (image
datatype).

my action should be

displayImage.do?imageid=1
where:
imageid is the id of a particular image from the db.

now my action class would retrieve this for example:
byte[] dataBytes; //an array of bytes
 if (rs.next()) //if there is a record
 {
  dataBytes = rs.getBytes(imagedata)
}
request.setAttribute(imagedate,imagedate);

my action would now forward to a jsp.

my question is how will i be able to display the image in my jsp?

can someone enlighten me on what should i do?

thanks.





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



Re: How do I configure multiple struts-config files?

2003-06-24 Thread Richard Raquepo
you can have comma separated config file for struts.
you specify it in your web.xml example:

web-app

  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value
   /WEB-INF/struts-config.xml,/WEB-INF/struts-config-tm.xml,
   /WEB-INF/struts-config-manager.xml,/WEB-INF/struts-config-reports.xml
   /param-value
/init-param

...

now, the thing is each xml file should conform to dtd definition.
each xml file should contain struts-config ... /struts-config for
starters.

HTH

-richard

- Original Message -
From: J, Sadhasivam (Cognizant) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 1:34 PM
Subject: RE: How do I configure multiple struts-config files?


Yes please so far i understood that one controller serverlt in
web-application will take one Struts-config.xml
i am interested please

-Original Message-
From: PREETAM Balijepalli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 10:59 AM
To: Struts Users Mailing List
Subject: RE: How do I configure multiple struts-config files?


struts config.xml is for single for web application/context

web.xml will contain details of ure stuts-config.xml

so now u want ure web-application with different contexts..
do it with multiple struts-config.xml mentioned in web.xml

incase u need a sample i can send across

cheers!!!


-Original Message-
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 10:58 AM
To: Struts Users Mailing List
Subject: RE: How do I configure multiple struts-config files?


Means.. i didn't get u.

-Original Message-
From: PREETAM Balijepalli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 10:53 AM
To: Struts Users Mailing List
Subject: RE: How do I configure multiple struts-config files?


hello you can have multiple with struts need to configure sub app details in
web.xml

-Original Message-
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 10:53 AM
To: Struts Users Mailing List
Subject: RE: How do I configure multiple struts-config files?


I don't think struts will allow multiple configuration file and its always
one controller and one configuration file.

-Original Message-
From: Bob Byron [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 10:48 AM
To: [EMAIL PROTECTED]
Subject: How do I configure multiple struts-config files?


It doesn't seem like it should be this hard, but I am trying to
use multiple struts-config files.  I keep getting errors.
I have attached my configuration and error below.  Any help
is appreciated.  I am using struts 1.1 rc2.

By the way, whenever a config file can't be found, a
NullPointerException is thrown.  I hope a more meaningful
message is in the works.

 From web.xml
servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml,/WEB-INF/abc-struts-config.xml/para
m-value
/init-param


 From log:
23:52:19,585 WARN  [org.jboss.jbossweb] WARNING: action: Parsing error
processing resource path
/WEB-INF/struts-config.xml,/WEB-INF/abc-struts-config.xml
java.lang.NullPointerException
   at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)
   at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
   at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
   at org.apache.commons.digester.Digester.parse(Digester.java:1299)
   at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava:741)
   at org.apache.struts.action.ActionServlet.init(ActionServlet.java:408)
   at javax.servlet.GenericServlet.init(GenericServlet.java:256)
   at

Thank You,
Bob


-
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]








 -
 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]



can i reload a message-resource file

2003-06-23 Thread Richard Raquepo
can i reload a message-resource file. so that when i made a small change i don't have 
to restart my app container.
is this already possible? is so, how?

thanks...



Re: can i reload a message-resource file

2003-06-23 Thread Richard Raquepo
i was referring to struts message resource file which we define in
struts-config.xml
for example:
message-resources parameter=ApplicationResources/

- Original Message -
From: Gemes Tibor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 5:28 PM
Subject: Re: can i reload a message-resource file


 Richard Raquepo rta:

 can i reload a message-resource file. so that when i made a small change
i don't have to restart my app container.
 is this already possible? is so, how?
 
 
 providing you are using tomcat it might makes worth looking into the
 manager webapp docs.

 Tib




 -
 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: Multibox persistence problem

2003-06-17 Thread Richard Raquepo
try setting scope=session in your action.
HTH
- Original Message -
From: Mykola Ostapchuk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 10:35 AM
Subject: Multibox persistence problem


 Hi,

 I'm using multibox to display multiple checkboxes:

 font size=2pre
 logic:iterate id=item name=allRoles
  html:multibox name=requestUser property=selectedRoles
bean:write name=item property=value/
  /html:multibox
  bean:write name=item property=label/
 /logic:iterate
 /pre/font

 Everything works fine, the only problem is - when there's a validation
error
 on my form and it's reposted with error messages, it always return all
 checkboxes unchecked (even if I check some of them before).

 How could I keep checkbox values in this situation?


 -
 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: GenericDataSource looping

2003-06-16 Thread Richard Raquepo
i believe data-source type=org.apache.commons.dbcp.BasicDataSource is no
longer supported in struts1.1RC2.

- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 2:55 PM
Subject: Re: GenericDataSource looping


 You've left off the type attribute in the data-source tag. Try

 data-source type=org.apache.commons.dbcp.BasicDataSource

 don't you get any errors?

 Richard Raquepo wrote:
  Im use to use DBCP in Struts 1.1RC1
  but then mo back to GenericDataSource in Struts 1.1RC2
 
  but it seem's im having a problem with it. According to my console it
seem's generic source is lopping endlessly...
  429796 [tcp-accept-6802] INFO util.GenericDataSource  -
createConnection()
  429812 [tcp-accept-6802] INFO util.GenericDataSource  -Return new
connection, activeCount=5, useCount=123
  429812 [tcp-accept-6802] INFO util.GenericDataSource  -
getConnection()
  429812 [tcp-accept-6802] INFO util.GenericDataSource  -Check for
timeout, activeCount=4, useCount=123
  
 
  my data-source configuration in my struts-config.xml looks like this:
data-source key=DATASOURCE
 set-property property=driverClass value=com.mysql.jdbc.Driver /
 set-property property=url value=jdbc:mysql://localhost/crmdev /
 set-property property=maxCount value=10 /
 set-property property=minCount value=5 /
 set-property property=user value=root /
 set-property property=password value=password /
/data-source
 
  
  has anybody experienced this before? what do i have to do to make it
work?
  or should i really change my datasource? i was thinking og using
DBConnectionBroker? any ideas?
 
  thanks.


 -
 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]



GenericDataSource looping

2003-06-15 Thread Richard Raquepo
Im use to use DBCP in Struts 1.1RC1
but then mo back to GenericDataSource in Struts 1.1RC2

but it seem's im having a problem with it. According to my console it seem's generic 
source is lopping endlessly...
429796 [tcp-accept-6802] INFO util.GenericDataSource  -createConnection()
429812 [tcp-accept-6802] INFO util.GenericDataSource  -Return new connection, 
activeCount=5, useCount=123
429812 [tcp-accept-6802] INFO util.GenericDataSource  -   getConnection()
429812 [tcp-accept-6802] INFO util.GenericDataSource  -Check for timeout, 
activeCount=4, useCount=123


my data-source configuration in my struts-config.xml looks like this:
  data-source key=DATASOURCE  
   set-property property=driverClass value=com.mysql.jdbc.Driver /
   set-property property=url value=jdbc:mysql://localhost/crmdev /
   set-property property=maxCount value=10 /
   set-property property=minCount value=5 /
   set-property property=user value=root /
   set-property property=password value=password /
  /data-source


has anybody experienced this before? what do i have to do to make it work?
or should i really change my datasource? i was thinking og using DBConnectionBroker? 
any ideas?

thanks.

Re: Why is dbcp / pool removed?

2003-06-11 Thread Richard Raquepo
I thought GenericDataSource was still included in RC2 or am i wrong? i have
remove my old DBCP type datasource and use GenericDataSource but  it seems
it does not work too. Am i missing something? Help anyone:
My struts-config.xml datasource is:
  data-source key=DATASOURCE
   set-property property=driverClass value=com.mysql.jdbc.Driver /
   set-property property=url value=jdbc:mysql://localhost/crmdev /
   set-property property=maxCount value= /
   set-property property=minCount value= /
   set-property property=user value=root /
   set-property property=password value= /
  /data-source
My error is:
1688 [main] ERROR action.ActionServlet  - Initializing application data
source DATASOURCE
java.lang.ClassNotFoundException: org.apache.struts.util.GenericDataSource
[java.lang.ClassNotFoundException: org.apache.struts.util.GenericDataSource
[java.lang.NoClassDefFoundError:
org/apache/struts/legacy/GenericDataSource]]
at
com.caucho.util.DynamicClassLoader.findClass(DynamicClassLoader.java:569)
at
com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoader.java:510)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:23
1)
at
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j
ava:1079)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:471)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at
com.caucho.server.http.Application.createServlet(Application.java:3103)
at
com.caucho.server.http.Application.loadServlet(Application.java:3054)

at
com.caucho.server.http.Application.initServlets(Application.java:1914)
at com.caucho.server.http.Application.init(Application.java:1827)
at com.caucho.server.http.VirtualHost.init(VirtualHost.java:720)
at
com.caucho.server.http.ServletServer.initHosts(ServletServer.java:853)
at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:698)
at com.caucho.server.http.ServletServer.init(ServletServer.java:509)
at com.caucho.server.http.ResinServer.init(ResinServer.java:377)
at com.caucho.server.http.ResinServer.main(ResinServer.java:1137)
at com.caucho.server.http.HttpServer.main(HttpServer.java:103)

- Original Message -
From: Kruse, Matt [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 11:12 PM
Subject: RE: Why is dbcp / pool removed?


  The one included is not the same as what is in RC1, though,
  correct?
  I'm not sure what Ted changed but you may be correct that
  it's not exactly
  the same.  You can still use DBCP, Struts just won't
  distribute it any more.

 If I move away from DBCP and try to use just the features included with
RC2
 (for now), it seems like there have been a lot of changes.

 GenericDataSource now handles all the pooling and stuff itself, instead of
 relying on BasicDataSource, which is fine.
 But, it also relies on GenericConnection, of which there are two
versions -
 one for JDK1.3, one for JDK1.4. And the one for JDK1.3 will _not_ compile
 JDK1.4. (according to the docs). That's a bummer, because if I release an
 app with the 1.3 version packaged in, and the server is upgraded to 1.4,
I'm
 going to assume that things will break?

 I'm not looking for a long-term fix, just a short-term switch to possibly
 avoid the problems that DBCP might have been causing for me. I'm just
 finding it a challenge to figure out which short-term fix to use.

  You're not tying your app to the container because you configure the
  DataSource implementation entirely in JNDI (my preference) or
  struts-config.xml.

 In struts-config.xml, if I define my type= to be a container-specific
class,
 though, then it's no longer portable. Unless I'm completely
misunderstanding
 what you mean, which is likely :)

 I'm going to explore better ways to handle db connections in the future,
 but as I said above, I'm just looking for a patch to address current
 problems with DBCP, so I want to keep defining my db conns in
 struts-config.xml, and I want to rely only on the classes packaged with
 struts (if possible). I'll experiment and see how it works!

 Matt Kruse





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



Re: formtag error

2003-06-10 Thread Richard Raquepo

sorry about that...

accessing input.jsp i get this error:

500 Servlet Exception
javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans
collection
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:712)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:500)
 at _input__jsp._jspService(/input.jsp:9)
 at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
 at com.caucho.jsp.Page.subservice(Page.java:497)
 at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
 at com.caucho.server.http.Invocation.service(Invocation.java:312)
 at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
 at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
 at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
 at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
 at java.lang.Thread.run(Thread.java:534)



my input.jsp looks like this:
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
html
   head
  titleTest/title
   /head

   body
 html:form action=/test.do name=testForm type=com.myform.TestForm
   table
tr
   tdFirst Name:/td
   tdhtml:text property='username'//td
/tr
tr
   tdLast Name:/td
   tdhtml:text property='password'//td
/tr
 phtml:submit/
  /html:form

   /body
/html


my struts-config.xml looks like this:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 1.1//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
struts-config

  data-sources
   data-source key=DATASOURCE
set-property property=autoCommit value=false /
set-property property=description value=SQL Server 2000 datasource
/
set-property property=driverClass
value=com.microsoft.jdbc.sqlserver.SQLServerDriver /
set-property property=url
value=jdbc:microsoft:sqlserver://Crmserver;DatabaseName=22banDB /
set-property property=maxActive value=0 /
set-property property=maxIdle value=0 /
set-property property=username value=sa /
set-property property=password value=password /
   /data-source
  /data-sources

  form-beans
   form-bean name=testForm
type=com.myform.TestForm/

  /form-beans

  action-mappings type=org.apache.struts.action.ActionMappings
   action
input=main.jsp
name=testForm
path=/param
type=org.apache.struts.action.Action
   /action

   action
path=/test
type=com.myaction.TestAction
name=testForm
scope=request
forward name=nextaction path=output.jsp/
   /action

  /action-mappings

  message-resources parameter=22BanResources /

 /struts-config

my web.xml looks like this:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
display-name22ban - Development site/display-name
description
  Under heavy construction
/description

servlet
servlet-name22ban/servlet-name

servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value

  /init-param
  init-param
   param-nameapplication/param-name
   param-value22BanResources/param-value
  /init-param
/servlet

servlet-mapping
servlet-name22ban/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list

 taglib
  taglib-uri/core/taglib-uri
  taglib-location/WEB-INF/c.tld/taglib-location
/taglib
 taglib
  taglib-uri/sql/taglib-uri
  taglib-location/WEB-INF/sql.tld/taglib-location
/taglib

  taglib
taglib-uri/WEB-INF/struts-html.tld/taglib-uri
taglib-location/WEB-INF/struts-html.tld/taglib-location
  /taglib

  taglib
taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
taglib-location/WEB-INF/struts-logic.tld/taglib-location
  /taglib

  taglib
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/struts-bean.tld/taglib-location
  /taglib

/web-app



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



log4j WARN after upgrading to RC2

2003-06-10 Thread Richard Raquepo
any idea on how i can  fix this warning? thanks in advance...

log4j:WARN No appenders could be found for logger 
(org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.


-richard

Re: log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).

2003-06-10 Thread Richard Raquepo
we have the same problem
- Original Message -
From: Bjorn T Johansen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 12:15 PM
Subject: log4j:WARN No appenders could be found for logger
(org.apache.struts.util.PropertyMessageResources).


 I just upgraded to rc2 and I suddenly get this error message, any idea
 why? I have downloaded the latest rc2 with the commons-logging lib fix
 (at least the jar fil is about 31K..)

 It worked under rc1 and I haven't changed anything...


 Regards,

 BTJ


 --
-
 Bjørn T Johansen (BSc,MNIF)
 Executive Manager
 [EMAIL PROTECTED]  Havleik Consulting
 Phone : +47 67 54 15 17 Conradisvei 4
 Fax : +47 67 54 13 91   N-1338 Sandvika
 Cellular : +47 926 93 298   http://www.havleik.no
 --
-
 The stickers on the side of the box said Supported Platforms: Windows
 98, Windows NT 4.0,
 Windows 2000 or better, so clearly Linux was a supported platform.
 --
-


 -
 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]



Help on an error in my Datasource after upgrading to RC2

2003-06-10 Thread Richard Raquepo
i have this data source in my struts-config.xml... this is not a DBCP Connection right?
i doesn't work after i upgraded to RC2

data-source key=DATASOURCE  
   set-property property=driverClass value=com.mysql.jdbc.Driver /
   set-property property=url value=jdbc:mysql://localhost/crmdev /
   set-property property=maxCount value= /
   set-property property=minCount value= /
   set-property property=user value=root /
   set-property property=password value=password /
  /data-source


the ERROR is:
javax.servlet.UnavailableException: Initializing application data source
DATASOURCE
at 
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1089)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at com.caucho.server.http.Application.createServlet(Application.java:3103)
at com.caucho.server.http.Application.loadServlet(Application.java:3054)
at com.caucho.server.http.Application.initServlets(Application.java:1914)
at com.caucho.server.http.Application.init(Application.java:1827)
at com.caucho.server.http.VirtualHost.init(VirtualHost.java:720)
at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:853)
at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:698)
at com.caucho.server.http.ServletServer.init(ServletServer.java:509)
at com.caucho.server.http.ResinServer.init(ResinServer.java:377)
at com.caucho.server.http.ResinServer.main(ResinServer.java:1137)
at com.caucho.server.http.HttpServer.main(HttpServer.java:103)


formtag error

2003-06-09 Thread Richard Raquepo
i cannot acces any jsp or action:help! can someoe show me what am i doing 
wrong?javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans
collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:712)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:500)
at _input__jsp._jspService(/input.jsp:9)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:497)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
at com.caucho.server.http.Invocation.service(Invocation.java:312)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:534)
my jsp looks like this:%@ taglib uri=/struts-html prefix=html %!DOCTYPE HTML 
PUBLIC -//W3C//DTD HTML 4.0 Transitional//ENhtml   head  
titleTest/title   /head   body html:form action=/test.do name=testForm 
type=com.myform.TestFormtabletr   tdFirst 
Name:/td   tdhtml:text property='username'//td/tr
tr   tdLast Name:/td   tdhtml:text 
property='password'//td/tr phtml:submit/  
/html:form   /body/htmlmy struts-config.xml looks like this:  form-beans 
type=org.apache.struts.action.ActionFormBean   form-bean name=paramForm 
type=org.apache.struts.action.DynaActionFormform-property name=name 
type=java.lang.String /form-property name=lastName type=java.lang.String 
/form-property name=languages type=java.lang.String /   /form-bean   
form-bean name=testForm type=com.myform.TestForm/  /form-beans  
action-mappings type=org.apache.struts.action.ActionMappings   action 
input=main.jspname=testForm path=/param 
type=org.apache.struts.action.Action   /action   action path=/test 
type=com.myaction.TestActionname=testFormforward name=nextaction 
path=output.jsp/   /action  /action-mappings

Re: Why is dbcp / pool removed?

2003-06-09 Thread Richard Raquepo
im using tomcat. what is included in tomcat then?
thanks.

 I recommend using the package distributed with either your container or
your
 database.

 David

- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 11:07 AM
Subject: RE: Why is dbcp / pool removed?


  Struts 1.1 includes its trusty old GenericDataSource but you
  can always plugin DBCP if you want.
 
 Hold on a second...
 
 Isn't GenericDataSource deprecated?

 Yes, it will be removed in 1.2 but is included in 1.1 for backward
 compatibility.

 I just recently switched from using
 GenericDataSource in my struts-config.xml (by specifying no type=) to
 explicitly using type=org.apache.commons.dbcp.BasicDataSource because of
 the
 docs in GenericDataSource. Is this no longer the recommended approach?

 If DBCP works for you, then continue using it.  It's just not included in
 the Struts distro anymore.  In the future Struts won't distribute *any*
 connection pooling package, you will have to plug in your favorite
 implementation.

 
 Currently, I'm having some problems with pooling and idle connections
which
 are closed by the db server actually being given back to my app (I
 suspect).
 Could this be related to the bugs in dbcp you are talking about?

 Maybe, this behavior is configurable in DBCP so it may or may not be
trying
 to recover lost connections.

 
 Using 1.1RC2, what is the recommended way to acquire pooled db
connections?

 I recommend using the package distributed with either your container or
your
 database.

 David

 
 Matt Kruse

 _
 Add photos to your messages with MSN 8. Get 2 months FREE*.
 http://join.msn.com/?page=features/featuredemail


 -
 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]



i suddenly got this error from nowhere

2003-06-02 Thread Richard Raquepo
my app is working just fine but i can't remember anything that might have cause this 
error.

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 at org.apache.struts.taglib.tiles.InsertTag.clinit(InsertTag.java:104)
 at _login__jsp._jspService(/login.jsp:5)
 at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
 at com.caucho.jsp.Page.subservice(Page.java:497)
 at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
 at com.caucho.server.http.Invocation.service(Invocation.java:312)
 at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
 at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
 at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
 at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
 at java.lang.Thread.run(Thread.java:534)

anyone has any idea what this error is about? my struts file are all in my web-inf/lib 
directory.

thanks

Re: i suddenly got this error from nowhere

2003-06-02 Thread Richard Raquepo
im using resin

thanks guys... it's working now... just restarted my PC... and it worked...

still, can't figure out why? i never move any of my jar files...

but thanks anyways... as always...

-richard

- Original Message -
From: ashokd [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, June 02, 2003 5:15 PM
Subject: Re: i suddenly got this error from nowhere


 Hi,

 What IDE and Application Server you are using?

 I think this problem will solve after restarting.

 But this is not a solution but this temporary remeady to come out from the
 problem.

 This problem due to placing of log4j.jar file and reloading of the
 application after restarting.

 Thanks  Regards,
 Ashok.D




 - Original Message -
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, June 02, 2003 2:00 PM
 Subject: i suddenly got this error from nowhere


 my app is working just fine but i can't remember anything that might have
 cause this error.

 java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  at org.apache.struts.taglib.tiles.InsertTag.clinit(InsertTag.java:104)
  at _login__jsp._jspService(/login.jsp:5)
  at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
  at com.caucho.jsp.Page.subservice(Page.java:497)
  at
 com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
  at com.caucho.server.http.Invocation.service(Invocation.java:312)
  at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
  at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
  at
 com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
  at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
  at java.lang.Thread.run(Thread.java:534)

 anyone has any idea what this error is about? my struts file are all in my
 web-inf/lib directory.

 thanks


 -
 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]



using message resources

2003-06-02 Thread Richard Raquepo
can someone show me how to use message-resources? i can't seem to get it right by 
following the documention.

the filename of my application resources is ApplicationResources.properties

i use to put my message resources in web.xml under my servlet using this:

servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
...
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param

  /servlet

 the above work .

now how do i put the message-resources tag... i put it on my struts-config.xml but i 
cannot make my application 
run... i always get this error:

[ServletException in:/layouts/crmDefaultLayout.jsp] Cannot find message resources 
under key org.apache.struts.action.MESSAGE'

my message-resources config looks like this:


  message-resources
   param-nameparameter/param-name
   param-value/WEB-INF/classes/ApplicationResources.properties/param-value
  /message-resources


hope anyone could teach me and show me how to use message-resources... thanks


Re: Upgrading to 1.1

2003-05-30 Thread Richard Raquepo
clear your compiled jsp, be sure you are using the latest struts.jar *.jars
of struts1.1rc1

hope this helps

- Original Message -
From: Abhinav (Cognizant) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, May 30, 2003 1:09 PM
Subject: Upgrading to 1.1


I have an Application based on Struts 1.0.2
What changes are necessary in my application for upgrading to 1.1.
I changed my libraries, and relaced perform() by execute(),

and then I get this .

javax.servlet.jsp.JspTagException: Since tag class
org.apache.struts.taglib.bean.DefineTag does not
implement BodyTag, it cannot return BodyTag.EVAL_BODY_BUFFERED
at jsp_servlet.__searchform._jspService(__searchform.java:173)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:304)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:242)








 -
 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: Removing a value from DynaForm?

2003-05-30 Thread Richard Raquepo
i hope i understand your question.

in your action class typecast the form variable to your dynaform name
then access it as a regular javabean.
ex:



 public ActionForward execute(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
  throws IOException, ServletException {

MyDynaForm newform = (MyDynaForm) form;
newform.setMyField(new value);

//save the modified ActionForm
session.setAttribute(mapping.getAttribute(),newform); //if session scope
//if request scope
//request.setAttribute(mapping.getAttribute(),newform);


}

HTH

-richard
- Original Message -
From: Mick Knutson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 30, 2003 5:59 PM
Subject: Removing a value from DynaForm?


 I can't seem to figure out how to remove one of the attributes in a
DynaForm
 I get fro a form submission.
 I have a String in there, but I want to remove the String and replace with
a
 Date instead.
 Anyone can help?


 ---
 Thanks...
 Mick Knutson
 ---

 _
 Tired of spam? Get advanced junk mail protection with MSN 8.
 http://join.msn.com/?page=features/junkmail


 -
 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: Struts Diagram

2003-05-30 Thread Richard Raquepo
i think you can't make attachment here
- Original Message -
From: Vijay S Pawar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, May 30, 2003 6:29 PM
Subject: Struts Diagram



 Hi Friends,

 Based on struts-documentation, I have prepared the General Outline Diagram
 of Struts. This diagram represents the various building blocks of the
 basic struts framework.

 I welcome all patrons/experts to have a glance at it and add more building
 blocks like DynaBeans, FormBeans to it.

 Hope we will soon have the complete Struts in Diagram format, on our desk
 boards

 :0)~

 PS: Attachment- My Understanding of Struts.doc

 Thanks and Cheers !

 Vijay









 -
 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]



checkbox

2003-04-03 Thread Richard Raquepo
is there a maximum # of checkbox that a user can only select... i have a least 500 
checkboxes when i all of them is check submit won't work but checking say sumthing 
around 200 chekboxes , submit will work?

is there a limitation of html checkox that i'm not aware of...

thanks...

Re: checkbox

2003-04-03 Thread Richard Raquepo
Actually it could be more... it's just that a possible search would return
one or more records... so i got to be able to process it and show
checkboxes...

anyways, the problem is in the form method... when you have so many
checkboxes you cannot use the method=get since i think the query strings
added in the url post is long and the browser is limited. so try using
method=post instead...

thanks...

- Original Message -
From: Claude Betancourt [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, April 04, 2003 3:55 AM
Subject: Re: checkbox


 I think your issue has to do more with design than what you're asking.  Is
 an user interface really useful when there are 200-500 checkboxes to
choose
 from?  Maybe not...

 Try reorganizating your data so that it can be either narrowed down or
 presented differently, maybe thru a search prior to presentation of the
 final form.

 -c

 - Original Message -
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, April 03, 2003 5:48 AM
 Subject: checkbox


 is there a maximum # of checkbox that a user can only select... i have a
 least 500 checkboxes when i all of them is check submit won't work but
 checking say sumthing around 200 chekboxes , submit will work?

 is there a limitation of html checkox that i'm not aware of...

 thanks...


 -
 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]



url rewriting

2003-04-02 Thread Richard Raquepo
i have this kind of link that will open a new window:

a href=test class=redbold
onClick=TestWindow=window.open('?LINK.do?','TestWindow', 
'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,
 width=620,height=250,left=20,top=20'); return false;
Test Link/a

i wan't to be able to transfer my current session to the new browser? what tag should 
i use so that i can passed the current sessionid in the ?LINK.do? ?

or is it possible to use html:link tag that has a new window with my parameters in 
it?

thanks a lot...


Re: url rewriting

2003-04-02 Thread Richard Raquepo
yes by using the html:link , but i want to control the size of the created
window? how can it be done?
- Original Message -
From: Claude Betancourt [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 1:51 PM
Subject: Re: url rewriting


 the session is attached to the browser instance and not the individual
 window, so by popping a new window with a new action you'll carry the same
 session attributes without the need to specify the session id.
 -c

 - Original Message -
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, April 03, 2003 12:56 AM
 Subject: url rewriting


 i have this kind of link that will open a new window:

 a href=test class=redbold
 onClick=TestWindow=window.open('?LINK.do?','TestWindow',

'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,
 resizable=no, width=620,height=250,left=20,top=20'); return
false;
 Test Link/a

 i wan't to be able to transfer my current session to the new browser? what
 tag should i use so that i can passed the current sessionid in the
?LINK.do?
 ?

 or is it possible to use html:link tag that has a new window with my
 parameters in it?

 thanks a lot...


 -
 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 in my struts config

2003-03-25 Thread Richard Raquepo
)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:944)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:934)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82
1)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3420)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
608)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

part of my struts-config.xml is
  action path=/TmMainTaskList
   type=com.fltic.crm.action.tm.TaskListAction
   scope=request 
   set-property property=loginRequired value=true/
   forward name=success path=/tm-main.jsp/
  /action

it's work in resin but i dont know why i does not work in tomcat.

thanks
- Original Message -
From: chuck cavaness [EMAIL PROTECTED]
To: Richard Raquepo [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 2:52 AM
Subject: Re: error in my struts config


 Sorry for the delay in responding, but I've been out
 of town for a week.

 As far as your error goes, make sure that you are
 using the same version of Struts and all associated
 files. Just one thing to check.

 The error seems to be when it's trying to do something
 with the initModuleConfig area. Are you using modules?
 What are these files:

 /WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml

 Chuck

 --- Richard Raquepo [EMAIL PROTECTED] wrote:
 
 
  My web-app is working fine in resin but when i
  switched to tomcat i got this
  error.
 
  2003-03-24 14:13:57 StandardContext[/]: Servlet /
  threw load() exception
  javax.servlet.UnavailableException: Parsing error
  processing resource path
 
 /WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml
   at
 

org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
  52)
   at
 
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
   at
 
 javax.servlet.GenericServlet.init(GenericServlet.java:256)
   at
 

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
  4)
   at
 
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
   at
 

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
  3420)
   at
 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
   at
 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   at
 
 org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
   at
 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   at
 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
   at
 
 org.apache.catalina.core.StandardService.start(StandardService.java:497)
   at
 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
   at
 
 org.apache.catalina.startup.Catalina.start(Catalina.java:512)
   at
 
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at
 
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native
  Method)
   at
 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
  )
   at
 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
  .java:25)
   at java.lang.reflect.Method.invoke(Method.java

struts vs tapestry

2003-03-25 Thread Richard Raquepo
how does the two compares?

any mixed feeling about it?

please tell me your opinions...

thanks...

I NEED HELP

2003-03-24 Thread Richard Raquepo
Please view email:
1. error starting my struts app in tomcat
2. error in my struts config

I really need help badly.

THANKS! 

-richard

Re: error in my struts config

2003-03-24 Thread Richard Raquepo
i did that too... the thing is... my web app works in Resin.

but when i try to run it under tomcat i always get the errors.

i don't know what's really hapenning... can someone enlighten me...

thanks a lot
- Original Message -
From: Konstantina Stamopoulou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 4:45 PM
Subject: Re: error in my struts config


 Hello Richard,

 I'm not sure if it is allowed to give the stuts-configs as comma delimited
 parameters. Try the following in your web.xml


 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config-tm.xml/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config-manager.xml/param-value
 /init-param

 Konstnatina



 - Original Message -
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 8:17 AM
 Subject: error in my struts config


 My web-app is working fine in resin but when i switched to tomcat i got
this
 error.

 2003-03-24 14:13:57 StandardContext[/]: Servlet / threw load() exception
 javax.servlet.UnavailableException: Parsing error processing resource path
 /WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml
  at

org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
 52)
  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
  at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
 4)
  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
  at

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
 3420)
  at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
  at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
  at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

 
 my web.xml looks like this
 .
 init-param
   param-nameconfig/param-name
   param-value


/WEB-INF/struts-config.xml,/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-con
 fig-manager.xml
/param-value
 /init-param
 
 it works fine in resin but this seems not allowed in tomcat...

 guys, what do you think is the error.

 thanks a lot...


 -
 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: I NEED HELP

2003-03-24 Thread Richard Raquepo
here's my servlet.xml of my tomcat
 Host name=crm-test debug=0 appBase=c:\\crm-dev2 unpackWARs=true
Context path=/ docBase=c:\\crm-dev2 debug=0
 reloadable=true crossContext=true
  /Context
Logger className=org.apache.catalina.logger.FileLogger
 directory=c:\\crm-dev2\\web-inf\\logs
prefix=crmtest_log. suffix=.txt
 timestamp=true/
 /Host

- Original Message -
From: Simon Kelly [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:26 PM
Subject: Re: I NEED HELP


 I've just donned my psychic hat and will now solve your problems.

 1)  You need to shutdown tomcat, re-deploy your war file and then restart
 tomcat.

 2)  Mm  you have forgotten to put a / in front of the path name.
IE
 path=/info NOT path=info

 I thank you ... and for my next trick I will turn Mr Bush into a
 Donkey!!  Damit, someone beat me too it  =:0)

 Cheers

 Simon

 - Original Message -
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 9:35 AM
 Subject: I NEED HELP


 Please view email:
 1. error starting my struts app in tomcat
 2. error in my struts config

 I really need help badly.

 THANKS!

 -richard


 -
 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]



error in my struts config

2003-03-23 Thread Richard Raquepo
My web-app is working fine in resin but when i switched to tomcat i got this error.

2003-03-24 14:13:57 StandardContext[/]: Servlet / threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path 
/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml
 at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:952)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


my web.xml looks like this
.
init-param
  param-nameconfig/param-name
  param-value
   
/WEB-INF/struts-config.xml,/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml
   /param-value
/init-param

it works fine in resin but this seems not allowed in tomcat...

guys, what do you think is the error.

thanks a lot...

error starting my struts app in tomcat

2003-03-23 Thread Richard Raquepo
i have a web-app that works fine in resin but does not work in tomcat. i always get 
this error:
Mar 24, 2003 3:32:00 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.NoSuchMethodException: Bean has no property named loginRequired
at org.apache.commons.digester.SetPropertyRule.begin(SetPropertyRule.jav
a:193)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1268)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:459)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
ractXMLDocumentParser.java:221)
at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNames
paceBinder.java:874)
at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
nder.java:591)
at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidat
or.java:748)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:747)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:944)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:934)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82
1)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3420)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
608)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

===
my web.xml looks like this:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;

web-app

  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value1/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value
   /WEB-INF/struts-config.xml
   /param-value
/init-param
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param
init-param
  param-namemapping/param-name
  param-valuecom.fltic.crm.UserActionMapping/param-value
/init-param

load-on-startup1/load-on-startup
  /servlet

  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping

  welcome-file-list
welcome-filelogin.jsp/welcome-file
  /welcome-file-list
  
  taglib
taglib-uri/WEB-INF/struts-html.tld/taglib-uri
taglib-location/WEB-INF/struts-html.tld/taglib-location
  /taglib

  taglib
taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
taglib-location/WEB-INF/struts-logic.tld/taglib-location
  /taglib

  taglib
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/struts-bean.tld/taglib-location
  /taglib
  
/web-app

creating my Class

2003-03-21 Thread Richard Raquepo
I am in the process of designing a class but coudn't figure out how to start it 
because i'm thinking how
struts tags will display my info.

My expected output is like this

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

I don't how will be the data type of my class probably it will look like this:

class Record {
ArrayList record;
ArrayList subrecord[];
}


r really don't what to use really. Can someone give me some idea and also how will i 
be able to display it in
my JSP using struts tags.

thanks a lot.

-Richard

Re: creating my Class

2003-03-21 Thread Richard Raquepo
how can show my record-subrecord?

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

how will i put data and how will the matching be made.
i mean assuming i have a integer key, how is it done then.

 maybe you can show me some java code i will really appreciate it. thanks.


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 5:08 PM
Subject: RE: creating my Class


an ArrayList will hold Objects. an ArrayList is an object itself. So, the
ArrayList could contain other ArrayList's in it.


  _

Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _



-Original Message-
From: Richard Raquepo [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 10:12 AM
To: Struts Users Mailing List
Subject: creating my Class


I am in the process of designing a class but coudn't figure out how to start
it because i'm thinking how
struts tags will display my info.

My expected output is like this

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

I don't how will be the data type of my class probably it will look like
this:

class Record {
ArrayList record;
ArrayList subrecord[];
}


r really don't what to use really. Can someone give me some idea and also
how will i be able to display it in
my JSP using struts tags.

thanks a lot.

-Richard

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


-
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: struts-config.xml

2003-03-20 Thread Richard Raquepo
can you give us a working of your web.xml.
i'm kind of thinking your kind of solution.
thanks...
- Original Message - 
From: Joseph Fifield [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 5:26 AM
Subject: RE: struts-config.xml


 If you are using 1.1, you can simply split the file into multiple files,
 and list each comma-delimited in web.xml. IIRC, this was new in 1.1b3.
 We have one for every major part of our application, and it required no
 additional code changes.
 
 Joe
 
  -Original Message-
  From: Pat Young [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, March 20, 2003 4:23 PM
  To: Struts Users Mailing List
  Subject: RE: struts-config.xml
  
  
  Yes, I have looked at sub-applications and we are
  considering it.  Using sub-applications does have some 
  technical considerations that have to be accounted
  for.I realize that we could use a merge feature of
  a versioning tool also.  I was curious if anyone had
  any other creative ideas around this problem or if
  there was a feature in Struts that I had missed.
  
  Pat Young
  
  
  
  --- Mike Jasnowski [EMAIL PROTECTED] wrote:
   Well, version control considerations aside (for
   issues around merges when
   new struts-config.xml are checked in), Have you also
   looked at Struts
   sub-applications? Each can have it's own
   struts-config.xml.
   
   -Original Message-
   From: Pat Young [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 20, 2003 4:14 PM
   To: [EMAIL PROTECTED]
   Subject: struts-config.xml
   
   
   I am curious as to how others are working with the 
  struts-config.xml 
   file.  I am working on a large project with a team of 8 other 
   developers.  So far we
   have over 200 actions.  The struts-config.xml is
   becoming a bottle neck, because each developer needs
   to update the file at the same with entries into
   this
   file.  Does anyone have any ideas as to how to make
   working with this file any easier?  Thanks in
   advance.
   
   Pay Young
   
   __
   Do you Yahoo!?
   Yahoo! Platinum - Watch CBS' NCAA March Madness,
   live on your desktop!
   http://platinum.yahoo.com
   
  
  -
   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]
   
  
  
  __
  Do you Yahoo!?
  Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your 
  desktop! http://platinum.yahoo.com
  
  -
  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: Action Form Design Problem

2003-03-18 Thread Richard Raquepo
Does session propagate to the pop-up window and vice-versa?

- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 1:47 PM
Subject: Re: Action Form Design Problem


 Treat it as a multi-page form.  Store the form bean in the session and
have
 both pages store their data in the same form bean.  Your final submit
action
 will then have access to all the data.

 David



 From: Amit Keshav Kulkarni [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Action Form Design Problem
 Date: Wed, 19 Mar 2003 10:45:04 +0530
 
 Hi All,
 We are developing an application using Struts.
 The design of our screens is such that in Create screen a pop up
 window is used for capturing some of the data.
 User enters the data in the pop up window, saves it, returns to
 the parent window, fills some data in the parent window and finally
 submits the request for saving the data. At the time of saving
 we need the data entered in parent as well as pop up window.
 
 So how should the design of Action Forms and Action classes be in this
 case?
 
 Thanks and Regards,
 Amit
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 _
 The new MSN 8: advanced junk mail protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail


 -
 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]



help in my ServletException

2003-03-17 Thread Richard Raquepo
guys help me out what cause this error?
I have all my class compiled so i don't know
what to check. help me out... thanks..

[ServletException in:../tm/edit-busempinfo-body.jsp] Exception creating bean of class 
com.fltic.crm.form.BusEmpInfoForm: java.lang.ClassCastException' 

Error in Prepared Statement in my Struts Action Class

2003-03-17 Thread Richard Raquepo
I doing an app with struts. Although my problem is not directly related to struts 
maybe any could help me out.

I have this prepared statement 
SQLDef.BUSEMPINFO_INSERT=
INSERT INTO busempinfo (lastupdate) VALUES (?) 

but when i use this on my Java servlet like this
pstmt = conn.prepareStatement(SQLDef.BUSEMPINFO_INSERT); 
pstmt.setString(1,fdate.format(now));
pstmt.executeUpdate(); 

i got an error an Exception type error. which just state
null. It did not go to my SQLException catch. 

what seems to be cause this null error. When i turn to the mysql client and run this 
insert
INSERT INTO busempinfo(lastupdate) VALUES('2003-01-01'); 

i worked fine. Please help me out anyone. Thanks... 


Re: Error in Prepared Statement in my Struts Action Class

2003-03-17 Thread Richard Raquepo
Datetime
i used pstmt.setString(1,fdate.format(now));
because it does the data does not correctly forms the correct date
pstmt.setDate(1,now);
will only save the date (-MM-DD) but not the
time...

- Original Message -
From: Micha³ Postupalski [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 9:37 AM
Subject: Re: Error in Prepared Statement in my Struts Action Class


 On 3/18/2003 2:28 AM, Richard Raquepo wrote:
  I doing an app with struts. Although my problem is not directly related
to struts maybe any could help me out.
 
  I have this prepared statement
  SQLDef.BUSEMPINFO_INSERT=
  INSERT INTO busempinfo (lastupdate) VALUES (?)
 
  but when i use this on my Java servlet like this
  pstmt = conn.prepareStatement(SQLDef.BUSEMPINFO_INSERT);
  pstmt.setString(1,fdate.format(now));
  pstmt.executeUpdate();
 
  i got an error an Exception type error. which just state
  null. It did not go to my SQLException catch.
 
  what seems to be cause this null error. When i turn to the mysql client
and run this insert
  INSERT INTO busempinfo(lastupdate) VALUES('2003-01-01');
 
  i worked fine. Please help me out anyone. Thanks...

 what type is lastupdate field in your DB ???




 -
 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: Dynamic form actions

2003-03-13 Thread Richard Raquepo
We'll i kind of interested in trying your solution.
Can you post some jsp  codes in here.
I think many people will appreciate it.

Thanks.
- Original Message -
From: Mark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 14, 2003 11:52 AM
Subject: Dynamic form actions


I just wanted to pass on a tidbit that might help one or two people out
there.

I have a search page that displays the results with checkboxes.  There are
two or three different places that i use this same search page, so rather
than writing or copying the search results jsp page to several copies (to
allow me to post the form thats on the results page to a different forward
definition) i made a modifiecation to struts.

In the FormTag.java I added some code to peek in the formbean for a property
called formaction.  If it finds one, it uses this new action instead of
the hard coded one in the jsp page.

Thus, in my action class i do this:

MyBean myBean=(MyBean)actionForm;

myBean.setFormaction(/Some/other/url);
return mapping.findforward(default);

now i have a jsp page which i can reuse its functionality in several places
in my code.

I had thought about using a hidden field, but the problem really stems from
the statically coded form action=/Url part.  Since struts doesnt allow us
much flexibility here by default, I decided to add my own and it works
great!

Regards,
Mark




-
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]



problem in struts

2003-03-12 Thread Richard Raquepo



i am trying to re-use my formbean which i used in 
my adding of a record and trying to use inediting my record.

i can't seem to show the data to the screen for editing.

what's wrong with my code? i am attaching my code 
in this
email. please help me.

many thanks in advance...

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

problem in struts

2003-03-12 Thread Richard Raquepo
i am trying to re-use my formbean which i used in my adding of a record and trying to 
use in editing my record.

i can't seem to show the data to the screen for editing.

what's wrong with my code? i am attaching my code in this
email. please help me.

many thanks in advance...

-Richard

package com.fltic.crm.form;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.MessageResources;

import java.util.Calendar;
import java.util.TimeZone;
import java.util.ArrayList;

import com.fltic.crm.UserActionMapping;

public class UserAccountForm extends ActionForm{
 protected int userid;
 protected String lastname;
 protected String name;
 protected String mi;
 protected String username;
 protected String password;
 protected String confirmpassword;
 protected String address;
 protected String provincecode;
 protected String citycode;
 protected String datecreated;
 protected String dateexpired;
 protected String dateexpiredmonth;
 protected String dateexpiredday;
 protected String dateexpiredyear;
 protected int createdby;

 //--
 public void setUserid(int userid){
  this.userid = userid;
 }

 public int getUserid(){
  return userid;
 }

 //--
 public void setLastname(String lastname){
  this.lastname = lastname;
 }

 public String getLastname(){
  return lastname;
 }

 //--
 public void setName(String name){
  this.name = name;
 }

 public String getName(){
  return name;
 }

 //--
 public void setMi(String mi){
  this.mi = mi;
 }

 public String getMi(){
  return mi;
 }

 //--
 public void setUsername(String username){
  this.username = username;
 }

 public String getUsername(){
  return username;
 }

 //--
 public void setPassword(String password){
  this.password = password;
 }

 public String getPassword(){
  return password;
 }

 //--
 public void setConfirmpassword(String confirmpassword){
  this.confirmpassword = confirmpassword;
 }

 public String getConfirmpassword(){
  return confirmpassword;
 }

 //--
 public void setAddress(String address){
  this.address = address;
 }

 public String getAddress(){
  return address;
 }

 //--
 public void setProvincecode(String provincecode){
  this.provincecode = provincecode;
 }

 public String getProvincecode(){
  return provincecode;
 }

 //--
 public void setCitycode(String citycode){
  this.citycode = citycode;
 }

 public String getCitycode(){
  return citycode;
 }

 //--
 public void setCreatedby(int createdby){
  this.createdby = createdby;
 }

 public int getCreatedby(){
  return createdby;
 }

 //--
 public void setDateexpired(String dateexpired){
  this.dateexpired = dateexpired;
 }

 //--
 public void setDateexpiredmonth(String dateexpired){
  this.dateexpiredmonth = dateexpired;
 }

 public String getDateexpiredmonth(){
  return dateexpiredmonth;
 }
 //--
 public void setDateexpiredday(String dateexpired){
  this.dateexpiredday = dateexpired;
 }

 public String getDateexpiredday(){
  return dateexpiredday;
 }

 //--
 public void setDateexpiredyear(String dateexpired){
  this.dateexpiredyear = dateexpired;
 }

 public String getDateexpiredyear(){
  return dateexpiredyear;
 }

 //--
 public String getDateexpired(){
  return dateexpiredyear+dateexpiredmonth+-+dateexpiredday;
 }

 public String getDatecreated(){
  return datecreated;
 }

  // This method is called with every request. It resets the Form
  // attribute prior to setting the values in the new request.
  public void reset(ActionMapping mapping, HttpServletRequest request) {
 System.err.println(--- entered UserAccountForm reset);
this.username = ;
this.password = ;
this.confirmpassword = ;
this.name = ;
this.lastname = ;
this.mi = ;
this.address = ;
HttpSession session = request.getSession();
if( session.getAttribute(USERID) != null){
 this.createdby = Integer.parseInt((String)session.getAttribute(USERID));
 }
Calendar cal = Calendar.getInstance(TimeZone.getDefault());
  String DATE_FORMAT = -MM-dd hh:mm:ss;
java.text.SimpleDateFormat sdf =
  new java.text.SimpleDateFormat(DATE_FORMAT);
sdf.setTimeZone(TimeZone.getDefault());
this.datecreated = sdf.format(cal.getTime());
 }

  public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {

System.err.println(--- entered UserAccountForm validate);

ActionErrors errors = new ActionErrors();

UserActionMapping userMapping =
  (UserActionMapping)mapping;

// Does this action require the user to login
if ( userMapping.isLoginRequired() ) {

  HttpSession session = request.getSession();
  if ( session.getAttribute(USER) == null ) {
// return null to force action to handle 

Re: problem in struts

2003-03-12 Thread Richard Raquepo
no error just empty fields...

- Original Message - 
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 4:30 PM
Subject: Re: problem in struts


 Do you get a specific error on the page when you try to display the 
 contents of the form bean ? Or just no error, empty fields ?
 
 
 -
 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: problem in struts

2003-03-12 Thread Richard Raquepo
no errors. jusr empty fields.

- Original Message - 
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 4:30 PM
Subject: Re: problem in struts


 Do you get a specific error on the page when you try to display the 
 contents of the form bean ? Or just no error, empty fields ?
 
 
 -
 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: problem in struts

2003-03-12 Thread Richard Raquepo
it is... i put a code on my service class that populates the bean and it did
have a data.

one thing i've noticed is my mapping.getAttribute() is null.

part of my struts-config.xml is:
   action path=/EditTmAccount
type=com.fltic.crm.action.manager.EditTmAccountAction
name=userAccountForm
scope=session
validate=false
set-property property=loginRequired value=true/
forward name=success path=/manager/edittm.jsp/
   /action
   action path=/SaveEditedTmAccount
type=com.fltic.crm.action.ManagerAction
name=userAccountForm
scope=session
input=/EditTmAccount.do
validate=true
set-property property=loginRequired value=true/
forward name=success path=/manager/edittm.jsp/
forward name=error path=/EditTmAccount.do/
   /action
---
so normally putting the bean in the session
session.setAttribute(mapping.getAttribute(), form);
will not work but when i manually put
session.setAttribute(userAccountForm, form);
the fields are displayed/populated in my jsp form.

i don't want to put manually the name of the form. that should be automatic
form the struts-config.xml. any reason why?

thanks
- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 4:43 PM
Subject: Re: problem in struts


 Looks like your form bean is not initialized ..

 Richard Raquepo wrote:

 no error just empty fields...
 
 - Original Message -
 From: Kwok Peng Tuck [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 4:30 PM
 Subject: Re: problem in struts
 
 
 
 
 Do you get a specific error on the page when you try to display the
 contents of the form bean ? Or just no error, empty fields ?
 
 
 -
 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]





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



Help in my struts error

2003-03-09 Thread Richard Raquepo
i have this error whenever i am doing a save and cancel in my jsp.i have used a form 
bean. but i didn't do any fancy thing in my form beanso i don't know why i get this 
error. any idea why? thanks...java.lang.IllegalArgumentException: argument type 
mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
at 
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
at 
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:312)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:536)


Re: Help in my struts error

2003-03-09 Thread Richard Raquepo
Thanks
- Original Message -
From: Dan Allen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 10, 2003 12:02 PM
Subject: Re: Help in my struts error



 Richard Raquepo ([EMAIL PROTECTED]) wrote:

  i have this error whenever i am doing a save and cancel in my jsp.i have
used a form bean. but i didn't do any fancy thing in my form beanso i don't
know why i get this error. any idea why?
thanks...java.lang.IllegalArgumentException: argument type mismatch
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
ava:1789)
  at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
ava:1684)
  at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:17
13)
  at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924)
  at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
  at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
  at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:798)
  at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
  at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9
6)
  at com.caucho.server.http.Invocation.service(Invocation.java:312)
  at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
  at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
  at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
  at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
  at java.lang.Thread.run(Thread.java:536)

 setSimpleProperty in PropertyUtils does not do type conversion.
 Make sure the value you are passing in is the same value that the
 form bean expects.

 Dan

 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 I'm old enough to know better, but still too young to care.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 -
 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: paginator tags

2003-03-06 Thread Richard Raquepo
Can you give me actual jsp code on how you used the pager tag. i find it
hard to customize it. thanks
- Original Message -
From: Ashish Kulkarni [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 07, 2003 5:36 AM
Subject: Re: paginator tags


 Hi
 u may wanna have a look at this
 http://jsptags.com/tags/navigation/pager/index.jsp

 it works well for me

 Ashish

 --- alexj [EMAIL PROTECTED] wrote:
  you may use display tag or struts-el
  here is a sample from JSTL in Action :
  %@ taglib prefix=c
  uri=http://java.sun.com/jstl/core; %
 
  c:set var=totalCount scope=session
  value=100/
 
  c:set var=perPage scope=session value=20/
 
  c:forEach
 
  var=boundaryStart
 
  begin=0
 
  end=${totalCount - 1}
 
  step=${perPage}
 
  a href=?start=c:out value=${boundaryStart}/
 
  [
 
  c:out value=${boundaryStart}/
 
  -
 
  c:out value=${boundaryStart + perPage - 1}/
 
  ]
 
  /a
 
  /c:forEach
 
  c:forEach
 
  var=current
 
  varStatus=status
 
  begin=${param.start}
 
  end=${param.start + perPage - 1}
 
  c:if test=${status.first}
 
  ul
 
  /c:if
 
  lic:out value=${current}//li
 
  c:if test=${status.last}
 
  /ul
 
  /c:if
 
  /c:forEach
 
  --
  Alexandre Jaquet
  - Original Message -
  From: Jacky Kimmel [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, March 06, 2003 9:22 PM
  Subject: paginator tags
 
 
  
   Does anyone know how to implement paginator tags?
  Ie: you have a list of
  30 items out of 100.  You now want to display the
  next 30 and so on.
  
  
  
   Also, I am using application.resource for all
  labels.  I want to have a
  name with a trademark symbol as a superscript.
  Anyone know how to do this?
  
  
  
   -
   Do you Yahoo!?
   Yahoo! Tax Center - forms, calculators, tips, and
  more
 
 
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 


 =
 A$HI$H

 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/

 -
 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: Multiple beans in request scope?

2003-03-06 Thread Richard Raquepo
Try encapsulating all the three beans in one bean.

- Original Message -
From: Jeff Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 07, 2003 8:21 AM
Subject: Multiple beans in request scope?


I'm building my first real struts app. (Okay, its also my first real Java
app, my first real servlet app and a bunch of other firsts, but who's
counting? :-)

I'd like to present a form that contains a few selection lists, with values
taken from a few tables in my database.

Let's say the lists are:
1) A list of documents the user can have sent to him
2) A list of transport methods he can choose (ftp, email, snail mail,
etc...)
3) A list of credit cards that we currently accept.

Obviously, these are logically disparate lists, so I would rather not create
a form-specific bean to encapsulate all this information.

What I'd *REALLY* like to do is have a DocsBean, a DeliveryOptionsBean and a
CreditCardBean that each load themselves from the database. And in a perfect
world, I'd like to be able to specify (in the action tag of my
struts-config) that form UserOrder wants all three of those beans loaded
into the request scope.

Is that possible? It appears to me that the action tag only takes a single
formbean name, so I am assuming I have to find a different way to do what I
want. Any suggestions?

Failing that, I suppose I could chain together a couple of actions: a) a
pre-action that would load my beans for me and then b) the actual forward to
the userform.jsp. But that seems a bit tedious. (Why write by hand what
could be abstracted out and built into the next version of Struts?)

I've got lots more questions, but I'll try to keep them in separate threads.

Jefficus



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



how can i make my pages sensetive to back and forward

2003-03-05 Thread Richard Raquepo
Help anyone...

how can i make my pages sensetive to back and forward?

i tried putting this in my html

 META HTTP-EQUIV=Pragma content=no-cache
 META HTTP-EQUIV=Cache-Control CONTENT=no cache 
 META HTTP-EQUIV=Expires CONTENT=Thursday, 10-Jan-69 00:00:00 GMT
 META HTTP-EQUIV=Expires CONTENT=-1

but it does nothing. I've read that you have to used request.setHeader() thing?

if so, how do i put in my action class?



thanks


how can i make my pages sensetive to back and forward

2003-03-05 Thread Richard Raquepo
Help anyone...

how can i make my pages sensetive to back and forward?

i tried putting this in my html

 META HTTP-EQUIV=Pragma content=no-cache
 META HTTP-EQUIV=Cache-Control CONTENT=no cache
 META HTTP-EQUIV=Expires CONTENT=Thursday, 10-Jan-69 00:00:00 GMT
 META HTTP-EQUIV=Expires CONTENT=-1

but it does nothing. I've read that you have to used request.setHeader()
thing?

if so, how do i put in my action class?



thanks



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



trouble on my editing

2003-03-03 Thread Richard Raquepo
I am doing a webapp in struts... i'm using a sample program i found during my web 
searches.
I was able to do fine, like saving and deleting but i always seem to get this error 
whenever i
try to setting the form to the session.

My code is:
   GetUserAccountService service = null;
UserAccountForm userAccountForm = null;
if(tmUserId != null){
 service = new GetUserAccountService();
 userAccountForm = new UserAccountForm();
 service.setServlet(servlet);
 userAccountForm = service.getUserAccount(Integer.parseInt(tmUserId));
 form = (ActionForm)userAccountForm;
 if( form == null){
   System.err.println(--- userAccountForm is Null!);
   }
 System.err.println(--- Test form.getUserid:  + userAccountForm.getUserid());
 System.err.println(--- Test form.getUsername:  + 
userAccountForm.getUsername());
 System.err.println(--- Test mapping:  + mapping.getAttribute());
 //Save form in session for editing
 try{
  session.setAttribute(mapping.getAttribute(), form);
  request.setAttribute(mapping.getAttribute(), form);
  }catch (Exception e) {
System.err.println(ERROR:+e.getMessage());
e.printStackTrace(System.err);
   }
 }


the error is:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at com.caucho.server.http.Request.setAttribute(Request.java:1480)
at com.fltic.crm.action.manager.EditTmAccountAction.execute(EditTmAccoun
tAction.java:104)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:465)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:142
2)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet
.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:312)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:1
35)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244
)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:
163)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:536)

 Hope anyone would help me. thanks a lot.

This code i provided is for my Edit action classes.

Thanks a lot again.


-Richard


Fw: trouble on my editing

2003-03-03 Thread Richard Raquepo
I am doing a webapp in struts... i'm using a sample program i found during
my web searches.
I was able to do fine, like saving and deleting but i always seem to get
this error whenever i
try to setting the form to the session in my edit action.

My code is:
   GetUserAccountService service = null;
UserAccountForm userAccountForm = null;
if(tmUserId != null){
 service = new GetUserAccountService();
 userAccountForm = new UserAccountForm();
 service.setServlet(servlet);
 userAccountForm = service.getUserAccount(Integer.parseInt(tmUserId));
 form = (ActionForm)userAccountForm;
 if( form == null){
   System.err.println(--- userAccountForm is Null!);
   }
 System.err.println(--- Test form.getUserid:  +
userAccountForm.getUserid());
 System.err.println(--- Test form.getUsername:  +
userAccountForm.getUsername());
 System.err.println(--- Test mapping:  + mapping.getAttribute());
 //Save form in session for editing
 try{
  session.setAttribute(mapping.getAttribute(), form);
  request.setAttribute(mapping.getAttribute(), form);
  }catch (Exception e) {
System.err.println(ERROR:+e.getMessage());
e.printStackTrace(System.err);
   }
 }


the error is:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at com.caucho.server.http.Request.setAttribute(Request.java:1480)
at
com.fltic.crm.action.manager.EditTmAccountAction.execute(EditTmAccoun
tAction.java:104)
at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:465)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:142
2)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet
.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:312)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:1
35)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244
)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:
163)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:536)

 Hope anyone would help me. thanks a lot.

This code i provided is for my Edit action classes.

Thanks a lot again.


-Richard



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



Re: Results in multiple pages

2003-02-28 Thread Richard Raquepo
www.javanovic.com - see articles. i'm sure it can help you and try going
browsing to  this thread
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=58t=
000767

hope this helps

- Original Message -
From: Konstantina Stamopoulou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 3:59 PM
Subject: Results in multiple pages


Hello,
I have the following problem and I'm not sure how I can solve it.
The resultset returned from a query I'm making to the database has many
records. What I want to do is to display each time 10 of these records in my
page.
How can i do this? I have searched the archive but I couldn't find anything
similar.
Any ideas or redirections to places where I could find a solution?

Thank you in advance.





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



Re: Results in multiple pages

2003-02-28 Thread Richard Raquepo
im just passing it forward... :p

- Original Message -
From: Konstantina Stamopoulou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 4:54 PM
Subject: Re: Results in multiple pages


 Richard ,
 Many thanx!! With all these resourses I sould be able to find the
solution.
 I knew I could count on the mailing list!

 Konstantina

 - Original Message -
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 10:15 AM
 Subject: Re: Results in multiple pages


  www.javanovic.com - see articles. i'm sure it can help you and try
 going
  browsing to  this thread
 

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=58t=
  000767
 
  hope this helps
 
  - Original Message -
  From: Konstantina Stamopoulou [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 3:59 PM
  Subject: Results in multiple pages
 
 
  Hello,
  I have the following problem and I'm not sure how I can solve it.
  The resultset returned from a query I'm making to the database has many
  records. What I want to do is to display each time 10 of these records
in
 my
  page.
  How can i do this? I have searched the archive but I couldn't find
 anything
  similar.
  Any ideas or redirections to places where I could find a solution?
 
  Thank you in advance.
 
 
 
 
 
  -
  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]



formbean

2003-02-27 Thread Richard Raquepo
i have a bean which is of type Arraylist which i return from my action.

i want to be able to display this in my formbean. but i also want to default to the 
selected value in case the user has 
a error in entry.

html:select ..


how can i do this?

anyone?

thanks.


do to put onChange on a html:select tag

2003-02-27 Thread Richard Raquepo
how do i put a onChange function in a html:select tag?

help anyone?

many thanks in advance...

error in my html:select tag

2003-02-27 Thread Richard Raquepo
i have this code in my jsp
:53 html:select property=provincecode styleClass=normalblack
  onchange=province(userAccountForm,'bean:write name=userAccountForm 
property=citycode/')

but i get this error:
[ServletException in:/manager/addtm-body.jsp] /manager/addtm-body.jsp:53: expected `' 
at ``'' (for tag `html:select' at line 53).  The XML tag syntax is: tag 
attr1='value1''

can't i combine a bean:write in a html:select tag?

thanks




combining two form bean in one form

2003-02-27 Thread Richard Raquepo
can i combine two formbean?

i mean i have a PersonalInfoForm bean and ContactInfoForm bean.

can i combine them to in one html? 

how?

thanks in advance... 

Re: combining two form bean in one form

2003-02-27 Thread Richard Raquepo
i'll be having the inputs of the tow formbean in one html?
that's what i need...

- Original Message - 
From: Chetan Sahasrabudhe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 1:19 PM
Subject: Re: combining two form bean in one form


 write two different jsps for both form bean
 later write third one and include the previous two in that :)
 
 - Original Message - 
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 10:49 AM
 Subject: combining two form bean in one form
 
 
 can i combine two formbean?
 
 i mean i have a PersonalInfoForm bean and ContactInfoForm bean.
 
 can i combine them to in one html? 
 
 how?
 
 thanks in advance...
 
 
 -
 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]



combining two form bean in one form

2003-02-27 Thread Richard Raquepo
is this possible? to have the inputs of the two beans in one html?

 orig
can i combine two formbean?

i mean i have a PersonalInfoForm bean and ContactInfoForm bean.

can i combine them to in one html? 

how?

thanks in advance...


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



Re: re:combining two form bean in one form

2003-02-27 Thread Richard Raquepo



well what im trying to ask is this:

assuming i have two form-bean definition in my struts config example 
namely: personInfoForm and contactInfoForm

what im trying to ask if it's possible for the two to exist in
one html form. i mean i will be entering the information
in the two form-bean on one html. and on submit will populate the 
twobean.

is that possible?


- Original Message - 

  From: 
  Chetan Sahasrabudhe 
  To: [EMAIL PROTECTED] 
  Sent: Friday, February 28, 2003 1:51 
  PM
  Subject: re:combining two form bean in 
  one form
  
  How do I include one file in another?
  
  HTML itself offers no way to seamlessly incorporate the content of one 
  file into another. 
  
  True dynamic inclusion of one HTML document (even in a different 
  "charset") into another is offered by the OBJECT element, but due to 
  shortcomings of browser versions in current use, it seems unwise to rely on 
  this yet for essential content. The same can be said for IFRAME. 
  
  Two popular ways of including the contents of one file seamlessly into 
  another for the WWW are preprocessing and server-side inclusion. A 
  preprocessor converts its source into a plain HTML document that you publish 
  on your server. In contrast, documents that use server-side inclusion are 
  processed every time the document is retrieved from the server. 
  
  Preprocessing techniques include the C preprocessor and other generic 
  text manipulation methods, and several HTML-specific processors. There is a 
  nice annotated list of HTML preprocessors at http://www.idocs.com/wmr/software/html+preprocessors/. 
  
  
  Beware of making your "source code" non-portable. Also, the HTML can only 
  be validated after preprocessing, so the typical cycle "Edit, Check, Upload" 
  becomes "Edit, Preprocess, Check, Upload" (here, "Check" includes whatever 
  steps you use to preview your pages: validation, linting, management 
  walk-through etc.; and "upload" means whatever you do to finally publish your 
  new pages to the web server). 
  
  A much more powerful and versatile preprocessing technique is to use an 
  SGML processor (such as the SP package) to generate your HTML; this can be 
  self-validating. 
  
  Examples of server-side inclusion are Server Side Includes (SSI, 
  supported by Apache, NCSA, and other web servers), and Microsoft's Active 
  Server Pages (ASP, supported by MS IIS). Processing occurs at the time the 
  documents are actually retrieved. A typical inclusion looks like 
  
  !--#include virtual="/urlpath/to/myfile.htm" --
  
  However, be sure to consult your own server's documentation, as the 
  details vary somewhat between implementations. The whole directive gets 
  replaced by the contents of the specified file. 
  
  Using server-side inclusion (a potentially powerful tool) merely as a way 
  to insert static files such as standard header/footers has implications for 
  perceived access speed and for server load, and is better avoided on heavily 
  loaded servers. If you use it in this way, consider making the result 
  cacheable (e.g., via "XBitHack full" on Apache; setting properties of the 
  "Response" object in ASP). Details are beyond the scope of this FAQ but you 
  may find this useful: http://www.mnot.net/cache_docs/
  
  Proper HTML validation of server-side inclusion is only possible after 
  server-side processing is done (e.g. by using an on-line validator that 
  retrieves the document from the server). 
  
  Another approach is to create a database-backed site, as described in 
  "Philip and Alex's Guide to Web Publishing" at URL:http:// www.arsdigita.com/books/panda/. 
  A simple change to the database template instantly changes the whole site. 
  
  
  Finally, note that if the included file contains arbitrary plain text, 
  then some provision must be made to convert the characters "" and "" 
  (in the plain text file) to the entities "amp;" and "lt;" (in the 
  HTML document). 
  
  RegardsChetan___| 
  | The trouble with being punctual 
  | is that nobody's there to appreciate 
  it.| | 
  |___
  


help removing a formbean in session

2003-02-26 Thread Richard Raquepo
i have this in my struts-config
   action path=/AddTmAccount
type=com.fltic.crm.action.manager.AddTmAccountAction
scope=session
set-property property=loginRequired value=true/
forward name=success path=/manager/addtm.jsp/
   /action   
   action path=/SaveTmAccount
type=com.fltic.crm.action.manager.SaveTmAccountAction
name=userAccountForm
scope=session 
input=/manager/addtm.jsp
validate=true
set-property property=loginRequired value=true/
forward name=success path=/ManageTmAccounts.do/
forward name=error path=/AddTmAccount.do/
   /action

i have set scope to session so that on error the textbox will be populated with 
previos user entry. If the validation succeeds then i'll save the record. But here's 
my problem
whenever i return to the my AddScreen the last values is still there. How to i 
manually call the reset button of my formbean userAccountForm.

thanks.

Dispaly a tag

2003-02-25 Thread Richard Raquepo
I have placed this string in one of my struts action
session.setAttribute(mylist,liList 1/liliList 2/li);

I tried displaying it using 
bean:write name=mylist/

I't showed the content but changed the supposed tag charcterswith gt; 
and lt;

how can i display the correct tag li

thanks


Re: Dispaly a tag

2003-02-25 Thread Richard Raquepo
Thank Todd.

Anyway, another question guys...
I have a formbean which i put a validate method and set my struts-config
validate=true. The form bean returned
successfully. I just wanted to ask if it's possible to
populate the fields which already has input. thanks


- Original Message -
From: Todd Pierce [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 2:53 PM
Subject: RE: Dispaly a tag


 http://jakarta.apache.org/struts/doc-1.0.2/struts-bean.html#write

 -Original Message-
 From: Richard Raquepo [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 26 February 2003 5:55 PM
 To: Struts Users Mailing List
 Subject: Dispaly a tag


 I have placed this string in one of my struts action
 session.setAttribute(mylist,liList 1/liliList 2/li);

 I tried displaying it using
 bean:write name=mylist/

 I't showed the content but changed the supposed tag charcters   
with
 gt; and lt;

 how can i display the correct tag li

 thanks

 -
 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]



removing formbean in session

2003-02-25 Thread Richard Raquepo
i have a formbean i used in my action.
Now, how do i remove the valeus of my formbean because
it keeps on showing up when i returned to the form again.

thanks.


Printing tag size

2003-02-24 Thread Richard Raquepo
i have this tag:

 bean:size id=size name=useraccounts/

now how can i display the value of size? what the getter method for the
bean:size?

thanks



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



Bean Style

2003-02-20 Thread Richard Raquepo
Hi!

Is there a general rule for creating view beans...

I mean should i use Integer instead of int? If so, Why?

Thanks.

-richard


Help in Logic Tag

2003-02-20 Thread Richard Raquepo
i want to be able to show a message like 
No records found is there was no records found or logic/iterate did not do any 
iteration.

Can anybody provide us a solution to this kind of problem?

thanks a lot!.

i have this in my JSP:

 logic:iterate id=referralsInfo name=referralsinfos
tr 
  td width=0%nbsp;/td
  td width=15% class=tablecontentdata
   nbsp;bean:write name=referralsInfo property=lastname/
  /td
  td width=16% class=tablecontentdata
   nbsp;bean:write name=referralsInfo property=name/
  /td
  td width=11% class=tablecontentdata
   nbsp;bean:write name=referralsInfo property=mi/
  /td
  td width=14% class=tablecontentdata
   nbsp;bean:write name=referralsInfo property=phone/
  /td
  td width=19% class=tablecontentdata
   nbsp;bean:write name=referralsInfo property=mobile/
  /td
  td width=25%nbsp;/td
 /tr 
 /logic:iterate


Re: Help in Logic Tag

2003-02-20 Thread Richard Raquepo
i have this code but i have an error Cannot find bean referralsinfo in any
scope

my referralsinfo is in my request session and i know its working cause i can
use it in
my logic:iterate tag. what seems to be the problem? Here's some of my jsp
code
.
logic:iterate id=referralsInfo name=referralsinfos
..
/logic:iterate
   bean:size id=size name=referralsinfo/
   logic:equal name=size value=0
tr
 td colspan=7 class=tablecontentdata No record(s) found! /td
/tr
   /logic:equal


Am i doing things right?

Thanks


-Richard

- Original Message -
From: Todd Pierce [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 11:07 AM
Subject: RE: Help in Logic Tag


 With Struts tags:

 bean:size name=list id=collectionSize /

 logic:greaterThan name=collectionSize value=0
 logic:iterate ...
 ...
 /logic:iterate

 /logic:greaterThan

 logic:equal name=collectionSize value=0
 ...
 /logic:equal

 -Original Message-
 From: Richard Raquepo [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 21 February 2003 2:05 PM
 To: Struts Users Mailing List
 Subject: Help in Logic Tag


 i want to be able to show a message like
 No records found is there was no records found or logic/iterate did not
do
 any iteration.

 Can anybody provide us a solution to this kind of problem?

 thanks a lot!.

 i have this in my JSP:

  logic:iterate id=referralsInfo name=referralsinfos
 tr
   td width=0%nbsp;/td
   td width=15% class=tablecontentdata
nbsp;bean:write name=referralsInfo property=lastname/
   /td
   td width=16% class=tablecontentdata
nbsp;bean:write name=referralsInfo property=name/
   /td
   td width=11% class=tablecontentdata
nbsp;bean:write name=referralsInfo property=mi/
   /td
   td width=14% class=tablecontentdata
nbsp;bean:write name=referralsInfo property=phone/
   /td
   td width=19% class=tablecontentdata
nbsp;bean:write name=referralsInfo property=mobile/
   /td
   td width=25%nbsp;/td
  /tr
  /logic:iterate

 -
 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: Help in Logic Tag

2003-02-20 Thread Richard Raquepo
Got it! Thanks everyone!


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




Scroll

2003-02-19 Thread Richard Raquepo
hello anybody?

Can anyone show me how to implement a Scroll in my page.

Assuming i have 20 or more result returned from my bean i want to display
the first 5 only and let the user scroll either forward or backward.

Can someone show me or give me a working sample.

thanks a lot everyone!


-richard



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




Re: Displaying

2003-02-19 Thread Richard Raquepo
I have this error:

'No getter method for property personalInfo.name of bean person'

help anyone?

i have my PersonalInfo class and it has a get and set method for name.
public void setName(String name){ this.name =  name; }
public String getName(){ return name; }
- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 4:01 PM
Subject: Re: Displaying



 bean:write name=person property=personinfo.lastName/

 this assumes you have getter and setters in your beans

 see more in

http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/taglib/bean
 /package-summary.html#package_description

 Nico.




 how to i display my bean using the tags included in struts if my bean is
 like this:
 code
 public class Person{
 PersonInfoBase personinfo;
 ContactInfoBase contactinfo;
 
 }

 public class PersonInfoBase{
 getLastName();
 getBirthdate();
 
 }

 public class ContactInfoBase{
 getAddress();
 getZip();
 
 }
 /code

 How do i display like address or lastname is i put the class person in the
 session.attribute:

 code
 Person person = new Person();
 request.setAttribute(person,person)
 /code

 Can someshow show me how wil the jsp looks like.

 thanks a lot in advance.


 -
 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: Displaying

2003-02-19 Thread Richard Raquepo
here's part of the code:
.
Person person = new Person();
PersonalInfo personalInfo = new PersonalInfo();
 if ( taskId != null ) {
  System.err.println(--- Writing personc class :  + taskId);
   personalInfo.setName(Richard);
   person.personalInfo = personalInfo;
  request.setAttribute(person, person);
 }
...

-richard


I have this error:

'No getter method for property personalInfo.name of bean person'

help anyone?

- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 4:01 PM
Subject: Re: Displaying



 bean:write name=person property=personinfo.lastName/

 this assumes you have getter and setters in your beans

 see more in

http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/taglib/bean
 /package-summary.html#package_description

 Nico.




 how to i display my bean using the tags included in struts if my bean is
 like this:
 code
 public class Person{
 PersonInfoBase personinfo;
 ContactInfoBase contactinfo;
 
 }

 public class PersonInfoBase{
 getLastName();
 getBirthdate();
 
 }

 public class ContactInfoBase{
 getAddress();
 getZip();
 
 }
 /code

 How do i display like address or lastname is i put the class person in the
 session.attribute:

 code
 Person person = new Person();
 request.setAttribute(person,person)
 /code

 Can someshow show me how wil the jsp looks like.

 thanks a lot in advance.


 -
 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: Displaying

2003-02-19 Thread Richard Raquepo
ok. thanks.

i seem to forgot that... sorry...

thanks a lot again...

- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 6:29 PM
Subject: Re: Displaying


 Does your Person class have a getter for personalInfo property ?

 PersonalInfo getPersonalInfo() { return this.personalInfo; }

 Nico.


  I have this error:
 
  'No getter method for property personalInfo.name of bean person'
 
  help anyone?
 
  i have my PersonalInfo class and it has a get and set method for name.
  public void setName(String name){ this.name =  name; }
  public String getName(){ return name; }
  - Original Message -
  From: Nicolas De Loof [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Wednesday, February 19, 2003 4:01 PM
  Subject: Re: Displaying
 
 
  
   bean:write name=person property=personinfo.lastName/
  
   this assumes you have getter and setters in your beans
  
   see more in
  
 

http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/taglib/bean
   /package-summary.html#package_description
  
   Nico.
  
  
  
  
   how to i display my bean using the tags included in struts if my bean
is
   like this:
   code
   public class Person{
   PersonInfoBase personinfo;
   ContactInfoBase contactinfo;
   
   }
  
   public class PersonInfoBase{
   getLastName();
   getBirthdate();
   
   }
  
   public class ContactInfoBase{
   getAddress();
   getZip();
   
   }
   /code
  
   How do i display like address or lastname is i put the class person in
 the
   session.attribute:
  
   code
   Person person = new Person();
   request.setAttribute(person,person)
   /code
  
   Can someshow show me how wil the jsp looks like.
  
   thanks a lot in advance.
  
  
   -
   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]





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




Displaying

2003-02-18 Thread Richard Raquepo
how to i display my bean using the tags included in struts if my bean is like this: 
code
public class Person{
PersonInfoBase personinfo;
ContactInfoBase contactinfo;

} 

public class PersonInfoBase{
getLastName();
getBirthdate();

} 

public class ContactInfoBase{
getAddress();
getZip();

}
/code 

How do i display like address or lastname is i put the class person in the 
session.attribute: 

code
Person person = new Person();
request.setAttribute(person,person) 
/code 

Can someshow show me how wil the jsp looks like. 

thanks a lot in advance.