FormBean question...

2003-09-16 Thread alanbrown
I am using 2 different beans to populate 2 forms on 2 pages.  However
some of the fields have the same names, as both customers and contacts
have addresses and both companies and contacts have descriptions and
notes associated with them.  After entering a company the user is
prompted to enter some details of a person within that company with,
hopefully, some of the form already filled out (the address fields have
default values for instance taken from the company info that was just
entered).  However the description field and the notes field are also
filled out with the values entered in the addCompany.jsp page and this
should not happen.
 
This seems very strange as I've got 2 different formBeans used to
populate the fields.  Here are the relevant parts of the strutsconfig
file.
 
form-bean
name=companyForm
type=com.alan.crm.forms.CompanyForm
/form-bean
form-bean
name=contactForm
type=com.alan.crm.forms.ContactForm
/form-bean
 
and.
 
action
path=/addCompany
type=com.alan.crm.controller.AddCompanyAction
scope=request
name=companyForm
validate=true
input=/add/company.jsp
forward name=Success path=/addContactView.do/
forward name=Failure path=/add/company.jsp/
/action
action
path=/addContactView
type=com.alan.crm.controller.PrepareAddContactAction
scope=request
name=contactForm
validate=false
forward name=next path=/add/contact.jsp/
/action
 
As you can see they are using different types of form so I find it very
odd that the description and note fields are pre populated as well as
the address.  The way I've tried to populate the fields I want
pre-polulated is by having the following code at the end of my
addCompanyAction class
 
ContactForm contactForm = new ContactForm(new
Integer(companyId).toString(), companyForm.getAddress());
request.setAttribute(addContactForm, contactForm);
return mapping.findForward(Success);
 
and then, when forwarded to the prepareAddContactAction class, have the
following code.
 
public ActionForward executeAction(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response,
   UserContainer container) {
ContactForm contactForm =
(ContactForm)request.getAttribute(addContactForm);
//if addContactForm is not null in the request scope then we
should use it to populate our form.
form = contactForm == null? form : contactForm;
((ContactForm)form).setContactStatus(open);
return mapping.findForward(next);
   }
 
But somehow I'm getting all the companyForm's fields populating the
contact form.   IE. I put a company description in the addCompany jsp
and it shows up as a contact description in the addContact jsp, and I
don't pass the description field to the contactForm.
 
Is there something I'm not understanding about the struts architecture?
 
Help is, of course, greatly appreciated.
 
alan



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



Re: Invalid Class file Format

2003-09-16 Thread Stefan Frank
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 now, it works just
fine anyway ;-)
-
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: Slow file upload?

2003-09-16 Thread Mohd Amin Mohd Din
Hmm, just checking, are you doing any processing other than just simply
storing the file.

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 12:51 PM
To: Struts Users Mailing List
Subject: Re: Slow file upload?

On Tue, 2003-09-16 at 06:19, Robert Leland wrote:

 Bjørn T Johansen wrote:
 
 On Tue, 2003-09-16 at 04:12, Robert Leland wrote:
 
   
 
 Bjørn T Johansen wrote:
 
 
 
 I am testing file upload using Struts and FormFile but the upload
seems
 really slow. Uploading a 1,5MB file takes about 15-20 sec. and I am
 running both the server and the browser on the same PC. Is this
normal
 or should the upload be faster?
  
 
   
 
 Your upload will be slower all on one machine as opposed to going
across 
 a fast LAN.
 However, that does seem slow. I have uploaded a 650MB file in about
7 
 minutes across a LAN.
 650MB/7 minutes  =~ 1.5 MB/sec.
 Are you using Strust 1.1 and the default fileupload implementation
which 
 is commons-fileupload ?
 What browser, How much free RAM, CPU etc..
 
 
 
 
 Yes, I am using Struts 1.1 and the default upload in
commons-fileupload.
 The hw I am running on is a 2.4GHz PC with 1GB memory, with at least
 half of it free.. The browser I tried the upload with was Mozilla..
   
 
 
 What does your CPU utilization look like ?
 What does your (physical/virtual)  memory utilization look like, what
% 
 is available ?
 Is it high, low, which process is taking the most CPU/memory ?
 How many process are running in your JVM(s) and what are the JVM
virtual 
 memory settings at startup.
 Usually there is a  setting something like  -Xm256 for java.exe are
you 
 setting this ?
 Look at the docs for java.exe for the exact options, then try
increasing 
 say by 50% and see if
 it helps, or crashes your machine because windows doesn't have enough 
 Virtual memory to give to the
 JVM. Then you increase Windows virtual memory if needed.
 
 Also note that if Mozilla is like Netscape then it makes a copy of the

 file before beginning sending it.
 The temp file is either under C:\temp or C:\Documents and 
 Settings\User\Local Settings\Temp.
 If it make the copy fairly quickly, less than 1 second, then look at
your

Well, I am running this on Linux and the load is almost 0, so it's not a
question of the load on my computer..
But I'll try increasing the memory given to the Java VM when I get home
tonight and also try another browser


BTJ



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



RE: Slow file upload?

2003-09-16 Thread Bjørn T Johansen
Nope

On Tue, 2003-09-16 at 08:48, Mohd Amin Mohd Din wrote:

 Hmm, just checking, are you doing any processing other than just simply
 storing the file.
 
 -Original Message-
 From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 16, 2003 12:51 PM
 To: Struts Users Mailing List
 Subject: Re: Slow file upload?
 
 On Tue, 2003-09-16 at 06:19, Robert Leland wrote:
 
  Bjørn T Johansen wrote:
  
  On Tue, 2003-09-16 at 04:12, Robert Leland wrote:
  

  
  Bjørn T Johansen wrote:
  
  
  
  I am testing file upload using Struts and FormFile but the upload
 seems
  really slow. Uploading a 1,5MB file takes about 15-20 sec. and I am
  running both the server and the browser on the same PC. Is this
 normal
  or should the upload be faster?
   
  

  
  Your upload will be slower all on one machine as opposed to going
 across 
  a fast LAN.
  However, that does seem slow. I have uploaded a 650MB file in about
 7 
  minutes across a LAN.
  650MB/7 minutes  =~ 1.5 MB/sec.
  Are you using Strust 1.1 and the default fileupload implementation
 which 
  is commons-fileupload ?
  What browser, How much free RAM, CPU etc..
  
  
  
  
  Yes, I am using Struts 1.1 and the default upload in
 commons-fileupload.
  The hw I am running on is a 2.4GHz PC with 1GB memory, with at least
  half of it free.. The browser I tried the upload with was Mozilla..

  
  
  What does your CPU utilization look like ?
  What does your (physical/virtual)  memory utilization look like, what
 % 
  is available ?
  Is it high, low, which process is taking the most CPU/memory ?
  How many process are running in your JVM(s) and what are the JVM
 virtual 
  memory settings at startup.
  Usually there is a  setting something like  -Xm256 for java.exe are
 you 
  setting this ?
  Look at the docs for java.exe for the exact options, then try
 increasing 
  say by 50% and see if
  it helps, or crashes your machine because windows doesn't have enough 
  Virtual memory to give to the
  JVM. Then you increase Windows virtual memory if needed.
  
  Also note that if Mozilla is like Netscape then it makes a copy of the
 
  file before beginning sending it.
  The temp file is either under C:\temp or C:\Documents and 
  Settings\User\Local Settings\Temp.
  If it make the copy fairly quickly, less than 1 second, then look at
 your
 
 Well, I am running this on Linux and the load is almost 0, so it's not a
 question of the load on my computer..
 But I'll try increasing the memory given to the Java VM when I get home
 tonight and also try another browser
 
 
 BTJ
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


[ANN] new version of sslext for Struts 1.10 posted

2003-09-16 Thread Steve Ditlinger

Minor change to fix a bug in previously-posted version that could result in
exceptions if the action specified in the sslext:link or sslext:form tags could
not be found.

sslext for Struts 1.10 - 3 is the latest version, available at
http://sslext.sourceforge.net.  I will be deprecating previous Struts 1.10
release.

STeve

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



Re: Prevent URL requested directly from browser

2003-09-16 Thread David LAFAY
PUT the following code into the begin of all your JSP :
logic:notPresent name=REMOTEUSER
logic:forward name=login/
/logic:notPresent

Then don't forget to declare a global forward named login for redirect to
your login.jsp
and don't forget to put de the user login name into the Session on your
LoginAction

David

veera maria [EMAIL PROTECTED] a écrit dans le message news:
[EMAIL PROTECTED]
 Hello,

 What is the best way to prevent user to request web application's
 actions from browser manually?

 E.g. user is using web application and taking it's current url
 to clipboard. Then user goes e.g. to Google for surfing for a while.
 After surfing (s)he pastes web applications url back to browser's
 address field.
 Best technique in Struts applicaton to prevent this?

 Vera

 _
 Tilaa nyt Hotmail postit kännykkääsi! http://www.msn.fi/mobiili/




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



output xml

2003-09-16 Thread Morten Andersen
Is it possible to output xml from a struts application without using xls 
transformations?

How is this done?

What I need is something, that makes it possible for the browser to see, 
that it is a xml document and not a html document that it is reading. 
(Content-type setting)
I have tryed:
   response.setHeader(Content-Type,text/xml);
But without any luck.
Is this being overwritten by Struts or perhaps Tomcat?

Thanks

Morten Andersen
Master of applied mathematics and computer science
Research assistant (in e-learning)
The Maersk Institute of Production technology at Southern Danish University 
www.mip.sdu.dk
Campusvej 55
DK-5230 Odense M
Denmark
+45 6550-3654
Jabber id: [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
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 Stefan Frank
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]


Future releases

2003-09-16 Thread Marco Tedone
Hi,

is there planned any future release of Struts (i.e. Struts 1.2...); my
question is intended to know if a book on Struts, JSTL and Struts-el will be
written somewhen (hopefully not too late...).

Thanks,

Marco




-
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 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: Future releases

2003-09-16 Thread Ruben Carvalho
Marco,
 
I think it's a bad practice to ask for new releases of open source software but who am 
I to say that, it's just an opinion.
 
About the books, here's a helpful link:
 
http://jakarta.apache.org/struts/resources/books.html
 
You'll see that there are many books about Struts already and we're still on version 
1.1
 
Rben Carvalho
 

-Original Message- 
From: Marco Tedone [mailto:[EMAIL PROTECTED] 
Sent: Tue 9/16/2003 10:19 AM 
To: Struts-user-list 
Cc: 
Subject: Future releases



Hi,

is there planned any future release of Struts (i.e. Struts 1.2...); my
question is intended to know if a book on Struts, JSTL and Struts-el will be
written somewhen (hopefully not too late...).

Thanks,

Marco




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

newbie validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I have a dumb question re: struts validator:

How do I show the value of the offending field in the error message as
opposed to the field name?

i.e. if the field I want to validate is email, and the user types in foo,
how do I show
'foo' is not a valid email address

as opposed to the more standard (or widely documented) error
'Email Address' is not valid

Thanks,
Daniel


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



RE: newbie validator question: show value of a field in error

2003-09-16 Thread Naveen Mudgal
u catch the username field value using bean:write tag and concatenate the error 
message defined in applicationresources.properties file errors.email={0} is not a 
valid email address.



-Original Message-
From: Daniel Wang [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 3:13 PM
To: Struts Users Mailing List
Subject: newbie validator question: show value of a field in error


I have a dumb question re: struts validator:

How do I show the value of the offending field in the error message as
opposed to the field name?

i.e. if the field I want to validate is email, and the user types in foo,
how do I show
'foo' is not a valid email address

as opposed to the more standard (or widely documented) error
'Email Address' is not valid

Thanks,
Daniel


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



Life after Marriage

2003-09-16 Thread Shamanth




  lifeaftermarriage.jpg  

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

Re: newbie validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I could certainly do this by hand in the validate() method of the form or in
the action (which I have been doing this for the last few months), but I was
hoping the validator could do it for me somehow...

or maybe I misunderstood you?  obviously concatenating strings would be
bad due to i18n.

daniel

- Original Message - 
From: Naveen Mudgal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 2:50 AM
Subject: RE: newbie validator question: show value of a field in error


 u catch the username field value using bean:write tag and concatenate
the error message defined in applicationresources.properties file
errors.email={0} is not a valid email address.



 -Original Message-
 From: Daniel Wang [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 16, 2003 3:13 PM
 To: Struts Users Mailing List
 Subject: newbie validator question: show value of a field in error


 I have a dumb question re: struts validator:

 How do I show the value of the offending field in the error message as
 opposed to the field name?

 i.e. if the field I want to validate is email, and the user types in
foo,
 how do I show
 'foo' is not a valid email address

 as opposed to the more standard (or widely documented) error
 'Email Address' is not valid

 Thanks,
 Daniel


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



URL Rewriting within a FRAMESET

2003-09-16 Thread Martin . Ramsel
Hallo,

I'm using a frameset in my struts-framework-application.
Everthing workes fine, while cookies an enabled.
If cookies are disabled, the second and third frame don't know the session.

Is there a way to manage it? Or is it even impossible?

kind regards

M.Ramsel



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



footer problem

2003-09-16 Thread Coolyogs
Hi All
I have a problem with footer.
I am inserting footer in tiles-def

I want to keep the footer in absolute position when there is no data 
in the page
and when there is some data exceeds the absolute position the the 
footer should float.

please help me

div style=position: absolute; width:100%; height:15; top: 540; 
left:20  

in the above case it will be overlapped if contents exceeds absolute 
position

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



RE: Prevent URL requested directly from browser

2003-09-16 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
I think the best place to do such kind of task is to extend RequestProcessor class,
this approach takes session control from developers,

extend TilesRequestProcessor , change the controller class to your new class ( 
SessionRequestProcessor) inside struts-config.xml.

here is the code 

public class SessionRequestProcessor extends TilesRequestProcessor{
protected String processPath(HttpServletRequest request,
 
HttpServletResponse response)  throws IOException 
 {

String origPath = request.getRequestURI();

if(!origPath.endsWith(/Login.do)){

HttpSession session =   request.getSession(false);  // get session 
only if it exists 

  if (session != null ) {// session available, 

  return super.processPath(request, response);  

  }
  
  else// redirect to login page 
  
return /Login; 
} 

else {

  HttpSession session =  request.getSession(false);  // get session only if it 
exists 

  if (session != null)   
  session.invalidate(); 

return super.processPath(request, response);  // process login 
page request

  }

}


}




-Original Message-
From: David LAFAY [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: Re: Prevent URL requested directly from browser


PUT the following code into the begin of all your JSP :
logic:notPresent name=REMOTEUSER
logic:forward name=login/
/logic:notPresent

Then don't forget to declare a global forward named login for redirect to
your login.jsp
and don't forget to put de the user login name into the Session on your
LoginAction

David

veera maria [EMAIL PROTECTED] a crit dans le message news:
[EMAIL PROTECTED]
 Hello,

 What is the best way to prevent user to request web application's
 actions from browser manually?

 E.g. user is using web application and taking it's current url
 to clipboard. Then user goes e.g. to Google for surfing for a while.
 After surfing (s)he pastes web applications url back to browser's
 address field.
 Best technique in Struts applicaton to prevent this?

 Vera

 _
 Tilaa nyt Hotmail postit knnykksi! http://www.msn.fi/mobiili/




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


[ot] dhtml question was - Re: footer problem

2003-09-16 Thread Mark Lowe
Last time i messed with dhtml, using with:100% didn't work on 
everything. and inline css was also a bit ropey..

You'll need to detect screen width and height, and dynamically set the 
width, position and height.

This has nothing to do with tiles or struts really, so either you 
thought you'd get lucky on this list or you have trouble separating the 
concepts of dhtml and server side stuff.

Here are some clues..

div id=footer
..
footer {
	position:absolute;
	left:0px;
	top:0px;
..
}
..
//dom supporting browsers
document.getElementById(footer)
//ns4 : i wouldn't bother
document.layers['footer']
//ie4
document.all['footer']
..
function positionFooter() {
	footer = ..; //depends on browser
	winWidth = window.width ; //probably wrong i dont recall which one 
does what
	winHeight = .. // likewise
	height = footer.style.height;
	width = winWidth;
	left = 0;
	top = winHeight - height;
}
..
To be honest , judging by your question I'd stay well away. DHTML is a 
guaranteed way of giving you a very long headache. And writing DHTML 
ends up being for other frontend developers rather than end users. 
DHTML is good but only when you know the stuff inside out and have 
resource to dedicate to this separate line of development. If your site 
works 'as' is you can layer the dhtml on by not using inline styles, 
and allowing no js/css browsers to fail gracefully.

Cheers Mark

On Tuesday, September 16, 2003, at 11:57 AM, Coolyogs wrote:

Hi All
I have a problem with footer.
I am inserting footer in tiles-def
I want to keep the footer in absolute position when there is no data
in the page
and when there is some data exceeds the absolute position the the
footer should float.
please help me

div style=position: absolute; width:100%; height:15; top: 540;
left:20  
in the above case it will be overlapped if contents exceeds absolute
position
-
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 Mohd Amin Mohd Din
If I'm not mistaken, 9ias runs on jdk1.3.1 

-Original Message-
From: Stefan Frank [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 6:32 PM
To: Richard Raquepo
Cc: Struts Users Mailing List
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\def
ault
 
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
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]



AW: Life after Marriage

2003-09-16 Thread Oliver Reflé
do i know you from somewhere ?

-Ursprüngliche Nachricht-
Von: Shamanth [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 16. September 2003 11:57
An: [EMAIL PROTECTED]
Betreff: Life after Marriage






  lifeaftermarriage.jpg  


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19.08.2003
 
  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19.08.2003
 


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





-
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 bean:define copy translation

2003-09-16 Thread seloha .
I am using struts-el and trying to translate the following bean:define (i.e. 
copy an existing bean) into JSTL with no success:

bean:define id=userBean name='%= JemosConstants.DATA_USER_DATA %' 
type=org.jemos.core.framework.ejbs.valueobject.PeopleValue /

JemosConstants.DATA_USER_DATA is a session object.

The form bean is an org.apache.struts.validator.DynaValidatorForm.

Any help appreciated, Thanks

Paul

_
Find a cheaper internet access deal - choose one to suit you. 
http://www.msn.co.uk/internetaccess

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


Re: DynaValidatorForm and Multi-page validation

2003-09-16 Thread Natalie D Rassmann
When I type to add the page property as a java.lang.Integer, I get a null
pointer exception in the struts validator.  I am using Struts 1.1 Final
Release.  What were you using?

Natalie

Erez Efrati wrote:

 I use it in my application and I added to my DynaValidationForm
 configuration a 'page' property of type java.lang.Integer, and it works.

 Erez

 -Original Message-
 From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 3:11 PM
 To: Struts Users Mailing List
 Subject: DynaValidatorForm and Multi-page validation

 Hi -

 I am having trouble with my DynaValidatorForm and Multi-page
 validation.  It does not seem to utilize the page property.
 I tried putting in a page property but I get Struts errors.  When I add
 the page property to the struts-config file for that form, and I add the
 page property as an integer, I get a Null pointer exception.  When I put
 the page property as a string, I get a ClassCastException.  No matter
 what I do, I can't get the page validation to work.  Does anyone have a
 clue?  Can anyone help me??

 Thanks in advance,

 Natalie

 -
 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: FormBean question...

2003-09-16 Thread Mainguy, Mike
This is by design.  If you want to ensure this will not happen, you need to
set all the values to  or null beforehand for fields that should be empty.
The short answer is change the field name.  Especially if you are going to
store data in a form in the session you will have a big mess on your hands
if you have overlapping field names in multiple forms.

My $.02...


-Original Message-
From: alanbrown [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 2:18 AM
To: [EMAIL PROTECTED]
Subject: FormBean question...


I am using 2 different beans to populate 2 forms on 2 pages.  However some
of the fields have the same names, as both customers and contacts have
addresses and both companies and contacts have descriptions and notes
associated with them.  After entering a company the user is prompted to
enter some details of a person within that company with, hopefully, some of
the form already filled out (the address fields have default values for
instance taken from the company info that was just entered).  However the
description field and the notes field are also filled out with the values
entered in the addCompany.jsp page and this should not happen.
 
This seems very strange as I've got 2 different formBeans used to populate
the fields.  Here are the relevant parts of the strutsconfig file.
 
form-bean
name=companyForm
type=com.alan.crm.forms.CompanyForm
/form-bean
form-bean
name=contactForm
type=com.alan.crm.forms.ContactForm
/form-bean
 
and.
 
action
path=/addCompany
type=com.alan.crm.controller.AddCompanyAction
scope=request
name=companyForm
validate=true
input=/add/company.jsp
forward name=Success path=/addContactView.do/
forward name=Failure path=/add/company.jsp/
/action
action
path=/addContactView
type=com.alan.crm.controller.PrepareAddContactAction
scope=request
name=contactForm
validate=false
forward name=next path=/add/contact.jsp/
/action
 
As you can see they are using different types of form so I find it very odd
that the description and note fields are pre populated as well as the
address.  The way I've tried to populate the fields I want pre-polulated is
by having the following code at the end of my addCompanyAction class
 
ContactForm contactForm = new ContactForm(new
Integer(companyId).toString(), companyForm.getAddress());
request.setAttribute(addContactForm, contactForm);
return mapping.findForward(Success);
 
and then, when forwarded to the prepareAddContactAction class, have the
following code.
 
public ActionForward executeAction(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response,
   UserContainer container) {
ContactForm contactForm =
(ContactForm)request.getAttribute(addContactForm);
//if addContactForm is not null in the request scope then we
should use it to populate our form.
form = contactForm == null? form : contactForm;
((ContactForm)form).setContactStatus(open);
return mapping.findForward(next);
   }
 
But somehow I'm getting all the companyForm's fields populating the
contact form.   IE. I put a company description in the addCompany jsp
and it shows up as a contact description in the addContact jsp, and I don't
pass the description field to the contactForm.
 
Is there something I'm not understanding about the struts architecture?
 
Help is, of course, greatly appreciated.
 
alan



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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.



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



bean:write with a not simple property

2003-09-16 Thread reps
hello,

i use logic:iterate to output some userdata.
i have a little problem now.

one of the properties is not a simple datatype like string or int, its a new
class with 2 attributes.
in my list i want to output one of this attributes, but how can i do that ?

bean:write name=currentLoopUser property=address.getStreet()/
this is wrong of course, just want to show what i want to do.


Mit freundlichen Grüßen

Christian Reps, Dipl. Inf. (FH)
Web Applications


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



RE: bean:write with a not simple property

2003-09-16 Thread Paul McCulloch
It's easier than you think:

bean:write name=currentLoopUser property=address.street/

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 September 2003 12:38
To: Struts-User
Subject: bean:write  with a not simple property


hello,

i use logic:iterate to output some userdata.
i have a little problem now.

one of the properties is not a simple datatype like string or int, its a new
class with 2 attributes.
in my list i want to output one of this attributes, but how can i do that ?

bean:write name=currentLoopUser property=address.getStreet()/
this is wrong of course, just want to show what i want to do.


Mit freundlichen Grüßen

Christian Reps, Dipl. Inf. (FH)
Web Applications


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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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



RE: Retrieving the ModuleConfig object

2003-09-16 Thread Mainguy, Mike
I'm not sure what you mean by backwork, but it is accessible from the Action
Class by overridding the setServlet Method..

E.g.

ModuleConfig moduleConfig =
(ModuleConfig)
servlet.getServletContext().getAttribute(
Globals.MODULE_KEY);


-Original Message-
From: Marco Tedone [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 13, 2003 5:28 AM
To: Struts-user-list
Subject: Retrieving the ModuleConfig object


Hi, is it possible to retrieve a ModuleConfig object (with the module
configuration information) directly from within an Action without any
backwork?

Marco




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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.




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



RE: Easy Question

2003-09-16 Thread Mainguy, Mike

The property attribute of the tag should point to a boolean property of
the FormBean. If that property is true the box will be checked.

...unless you're using an old(er) version of the checkbox tag... I know in
the older (1.0x) versions this was rather broken (i.e. only a string of 'T'
or 'F' or something like that would work)...

If you're using 1.1 all should be well.


--
Tim Slattery
[EMAIL PROTECTED]


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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.



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



AW: bean:write with a not simple property

2003-09-16 Thread reps
bahhh

i could have tryed this :-)

Mit freundlichen Grüßen

Christian Reps, Dipl. Inf. (FH)
Web Applications


-Ursprüngliche Nachricht-
Von: Paul McCulloch [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 16. September 2003 13:42
An: 'Struts Users Mailing List'
Betreff: RE: bean:write  with a not simple property


It's easier than you think:

bean:write name=currentLoopUser property=address.street/

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 September 2003 12:38
To: Struts-User
Subject: bean:write  with a not simple property


hello,

i use logic:iterate to output some userdata.
i have a little problem now.

one of the properties is not a simple datatype like string or int, its a new
class with 2 attributes.
in my list i want to output one of this attributes, but how can i do that ?

bean:write name=currentLoopUser property=address.getStreet()/
this is wrong of course, just want to show what i want to do.


Mit freundlichen Grüßen

Christian Reps, Dipl. Inf. (FH)
Web Applications


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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated in this message (or responsible for delivery
of the message to such person), you may not copy or deliver this message to
anyone. In such case, you should destroy this message, and notify us
immediately. If you or your employer does not consent to Internet email
messages of this kind, please advise us immediately. Opinions, conclusions
and other information expressed in this message are not given or endorsed by
my Company or employer unless otherwise indicated by an authorised
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You are therefore strongly
advised to undertake anti virus checks prior to accessing the attachment to
this electronic mail.  Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for
loss or damage howsoever caused.


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



Multiple message resource files

2003-09-16 Thread [EMAIL PROTECTED]
I am trying to use 2 message resource files in my application.

My struts-config.xml has:

  message-resources parameter=ApplicationResources null=false /
  message-resources parameter=MyWebAppResources null=false /

The errors are added in an Action bean with statements like:

  errors.add(ToteNotFound, new ActionError(error.tote.toteNotFound));

and displayed on the jsp with:

  html:errors/

However, messages are only displayed from the last file listed in
struts-config.xml (in this example, from MyWebResources.properties). Any
message in the other file is not recognised and results in something like:

  ???en_US.error.tote.toteNotFound???

How do I persuade my application  to display errors from either of two
files?




-
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 Christian Bollmeyer
Hi,

iAS 9.0.3 runs perfectly with JDK 1.4.2. It's true that it
comes along with its own JDK which is a 1.3 version.
The JSP compiler uses the tools.jar that is found in
a separate directory named /jdk/lib, whereas
the server itself is located unterneath /j2ee, both
located directly underneath the installation directory.
This (/jdk/lib) is where you must copy the 1.4 tools.jar.

To make sure Oracle really uses the correct JDK,
it's best to explicitly specify the exact path to
java.exe and invoke oc4j.jar with that:

D:\Java\j2sdk1.4.2\bin\java -jar oc4j.jar

This definitely works; I just tested this again
with a fresh installation.

HTH,

-- Chris (SCPJ2)


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


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

-- CLIP!



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



[OT] RE: Life after Marriage

2003-09-16 Thread James
I think Shamanth was trying to show you these images:

http://www.open-tools.org/images/funny/



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Oliver Reflé [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 16, 2003 6:51 AM
 To: 'Struts Users Mailing List'
 Subject: AW: Life after Marriage
 
 
 do i know you from somewhere ?
 
 -Ursprüngliche Nachricht-
 Von: Shamanth [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 16. September 2003 11:57
 An: [EMAIL PROTECTED]
 Betreff: Life after Marriage
 
 
 
 
 
 
   lifeaftermarriage.jpg  
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.512 / Virus Database: 309 - Release Date: 19.08.2003
  
   
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.512 / Virus Database: 309 - Release Date: 19.08.2003
  
 
 
 -
 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: output xml

2003-09-16 Thread Adam Hardy
That works for me. I do it in the action. Neither tomcat nor struts 
overwrite it. The default for struts is set as a parameter to the 
controller in struts-config.xml, but setting that header overwrites it.

Perhaps if you are setting it after the response has started, it is too 
late.

Adam

On 09/16/2003 10:12 AM Morten Andersen wrote:
Is it possible to output xml from a struts application without using xls 
transformations?

How is this done?

What I need is something, that makes it possible for the browser to see, 
that it is a xml document and not a html document that it is reading. 
(Content-type setting)
I have tryed:
   response.setHeader(Content-Type,text/xml);
But without any luck.
Is this being overwritten by Struts or perhaps Tomcat?

Thanks

Morten Andersen
Master of applied mathematics and computer science
Research assistant (in e-learning)
The Maersk Institute of Production technology at Southern Danish 
University www.mip.sdu.dk
Campusvej 55
DK-5230 Odense M
Denmark
+45 6550-3654
Jabber id: [EMAIL PROTECTED]

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

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Application.properties

2003-09-16 Thread Srikanth Gubba
James,

Can you please help me with the changes that I can make to the
DBMessageResources so that it would work without reloading the appliation. I
know that you were working on this earlier but not sure if you had a chance
to complete making the changes to new OJB version.

Thanks in adv
srikanth

-Original Message-
From: James [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 2:18 PM
To: 'Struts Users Mailing List'
Subject: RE: Application.properties


That's one way to do it.  Although doing so will create a compile-time
dependency on using that class (whether you actually use it or not).

By default, the Struts MessageResources API does not allow for reloading
and given the nature of the implementation.  Since the returned messages
from your subclass are cached, you must clear the (cached) map of
formatted messages with each call to your implementation's getMessage
method or the MessageResources won't bother to call your method again
(until you reload the app).

This was a very frustrating feature that I had to overcome with my
DBMessageResources implementation and one of the reasons I chose OJB for
the underlying data access (configurable caching, etc).


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Paananen, Tero [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 15, 2003 1:49 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Application.properties
 
 
  Please suggest some ideas or code which will help in creating 
  an extension
  so that the properties can be loaded from database dynamically.
 
 Extend the message resources class you're currently
 using and implement a reload() (or whatever) method
 in your extended class. Call the reload() method
 when appropriate.
 
   -TPP
 
 -
 This email may contain confidential and privileged material 
 for the sole use of the intended recipient(s). Any review, 
 use, retention, distribution or disclosure by others is 
 strictly prohibited. If you are not the intended recipient 
 (or authorized to receive for the recipient), please contact 
 the sender by reply email and delete all copies of this 
 message.  Also, email is susceptible to data corruption, 
 interception, tampering, unauthorized amendment and viruses. 
 We only send and receive emails on the basis that we are not 
 liable for any such corruption, interception, tampering, 
 amendment or viruses or any consequence thereof.
 
 
 -
 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 message resource files

2003-09-16 Thread Andrew Kuzmin
Hi,

struts-config.xml:

message-resources parameter=ApplicationResources null=false
key=alternate/
message-resources parameter=MyWebAppResources null=false/

jsp:

   html:errors bundle=alternate/

--
Andrew Kuzmin
http://www.java201.com


- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 3:01 PM
Subject: Multiple message resource files


 I am trying to use 2 message resource files in my application.

 My struts-config.xml has:

   message-resources parameter=ApplicationResources null=false /
   message-resources parameter=MyWebAppResources null=false /

 The errors are added in an Action bean with statements like:

   errors.add(ToteNotFound, new ActionError(error.tote.toteNotFound));

 and displayed on the jsp with:

   html:errors/

 However, messages are only displayed from the last file listed in
 struts-config.xml (in this example, from MyWebResources.properties). Any
 message in the other file is not recognised and results in something like:

   ???en_US.error.tote.toteNotFound???

 How do I persuade my application  to display errors from either of two
 files?




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



Multipage JDBC result

2003-09-16 Thread Jonathan Hawkins
Howdy,
Any tips as to where I can find code examples of how to break down a 
large JDBC result
into say 25 rows per page?

Jon Hawkins

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


RE: [ANNOUNCE] StrutsDoc 0.4 Released

2003-09-16 Thread Matt Raible
I'd prefer them just be shown in a pre - so I could see the whole
function.  Here's what I use for pre in CSS.

pre {
background: #dd;
border: 1px solid #99;
color: #00;
padding: 5px 5px 5px 7px;
}

Matt

-Original Message-
From: Nick [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 10:54 PM
To: [EMAIL PROTECTED]
Subject: [ANNOUNCE] StrutsDoc 0.4 Released


Note:  I'm not sure if the way the javascript functions are presented
in the Validator docs is the best way to do it.  If you have feedback
or suggestions about how I could better present it, please let me
know.

-- 
Nick Heudecker
SystemMobile, Inc.
Email: [EMAIL PROTECTED]
Phone: 734.604.9192
Web: http://www.systemmobile.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]



[OT] Subject line filter tag

2003-09-16 Thread Adam L
To the powers that be:
Is there a particular reason there's no list name header in the subject lines, ie 
[struts-users], for easy filtering from all the other spam and junk mail?  I realize 
[struts-users] is a rather lengthy segment in the subject line, so perhaps it could 
be abbreviated.. [ASFSU]...[A-SU]... or, [MARK-FU]. (=

cheers!


Re: Multipage JDBC result

2003-09-16 Thread Andrew Kuzmin
Hi,

see this link 
   http://jakarta.apache.org/struts/faqs/newbie.html#pager

--
Andrew Kuzmin
http://www.java201.com

- Original Message - 
From: Jonathan Hawkins [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 3:39 PM
Subject: Multipage JDBC result


 Howdy,
 Any tips as to where I can find code examples of how to break down a 
 large JDBC result
 into say 25 rows per page?
 
 
 Jon Hawkins
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: [OT] Subject line filter tag

2003-09-16 Thread Sgarlata Matt
I filter based on the To address (all emails to
[EMAIL PROTECTED] go into my Open Source\Struts folder).  Is
this not possible with your mail client?

Matt
- Original Message - 
From: Adam L [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 9:13 AM
Subject: [OT] Subject line filter tag


To the powers that be:
Is there a particular reason there's no list name header in the subject
lines, ie [struts-users], for easy filtering from all the other spam and
junk mail?  I realize [struts-users] is a rather lengthy segment in the
subject line, so perhaps it could be abbreviated.. [ASFSU]...[A-SU]... or,
[MARK-FU]. (=

cheers!


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



RE: [OT] Subject line filter tag

2003-09-16 Thread Andrew Hill
snip
MARK-FU
/snip

Flash User?

-Original Message-
From: Adam L [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 September 2003 21:13
To: Struts Users Mailing List
Subject: [OT] Subject line filter tag


To the powers that be:
Is there a particular reason there's no list name header in the subject
lines, ie [struts-users], for easy filtering from all the other spam and
junk mail?  I realize [struts-users] is a rather lengthy segment in the
subject line, so perhaps it could be abbreviated.. [ASFSU]...[A-SU]... or,
[MARK-FU]. (=

cheers!


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



Re: Slow file upload?

2003-09-16 Thread Sgarlata Matt
Unfortunately I'm not going to have time to set up this experiment for a few
weeks because the app I am currently working on does not require file upload
capabilities.  I'll do a test in a few weeks and post the results to
struts-user.

I'm guessing from your response that the costs of encoding/decoding the file
so it can be sent over HTTP/MIME is much larger than one would suppose and
that this time is greater than the time it takes to send the file over a
large connection.

Thanks,

Matt
- Original Message - 
From: Robert Leland [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 10:40 PM
Subject: Re: Slow file upload?


Sgarlata Matt wrote:

Rob, why is it faster to upload all on one machine instead of going across
a
LAN?  It seems to me uploading on the same machine should be as fast as a
file copy.  What am I missing?


Try a experiment. Try a fileupload on a single CPU computer, hosting
your web app.
Then try it again for 2 machines connected by the same local LAN, one
running the browser, one the web app.
Monitor fileupload time, % free CPU, virtual memory/paging usage, etc.
Report back the results.



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



RE: [OT] Subject line filter tag

2003-09-16 Thread Chappell, Simon P
Flash User?

Yeah ... first thing I thought of as well. The second being Fine User. :-)

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



Re: Slow file upload?

2003-09-16 Thread as as
i am a newbie to struts
need help intsalling and making a helloworld app run using Tomcat jakarta struts
also need help learning to use filters to authenticate a user,
Samy


Sgarlata Matt [EMAIL PROTECTED] wrote:Unfortunately I'm not going to have time to 
set up this experiment for a few
weeks because the app I am currently working on does not require file upload
capabilities. I'll do a test in a few weeks and post the results to
struts-user.

I'm guessing from your response that the costs of encoding/decoding the file
so it can be sent over HTTP/MIME is much larger than one would suppose and
that this time is greater than the time it takes to send the file over a
large connection.

Thanks,

Matt
- Original Message - 
From: Robert Leland 
To: Struts Users Mailing List 
Sent: Monday, September 15, 2003 10:40 PM
Subject: Re: Slow file upload?


Sgarlata Matt wrote:

Rob, why is it faster to upload all on one machine instead of going across
a
LAN? It seems to me uploading on the same machine should be as fast as a
file copy. What am I missing?


Try a experiment. Try a fileupload on a single CPU computer, hosting
your web app.
Then try it again for 2 machines connected by the same local LAN, one
running the browser, one the web app.
Monitor fileupload time, % free CPU, virtual memory/paging usage, etc.
Report back the results.



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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: Slow file upload?

2003-09-16 Thread Andrew Hill
http://www.catb.org/~esr/faqs/smart-questions.html

You could start by learning some ettiquet.. umm.. etikit, uh.. etiq..
...some manners and not go around hijacking other peoples topic with an
unrelated question.

As for making helloworld have you tried to rt*m or st*w yet?
What have you done so far? What went wrong? We could help you better if you
ask some more specific questions.

-Original Message-
From: as as [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 September 2003 21:27
To: Struts Users Mailing List
Subject: Re: Slow file upload?


i am a newbie to struts
need help intsalling and making a helloworld app run using Tomcat jakarta
struts
also need help learning to use filters to authenticate a user,
Samy


Sgarlata Matt [EMAIL PROTECTED] wrote:Unfortunately I'm not going to
have time to set up this experiment for a few
weeks because the app I am currently working on does not require file upload
capabilities. I'll do a test in a few weeks and post the results to
struts-user.

I'm guessing from your response that the costs of encoding/decoding the file
so it can be sent over HTTP/MIME is much larger than one would suppose and
that this time is greater than the time it takes to send the file over a
large connection.

Thanks,

Matt
- Original Message -
From: Robert Leland
To: Struts Users Mailing List
Sent: Monday, September 15, 2003 10:40 PM
Subject: Re: Slow file upload?


Sgarlata Matt wrote:

Rob, why is it faster to upload all on one machine instead of going across
a
LAN? It seems to me uploading on the same machine should be as fast as a
file copy. What am I missing?


Try a experiment. Try a fileupload on a single CPU computer, hosting
your web app.
Then try it again for 2 machines connected by the same local LAN, one
running the browser, one the web app.
Monitor fileupload time, % free CPU, virtual memory/paging usage, etc.
Report back the results.



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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



RE: DynaValidatorForm and Multi-page validation

2003-09-16 Thread Ruben Carvalho
You don't have to add the page property to your form since both ValidatorForm and 
DynaValidatorForm have teh attribute protected int page. What you have to do, and 
that's where I have my problem, is to put a value in it. I'll send my question in a 
different mail.
 
Ruben Carvalho
 

-Mensagem original- 
De: Natalie D Rassmann [mailto:[EMAIL PROTECTED] 
Enviada: ter 16-09-2003 12:27 
Para: Struts Users Mailing List 
Cc: 
Assunto: Re: DynaValidatorForm and Multi-page validation



When I type to add the page property as a java.lang.Integer, I get a null
pointer exception in the struts validator.  I am using Struts 1.1 Final
Release.  What were you using?

Natalie

Erez Efrati wrote:

 I use it in my application and I added to my DynaValidationForm
 configuration a 'page' property of type java.lang.Integer, and it works.

 Erez

 -Original Message-
 From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 3:11 PM
 To: Struts Users Mailing List
 Subject: DynaValidatorForm and Multi-page validation

 Hi -

 I am having trouble with my DynaValidatorForm and Multi-page
 validation.  It does not seem to utilize the page property.
 I tried putting in a page property but I get Struts errors.  When I add
 the page property to the struts-config file for that form, and I add the
 page property as an integer, I get a Null pointer exception.  When I put
 the page property as a string, I get a ClassCastException.  No matter
 what I do, I can't get the page validation to work.  Does anyone have a
 clue?  Can anyone help me??

 Thanks in advance,

 Natalie

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

Multiple validation, one form

2003-09-16 Thread Ruben Carvalho
Hi again,
 
I'm getting a bit confused with the XML validation system. I have one form 
(DynaValidatorForm), 3 JSPs followed by 3 actions that do nothing. My Form has 3 
fields:
 
name, address and phone, all String
 
Now, I have 3 different JSPs, test1, test2 and test3.jsp, each of them followed by an 
Action like this:
test1.jsp -- Test1Action -- test2.jsp -- Test2Action -- test3.jsp -- Test3Action
 
All of the JSP have the same code. I want to validate: the first field after 
submitting the first page, the second field after submitting the second page and the 
3rd field after submitting the third page. My JSPs look like this:

(...)
html:hidden property=page value=MY_PROBLEM /
TABLE border=0
 TBODY
  TR
   THname/TH
   TDhtml:text property=name //TD
  /TR
  TR
   THaddress/TH
   TDhtml:text property=address //TD
  /TR
  TR
   THphone/TH
   TDhtml:text property=phone //TD
  /TR
  TR
   TDhtml:submit property=submit value=Submit //TD
   TDhtml:reset //TD
  /TR
 /TBODY
/TABLE
(...)

My validation.xml looks like this:
(...)
form name=testeForm
 field property=name depends=required page=0
  arg0 key=prompt.name /
 /field
 field property=address depends=required page=1
  arg0 key=prompt.address /
 /field
 field property=phone depends=required page=2
  arg0 key=prompt.phone /
 /field
/form
(...)
 
Which value should I write in my page property inside the JSPs?
 
if I put:
html:hidden property=page value=0 /
in my test1.jsp I get the error that Name is required. Great. But then I put
html:hidden property=page value=1 /
in my test2.jsp and when I submit I don't get any error. And I get the same when I 
submit the 3rd JSP.
 
Does anybody know how to use this page property correctly?
 
Thanks a lot
 
Rben Carvalho
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

getServlet?

2003-09-16 Thread Andy Kriger
The ServletContext.getServlet() method has been deprecated. Is it possible
to get a Servlet (or the ServletConfig, which is what I'm really after) in a
Struts Action?

thx
andy


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



Re: logic:iterate with changing row colors

2003-09-16 Thread graham . stark
Christian,

Not exactly struts, but you can do this using the JSTL taglibs with the
varStatus attribute, like:

  c:forEach items=${sessionScope.advertMultiEditForm.idsAsList} 
 var=thisid varStatus=stat
 c:set var=bg value=white /
 c:if test=${stat.index % 2 == 0}
 c:set var=bg value=blue /
 tr bgcolor=c:out value=${bg} /
 td
   ...
 /td
  /tr
/c:if
  /c:forEach

or check out the display tag library at:

http://edhill.its.uiowa.edu/display/

which is great and makes this very easy.

Graham


 hello,
 
 i use logic:iterate and want to change the cgcolor every row.
 
 usualy i do something like this thisway:
 
 if(currentrow mod 2 == 0)
 {
 bgcolor = color1;
 }
 else
 {
 bgcolor = color2;
 }
 
 
 how would u do this with struts ?
 i would prefer to do this without any jsp, so far my code is struts only
 :)
 
 any ideas ?
 
 Mit freundlichen Grüßen
 
 Christian Reps, Dipl. Inf. (FH)
 Web Applications
 
 
 -
 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: Slow file upload?

2003-09-16 Thread Kurt Post
If you are running on a Windows box, I would try using IE instead of Mozilla
for your timing tests.  On windows, Netscape and thus probably Mozilla,
seems to spin in a hard loop poling for new data while its trying to receive
data over the network.  This results in 100% CPU utilization and really
slows things down.  It might just be that it also spins in a hard loop when
its waiting for the transmit buffer to empty enough so it can continue to
send more data.

-Original Message-
From: Daniel Washusen [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:54 PM
To: Struts Users Mailing List
Subject: RE: Slow file upload?


 Yes, I am using Struts 1.1 and the default upload in commons-fileupload.
 The hw I am running on is a 2.4GHz PC with 1GB memory, with at least
 half of it free.. The browser I tried the upload with was Mozilla..

 BTJ


I'm running a P4 1.7 with 512MB of RAM and I can upload a 1.8 MB file in
about 1 second and a 8 MB file in about 3 seconds... Struts 1.1,
commons-fileupload and Tomcat 4.1.27.  Not really much help for you but it
would confirm that it all works...


-
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: getServlet?

2003-09-16 Thread Andrew Kuzmin
getServlet().getServletConfig() ?

--
Andrew Kuzmin
http://www.java201.com


- Original Message -
From: Andy Kriger [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 5:04 PM
Subject: getServlet?


 The ServletContext.getServlet() method has been deprecated. Is it possible
 to get a Servlet (or the ServletConfig, which is what I'm really after) in
a
 Struts Action?

 thx
 andy


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



Internationalizing Email updates

2003-09-16 Thread Brian McSweeney
Hi all,
 
I'm trying to support internationalization in my app using standard
resource bundles etc. However, I was going to use resource bundles to
internationalize email updates to users of the app too. However, I've
just been told that you can't internationalize emails (subjects at
least). Is this true? Does anyone have experience of trying to do this?
Thanks, 
Brian 


[VALIDATOR] Validating indexed Select Values Fails

2003-09-16 Thread George Amaya
Sorry to repost this, but I wanted to make the subject clear.

I have a form with multiple selects all with the same name and indexed
values (i.e myValue[0]. myValue[1]...).  When I sumbit my form to
validate, validation quits when first select validation fails.  

Has anyone had this problem? And how did you solve it?

Thanks
George

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



RE: Application.properties

2003-09-16 Thread James
My time is very limited at the moment.  I'll try to find some time for
this today or tomorrow.  

I apologize for putting you off so long.  I'm currently billing ~55
hours at my current gig, coaching 2 of my 3 kids soccer teams, running
the struts-atlanta users group, and tech editing 2 new books (a Struts
book and a JSF book).

If anyone else has a free minute so spare, that would be great.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Srikanth Gubba [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 16, 2003 8:28 AM
 To: '[EMAIL PROTECTED]'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: Application.properties
 
 
 James,
 
 Can you please help me with the changes that I can make to the
 DBMessageResources so that it would work without reloading 
 the appliation. I
 know that you were working on this earlier but not sure if 
 you had a chance
 to complete making the changes to new OJB version.
 
 Thanks in adv
 srikanth
 
 -Original Message-
 From: James [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 2:18 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Application.properties
 
 
 That's one way to do it.  Although doing so will create a compile-time
 dependency on using that class (whether you actually use it or not).
 
 By default, the Struts MessageResources API does not allow 
 for reloading
 and given the nature of the implementation.  Since the 
 returned messages
 from your subclass are cached, you must clear the (cached) map of
 formatted messages with each call to your implementation's getMessage
 method or the MessageResources won't bother to call your method again
 (until you reload the app).
 
 This was a very frustrating feature that I had to overcome with my
 DBMessageResources implementation and one of the reasons I 
 chose OJB for
 the underlying data access (configurable caching, etc).
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017
 AIM:jmitchtx
 
 
 
 
  -Original Message-
  From: Paananen, Tero [mailto:[EMAIL PROTECTED] 
  Sent: Monday, September 15, 2003 1:49 PM
  To: 'Struts Users Mailing List'
  Subject: RE: Application.properties
  
  
   Please suggest some ideas or code which will help in creating 
   an extension
   so that the properties can be loaded from database dynamically.
  
  Extend the message resources class you're currently
  using and implement a reload() (or whatever) method
  in your extended class. Call the reload() method
  when appropriate.
  
  -TPP
  
  -
  This email may contain confidential and privileged material 
  for the sole use of the intended recipient(s). Any review, 
  use, retention, distribution or disclosure by others is 
  strictly prohibited. If you are not the intended recipient 
  (or authorized to receive for the recipient), please contact 
  the sender by reply email and delete all copies of this 
  message.  Also, email is susceptible to data corruption, 
  interception, tampering, unauthorized amendment and viruses. 
  We only send and receive emails on the basis that we are not 
  liable for any such corruption, interception, tampering, 
  amendment or viruses or any consequence thereof.
  
  
  
 -
  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 : logic:iterate with changing row colors

2003-09-16 Thread thomas Sontheimer
here are means to do it:

http://husted.com/struts/FAQ/view-logic.htm

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 16, 2003 3:17 PM
 To: Struts-User
 Subject: logic:iterate with changing row colors
 
 
 hello,
 
 i use logic:iterate and want to change the cgcolor every row.
 
 usualy i do something like this thisway:
 
 if(currentrow mod 2 == 0)
 {
 bgcolor = color1;
 }
 else
 {
 bgcolor = color2;
 }
 
 
 how would u do this with struts ?
 i would prefer to do this without any jsp, so far my code is 
 struts only
 :)
 
 any ideas ?
 
 Mit freundlichen Grüßen
 
 Christian Reps, Dipl. Inf. (FH)
 Web Applications
 
 
 -
 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]



How to fill textfields from FormBean?

2003-09-16 Thread Dirk Behrendt
Hello!

I have made a registration JSP (name, address, zip, ) and I want
that the user can modify his account.

So I have an action class and a form bean for the registration. Now I
want to implement an action class which shows the registration JSP and
fills automatically the textfields with the stored values. The user can
change the values. 

How can I realize it? Is there a possibility to forward the values to
the JSP?

Dirk


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



[OT] RE: Application.properties

2003-09-16 Thread Chappell, Simon P
That's all? I bet Mark does twice that in his lunch breaks! ;-)

I'd help, but I'm too busy drooling over the upgraded 15 Mac PowerBooks.

-Original Message-
From: James [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 9:42 AM
To: 'Struts Users Mailing List'
Subject: RE: Application.properties


My time is very limited at the moment.  I'll try to find some time for
this today or tomorrow.  

I apologize for putting you off so long.  I'm currently billing ~55
hours at my current gig, coaching 2 of my 3 kids soccer teams, running
the struts-atlanta users group, and tech editing 2 new books (a Struts
book and a JSF book).

If anyone else has a free minute so spare, that would be great.

snip

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



RE: Application.properties

2003-09-16 Thread Paananen, Tero
 If anyone else has a free minute so spare,
 that would be great.

Since I already implemented similar things with
PropertyMessageResources, I could probably do this
one fairly quickly as well. Might even be able to
reuse the old code for it.

James, could you point me to the right direction
as to where's the latest version of the OJB
Message Resources stuff?

http://sourceforge.net/project/showfiles.php?group_id=49385

Is that it?

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


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



RE: How to fill textfields from FormBean?

2003-09-16 Thread James
Yes, take a look at how it is done in the struts-example application.

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 16, 2003 10:58 AM
 To: [EMAIL PROTECTED]
 Subject: How to fill textfields from FormBean?
 
 
 Hello!
 
 I have made a registration JSP (name, address, zip, ) and I want
 that the user can modify his account.
 
 So I have an action class and a form bean for the registration. Now I
 want to implement an action class which shows the registration JSP and
 fills automatically the textfields with the stored values. 
 The user can
 change the values. 
 
 How can I realize it? Is there a possibility to forward the values to
 the JSP?
 
 Dirk
 
 
 -
 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: Slow file upload?

2003-09-16 Thread Bjørn T Johansen
I just tried this from another PC running Windows and IE, and then the
upload took less than a second..
Is this a bug in Mozilla or?


BTJ

On Tue, 2003-09-16 at 15:58, Kurt Post wrote:

 If you are running on a Windows box, I would try using IE instead of Mozilla
 for your timing tests.  On windows, Netscape and thus probably Mozilla,
 seems to spin in a hard loop poling for new data while its trying to receive
 data over the network.  This results in 100% CPU utilization and really
 slows things down.  It might just be that it also spins in a hard loop when
 its waiting for the transmit buffer to empty enough so it can continue to
 send more data.
 
 -Original Message-
 From: Daniel Washusen [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 11:54 PM
 To: Struts Users Mailing List
 Subject: RE: Slow file upload?
 
 
  Yes, I am using Struts 1.1 and the default upload in commons-fileupload.
  The hw I am running on is a 2.4GHz PC with 1GB memory, with at least
  half of it free.. The browser I tried the upload with was Mozilla..
 
  BTJ
 
 
 I'm running a P4 1.7 with 512MB of RAM and I can upload a 1.8 MB file in
 about 1 second and a 8 MB file in about 3 seconds... Struts 1.1,
 commons-fileupload and Tomcat 4.1.27.  Not really much help for you but it
 would confirm that it all works...
 
 
 -
 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: Application.properties

2003-09-16 Thread James Mitchell
Yes, I believe that is the latest version.  

BTW. Thank you for the help.

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Paananen, Tero [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 16, 2003 10:56 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Application.properties
 
 
  If anyone else has a free minute so spare,
  that would be great.
 
 Since I already implemented similar things with
 PropertyMessageResources, I could probably do this
 one fairly quickly as well. Might even be able to
 reuse the old code for it.
 
 James, could you point me to the right direction
 as to where's the latest version of the OJB
 Message Resources stuff?
 
http://sourceforge.net/project/showfiles.php?group_id=49385

Is that it?

-TPP

-
This email may contain confidential and privileged material for the sole
use of the intended recipient(s). Any review, use, retention,
distribution or disclosure by others is strictly prohibited. If you are
not the intended recipient (or authorized to receive for the recipient),
please contact the sender by reply email and delete all copies of this
message.  Also, email is susceptible to data corruption, interception,
tampering, unauthorized amendment and viruses. We only send and receive
emails on the basis that we are not liable for any such corruption,
interception, tampering, amendment or viruses or any consequence
thereof.


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


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



RE: [OT] RE: Application.properties

2003-09-16 Thread Andrew Hill
ooo A p** contest! Can I play? ;-)

Done 28 hours this week and its only Tuesday (well for another half hour it
is anyhow).
Did 79 Last week, but only because I was slack and took Sunday off. sigh/

(Could be worse. Was doing 100+s this time last year)

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 September 2003 22:58
To: Struts Users Mailing List
Subject: [OT] RE: Application.properties


That's all? I bet Mark does twice that in his lunch breaks! ;-)

I'd help, but I'm too busy drooling over the upgraded 15 Mac PowerBooks.

-Original Message-
From: James [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 9:42 AM
To: 'Struts Users Mailing List'
Subject: RE: Application.properties


My time is very limited at the moment.  I'll try to find some time for
this today or tomorrow.

I apologize for putting you off so long.  I'm currently billing ~55
hours at my current gig, coaching 2 of my 3 kids soccer teams, running
the struts-atlanta users group, and tech editing 2 new books (a Struts
book and a JSF book).

If anyone else has a free minute so spare, that would be great.

snip

-
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 Messages in an Action?

2003-09-16 Thread Carl-Eric Menzel

Hello,

is it possible to retrieve a message from the application resources
(like bean:message key=.../) inside an Action? How can I get to
the current localized messages?

Thanks
Carl-Eric


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



RE: How to fill textfields from FormBean?

2003-09-16 Thread Andrew Hill
Yep. Your on the right track. Having populated your form in the action, it
will be forwarded along in a request attribute (or session depending on your
mapping) to the view jsp, where you can make use of the struts html tag
library (or jstl) to render the values in the fields. Like James say, your
first stop should be to go have a look at the example app. If you have any
questions about it do feel to post them :-)

-Original Message-
From: James [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 September 2003 22:59
To: 'Struts Users Mailing List'
Subject: RE: How to fill textfields from FormBean?


Yes, take a look at how it is done in the struts-example application.

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 16, 2003 10:58 AM
 To: [EMAIL PROTECTED]
 Subject: How to fill textfields from FormBean?


 Hello!

 I have made a registration JSP (name, address, zip, ) and I want
 that the user can modify his account.

 So I have an action class and a form bean for the registration. Now I
 want to implement an action class which shows the registration JSP and
 fills automatically the textfields with the stored values.
 The user can
 change the values.

 How can I realize it? Is there a possibility to forward the values to
 the JSP?

 Dirk


 -
 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: Getting Messages in an Action?

2003-09-16 Thread Andrew Hill
Yes, you can call the getResources() method inside your action which will
return a MessageResources object that you can read the localised messages
from. Check the javadoc for details on the parameters.

-Original Message-
From: Carl-Eric Menzel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 September 2003 23:22
To: [EMAIL PROTECTED]
Subject: Getting Messages in an Action?



Hello,

is it possible to retrieve a message from the application resources
(like bean:message key=.../) inside an Action? How can I get to
the current localized messages?

Thanks
Carl-Eric


-
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: Getting Messages in an Action?

2003-09-16 Thread Andrew Kuzmin
MessageResources resources = getResources(request);
java.util.Locale locale = getLocale(request);
String yourString = resources.getMessage(locale, yourString);

--
Andrew Kuzmin
http://www.java201.com


- Original Message - 
From: Carl-Eric Menzel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 6:21 PM
Subject: Getting Messages in an Action?


 
 Hello,
 
 is it possible to retrieve a message from the application resources
 (like bean:message key=.../) inside an Action? How can I get to
 the current localized messages?
 
 Thanks
 Carl-Eric
 
 
 -
 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: Slow file upload?

2003-09-16 Thread Kurt Post
Don't know if its really bug because it does actually work just fine; it
just chews up allot of CPU when doing network I/O.  I'm not sure if this
only happens on Windows boxes or if it happens on other platforms as well.

The thing about Netscape/Mozilla is that it runs on allot of different
platforms.  And many of the different platforms have a slightly different
take on how you do asynchronous non-blocking network I/O.  So they probably
have created some library to abstract out these differences.  Now maybe its
a bug in how they implemented asynchronous non blocking I/O on windows or
maybe they just decided it would be easier to poll rather then handling the
many different ways different Os's can provide asynchronous notification
that there is more data available or that its OK to send more data.

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 11:04 AM
To: Struts Users Mailing List
Subject: RE: Slow file upload?


I just tried this from another PC running Windows and IE, and then the
upload took less than a second..
Is this a bug in Mozilla or?


BTJ

On Tue, 2003-09-16 at 15:58, Kurt Post wrote:

 If you are running on a Windows box, I would try using IE instead of
Mozilla
 for your timing tests.  On windows, Netscape and thus probably Mozilla,
 seems to spin in a hard loop poling for new data while its trying to
receive
 data over the network.  This results in 100% CPU utilization and really
 slows things down.  It might just be that it also spins in a hard loop
when
 its waiting for the transmit buffer to empty enough so it can continue to
 send more data.

 -Original Message-
 From: Daniel Washusen [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 11:54 PM
 To: Struts Users Mailing List
 Subject: RE: Slow file upload?


  Yes, I am using Struts 1.1 and the default upload in commons-fileupload.
  The hw I am running on is a 2.4GHz PC with 1GB memory, with at least
  half of it free.. The browser I tried the upload with was Mozilla..
 
  BTJ
 

 I'm running a P4 1.7 with 512MB of RAM and I can upload a 1.8 MB file in
 about 1 second and a 8 MB file in about 3 seconds... Struts 1.1,
 commons-fileupload and Tomcat 4.1.27.  Not really much help for you but it
 would confirm that it all works...


 -
 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: Slow file upload?

2003-09-16 Thread Robert Leland
Sgarlata Matt wrote:

Unfortunately I'm not going to have time to set up this experiment for a few
weeks because the app I am currently working on does not require file upload
capabilities.  I'll do a test in a few weeks and post the results to
struts-user.
I'm guessing from your response that the costs of encoding/decoding the file
so it can be sent over HTTP/MIME is much larger than one would suppose and
that this time is greater than the time it takes to send the file over a
large connection.
 

The experiment was to get you to think about what might be going on in 
your system.
Compared to FTP the fileupload is about 70-80% as fast. Surprisingly the 
encoding/decoding
is pretty quick.



Thanks,

Matt



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


Re: RE : logic:iterate with changing row colors

2003-09-16 Thread Adam Hardy
You definitely need Niall Pemberton's row tag (from that link).

On 09/16/2003 04:55 PM thomas Sontheimer wrote:
here are means to do it:

http://husted.com/struts/FAQ/view-logic.htm


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 3:17 PM
To: Struts-User
Subject: logic:iterate with changing row colors

hello,

i use logic:iterate and want to change the cgcolor every row.

usualy i do something like this thisway:

if(currentrow mod 2 == 0)
{
bgcolor = color1;
}
else
{
bgcolor = color2;
}
how would u do this with struts ?
i would prefer to do this without any jsp, so far my code is 
struts only
:)

any ideas ?

Mit freundlichen Grüßen

Christian Reps, Dipl. Inf. (FH)
Web Applications
-
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]

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [OT] Subject line filter tag

2003-09-16 Thread Mainguy, Mike
Maybe we could use Struts Technical Forum Users [STFU]

Errr, maybenot.

This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.



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



Re: Getting Messages in an Action?

2003-09-16 Thread Adolfo Miguelez
and what about from an ExceptionHandler?


From: Andrew Kuzmin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED],   
Carl-Eric Menzel [EMAIL PROTECTED]
Subject: Re: Getting Messages in an Action?
Date: Tue, 16 Sep 2003 18:29:39 +0300

MessageResources resources = getResources(request);
java.util.Locale locale = getLocale(request);
String yourString = resources.getMessage(locale, yourString);
--
Andrew Kuzmin
http://www.java201.com
- Original Message -
From: Carl-Eric Menzel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 6:21 PM
Subject: Getting Messages in an Action?

 Hello,

 is it possible to retrieve a message from the application resources
 (like bean:message key=.../) inside an Action? How can I get to
 the current localized messages?

 Thanks
 Carl-Eric


 -
 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]
_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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


Global Forwards Request Attributes

2003-09-16 Thread Pat Quinn
I have a struts action which sets a String value as an attribute in the 
request scope i then redirect to a global forward. But the value never 
appears in my jsp i'm using the c:out/ tag lib.

Any ideas what i could be doing wrong here or do global forwards support 
request attribute population??

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


Re: [OT] Subject line filter tag

2003-09-16 Thread Gregory Seidman
On Tue, Sep 16, 2003 at 11:49:47AM -0400, Mainguy, Mike wrote:
} Maybe we could use Struts Technical Forum Users [STFU]
} 
} Errr, maybenot.
} 

+1


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



Re: Getting Messages in an Action?

2003-09-16 Thread Andrew Kuzmin
org.apache.struts.action.ExceptionHandler:
snip
public ActionForward execute(Exception ex,
 ExceptionConfig ae,
 ActionMapping mapping,
 ActionForm formInstance,
 HttpServletRequest request,
 HttpServletResponse response)
/snip

MessageResources resources = (MessageResources)
request.getAttribute(Globals.MESSAGES_KEY);

--
Andrew Kuzmin
http://www.java201.com


- Original Message -
From: Adolfo Miguelez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 6:47 PM
Subject: Re: Getting Messages in an Action?


 and what about from an ExceptionHandler?


 From: Andrew Kuzmin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED],
 Carl-Eric Menzel [EMAIL PROTECTED]
 Subject: Re: Getting Messages in an Action?
 Date: Tue, 16 Sep 2003 18:29:39 +0300
 
 MessageResources resources = getResources(request);
 java.util.Locale locale = getLocale(request);
 String yourString = resources.getMessage(locale, yourString);
 
 --
 Andrew Kuzmin
 http://www.java201.com
 
 
 - Original Message -
 From: Carl-Eric Menzel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 16, 2003 6:21 PM
 Subject: Getting Messages in an Action?
 
 
  
   Hello,
  
   is it possible to retrieve a message from the application resources
   (like bean:message key=.../) inside an Action? How can I get to
   the current localized messages?
  
   Thanks
   Carl-Eric
  
  
   -
   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]
 

 _
 MSN 8 with e-mail virus protection service: 2 months FREE*
 http://join.msn.com/?page=features/virus


 -
 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[2]: Getting Messages in an Action?

2003-09-16 Thread Carl-Eric Menzel
 MessageResources resources = getResources(request);
 java.util.Locale locale = getLocale(request);
 String yourString = resources.getMessage(locale, yourString);

Duh. I should read the docs more carefully (and sleep more, probably).
Thank you!

Carl-Eric


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



select tag woes

2003-09-16 Thread Martin Smith
Hi there,

I have the following code in my jsp...


  td
html:select name=homeTeam property=teamId 
html:options collection=teamVOs property=teamId
labelProperty=description/
/html:select
/td
td
html:select name=awayTeam property=teamId 
html:options collection=teamVOs property=teamId
labelProperty=description/
/html:select
/td

The problem is that both the bean homeTeam and awayTeam have the property
teamId
which results in the following HTML...

td
select name=teamIdoption value=3Arsenal/option
option value=6Aston Villa/option
option value=19Middlesborough/option
option value=11 selected=selectedNewcastle United/option
option value=7Porstmouth/option
/td
td
select name=teamIdoption value=3Arsenal/option
option value=16Manchester City/option
option value=2 selected=selectedManchester United/option
option value=19Middlesborough/option
option value=11Newcastle United/option
/td

THE PROBLEM

As you can see both the name attributes have the value teamId, which of
course is a problem.

Is there a better solution but still using the html tags, rather that
building up the select elements manualy??

Maybe by using the html-el tags???

Thanks,

Martin


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



RE: select tag woes

2003-09-16 Thread Wendy Smoak
Martin wrote:
 The problem is that both the bean homeTeam and awayTeam have the 
 property teamId which results in the following HTML...
 As you can see both the name attributes have the value teamId, 
 which of course is a problem.

I'm confused by having one html form, but expecting Struts to populate
two beans.  AFAIK, it's one-to-one with the html form and the ActionForm
instance (the form bean).  After that, you can do what you like in the
Action to populate whatever you need.

So you might have properties such as homeTeamId and awayTeamId in your
form bean.  You probably won't be able to use the magic
BeanUtils.copyProperties() but instead will have to write code to
populate your homeTeam and awayTeam beans from the values in the form
bean.

So I see it going:
Html form - ActionForm/Action - populate custom beans - forward to
view

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

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



RE: Global Forwards Request Attributes

2003-09-16 Thread Robert Taylor
When you redirect the request, you lose any existing attributes.
If you must redirect then you could append your String value as 
a request parameter to the forward path or... you could simply
forward instead of redirect.

robert

 -Original Message-
 From: Pat Quinn [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 16, 2003 12:10 PM
 To: [EMAIL PROTECTED]
 Subject: Global Forwards  Request Attributes
 
 
 I have a struts action which sets a String value as an attribute in the 
 request scope i then redirect to a global forward. But the value never 
 appears in my jsp i'm using the c:out/ tag lib.
 
 
 Any ideas what i could be doing wrong here or do global forwards support 
 request attribute population??
 
 _
 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]



struts-faces

2003-09-16 Thread Sasha Borodin
Can someone tell me why I'd need a struts integration version of the JSF
implementation?  Why can't one just add the RI JAR files, TLD documents,
config files and just starting using the tags?

Thanks,

-Sasha


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



Re: [OT] Subject line filter tag

2003-09-16 Thread Craig R. McClanahan
On Tue, 16 Sep 2003, Adam L wrote:

 Date: Tue, 16 Sep 2003 08:13:16 -0500
 From: Adam L [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: [OT] Subject line filter tag

 To the powers that be:
 Is there a particular reason there's no list name header in the
 subject lines, ie [struts-users], for easy filtering from all the other
 spam and junk mail?

Because it would be redundant and unnecessary.

  I realize [struts-users] is a rather lengthy
 segment in the subject line, so perhaps it could be abbreviated..
 [ASFSU]...[A-SU]... or, [MARK-FU]. (=


This is about the 100th time this suggestion has come up, and it's going
to get vetoed (by me, among others) again.  Filter on the to and/or cc
address (Mozilla and Netscape let you do this with a single filter
rule) and you get exactly what you want.

 cheers!


Craig McClanahan


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



Re: Getting Messages in an Action?

2003-09-16 Thread Adolfo Miguelez
Cheers Andrew,

I thought about it so thanks for your confirmation. However, I have an just 
a doubt. AFAIK, in Struts 1.1, ApplicationResources can be spread in 
different bundles. How do you choose which one is the targeted bundle in 
order to find the key?

Sorry if I am missunderstanding something.

Adolfo.

From: Andrew Kuzmin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Getting Messages in an Action?
Date: Tue, 16 Sep 2003 19:12:38 +0300
org.apache.struts.action.ExceptionHandler:
snip
public ActionForward execute(Exception ex,
 ExceptionConfig ae,
 ActionMapping mapping,
 ActionForm formInstance,
 HttpServletRequest request,
 HttpServletResponse response)
/snip
MessageResources resources = (MessageResources)
request.getAttribute(Globals.MESSAGES_KEY);
--
Andrew Kuzmin
http://www.java201.com
- Original Message -
From: Adolfo Miguelez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 6:47 PM
Subject: Re: Getting Messages in an Action?
 and what about from an ExceptionHandler?


 From: Andrew Kuzmin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED],
 Carl-Eric Menzel [EMAIL PROTECTED]
 Subject: Re: Getting Messages in an Action?
 Date: Tue, 16 Sep 2003 18:29:39 +0300
 
 MessageResources resources = getResources(request);
 java.util.Locale locale = getLocale(request);
 String yourString = resources.getMessage(locale, yourString);
 
 --
 Andrew Kuzmin
 http://www.java201.com
 
 
 - Original Message -
 From: Carl-Eric Menzel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 16, 2003 6:21 PM
 Subject: Getting Messages in an Action?
 
 
  
   Hello,
  
   is it possible to retrieve a message from the application resources
   (like bean:message key=.../) inside an Action? How can I get to
   the current localized messages?
  
   Thanks
   Carl-Eric
  
  
   
-
   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]
 

 _
 MSN 8 with e-mail virus protection service: 2 months FREE*
 http://join.msn.com/?page=features/virus


 -
 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]
_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: getServlet?

2003-09-16 Thread Craig R. McClanahan
On Tue, 16 Sep 2003, Andy Kriger wrote:

 Date: Tue, 16 Sep 2003 10:04:06 -0400
 From: Andy Kriger [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: getServlet?

 The ServletContext.getServlet() method has been deprecated.

Yes.

 Is it possible
 to get a Servlet (or the ServletConfig, which is what I'm really after) in a
 Struts Action?

You can get the ServletConfig for the controller servlet itself by calling
getServlet().getServletConfig().  You cannot get the ServletConfig for any
other servlet.  If that other servlet needs to share info, have it put
things into servlet context attributes.


 thx
 andy

Craig

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



Re: struts-faces

2003-09-16 Thread Craig R. McClanahan
On Tue, 16 Sep 2003, Sasha Borodin wrote:

 Date: Tue, 16 Sep 2003 11:30:40 -0500
 From: Sasha Borodin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: struts-faces

 Can someone tell me why I'd need a struts integration version of the JSF
 implementation?  Why can't one just add the RI JAR files, TLD documents,
 config files and just starting using the tags?


You can, but the integration library lets you use Struts Actions on the
back end, creates form beans automatically, and so on.

 Thanks,

 -Sasha


Craig

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



Re: Multipage JDBC result

2003-09-16 Thread Michael Muller
I read the documentation, but I can't tell what the pager iterates over. 
 I'm assuming it iterates over java collections.

This could be a problem if you have a huge result set.  Another option 
would be to use database features like mysql's select * from foo limit 
50 offset 250 syntax.  It's still a lotta work for the database if 
there's a huge result set, but a lot easier on the web app.

  -- Mike

Andrew Kuzmin wrote:

Hi,

see this link 
   http://jakarta.apache.org/struts/faqs/newbie.html#pager

--
Andrew Kuzmin
http://www.java201.com
- Original Message - 
From: Jonathan Hawkins [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 3:39 PM
Subject: Multipage JDBC result



Howdy,
Any tips as to where I can find code examples of how to break down a 
large JDBC result
into say 25 rows per page?

Jon Hawkins

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


validator, select and collection problem

2003-09-16 Thread koen boutsen
Hello

I'm using a select in my jsp.  I read in the archive that I have to put this in my 
Struts-config :
form-property name=property1 type=java.lang.String[] /

The problem is that I get an error now : 
form-property: Invalid data for attribute type in part property1 

Does you know what I'm doing wrong ?

Thanks 

Koen Boutsen



Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



Re: struts-faces

2003-09-16 Thread Sasha Borodin
Thanks Craig.

 You can, but the integration library lets you use Struts Actions on the
 back end, creates form beans automatically, and so on.

Reading through Sun's Web Services Tutorial section on JSF, things are
starting to come into focus:  JSF provides functionality that overlaps that
of Struts (my misconception was that JSF was strictly a UI component tag
library).

.: Anyone know of a resource that summarizes/contrasts solutions provided by
both frameworks?

i.e.:
-UI Components
-controller components
-model components
-Page Flow
-etc.

Thanks,

-Sasha


 From: Craig R. McClanahan [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 Date: Tue, 16 Sep 2003 10:16:22 -0700 (PDT)
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: struts-faces
 
 On Tue, 16 Sep 2003, Sasha Borodin wrote:
 
 Date: Tue, 16 Sep 2003 11:30:40 -0500
 From: Sasha Borodin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: struts-faces
 
 Can someone tell me why I'd need a struts integration version of the JSF
 implementation?  Why can't one just add the RI JAR files, TLD documents,
 config files and just starting using the tags?
 
 
 You can, but the integration library lets you use Struts Actions on the
 back end, creates form beans automatically, and so on.
 
 Thanks,
 
 -Sasha
 
 
 Craig
 
 -
 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: select tag woes

2003-09-16 Thread Michael Ruppin
Alternatively, nest your beans.  That is, have TeamForm contain an instance of 
AwayTeam and an instance of HomeTeam:
 
   public class TeamForm extends ActionForm {
private AwayTeam awayteam = new AwayTeam();
private HomeTeam hometeam = new HomeTeam();
   ...
 
Then, your select tags look like:
 
   html:select name=teamForm property=hometeam.teamId
   etceteras.
 
You can then abbreviate this syntax, and provide for better indexing support, if you 
migrate to the nested tags (struts-nested.tld).
 
HTH
 
m


Wendy Smoak [EMAIL PROTECTED] wrote:
Martin wrote:
 The problem is that both the bean homeTeam and awayTeam have the 
 property teamId which results in the following HTML...
 As you can see both the name attributes have the value teamId, 
 which of course is a problem.

I'm confused by having one html form, but expecting Struts to populate
two beans. AFAIK, it's one-to-one with the html form and the ActionForm
instance (the form bean). After that, you can do what you like in the
Action to populate whatever you need.

So you might have properties such as homeTeamId and awayTeamId in your
form bean. You probably won't be able to use the magic
BeanUtils.copyProperties() but instead will have to write code to
populate your homeTeam and awayTeam beans from the values in the form
bean.

So I see it going:
Html form - ActionForm/Action - populate custom beans - forward to
view

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

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


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: FormBean question...

2003-09-16 Thread alanbrown
Really?  That seems strange.  I thought that the reason we name the
formbean in the strutsconfig file is so struts knows which bean it is
using to populate the form fields.  Am I mistaken in that?  How does
Struts decide which bean is being used to populate the fields?  I've
specifically replaced the Form in the Action class that prepares the
form so it contains the values I want.  But Struts seems to ignore those
values and use the ones in the bean from the last page I used.

I've looked into the generated java file that struts produces and I find
this (which sheds no light on anything as far as I'm concerned...

Here is the code that is laying out the Html for the description
field...

  out.write(td valign=\middle\ align=\left\\r\n
);
if (_jspx_meth_html_textarea_0(_jspx_th_html_form_0,
pageContext))
  return true;
out.write(\r\n);

and here is the method that's referred to

private boolean _jspx_meth_html_textarea_0(javax.servlet.jsp.tagext.Tag
_jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
  throws Throwable {
JspWriter out = pageContext.getOut();
/*   html:textarea  */
org.apache.struts.taglib.html.TextareaTag _jspx_th_html_textarea_0 =
(org.apache.struts.taglib.html.TextareaTag)
_jspx_tagPool_html_textarea_rows_property_cols.get(org.apache.struts.tag
lib.html.TextareaTag.class);
_jspx_th_html_textarea_0.setPageContext(pageContext);
_jspx_th_html_textarea_0.setParent(_jspx_th_html_form_0);
_jspx_th_html_textarea_0.setProperty(description);
_jspx_th_html_textarea_0.setCols(60);
_jspx_th_html_textarea_0.setRows(3);
int _jspx_eval_html_textarea_0 =
_jspx_th_html_textarea_0.doStartTag();
if (_jspx_th_html_textarea_0.doEndTag() ==
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
  return true;
 
_jspx_tagPool_html_textarea_rows_property_cols.reuse(_jspx_th_html_texta
rea_0);
return false;
  }

I don't see where the value is getting loaded into this field or where
it might be coming from.  I've searched through the file for any
setValue() methods but there aren't any (I thought there might be based
on the javadocs).

Can anyone explain what happens behind the scenes when I'm trying to
direct struts to discard the old formbean and use a new one in my
preparatory Action class?

alan


-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 4:35 AM
To: 'Struts Users Mailing List'
Subject: RE: FormBean question...

This is by design.  If you want to ensure this will not happen, you need
to
set all the values to  or null beforehand for fields that should be
empty.
The short answer is change the field name.  Especially if you are
going to
store data in a form in the session you will have a big mess on your
hands
if you have overlapping field names in multiple forms.

My $.02...


-Original Message-
From: alanbrown [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 2:18 AM
To: [EMAIL PROTECTED]
Subject: FormBean question...


I am using 2 different beans to populate 2 forms on 2 pages.  However
some
of the fields have the same names, as both customers and contacts have
addresses and both companies and contacts have descriptions and notes
associated with them.  After entering a company the user is prompted to
enter some details of a person within that company with, hopefully, some
of
the form already filled out (the address fields have default values for
instance taken from the company info that was just entered).  However
the
description field and the notes field are also filled out with the
values
entered in the addCompany.jsp page and this should not happen.
 
This seems very strange as I've got 2 different formBeans used to
populate
the fields.  Here are the relevant parts of the strutsconfig file.
 
form-bean
name=companyForm
type=com.alan.crm.forms.CompanyForm
/form-bean
form-bean
name=contactForm
type=com.alan.crm.forms.ContactForm
/form-bean
 
and.
 
action
path=/addCompany
type=com.alan.crm.controller.AddCompanyAction
scope=request
name=companyForm
validate=true
input=/add/company.jsp
forward name=Success path=/addContactView.do/
forward name=Failure path=/add/company.jsp/
/action
action
path=/addContactView
type=com.alan.crm.controller.PrepareAddContactAction
scope=request
name=contactForm
validate=false
forward name=next path=/add/contact.jsp/
/action
 
As you can see they are using different types of form so I find it very
odd
that the description and note fields are pre populated as well as the
address.  The way I've tried to populate the fields I want pre-polulated
is
by having the following code at the end of my addCompanyAction class
 

using struts with filters

2003-09-16 Thread as as
Hi,
 
I am trying to use filters for login authentication using Jakarta struts framework 
with Tomcat. Has anyone done this earlier...any helpful tutorial/pointers/website...
 
Thanks,
Samy


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: FormBean question...

2003-09-16 Thread alanbrown
And it's stranger than that also.  If I come to the addContact page From
the addCompany page then any fields I pre-fill in my addContactForm bean
are ignored.  But if I come directly to the addContact page then the
prefilled fields are as I'd expect.  It's as though I can't change the
formBean that's being used by struts once it's placed in request scope.
That is to say that once the addCompanyForm bean is used to add the
company to the database, I don't appear able to replace it with an
addContactForm bean to populate the fields I want to populate.





-Original Message-
From: alanbrown [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 16, 2003 10:55 AM
To: 'Struts Users Mailing List'
Subject: RE: FormBean question...

Really?  That seems strange.  I thought that the reason we name the
formbean in the strutsconfig file is so struts knows which bean it is
using to populate the form fields.  Am I mistaken in that?  How does
Struts decide which bean is being used to populate the fields?  I've
specifically replaced the Form in the Action class that prepares the
form so it contains the values I want.  But Struts seems to ignore those
values and use the ones in the bean from the last page I used.

I've looked into the generated java file that struts produces and I find
this (which sheds no light on anything as far as I'm concerned...

Here is the code that is laying out the Html for the description
field...

  out.write(td valign=\middle\ align=\left\\r\n
);
if (_jspx_meth_html_textarea_0(_jspx_th_html_form_0,
pageContext))
  return true;
out.write(\r\n);

and here is the method that's referred to

private boolean _jspx_meth_html_textarea_0(javax.servlet.jsp.tagext.Tag
_jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
  throws Throwable {
JspWriter out = pageContext.getOut();
/*   html:textarea  */
org.apache.struts.taglib.html.TextareaTag _jspx_th_html_textarea_0 =
(org.apache.struts.taglib.html.TextareaTag)
_jspx_tagPool_html_textarea_rows_property_cols.get(org.apache.struts.tag
lib.html.TextareaTag.class);
_jspx_th_html_textarea_0.setPageContext(pageContext);
_jspx_th_html_textarea_0.setParent(_jspx_th_html_form_0);
_jspx_th_html_textarea_0.setProperty(description);
_jspx_th_html_textarea_0.setCols(60);
_jspx_th_html_textarea_0.setRows(3);
int _jspx_eval_html_textarea_0 =
_jspx_th_html_textarea_0.doStartTag();
if (_jspx_th_html_textarea_0.doEndTag() ==
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
  return true;
 
_jspx_tagPool_html_textarea_rows_property_cols.reuse(_jspx_th_html_texta
rea_0);
return false;
  }

I don't see where the value is getting loaded into this field or where
it might be coming from.  I've searched through the file for any
setValue() methods but there aren't any (I thought there might be based
on the javadocs).

Can anyone explain what happens behind the scenes when I'm trying to
direct struts to discard the old formbean and use a new one in my
preparatory Action class?

alan


-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 4:35 AM
To: 'Struts Users Mailing List'
Subject: RE: FormBean question...

This is by design.  If you want to ensure this will not happen, you need
to
set all the values to  or null beforehand for fields that should be
empty.
The short answer is change the field name.  Especially if you are
going to
store data in a form in the session you will have a big mess on your
hands
if you have overlapping field names in multiple forms.

My $.02...


-Original Message-
From: alanbrown [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 2:18 AM
To: [EMAIL PROTECTED]
Subject: FormBean question...


I am using 2 different beans to populate 2 forms on 2 pages.  However
some
of the fields have the same names, as both customers and contacts have
addresses and both companies and contacts have descriptions and notes
associated with them.  After entering a company the user is prompted to
enter some details of a person within that company with, hopefully, some
of
the form already filled out (the address fields have default values for
instance taken from the company info that was just entered).  However
the
description field and the notes field are also filled out with the
values
entered in the addCompany.jsp page and this should not happen.
 
This seems very strange as I've got 2 different formBeans used to
populate
the fields.  Here are the relevant parts of the strutsconfig file.
 
form-bean
name=companyForm
type=com.alan.crm.forms.CompanyForm
/form-bean
form-bean
name=contactForm
type=com.alan.crm.forms.ContactForm
/form-bean
 
and.
 
action
path=/addCompany
type=com.alan.crm.controller.AddCompanyAction
scope=request
name=companyForm

html:file and accept?

2003-09-16 Thread Bjørn T Johansen
I am trying to set accept = application/pdf, so that only pdf files can
be uploaded, but this doesn't work.. Do I need to do something else as
well?


BTJ


Re: [OT] Subject line filter tag

2003-09-16 Thread Adam Levine
Generally, yes, redundant and unecessary.  With lovely services like 
hotmail, however, you don't get much say in the way of header information 
being displayed before you actually open the email.. which makes mass 
deletions, folder filtering, and blocking email beacons a big PITA. (hotmail 
has a long way to go, imo, on its message filtering capabilities..yay for 
the image blocking).. and, yes, i use hotmail addresses for maiiing lists to 
keep my normal emails from being spammed.  so, i get what i pay for.

thanks for the response, tho.

From: Craig R. McClanahan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] Subject line filter tag
Date: Tue, 16 Sep 2003 09:46:04 -0700 (PDT)
On Tue, 16 Sep 2003, Adam L wrote:

 Date: Tue, 16 Sep 2003 08:13:16 -0500
 From: Adam L [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: [OT] Subject line filter tag

 To the powers that be:
 Is there a particular reason there's no list name header in the
 subject lines, ie [struts-users], for easy filtering from all the other
 spam and junk mail?
Because it would be redundant and unnecessary.

  I realize [struts-users] is a rather lengthy
 segment in the subject line, so perhaps it could be abbreviated..
 [ASFSU]...[A-SU]... or, [MARK-FU]. (=

This is about the 100th time this suggestion has come up, and it's going
to get vetoed (by me, among others) again.  Filter on the to and/or cc
address (Mozilla and Netscape let you do this with a single filter
rule) and you get exactly what you want.
 cheers!

Craig McClanahan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Use custom emotions -- try MSN Messenger 6.0! 
http://www.msnmessenger-download.com/tracking/reach_emoticon

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


RE: struts-faces

2003-09-16 Thread James Holmes
Hi Sasha,

I don't have a specific resource in mind for you to look at, but I have
compiled the most comprehensive listing of Java Server Faces resources
on my website.

http://www.jamesholmes.com/JavaServerFaces/

Hope that helps,

-James

-Original Message-
From: Sasha Borodin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 12:35 PM
To: Struts Users Mailing List
Subject: Re: struts-faces

Thanks Craig.

 You can, but the integration library lets you use Struts Actions on
the
 back end, creates form beans automatically, and so on.

Reading through Sun's Web Services Tutorial section on JSF, things are
starting to come into focus:  JSF provides functionality that overlaps
that
of Struts (my misconception was that JSF was strictly a UI component tag
library).

.: Anyone know of a resource that summarizes/contrasts solutions
provided by
both frameworks?

i.e.:
-UI Components
-controller components
-model components
-Page Flow
-etc.

Thanks,

-Sasha


 From: Craig R. McClanahan [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 Date: Tue, 16 Sep 2003 10:16:22 -0700 (PDT)
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: struts-faces
 
 On Tue, 16 Sep 2003, Sasha Borodin wrote:
 
 Date: Tue, 16 Sep 2003 11:30:40 -0500
 From: Sasha Borodin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: struts-faces
 
 Can someone tell me why I'd need a struts integration version of
the JSF
 implementation?  Why can't one just add the RI JAR files, TLD
documents,
 config files and just starting using the tags?
 
 
 You can, but the integration library lets you use Struts Actions on
the
 back end, creates form beans automatically, and so on.
 
 Thanks,
 
 -Sasha
 
 
 Craig
 
 -
 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: struts-faces

2003-09-16 Thread Sasha Borodin
Great website, thanks James!

-Sasha

 From: James Holmes [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 Date: Tue, 16 Sep 2003 15:10:36 -0400
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: struts-faces
 
 Hi Sasha,
 
 I don't have a specific resource in mind for you to look at, but I have
 compiled the most comprehensive listing of Java Server Faces resources
 on my website.
 
 http://www.jamesholmes.com/JavaServerFaces/
 
 Hope that helps,
 
 -James
 
 -Original Message-
 From: Sasha Borodin [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 16, 2003 12:35 PM
 To: Struts Users Mailing List
 Subject: Re: struts-faces
 
 Thanks Craig.
 
 You can, but the integration library lets you use Struts Actions on
 the
 back end, creates form beans automatically, and so on.
 
 Reading through Sun's Web Services Tutorial section on JSF, things are
 starting to come into focus:  JSF provides functionality that overlaps
 that
 of Struts (my misconception was that JSF was strictly a UI component tag
 library).
 
 .: Anyone know of a resource that summarizes/contrasts solutions
 provided by
 both frameworks?
 
 i.e.:
   -UI Components
   -controller components
   -model components
   -Page Flow
   -etc.
 
 Thanks,
 
 -Sasha
 
 
 From: Craig R. McClanahan [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 Date: Tue, 16 Sep 2003 10:16:22 -0700 (PDT)
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: struts-faces
 
 On Tue, 16 Sep 2003, Sasha Borodin wrote:
 
 Date: Tue, 16 Sep 2003 11:30:40 -0500
 From: Sasha Borodin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: struts-faces
 
 Can someone tell me why I'd need a struts integration version of
 the JSF
 implementation?  Why can't one just add the RI JAR files, TLD
 documents,
 config files and just starting using the tags?
 
 
 You can, but the integration library lets you use Struts Actions on
 the
 back end, creates form beans automatically, and so on.
 
 Thanks,
 
 -Sasha
 
 
 Craig
 
 -
 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: [OT] Subject line filter tag

2003-09-16 Thread David Graham
--- Adam Levine [EMAIL PROTECTED] wrote:
 Generally, yes, redundant and unecessary.  With lovely services like 
 hotmail, however, you don't get much say in the way of header
 information 
 being displayed before you actually open the email.. which makes mass 
 deletions, folder filtering, and blocking email beacons a big PITA.
 (hotmail 
 has a long way to go, imo, on its message filtering capabilities..

Hotmail has slowly been removing features like filtering.  That's the main
reason I recently switched to Yahoo!.

David

 yay
 for 
 the image blocking).. and, yes, i use hotmail addresses for maiiing
 lists to 
 keep my normal emails from being spammed.  so, i get what i pay for.
 
 thanks for the response, tho.
 
 
 From: Craig R. McClanahan [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: [OT] Subject line filter tag
 Date: Tue, 16 Sep 2003 09:46:04 -0700 (PDT)
 
 On Tue, 16 Sep 2003, Adam L wrote:
 
   Date: Tue, 16 Sep 2003 08:13:16 -0500
   From: Adam L [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Subject: [OT] Subject line filter tag
  
   To the powers that be:
   Is there a particular reason there's no list name header in the
   subject lines, ie [struts-users], for easy filtering from all the
 other
   spam and junk mail?
 
 Because it would be redundant and unnecessary.
 
I realize [struts-users] is a rather lengthy
   segment in the subject line, so perhaps it could be abbreviated..
   [ASFSU]...[A-SU]... or, [MARK-FU]. (=
  
 
 This is about the 100th time this suggestion has come up, and it's going
 to get vetoed (by me, among others) again.  Filter on the to and/or
 cc
 address (Mozilla and Netscape let you do this with a single filter
 rule) and you get exactly what you want.
 
   cheers!
  
 
 Craig McClanahan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 _
 Use custom emotions -- try MSN Messenger 6.0! 
 http://www.msnmessenger-download.com/tracking/reach_emoticon
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



  1   2   >