Re: Image uploads

2001-07-11 Thread Matthias Bauer

Thanks for you response. But I still can not figure out, how to get a 
BufferedImage object (or some other object which provides the functionality to 
retrieve the image's height and width) from the file that was uploaded.

Would be really great if you could give me another hint.

Thanks a lot,

--- Matthias


Peter Giannopoulos wrote:

 Look at the Java2D api.
 http://java.sun.com/products/java-media/2D/index.html
 
 You can create a custom action handler for struts that uses the Java2d api
 to check the image as well as apply transformation to it.
 
 I know this is a little vague but it's always more rewarding when wee
 discover things for ourselves. If you have trouble, just email me and I'll
 be happy to discuss in more detail.
 
 
 
 
 -Original Message-
 From: Matthias Bauer [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 10, 2001 6:56 AM
 To: struts-user
 Subject: Image uploads
 
 
 Hi there,
 
 I know the question is a little offtopic, but maybe somebody can provide a
 quick 
 answer anyway.
 
 I want to upload an image file with struts (this works well already). But
 before 
 storing the image in the database I want to check the width and height and
 the 
 type of the image (e. g. gif or jpg). Does anybody have an idea how I can
 easily 
 do this in Java?
 
 Thanks,
 
 --- Matthias
 






Re: Has anyone used KONA? and how diffierent is it from struts?

2001-07-11 Thread Aapo Laakkonen

 I am sorry if I have confused everyone.  But this is the Kona that I am
talking
 about, http://www.aki.com/kona  I guess this is another MVC frameworks
 created by aki.

Seems interesting, at least for me. In my opinion the struts framework is
too
complicated and requires too many steps to code some simple things.
I have found myself writing JSP scriptlets too often. I know that struts
fits
best on larger projects where programmers have good knowledge of java
and J2EE technologies.

I would like to know if there is someone who has done some real work with
both struts and kona. How do they compare? I think that struts has better
support for localization, but doesn't give very many tools for example for
db
access (Bring Your Own Model or something). So what do you think?




problems in ActionErrors, no errors showing up

2001-07-11 Thread Peter Kellner

Hi,

somehow, I don't think I'm initializing the global properties correctly.
I'm not getting my validation errors to come through the error tag.
I've set break points in the following code of the public class
ActionErrors implements Serializable
class.  My LoginAction Class calls this code as follows:

if ( emailaddress.compareTo(PETER) == 0  ) {
errors.add(ActionErrors.GLOBAL_ERROR,new
ActionError(error.password.mismatch) );
}


what is happening is the ArrayList (list) is not getting anything stuffed in
it.
That is, errors.get(error.password.mismatch) is returning a null.  I'm
stymied.
Any idea?


   /**
 * Add an error message to the set of errors for the specified property.
 *
 * @param property Property name (or ActionErrors.GLOBAL_ERROR)
 * @param error The error message to be added
 */
public void add(String property, ActionError error) {

ArrayList list = (ArrayList) errors.get(property);
if (list == null) {
list = new ArrayList();
errors.put(property, list);
}
list.add(error);

}




RE: Has anyone used KONA? and how diffierent is it from struts?

2001-07-11 Thread Peter Kellner

take a look at www.dbforms.org

It is built on top of struts and has tons of database support.
I know this doesn't answer your kona question, but it is something
to think about for database access.

-Original Message-
From: Aapo Laakkonen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 12:28 AM
To: [EMAIL PROTECTED]
Subject: Re: Has anyone used KONA? and how diffierent is it from struts?


 I am sorry if I have confused everyone.  But this is the Kona that I am
talking
 about, http://www.aki.com/kona  I guess this is another MVC frameworks
 created by aki.

Seems interesting, at least for me. In my opinion the struts framework is
too
complicated and requires too many steps to code some simple things.
I have found myself writing JSP scriptlets too often. I know that struts
fits
best on larger projects where programmers have good knowledge of java
and J2EE technologies.

I would like to know if there is someone who has done some real work with
both struts and kona. How do they compare? I think that struts has better
support for localization, but doesn't give very many tools for example for
db
access (Bring Your Own Model or something). So what do you think?



Re: Radio Button Example using boolean?

2001-07-11 Thread suhas

Do something like this
in strtus-config.xml file -

  !-- Do nut --
  action path=/donut
 type=example.DoNutAction
 name=doNutForm
   forward name=success  path=/donut.jsp/
  /action

In the donut.jsp -
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
html:html
html:form action=/donut.do
html:radio property=donut value=true 
 bean:message key=yes /
/html:radio
html:radio property=donut value=false /
 bean:message key=no /
/html:radio
html:submit
bean:message key=button.submit /
/html:submit
/html:form
/html:html

In the DoNutForm.java

package example;
import org.apache.struts.action.*;
import javax.servlet.http.*;
public class DoNutForm extends ActionForm {
 private boolean donut;
 public DoNutForm() {
 }
 public void reset(ActionMapping mapping , HttpServletRequest req) {
  donut = true;
 }
 public void setDonut(boolean  donut) {
  System.out.println( **in the setter donut** + donut);
  this.donut  = donut ;
 }
 public boolean getDonut() {
  System.out.println( in the getter + donut);
  return donut;
 }
}

In the DoNutAction.java
public final class DoNutAction extends Action {
   public ActionForward perform(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
   throws IOException, ServletException {
  return mapping.findForward(success);

 }
}




- Original Message -
From: Tim Colson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 5:54 AM
Subject: Radio Button Example using boolean?


 Does someone have a simple example of using two radio buttons (YES / NO)?

 Can they be populated from a boolean in the form?

  input type=radio name=LIKES_DONUTS value=YES checked Yes
  input type=radio name=LIKES_DONUTS value=NONo

 Side Question: What's the pro/con of simply using the standard HTML
elements
 with some logic: tags to do this?

 Thanks,
 Tim




Re: Has anyone used KONA? and how diffierent is it from struts?

2001-07-11 Thread Aapo Laakkonen

 take a look at www.dbforms.org
 
 It is built on top of struts and has tons of database support.
 I know this doesn't answer your kona question, but it is something
 to think about for database access.

Thanks... quick question:

Is dbForms intended to use as a replacement for struts or is it designed
to use along with struts? Or something else?




Create and Edit, fill out fields or not

2001-07-11 Thread Stefan Faist

Hi,
I have a JSP-site with fields to fill out and the same site to show me the
fields, like the registration.jsp in the struts example.

I want to do the same, but how can I fill out the fields? The titel is easy
to create with the logic:equal tag but with the other fields I have a
problem.

Please help me !!

Stefan

--
hmi-Informatik GmbH
Zettachring 6 - D-70567 Stuttgart
E-Mail: [EMAIL PROTECTED]
http://www.hmi-informatik.de




Re: Create and Edit, fill out fields or not

2001-07-11 Thread suhas

check editRegistrationAction and SaveRegistration in the examples that comes
with struts
Wht is the problem in creating the fields !!

suhas

- Original Message -
From: Stefan Faist [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 9:13 AM
Subject: Create and Edit, fill out fields or not


 Hi,
 I have a JSP-site with fields to fill out and the same site to show me the
 fields, like the registration.jsp in the struts example.

 I want to do the same, but how can I fill out the fields? The titel is
easy
 to create with the logic:equal tag but with the other fields I have a
 problem.

 Please help me !!

 Stefan

 --
 hmi-Informatik GmbH
 Zettachring 6 - D-70567 Stuttgart
 E-Mail: [EMAIL PROTECTED]
 http://www.hmi-informatik.de




RE: XML/XSL/Struts Architecture

2001-07-11 Thread O'Reilly John

Hi Mahesh,
We have started using Struts for an application that uses XSP/XML/XSL (using
Cocoon).  Instead of specifying a  JSP page in the struts configuration file
we specify a XSP page.  This server page is responsible for getting XML data
from some data object set up in the action classes (we are using attributes
in the session object for now).  We also have extended ActionMapping to
allow us to specify the XSL stylesheet in the struts configuration file.
You are right about the use of tag libraries - that is one aspect of struts
that you potentially lose out on using the above approach.
Regards,
John


 -Original Message-
 From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]]
 Sent: 10 July 2001 17:24
 To:   Apache Struts (E-mail)
 Subject:  XML/XSL/Struts Architecture
 
 Hi,
 
 In our application, we are using XML/XSL to generate JSP and plan to use
 Struts for submitting data from HTML forms. Has anyone used / know 
 if this architecture works. my thinking is ( correct me if wrong ) , we
 will not be able to use tag libraries coz of XML/XSL combination for
 generating pages. unique thing about this application is structure of
 HTML is different for each client.
 
 Thanks
 Mahesh 
  
 



just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Chuck Amadi


Hi, all eventhugh Ant's is bundled with netbeans 3.2.2 i have just downloaded
(binary) , installed and config the set up environment - C:\jakarta-ant.Thus
do i mount the C:\jakarta-ant-1.3 onto the netbeans filesystem or
do i just add ant.jar and any jars/classes that i require to my webapp's
WEB-INF/lib dir, also i am not sure wheather you just utilise the ant command
from dos-prompt or as i hope via Scripts netbeans IDE.
It feels a bit ambiguous as it states that one should download any auxiliary
jars required to build tasks i am interested in . Well i am interested
testlet.jar,rhino.jar and jpython.jar for now.
Thus can i install these libraries later once i have a feel and look
of this applicaion build tool.
Thus finally can i from the netbeans IDE menu run ant . As once i have
accomplished this i have got to do it all over again on Linux .
Cheers All. Chuck

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal  rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.



Re: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread suhas



set classpath to ant.jar , jaxp.jar . 

and use dos-prompt to enter - build all or 
build clean
Suhas



  - Original Message - 
  From: 
  Chuck Amadi 
  To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] 
  Sent: Wednesday, July 11, 2001 12:20 
  PM
  Subject: just d/l  installed ANT'S 
  need some guidance!!
  Hi, all eventhugh Ant's is bundled with netbeans 3.2.2 i have 
  just downloaded (binary) , installed and config the set up environment - 
  C:\jakarta-ant.Thus do i mount the C:\jakarta-ant-1.3 onto the netbeans 
  filesystem or do i just add ant.jar and any jars/classes that i require to my 
  webapp's WEB-INF/lib dir, also i am not sure wheather you just utilise the ant 
  command from dos-prompt or as i hope via Scripts netbeans IDE. 
  It feels a bit ambiguous as it states that one should download any 
  auxiliary jars required to build tasks i am interested in . Well i am 
  interested testlet.jar,rhino.jar and jpython.jar for now. Thus can i 
  install these libraries later once i have a feel and look of this applicaion 
  build tool. Thus finally can i from the netbeans IDE menu run ant . As 
  once i have accomplished this i have got to do it all over again on Linux . 
  Cheers All. Chuck  
  -- The views expressed by the sender of this message don't 
  necessarily represent those of Brecon Beacons National Park Authority. 
  This message is intended for the addressee(s) only and is sent in 
  confidence; if you receive it in error, please can you let us know (at 
  [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir 
  gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc 
  Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y 
  derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych 
  yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni 
  (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.  



Quarantine?

2001-07-11 Thread Joey Gibson

On Tue, 10 Jul 2001 23:33:04 -0500, Paladin
[EMAIL PROTECTED] wrote:

||| Incident Information:-
||| 
||| Originator:suhas [EMAIL PROTECTED]
||| Recipients:[EMAIL PROTECTED]
||| Subject:  Re: Error: org.apache.struts.action.MESSAGE
||| 
||| Message from suhas [EMAIL PROTECTED] was quarantined because
||| it contained banned content.

Does anyone know what the hell this 'banned content' is that Paladin
keeps telling us about? We're getting these stupid messages about once a
day now.

Joey

-- Sun Certified Java2 Programmer
-- Political Rants: www.joeygibson.com
-- My Pocket Smalltalk Stuff: www.joeygibson.com/st
--
-- We thought about killin' him, but we kinda 
--  hated to go that far




Struts question

2001-07-11 Thread suhas



jsp:useBean action tag in the jsp 
does the same thing as our ActionServlet does ( Populates the the 
form bean with data ) in struts .
Can anyone tell how we taking advantage of doing 
this in ActionServlet ??? 


Regards
Suhas 




Re: Quarantine?

2001-07-11 Thread suhas

The mail server might be checking for some text patterns  in the mails ..
Better to ask the concerned person to use some web based mail as against
company mail - id to avoid this

Any way my struts mails has gone past 6000 mark since I joined the mailing
list  - Can anyone give a clue has how to maintain it . !!!

Suhas




- Original Message -
From: Joey Gibson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 1:03 PM
Subject: Quarantine?


 On Tue, 10 Jul 2001 23:33:04 -0500, Paladin
 [EMAIL PROTECTED] wrote:

 ||| Incident Information:-
 |||
 ||| Originator:suhas [EMAIL PROTECTED]
 ||| Recipients:[EMAIL PROTECTED]
 ||| Subject:  Re: Error: org.apache.struts.action.MESSAGE
 |||
 ||| Message from suhas [EMAIL PROTECTED] was quarantined
because
 ||| it contained banned content.

 Does anyone know what the hell this 'banned content' is that Paladin
 keeps telling us about? We're getting these stupid messages about once a
 day now.

 Joey

 -- Sun Certified Java2 Programmer
 -- Political Rants: www.joeygibson.com
 -- My Pocket Smalltalk Stuff: www.joeygibson.com/st
 --
 -- We thought about killin' him, but we kinda
 --  hated to go that far




Re: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Chuck Amadi


Hi again i have set my classpath within AutoExec.bat as follows
set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2
set ANT_HOME=C:\jakarta-ant-1.2
set JAVA_HOME=C:\JDK1.3
set PATH=%PATH%;%ANT_HOME%\bin
Thus on checking the ant's bin dir the ant.bat states the following.
Exception in thread "main" java.lang. NoClassDefFoundError org/apache/tools/ant/main.
Any Ideas.- Cheers Chuck
suhas wrote:
 Part 1.1 Type: Plain
Text (text/plain)
 Encoding:
quoted-printable

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal  rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.



Re: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Chuck Amadi

Hi, tried that and just ant from the ms-dos command line and got
Exception in Thread - I assume that i have a classpath issue regarding
multithreading .
Any Suggestions Cheers Chuck

suhas wrote:

Part 1.1Type: Plain Text (text/plain)
Encoding: quoted-printable

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.





SV: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Mikkel Bruun

please post the exception so we can look into it...

Mikkel

-Oprindelig meddelelse-
Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]]
Sendt: 11 July 2001 14:43
Til: [EMAIL PROTECTED]
Emne: Re: just d/l  installed ANT'S need some guidance!!


Hi, tried that and just ant from the ms-dos command line and got
Exception in Thread - I assume that i have a classpath issue regarding
multithreading .
Any Suggestions Cheers Chuck

suhas wrote:

Part 1.1Type: Plain Text (text/plain)
Encoding: quoted-printable

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.




RE: Problem getting Struts working with Websphere 3.5.4

2001-07-11 Thread Ravindran Ramaiah


Check this out..
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10964.html

And..
Sure thing - I already sent it but the list refused it due to its file size.
As an alternative, I'll put it up on my personal FTP space and anyone who
wants it can download it from there! :) 

Struts.jar with Form tag modifications: http://www.enfused.com/struts.jar

-Chris

-Original Message-
From: Christine Eckstein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 11:09 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts 1.0 on WebSphere 3.5.4??







-Original Message-
From: Calabrese, Jason [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 7:54 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem getting Struts working with Websphere 3.5.4


I forgot to add the exception, here it is.

Message: Server caught unhandled exception from servlet [action]: Server
caught unhandled exception from servlet [jsp11]: cant remove Attributes
from request scope

Target Servlet: action
StackTrace: 


Root Error-1: cant remove Attributes from request scope

java.lang.IllegalArgumentException: cant remove Attributes from request
scope
at java.lang.RuntimeException.init(RuntimeException.java:49)
at
java.lang.IllegalArgumentException.init(IllegalArgumentException.java:
45)
at
org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImp
l.java:236)
at
org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
at _registration_jsp_0._jspService(_registration_jsp_0.java:959)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServle
t.java:396)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:718)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletMan
ager.java:626)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLife
cycleServlet.java:160)
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleSe
rvlet.java:287)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifec
ycleServlet.java:105)
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.jav
a:360)
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Servle
tManager.java:775)
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletM
anager.java:701)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(WebAppRequestDispatcher.java:478)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReq
uestDispatcher.java:234)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequ
estDispatcher.java:138)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServle
t.java:1758)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletMan
ager.java:626)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLife
cycleServlet.java:160)
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleSe
rvlet.java:287)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifec
ycleServlet.java:105)
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.jav
a:360)
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Servle
tManager.java:775)
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletM
anager.java:701)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(WebAppRequestDispatcher.java:478)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReq
uestDispatcher.java:234)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequ
estDispatcher.java:138)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvo
ker.java:77)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Cach
edInvocation.java:67)
at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cach
eableInvocationContext.java:106)
at

RE: Page is not cached

2001-07-11 Thread Zeltser, Mark

No, I don't.

 -Original Message-
 From: Peter Alfors [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, July 10, 2001 3:59 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Page is not cached
 
 Do you have the ActionServlet init-param nocache set to true?
 
 From ActionServlet.java:
 nocache - If set to true, add HTTP headers to every response intended to
 defeat browser caching of any response we generate or forward to
 
 HTH,
 Pete
 
 
 Zeltser, Mark wrote:
 
  Hello,
 
  I have struts 1.0 app running on tomcat and I noticed that one of my
 pages
  (output after uploading a file) is not cached by the browser (IE 5). By
  default ActionServlet doesn't include any headers prohibiting from
 caching.
 
  I tried manually set headers inside of the action prior to forwarding to
  template but it didn't help (somehow they didn't show up when I tried to
  print the headers out):
 
 
 **
 **
  
  10 Jul 2001 13:36:01,942 INFO  ContextServlet,55 - //
 Header
  Info
  10 Jul 2001 13:36:01,942 INFO  ContextServlet,59 -
  Cookie=JSESSIONID=5r5zy3v3o1
  10 Jul 2001 13:36:01,958 INFO  ContextServlet,59 -
 Host=njimtw860140:8080
  10 Jul 2001 13:36:01,958 INFO  ContextServlet,59 -
  Accept=application/msword, application/vnd.ms-excel,
  application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg,
  image/pjpeg, */*
  10 Jul 2001 13:36:01,974 INFO  ContextServlet,59 -
 User-Agent=Mozilla/4.0
  (compatible; MSIE 5.0; Windows NT; DigExt)
  10 Jul 2001 13:36:01,989 INFO  ContextServlet,59 - Content-Length=546
  10 Jul 2001 13:36:01,989 INFO  ContextServlet,59 - Accept-Language=en-us
  10 Jul 2001 13:36:02,005 INFO  ContextServlet,59 - Accept-Encoding=gzip,
  deflate
  10 Jul 2001 13:36:02,005 INFO  ContextServlet,59 -
  Content-Type=multipart/form-data;
  boundary=---7d111e1211634
  10 Jul 2001 13:36:02,021 INFO  ContextServlet,59 - Connection=Keep-Alive
  10 Jul 2001 13:36:02,021 INFO  ContextServlet,59 -
  Referer=http://njimtw860140:8080/hp2/templates/CasImportTemplate.jsp
  10 Jul 2001 13:36:02,036 INFO  ContextServlet,61 - //
 End
  Header Info
 
 **
 **
  
 
  Did anyone encounter this problem?
 
  Thanks, Mark.
 
 
 --
 
  This message is intended only for the personal and confidential use of
 the designated recipient(s) named above.  If you are not the intended
 recipient of this message you are hereby notified that any review,
 dissemination, distribution or copying of this message is strictly
 prohibited.  This communication is for information purposes only and
 should not be regarded as an offer to sell or as a solicitation of an
 offer to buy any financial product, an official confirmation of any
 transaction, or as an official statement of Lehman Brothers.  Email
 transmission cannot be guaranteed to be secure or error-free.  Therefore,
 we do not represent that this information is complete or accurate and it
 should not be relied upon as such.  All information is subject to change
 without notice.  File: Card for Peter Alfors  


--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.





Re: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Peter Alfors


Is the ant.jar in your classpath?
Pete

Chuck Amadi wrote:
Hi again i have set my classpath within AutoExec.bat
as follows
set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2
set ANT_HOME=C:\jakarta-ant-1.2
set JAVA_HOME=C:\JDK1.3
set PATH=%PATH%;%ANT_HOME%\bin
Thus on checking the ant's bin dir the ant.bat states the following.
Exception in thread "main" java.lang. NoClassDefFoundError org/apache/tools/ant/main.
Any Ideas.- Cheers Chuck
suhas wrote:
 Part 1.1 Type: Plain
Text (text/plain)
 Encoding:
quoted-printable
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal  rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.



begin:vcard 
n:;
x-mozilla-html:FALSE
org:BRIMG SRC=http://www.irista.com/images/common/logo_top_right.gif;
adr:;;
version:2.1
end:vcard



Re: SV: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Chuck Amadi


Hi, as follows i have rebooted as usually, included the %PATH%;%ANT_HOME%
thus invoking ant.jar and any other jar's within the bin, and from
ms-dos command line entered ant .
Cheers Chuck


Mikkel Bruun wrote:
please post the exception so we can look into it...
Mikkel
-Oprindelig meddelelse-
Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]]
Sendt: 11 July 2001 14:43
Til: [EMAIL PROTECTED]
Emne: Re: just d/l  installed ANT'S need some guidance!!
Hi, tried that and just ant from the ms-dos command line and got
Exception in Thread - I assume that i have a classpath issue regarding
multithreading .
Any Suggestions Cheers Chuck
suhas wrote:
> Part 1.1 Type: Plain Text (text/plain)
>
Encoding: quoted-printable
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal  rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal  rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.

 Post as requested note the same response within ant.doc


How to reload struts-config?

2001-07-11 Thread Tillmann Schulz

Hi there,

I am looking for a solution to reload struts config values from 
ApplicationResources.properties and struts-config.xml without shuting down the 
webserver. Is there a way to do this while the web application is running? 

I would like to have a JSP-Page with a button Reload Struts on it ;.) 

Thank you in advance,

Tillmann

---
Tillmann Schulz
__
Fast alle Fluege koennen Ihnen egal sein. Einer nicht: Ihrer!
Flug.de hat ihn: http://flug.de/sb/?PP=0-5-100-105-6




.Re: SV: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread suhas

Hi  , Cheers Chuck
Only ant.jar should be in  the classpath . The system not required to
boot up .
Also keep jaxp.jar and parser.jar in the lib directory in the classpath

set bin directory in the path

Before doing all this set classpath and path to null

Suhas

- Original Message -
From: Chuck Amadi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 2:00 PM
Subject: Re: SV: just d/l  installed ANT'S need some guidance!!


Hi, as follows i have rebooted as usually, included the
%PATH%;%ANT_HOME% thus invoking ant.jar and any other jar's within the
bin, and from ms-dos command line entered ant .
Cheers Chuck



Mikkel Bruun wrote:


please post the exception so we can look into it...

Mikkel


-Oprindelig meddelelse-
Fra: Chuck Amadi [ mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ]
Sendt: 11 July 2001 14:43
Til: [EMAIL PROTECTED]
Emne: Re: just d/l  installed ANT'S need some guidance!!


Hi, tried that and just ant from the ms-dos command line and got
Exception in Thread - I assume that i have a classpath issue regarding
multithreading .
Any Suggestions Cheers Chuck


suhas wrote:


Part 1.1Type: Plain Text (text/plain)
Encoding: quoted-printable


--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.


--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.







Re: SV: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Chuck Amadi

Oops forgot to mention that i am running Netbeans v 3.2.2 wereby ant's is
apparently alreay bundled nevertheless i would like a standalone , as the
ant 1.3 download is the current realease.
Anyway would this cause any problems .
Cheers Chuck

Mikkel Bruun wrote:

 please post the exception so we can look into it...

 Mikkel

 -Oprindelig meddelelse-
 Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]]
 Sendt: 11 July 2001 14:43
 Til: [EMAIL PROTECTED]
 Emne: Re: just d/l  installed ANT'S need some guidance!!

 Hi, tried that and just ant from the ms-dos command line and got
 Exception in Thread - I assume that i have a classpath issue regarding
 multithreading .
 Any Suggestions Cheers Chuck

 suhas wrote:

 Part 1.1Type: Plain Text (text/plain)
 Encoding: quoted-printable

 --
 The views expressed by the sender of this message don't
 necessarily represent those of Brecon Beacons National Park
 Authority. This message is intended for the addressee(s) only
 and is sent in confidence; if you receive it in error, please can you
 let us know (at [EMAIL PROTECTED]) and then destroy all copies.
 Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
 adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
 Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
 yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
 mewn camgymeriad, a fyddech gystal â rhoi gwybod i
 ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.





SV: How to reload struts-config?

2001-07-11 Thread Mikkel Bruun

i believe there's some default admin actions in the struts-config.xml,
including the one your are looking for...

try doing http://whatever/admin/reload.do

Mikkel

-Oprindelig meddelelse-
Fra: Tillmann Schulz [mailto:[EMAIL PROTECTED]]
Sendt: 11 July 2001 15:17
Til: [EMAIL PROTECTED]
Emne: How to reload struts-config?


Hi there,

I am looking for a solution to reload struts config values from
ApplicationResources.properties and struts-config.xml without shuting down
the webserver. Is there a way to do this while the web application is
running? 

I would like to have a JSP-Page with a button Reload Struts on it ;.) 

Thank you in advance,

Tillmann

---
Tillmann Schulz

__
Fast alle Fluege koennen Ihnen egal sein. Einer nicht: Ihrer!
Flug.de hat ihn: http://flug.de/sb/?PP=0-5-100-105-6



Re: Quarantine?

2001-07-11 Thread Matt Raible

I'm guessing it's the xxx that's used in the body of
the e-mails.


--- Joey Gibson [EMAIL PROTECTED] wrote:
 On Tue, 10 Jul 2001 23:33:04 -0500, Paladin
 [EMAIL PROTECTED] wrote:
 
 ||| Incident Information:-
 ||| 
 ||| Originator:suhas
 [EMAIL PROTECTED]
 ||| Recipients:[EMAIL PROTECTED]
 ||| Subject:  Re: Error:
 org.apache.struts.action.MESSAGE
 ||| 
 ||| Message from suhas
 [EMAIL PROTECTED] was quarantined
 because
 ||| it contained banned content.
 
   Does anyone know what the hell this 'banned
 content' is that Paladin
 keeps telling us about? We're getting these stupid
 messages about once a
 day now.
 
 Joey
 
 -- Sun Certified Java2 Programmer
 -- Political Rants: www.joeygibson.com
 -- My Pocket Smalltalk Stuff: www.joeygibson.com/st
 --
 -- We thought about killin' him, but we kinda 
 --  hated to go that far
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



like editRegistration in struts-example

2001-07-11 Thread Stefan Faist

Hi,
I want to do the same like the struts-example do when you click on Edit
your user registration profile Then the field Username, Fullname, From
Adress already filled out. How does this work?

I have a xxAction like the EditRegistrationAction. There the regform is
filled with the user data.
I do the same, but the perform method from this action will not called. And
so the data can't set to the fields.
What is the error?

Stefan.

--
hmi-Informatik GmbH
Zettachring 6 - D-70567 Stuttgart
E-Mail: [EMAIL PROTECTED]
http://www.hmi-informatik.de




RE: Struts question

2001-07-11 Thread Meeraj Kunnumpurath



Action 
servlet does lot more things than just populating the bean instance like request 
delegation, view dispatching, locale selection etc etc. In addition the form 
bean provides you a method for validation the form data, even though it is 
recommended not to use it to promote the reuse of form 
beans.

RegardsMeeraj/ 

  -Original Message-From: suhas 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 11, 2000 
  5:47 PMTo: [EMAIL PROTECTED]Subject: Struts 
  question
  jsp:useBean action tag in the jsp 
  does the same thing as our ActionServlet does ( Populates the the 
  form bean with data ) in struts .
  Can anyone tell how we taking advantage of doing 
  this in ActionServlet ??? 
  
  
  Regards
  Suhas 
  
  


struts-upload, why jsp page in not cached by IE?

2001-07-11 Thread Zeltser, Mark

Hello,

I noticed that after running struts-upload example the resulted page is
expired under IE 5(cache setting is automatic) but not under Netscape
(4.75). Does anyone know the reason?

Thanks, Mark.


--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.





Re: Re:ant's Classpath just(ANT'S need some guidance!!)

2001-07-11 Thread suhas



Chuck 
Please check bin directory will never have any jars 
in it 
so classpath is not correct 


  - Original Message - 
  From: 
  Chuck Amadi 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, July 11, 2001 2:33 
  PM
  Subject: Re:ant's Classpath just(ANT'S 
  need some guidance!!)
  The ant.jar is in the lib dir with the others.I was aware that 
  the classpath for ant must contain ant.jar and the other jar's needed for my 
  JAXP-compliant XML parser albeit i thought that %PATH% would include all 
  jar's. Thus what is the correct syntax. 
  set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2 set ANT_HOME=C:\jakarta-ant-1.2 
  set JAVA_HOME=C:\JDK1.3 set PATH=%PATH%;%ANT_HOME%\bin - 
  Believed that this was inclusive for all jar's 
  set classpath=C:\jakarta-ant\bin\ant.jar (is this correct) 
  Cheers Chuck 
  Peter Alfors wrote: 
   Part 1.1.1 Type: 
Plain Text (text/plain) 
 
Encoding: 8bit 
 
Name: peter.alfors.vcf  
peter.alfors.vcf Type: VCard 
(text/x-vcard) 
 
Encoding: 7bit 
 
Description: Card for Peter Alfors
  -- The views expressed by the sender of this message don't 
  necessarily represent those of Brecon Beacons National Park Authority. 
  This message is intended for the addressee(s) only and is sent in 
  confidence; if you receive it in error, please can you let us know (at 
  [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir 
  gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc 
  Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y 
  derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych 
  yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni 
  (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.  



Re: Any Success With Validator?

2001-07-11 Thread Ryan Cornia

Answers-

The great thing about the validation framework is that it does both CLIENT side 
validation with Javascript (if possible), but ALSO server side validation. If the user 
doesn't have Javascript enabled, it will validate on the server. (Even if Javascript 
is enabled, it will double check the validation on the server.)

After making the changes below, when you bring up the jsp in a browser, look at the 
source. It should have Javascript in it for the validations. If not, then your 
validator servlet (specified in web.xml) is probably not loading properly.

One other thing I had a problem with is the order that the struts controller and 
validator were loading. In the struts controller servlet, I put 
load-on-startup1/load-on-startup, in the validator, I put 
load-on-startup2/load-on-startup. (again in web.xml)

This fixed my issue.

HTH,
Ryan




 [EMAIL PROTECTED] 07/10/01 04:28PM 
Thanks for the comments. I have a few follow-ups interspersed with your
responses below...

David

Ryan Cornia wrote:
 
 Yes, it works great.
 
 A couple of things to check -
 
 1.) In the JSP page that is your form, make sure you have -
 
 html:form action=/myAction onsubmit=return validateMyExampleForm(this);
 
 the onsubmit piece is what causes the validation.

Isn't this required only for client-side validation via Javascript? For
example, Right now, I am simply stating that I want the required check
to be performed. In the valiation.xml file for this, there appears to be
both a java (server-side) mechanism and a javascript (client-side)
mechanism. I am not sure that we can count on javascript so I was
focused on the server-side.

 
 2.) At the bottom of the JSP form, set the form name so the validator know what is 
being validated -
 validator:javascript formName=MyExampleForm/

See my note above.

 
 Other than that, you should be set.
 
 Ryan

Thanks Ryan.

 
  [EMAIL PROTECTED] 07/10/01 01:33PM 
 I have a small and simple web app that I have working with vanilla
 struts. I am trying to incorporate the struts validator mechanism by
 converting just one form. To do so, I have done the following:
 
 Placed the Struts_Validator-20010702.jar into the web app's lib dir.
 
 Place the jakarta-regexp-1.2.jar into the web app's lib dir.
 
 Place the struts-validator.tld into the web app's WEB-INF dir
 (along with the struts tag lib files).
 
 Copy the example validation.xml file into the web app's WEB-INF
 dir. Removed all but one form from the default (no locale) formset.
 Edited each field so that it depends on require only. Removed all the
 localized formsets.
 
 Cut  paste from the validator servlet definition from the
 example web.xml into mine. Changed the taglib reference for the
 validator taglib (no tld durectory).
 
 Changed the jsp to use the validator:errorsExist tag in place of
 the struts errors tag. Added the validator tag lib to the page.
 
 Changed the form class so that it extends ValidatorForm rather
 than struts ActionForm. Commented out my previously coded validate()
 method in the form class.
 
 In the form's action class, remove the check for errors in the
 perform() method.
 
 Added validate=true to the form's action in the struts-config.xml
 file.
 
 When I submit the page with empty fields, no errors are reported and the
 form's action just marches merrily along forwarding to the next jsp
 which fails because parameters are empty. I have looked and tried again
 and again with no luck. Before I give up, I thought I'd ask for help
 here. Any ideas as to what I am missing?
 
 Thanks In Advance,
 
 David
 Seattle




Apache, IIS , html:img tag

2001-07-11 Thread Andrew Paul Swift

The code html:img src=struts-power.gif alt=Powered by Struts/ gives me
the HTML below.
img src=struts-power.gif;jsessionid=k54f1xn3y1 alt=Powered by Struts

This results in the image not being displayed when I use tomcat with apache
web server 
It is displayed fine when I use tomcat with iis though!

For what reason does it append the sessionid to it?? 
Do you know why it works with iis and not apache?

cheers

Andy


-
To send us encrypted mail, please refer to:
http://www.millionhandshakes.com/emailpolicy/pgp.html

Million Handshakes



Re: Any Success With Validator?

2001-07-11 Thread Ryan Cornia

Answers-

The great thing about the validation framework is that it does both CLIENT side 
validation with Javascript (if possible), but ALSO server side validation. If the user 
doesn't have Javascript enabled, it will validate on the server. (Even if Javascript 
is enabled, it will double check the validation on the server.)

After making the changes below, when you bring up the jsp in a browser, look at the 
source. It should have Javascript in it for the validations. If not, then your 
validator servlet (specified in web.xml) is probably not loading properly.

One other thing I had a problem with is the order that the struts controller and 
validator were loading. In the struts controller servlet, I put 
load-on-startup1/load-on-startup, in the validator, I put 
load-on-startup2/load-on-startup. (again in web.xml)

This fixed my issue.

HTH,
Ryan




 [EMAIL PROTECTED] 07/10/01 04:28PM 
Thanks for the comments. I have a few follow-ups interspersed with your
responses below...

David

Ryan Cornia wrote:
 
 Yes, it works great.
 
 A couple of things to check -
 
 1.) In the JSP page that is your form, make sure you have -
 
 html:form action=/myAction onsubmit=return validateMyExampleForm(this);
 
 the onsubmit piece is what causes the validation.

Isn't this required only for client-side validation via Javascript? For
example, Right now, I am simply stating that I want the required check
to be performed. In the valiation.xml file for this, there appears to be
both a java (server-side) mechanism and a javascript (client-side)
mechanism. I am not sure that we can count on javascript so I was
focused on the server-side.

 
 2.) At the bottom of the JSP form, set the form name so the validator know what is 
being validated -
 validator:javascript formName=MyExampleForm/

See my note above.

 
 Other than that, you should be set.
 
 Ryan

Thanks Ryan.

 
  [EMAIL PROTECTED] 07/10/01 01:33PM 
 I have a small and simple web app that I have working with vanilla
 struts. I am trying to incorporate the struts validator mechanism by
 converting just one form. To do so, I have done the following:
 
 Placed the Struts_Validator-20010702.jar into the web app's lib dir.
 
 Place the jakarta-regexp-1.2.jar into the web app's lib dir.
 
 Place the struts-validator.tld into the web app's WEB-INF dir
 (along with the struts tag lib files).
 
 Copy the example validation.xml file into the web app's WEB-INF
 dir. Removed all but one form from the default (no locale) formset.
 Edited each field so that it depends on require only. Removed all the
 localized formsets.
 
 Cut  paste from the validator servlet definition from the
 example web.xml into mine. Changed the taglib reference for the
 validator taglib (no tld durectory).
 
 Changed the jsp to use the validator:errorsExist tag in place of
 the struts errors tag. Added the validator tag lib to the page.
 
 Changed the form class so that it extends ValidatorForm rather
 than struts ActionForm. Commented out my previously coded validate()
 method in the form class.
 
 In the form's action class, remove the check for errors in the
 perform() method.
 
 Added validate=true to the form's action in the struts-config.xml
 file.
 
 When I submit the page with empty fields, no errors are reported and the
 form's action just marches merrily along forwarding to the next jsp
 which fails because parameters are empty. I have looked and tried again
 and again with no luck. Before I give up, I thought I'd ask for help
 here. Any ideas as to what I am missing?
 
 Thanks In Advance,
 
 David
 Seattle




Re: SV: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Chuck Amadi

Is this ok

Peter Alfors wrote:

 print out your classpath and see which ant.jar is being used.

 Pete

 Chuck Amadi wrote:

  Oops forgot to mention that i am running Netbeans v 3.2.2 wereby ant's is
  apparently alreay bundled nevertheless i would like a standalone , as the
  ant 1.3 download is the current realease.
  Anyway would this cause any problems .
  Cheers Chuck
 
  Mikkel Bruun wrote:
 
   please post the exception so we can look into it...
  
   Mikkel
  
   -Oprindelig meddelelse-
   Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]]
   Sendt: 11 July 2001 14:43
   Til: [EMAIL PROTECTED]
   Emne: Re: just d/l  installed ANT'S need some guidance!!
  
   Hi, tried that and just ant from the ms-dos command line and got
   Exception in Thread - I assume that i have a classpath issue regarding
   multithreading .
   Any Suggestions Cheers Chuck
  
   suhas wrote:
  
   Part 1.1Type: Plain Text (text/plain)
   Encoding: quoted-printable
  
   --
   The views expressed by the sender of this message don't
   necessarily represent those of Brecon Beacons National Park
   Authority. This message is intended for the addressee(s) only
   and is sent in confidence; if you receive it in error, please can you
   let us know (at [EMAIL PROTECTED]) and then destroy all copies.
   Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
   adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
   Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
   yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
   mewn camgymeriad, a fyddech gystal  rhoi gwybod i
   ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.
 
  --
  The views expressed by the sender of this message don't
  necessarily represent those of Brecon Beacons National Park
  Authority. This message is intended for the addressee(s) only
  and is sent in confidence; if you receive it in error, please can you
  let us know (at [EMAIL PROTECTED]) and then destroy all copies.
  Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
  adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
  Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
  yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
  mewn camgymeriad, a fyddech gystal  rhoi gwybod i
  ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.


 classjar.doc


changing languages

2001-07-11 Thread Manuel Moons

Hello everybody,

I have a small question.  I have written a test application for my company 
that uses struts, just to see what it can do.

I am using different ApplicationResource files.  I have no problem changing 
between my different languages.  I do this by setting the Locale object in 
my session scope.  I have one problem though.  When I change language and I 
want to change back to the original one.  I have to make a double of my 
start up ApplicationResource file because he always needs the extra 
extensions in my file

eg.  ApplicationResource_en_US.properties
 ApplicationResource_nl_BE.properties

Is there any way of changing back to my original resource file?


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: ant's Classpath just(ANT'S need some guidance!!)

2001-07-11 Thread Peter Alfors


Java expects all necessary classes/jars/etc to be in the CLASSPATH environment
variable.
try:
 set classpath=%ANT_HOME%\lib\ant.jar;
then try to run ant.
HTH,
 Pete
Chuck Amadi wrote:
The ant.jar is in the lib dir with the others.I was
aware that the classpath for ant must contain ant.jar and the other jar's
needed for my JAXP-compliant XML parser albeit i thought that %PATH% would
include all jar's. Thus what is the correct syntax.
set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2
set ANT_HOME=C:\jakarta-ant-1.2
set JAVA_HOME=C:\JDK1.3
set PATH=%PATH%;%ANT_HOME%\bin - Believed that this was inclusive
for all jar's
set classpath=C:\jakarta-ant\bin\ant.jar (is this correct)
Cheers Chuck
Peter Alfors wrote:
 Part 1.1.1 Type: Plain
Text (text/plain)

Encoding: 8bit

Name: peter.alfors.vcf
 peter.alfors.vcf Type:
VCard (text/x-vcard)

Encoding: 7bit

Description: Card for Peter Alfors
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal  rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.




RE: XML/XSL/Struts Architecture

2001-07-11 Thread Mahesh Bhagia

Thanks John,

How you do go about doing error checking with XML. so you use pattern
method mechanism as per article form javaworld 
Strut your stuff with JSP tags or some other mechanism 

All suggestions are welcome

Thanks
Mahesh 
  

-Original Message-
From: O'Reilly John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 4:42 AM
To: '[EMAIL PROTECTED]'
Subject: RE: XML/XSL/Struts Architecture


Hi Mahesh,
We have started using Struts for an application that uses XSP/XML/XSL
(using
Cocoon).  Instead of specifying a  JSP page in the struts configuration
file
we specify a XSP page.  This server page is responsible for getting XML
data
from some data object set up in the action classes (we are using
attributes
in the session object for now).  We also have extended ActionMapping to
allow us to specify the XSL stylesheet in the struts configuration file.
You are right about the use of tag libraries - that is one aspect of
struts
that you potentially lose out on using the above approach.
Regards,
John


 -Original Message-
 From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]]
 Sent: 10 July 2001 17:24
 To:   Apache Struts (E-mail)
 Subject:  XML/XSL/Struts Architecture
 
 Hi,
 
 In our application, we are using XML/XSL to generate JSP and plan to
use
 Struts for submitting data from HTML forms. Has anyone used / know 
 if this architecture works. my thinking is ( correct me if wrong ) ,
we
 will not be able to use tag libraries coz of XML/XSL combination for
 generating pages. unique thing about this application is structure of
 HTML is different for each client.
 
 Thanks
 Mahesh 
  
 



Re: .Re: SV: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Chuck Amadi


Hi again thus if im reading it right ditch my current path and set just
the ant.jar and leave jaxp  parser.jar in the lib of ant's dir.
set classpath=ANT_HOME=C:\jakarta-ant-1.3\bin\ant.jar
set JAVA_HOME=C:\jdk1.3
Is the above ok if not pls post your classpath set up.
Cheers Chuck
suhas wrote:
Hi , Cheers Chuck
 Only ant.jar should be in the classpath .
The system not required to
boot up .
Also keep jaxp.jar and parser.jar in the lib directory in the classpath
set bin directory in the path
Before doing all this set classpath and path to null
Suhas
- Original Message -
From: Chuck Amadi [EMAIL PROTECTED]>
To: [EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 2:00 PM
Subject: Re: SV: just d/l  installed ANT'S need some guidance!!
Hi, as follows i have rebooted as usually, included the
%PATH%;%ANT_HOME% thus invoking ant.jar and any other jar's within
the
bin, and from ms-dos command line entered ant .
Cheers Chuck
Mikkel Bruun wrote:
please post the exception so we can look into it...
Mikkel
-Oprindelig meddelelse-
Fra: Chuck Amadi [ mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]>
]
Sendt: 11 July 2001 14:43
Til: [EMAIL PROTECTED]
Emne: Re: just d/l  installed ANT'S need some guidance!!
Hi, tried that and just ant from the ms-dos command line and got
Exception in Thread - I assume that i have a classpath issue regarding
multithreading .
Any Suggestions Cheers Chuck
suhas wrote:
> Part 1.1 Type: Plain Text (text/plain)
>
Encoding: quoted-printable
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal  rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.



RE: XML/XSL/Struts Architecture

2001-07-11 Thread Greg Reddin

Using XSL, you can recreate the majority of what the taglibs do.  However, that
begs the question of why you would use XSL in the first place.  I've worked on a
Struts-based XSL project for about 6 months now, and we've had to recreate so
much of the Struts functionality in our architecture that we find ourselves
always asking why we're doing this.  Our data comes from the backend in XML, so
it seemed logical to leave it in XML and use the parsers to access it.  But the
parsers (Xalan/Xerces) turn out to be a lot of overhead and got in our way quite
a bit.  I'd like to go back and convert it to JSP.

-Original Message-
From: [EMAIL PROTECTED] at INTERNET
Sent: Wed 7/11/2001 3:41 AM
To: Reddin, Greg; [EMAIL PROTECTED] at INTERNET
Cc:
Subject: RE: XML/XSL/Struts Architecture



Hi Mahesh,
We have started using Struts for an application that uses XSP/XML/XSL (using
Cocoon).  Instead of specifying a  JSP page in the struts configuration file
we specify a XSP page.  This server page is responsible for getting XML data
from some data object set up in the action classes (we are using attributes
in the session object for now).  We also have extended ActionMapping to
allow us to specify the XSL stylesheet in the struts configuration file.
You are right about the use of tag libraries - that is one aspect of struts
that you potentially lose out on using the above approach.
Regards,
John


 -Original Message-
 From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]]
 Sent: 10 July 2001 17:24
 To: Apache Struts (E-mail)
 Subject: XML/XSL/Struts Architecture

 Hi,

 In our application, we are using XML/XSL to generate JSP and plan to use
 Struts for submitting data from HTML forms. Has anyone used / know
 if this architecture works. my thinking is ( correct me if wrong ) , we
 will not be able to use tag libraries coz of XML/XSL combination for
 generating pages. unique thing about this application is structure of
 HTML is different for each client.

 Thanks
 Mahesh





Re: like editRegistration in struts-example

2001-07-11 Thread suhas

The editRegistration has a form associated with it .Enter all the fields
and submit
So in case of  validation errors  your Action Form  is kept in the request
scope in the action class  and the Action form is removed from the session
scope . If no validation errors present then it will be in session  scope as
mentioned in the struts.config.xml file .

So whenever u click on the link called - edit registration then the link
page points to  /editRegistration.do  which again checks for that
ActionForm . This is in session scope so in Jsp file all fields are
populated from this form

Suhas



- Original Message -
From: Stefan Faist [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 1:25 PM
Subject: like editRegistration in struts-example


 Hi,
 I want to do the same like the struts-example do when you click on Edit
 your user registration profile Then the field Username, Fullname, From
 Adress already filled out. How does this work?

 I have a xxAction like the EditRegistrationAction. There the regform is
 filled with the user data.
 I do the same, but the perform method from this action will not called.
And
 so the data can't set to the fields.
 What is the error?

 Stefan.

 --
 hmi-Informatik GmbH
 Zettachring 6 - D-70567 Stuttgart
 E-Mail: [EMAIL PROTECTED]
 http://www.hmi-informatik.de




Re: SV: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Chuck Amadi

I have since removed the TOMCAT_HOME path that resulted the fact that my
classpath is directing towards the tool.jar.

I haven't got a tool.jar in the ant dir.
Cheers Chuck.


Peter Alfors wrote:

 print out your classpath and see which ant.jar is being used.

 Pete

 Chuck Amadi wrote:

  Oops forgot to mention that i am running Netbeans v 3.2.2 wereby ant's is
  apparently alreay bundled nevertheless i would like a standalone , as the
  ant 1.3 download is the current realease.
  Anyway would this cause any problems .
  Cheers Chuck
 
  Mikkel Bruun wrote:
 
   please post the exception so we can look into it...
  
   Mikkel
  
   -Oprindelig meddelelse-
   Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]]
   Sendt: 11 July 2001 14:43
   Til: [EMAIL PROTECTED]
   Emne: Re: just d/l  installed ANT'S need some guidance!!
  
   Hi, tried that and just ant from the ms-dos command line and got
   Exception in Thread - I assume that i have a classpath issue regarding
   multithreading .
   Any Suggestions Cheers Chuck
  
   suhas wrote:
  
   Part 1.1Type: Plain Text (text/plain)
   Encoding: quoted-printable
  
   --
   The views expressed by the sender of this message don't
   necessarily represent those of Brecon Beacons National Park
   Authority. This message is intended for the addressee(s) only
   and is sent in confidence; if you receive it in error, please can you
   let us know (at [EMAIL PROTECTED]) and then destroy all copies.
   Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
   adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
   Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
   yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
   mewn camgymeriad, a fyddech gystal  rhoi gwybod i
   ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.
 
  --
  The views expressed by the sender of this message don't
  necessarily represent those of Brecon Beacons National Park
  Authority. This message is intended for the addressee(s) only
  and is sent in confidence; if you receive it in error, please can you
  let us know (at [EMAIL PROTECTED]) and then destroy all copies.
  Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
  adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
  Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
  yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
  mewn camgymeriad, a fyddech gystal  rhoi gwybod i
  ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.


 classjar.doc


Re: Report to Recipient(s)

2001-07-11 Thread Matt Raible

It's cause I typed in what is banned - it's the letter x three times in a
row!

- Original Message -
From: Mikkel Bruun [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 7:46 AM
Subject: VS: Report to Recipient(s)


 your email got blocked!!!

 lately we have been recieving many of these messagesdo you know what
has
 happened???

 -Oprindelig meddelelse-
 Fra: Paladin [mailto:[EMAIL PROTECTED]]
 Sendt: 11 July 2001 15:40
 Til: [EMAIL PROTECTED]
 Emne: Report to Recipient(s)


 Incident Information:-

 Originator:Matt Raible [EMAIL PROTECTED]
 Recipients:[EMAIL PROTECTED]
 Subject:  Re: Quarantine?

 Message from Matt Raible [EMAIL PROTECTED] was quarantined because
it
 contained banned content.


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: Image uploads

2001-07-11 Thread Levi Cook

Try one of these:

String filename= picture.gif;
Image offScreenImage= Toolkit.getDefaultToolkit().getImage(filename);

URL imgUrl= new URL(http://www.yoururl.net/picture.gif;);
Image offScreenImage= Toolkit.getDefaultToolkit().getImage(imgUrl);

HTH,
Levi

- Original Message -
From: Matthias Bauer [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Tuesday, July 10, 2001 3:56 AM
Subject: Image uploads


 Hi there,

 I know the question is a little offtopic, but maybe somebody can provide a
quick
 answer anyway.

 I want to upload an image file with struts (this works well already). But
before
 storing the image in the database I want to check the width and height and
the
 type of the image (e. g. gif or jpg). Does anybody have an idea how I can
easily
 do this in Java?

 Thanks,

 --- Matthias






RE: XML/XSL/Struts Architecture

2001-07-11 Thread O'Reilly John

Our initial idea is to store XML representing the error message in the
request context.  The XSP page (we actually have a single template XSP page
which aggregates different streams of XML information e.g. menu, content,
and error messages etc) reads this XML and it is then up to the XSL to
display (if it exists) this error information as it sees fit.


 -Original Message-
 From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]]
 Sent: 11 July 2001 15:11
 To:   [EMAIL PROTECTED]
 Subject:  RE: XML/XSL/Struts Architecture
 
 Thanks John,
 
 How you do go about doing error checking with XML. so you use pattern
 method mechanism as per article form javaworld 
 Strut your stuff with JSP tags or some other mechanism 
 
 All suggestions are welcome
 
 Thanks
 Mahesh 
   
 
 -Original Message-
 From: O'Reilly John [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 11, 2001 4:42 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: XML/XSL/Struts Architecture
 
 
 Hi Mahesh,
 We have started using Struts for an application that uses XSP/XML/XSL
 (using
 Cocoon).  Instead of specifying a  JSP page in the struts configuration
 file
 we specify a XSP page.  This server page is responsible for getting XML
 data
 from some data object set up in the action classes (we are using
 attributes
 in the session object for now).  We also have extended ActionMapping to
 allow us to specify the XSL stylesheet in the struts configuration file.
 You are right about the use of tag libraries - that is one aspect of
 struts
 that you potentially lose out on using the above approach.
 Regards,
 John
 
 
  -Original Message-
  From:   Mahesh Bhagia [SMTP:[EMAIL PROTECTED]]
  Sent:   10 July 2001 17:24
  To: Apache Struts (E-mail)
  Subject:XML/XSL/Struts Architecture
  
  Hi,
  
  In our application, we are using XML/XSL to generate JSP and plan to
 use
  Struts for submitting data from HTML forms. Has anyone used / know 
  if this architecture works. my thinking is ( correct me if wrong ) ,
 we
  will not be able to use tag libraries coz of XML/XSL combination for
  generating pages. unique thing about this application is structure of
  HTML is different for each client.
  
  Thanks
  Mahesh 
   
  



RE: XML/XSL/Struts Architecture

2001-07-11 Thread Meeraj Kunnumpurath

I have rewritten the Struts HTML tags to use an XML nodes as the data model
instead of bean instances. 

Regards

Meeraj/ 

-Original Message-
From: Mahesh Bhagia [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 3:11 PM
To: [EMAIL PROTECTED]
Subject: RE: XML/XSL/Struts Architecture


Thanks John,

How you do go about doing error checking with XML. so you use pattern
method mechanism as per article form javaworld 
Strut your stuff with JSP tags or some other mechanism 

All suggestions are welcome

Thanks
Mahesh 
  

-Original Message-
From: O'Reilly John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 4:42 AM
To: '[EMAIL PROTECTED]'
Subject: RE: XML/XSL/Struts Architecture


Hi Mahesh,
We have started using Struts for an application that uses XSP/XML/XSL
(using
Cocoon).  Instead of specifying a  JSP page in the struts configuration
file
we specify a XSP page.  This server page is responsible for getting XML
data
from some data object set up in the action classes (we are using
attributes
in the session object for now).  We also have extended ActionMapping to
allow us to specify the XSL stylesheet in the struts configuration file.
You are right about the use of tag libraries - that is one aspect of
struts
that you potentially lose out on using the above approach.
Regards,
John


 -Original Message-
 From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]]
 Sent: 10 July 2001 17:24
 To:   Apache Struts (E-mail)
 Subject:  XML/XSL/Struts Architecture
 
 Hi,
 
 In our application, we are using XML/XSL to generate JSP and plan to
use
 Struts for submitting data from HTML forms. Has anyone used / know 
 if this architecture works. my thinking is ( correct me if wrong ) ,
we
 will not be able to use tag libraries coz of XML/XSL combination for
 generating pages. unique thing about this application is structure of
 HTML is different for each client.
 
 Thanks
 Mahesh 
  
 



Updation using iterate tag

2001-07-11 Thread Sandeep_Yawale/LNTINFOTECH

Hi All,

I have one form bean namely MyFormBean.
This bean contain vector (pricesVector) of class type Price.

The class Price has two attribute oldPrice and newPrice

I want to display prices vector in such fashion

-
oldprice1 (as label)  newPrice1 (in text box)
oldprice2 (as label)  newPrice2 (in text box)
oldprice2 (as label)  newPrice2 (in text box)
-

How do I do this using iterate tag, so that any updation in text box should
get updated in the vector (prices)?
I tried using iterate tag but could not get through?

Anybody having solution for this.

best regards,
Sandeep






Re: SV: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Peter Alfors

I would look at the ant.bat file and see how it is attempting to pick up the
ant.jar file.
There should be something like:

for %%i in (%ANT_HOME%\lib\*.jar) do call %ANT_HOME%\bin\lcp.bat %%i

that will attempt to grab all of the jars in the ant/lib directory.
Check which environment variable it is appending them to. (Ant 1.2 uses
LOCALCLASSPATH)
Maybe add an echo to show the contents of the variable and make sure that you are
getting the ant.jar file??



Chuck Amadi wrote:

 Is this ok

 Peter Alfors wrote:

  print out your classpath and see which ant.jar is being used.
 
  Pete
 
  Chuck Amadi wrote:
 
   Oops forgot to mention that i am running Netbeans v 3.2.2 wereby ant's is
   apparently alreay bundled nevertheless i would like a standalone , as the
   ant 1.3 download is the current realease.
   Anyway would this cause any problems .
   Cheers Chuck
  
   Mikkel Bruun wrote:
  
please post the exception so we can look into it...
   
Mikkel
   
-Oprindelig meddelelse-
Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]]
Sendt: 11 July 2001 14:43
Til: [EMAIL PROTECTED]
Emne: Re: just d/l  installed ANT'S need some guidance!!
   
Hi, tried that and just ant from the ms-dos command line and got
Exception in Thread - I assume that i have a classpath issue regarding
multithreading .
Any Suggestions Cheers Chuck
   
suhas wrote:
   
Part 1.1Type: Plain Text (text/plain)
Encoding: quoted-printable
   
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal  rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.
  
   --
   The views expressed by the sender of this message don't
   necessarily represent those of Brecon Beacons National Park
   Authority. This message is intended for the addressee(s) only
   and is sent in confidence; if you receive it in error, please can you
   let us know (at [EMAIL PROTECTED]) and then destroy all copies.
   Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
   adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
   Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
   yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
   mewn camgymeriad, a fyddech gystal  rhoi gwybod i
   ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.

 --
 The views expressed by the sender of this message don't
 necessarily represent those of Brecon Beacons National Park
 Authority. This message is intended for the addressee(s) only
 and is sent in confidence; if you receive it in error, please can you
 let us know (at [EMAIL PROTECTED]) and then destroy all copies.
 Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
 adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
 Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
 yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
 mewn camgymeriad, a fyddech gystal â rhoi gwybod i
 ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.

   
   Name: classjar.doc
classjar.doc   Type: Microsoft Word Document (application/msword)
   Encoding: base64
Download Status: Not downloaded with message


begin:vcard 
n:;
x-mozilla-html:FALSE
org:BRIMG SRC=http://www.irista.com/images/common/logo_top_right.gif;
adr:;;
version:2.1
end:vcard



offtopic question

2001-07-11 Thread Vilavanh Messien

Hi all,

I am currently building a web application with Struts and I am facing the
following problem.
I am using the CachedRowSet class to retrieve data from my database.
Actually, I have no trouble when I perform a SELECT query. However, when I
perform an UPDATE, DELETE or INSERT query, I get the following error
message: transaction isolation levels not supported.

This exception seems to be thrown only with MS Access and MySql databases.
With Oracle, no exception is thrown and everything seems to work fine ...

That let me suppose that both MS Access and MySql jdbc drivers do not
support yet well the rowset package. Has anyone ever had such experience of
this issue ? or could anyone give me some explanations ?

Thanks in advance,

Vilavanh Messien






RE: Problem getting Struts working with Websphere 3.5.4

2001-07-11 Thread Calabrese, Jason

Thanks, that fixed the problem.  I didn't know where to search the
archive or I would have tried that first.

-Original Message-
From: Ravindran Ramaiah [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 5:59 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem getting Struts working with Websphere 3.5.4



Check this out..
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10964.html

And..
Sure thing - I already sent it but the list refused it due to its file
size.
As an alternative, I'll put it up on my personal FTP space and anyone
who
wants it can download it from there! :) 

Struts.jar with Form tag modifications:
http://www.enfused.com/struts.jar

-Chris

-Original Message-
From: Christine Eckstein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 11:09 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts 1.0 on WebSphere 3.5.4??







-Original Message-
From: Calabrese, Jason [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 7:54 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem getting Struts working with Websphere 3.5.4


I forgot to add the exception, here it is.

Message: Server caught unhandled exception from servlet [action]: Server
caught unhandled exception from servlet [jsp11]: cant remove Attributes
from request scope

Target Servlet: action
StackTrace: 


Root Error-1: cant remove Attributes from request scope

java.lang.IllegalArgumentException: cant remove Attributes from request
scope
at java.lang.RuntimeException.init(RuntimeException.java:49)
at
java.lang.IllegalArgumentException.init(IllegalArgumentException.java:
45)
at
org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImp
l.java:236)
at
org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
at _registration_jsp_0._jspService(_registration_jsp_0.java:959)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServle
t.java:396)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:718)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletMan
ager.java:626)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLife
cycleServlet.java:160)
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleSe
rvlet.java:287)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifec
ycleServlet.java:105)
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.jav
a:360)
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Servle
tManager.java:775)
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletM
anager.java:701)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(WebAppRequestDispatcher.java:478)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReq
uestDispatcher.java:234)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequ
estDispatcher.java:138)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServle
t.java:1758)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletMan
ager.java:626)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLife
cycleServlet.java:160)
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleSe
rvlet.java:287)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifec
ycleServlet.java:105)
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.jav
a:360)
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Servle
tManager.java:775)
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletM
anager.java:701)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(WebAppRequestDispatcher.java:478)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReq
uestDispatcher.java:234)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequ
estDispatcher.java:138)
at

RE: Apache, IIS , html:img tag

2001-07-11 Thread Marcel Andres

hi andy

the following mailings from end of june, will give you at least an answer to the 
question, why the session-id is used in the tag.

marcel




From:   [EMAIL PROTECTED]
Sent:   Freitag, 22. Juni 2001 12:18
To: [EMAIL PROTECTED]
Subject:Re: URL encoding in html:image and html:img tags

DUBOIS Fabrice typed the following on 11:34 AM 6/22/2001 +0200
I don't understand why Struts's html:image and html:img tags encodes GIF's names 
with session's ID ? 

I am using : 
* html:image tag with html:form  
* html:img tag with html:link  
* html:img standalone 
in my JSP's pages. 

For me, it seems to be useless to encode SRC attribute for those two tags since 
html:form and html:link encodes ACTION and PAGE attribute with session's ID.

In the third case (html:img standalone), I really don't understand why session's ID 
is added to image path ??? 

The session ID is encoded into a URL so that, when the URL is loaded
by the client, the servlet engine knows which session the client belongs
to. 

The action encoding of the form is used when the form is submitted.
The URL encoding of the image is used when the image is loaded.
These happen at different times, on different requests, so having the form 
action URL encoded doesn't help the image URL. The same presumably
goes for the link - the image is loaded as a different request from the
one where the user clicks the link, so each needs to have the session
ID encoded separately.

So then the question may be, why does an image URL need to have
the session ID encoded into it - since images are static content, the
server shouldn't care what session it belongs to. The answer is that
not all images are static, some images are generated by servlets,
so struts needs to support encoding the URL.

-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 3:59 PM
To: [EMAIL PROTECTED]
Subject: Apache, IIS , html:img tag


The code html:img src=struts-power.gif alt=Powered by Struts/ gives me
the HTML below.
img src=struts-power.gif;jsessionid=k54f1xn3y1 alt=Powered by Struts

This results in the image not being displayed when I use tomcat with apache
web server 
It is displayed fine when I use tomcat with iis though!

For what reason does it append the sessionid to it?? 
Do you know why it works with iis and not apache?

cheers

Andy


-
To send us encrypted mail, please refer to:
http://www.millionhandshakes.com/emailpolicy/pgp.html

Million Handshakes



PropertyUtils.copyProperties

2001-07-11 Thread Matt Raible



We have the following 
architecture/flow:

components:
List.jsp
EditAction.java
EntityForm.java (contains get/set for action, 
get/set for EntityDO)
EntityDO.java
Detail.jsp
SaveAction.java

A user clicks on a link in List.jsp to view the 
details of an item.
The EditAction servlet creates an EntityDO and puts 
it into the session and the EntityForm.

 
PropertyUtils.setNestedProperty(form, "DO", createdDO);

The Detail.jsp displays the form elements from the 
DO just fine.
The SaveAction servlet is called when the user 
submits changes from the form.
The SaveAction servlet grabs the DO from the 
session and uses the following line to copy elements from the form into the DO 
from the session

 
PropertyUtils.copyProperties(sessionDO,PropertyUtils.getNestedProperty(form,"DO"));

The problem I am having is that I want ONLY the 
elements from the form that are displayed on the screen to be copied into the 
sessionDO - HOWEVER, it is copying ALL DO attributes - and many of them are 
getting set to their default values.

What I would like is that the sessionDO retains all 
values that are not displayed in the form. The weird thing is that some 
values are retained from the session, but some are not - and the form seems to 
be resetting some values.

I hope I am doing something wrong and this can be 
fixed. My workaround in the meantime is to put all DO attributes as hidden 
fields in the form, but this seems like a real pain.

Thanks,

Matt


Re: ant's Classpath just(ANT'S need some guidance!!)

2001-07-11 Thread Chuck Amadi

I have tried that already no joy . Thus must i do away with  set
TOMCAT_HOME as
i assumed that i needed this for the container.
set JAVA_HOME=C:\JDK1.3
set  set classpath=%ANT_HOME%\lib\ant.jar
Again this didn't work .
Thus i try again at home as after i solve this it's time 4 linux
Cheers all.

Peter Alfors wrote:

Part 1.1Type: Plain Text (text/plain)
Encoding: 8bit

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.





unsuscribe me

2001-07-11 Thread Dimar Anez

unsuscribe me

Easy + Automatic = EMATIC
E-commerce enable your web site AND sell your product on ours.  Accept
credit cards with no merchant account.  Free email and hosting.  Do it
all yourself at www.ematic.com.



RE: XML/XSL/Struts Architecture

2001-07-11 Thread Mahesh Bhagia

Hi John,

So you mean that there are 2 XML's respresenting data and other
respresenting error.
(correct me)

Thanks 



-Original Message-
From: O'Reilly John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 10:57 AM
To: '[EMAIL PROTECTED]'
Subject: RE: XML/XSL/Struts Architecture


Our initial idea is to store XML representing the error message in the
request context.  The XSP page (we actually have a single template XSP
page
which aggregates different streams of XML information e.g. menu,
content,
and error messages etc) reads this XML and it is then up to the XSL to
display (if it exists) this error information as it sees fit.


 -Original Message-
 From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]]
 Sent: 11 July 2001 15:11
 To:   [EMAIL PROTECTED]
 Subject:  RE: XML/XSL/Struts Architecture
 
 Thanks John,
 
 How you do go about doing error checking with XML. so you use pattern
 method mechanism as per article form javaworld 
 Strut your stuff with JSP tags or some other mechanism 
 
 All suggestions are welcome
 
 Thanks
 Mahesh 
   
 
 -Original Message-
 From: O'Reilly John [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 11, 2001 4:42 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: XML/XSL/Struts Architecture
 
 
 Hi Mahesh,
 We have started using Struts for an application that uses XSP/XML/XSL
 (using
 Cocoon).  Instead of specifying a  JSP page in the struts
configuration
 file
 we specify a XSP page.  This server page is responsible for getting
XML
 data
 from some data object set up in the action classes (we are using
 attributes
 in the session object for now).  We also have extended ActionMapping
to
 allow us to specify the XSL stylesheet in the struts configuration
file.
 You are right about the use of tag libraries - that is one aspect of
 struts
 that you potentially lose out on using the above approach.
 Regards,
 John
 
 
  -Original Message-
  From:   Mahesh Bhagia [SMTP:[EMAIL PROTECTED]]
  Sent:   10 July 2001 17:24
  To: Apache Struts (E-mail)
  Subject:XML/XSL/Struts Architecture
  
  Hi,
  
  In our application, we are using XML/XSL to generate JSP and plan to
 use
  Struts for submitting data from HTML forms. Has anyone used / know 
  if this architecture works. my thinking is ( correct me if wrong ) ,
 we
  will not be able to use tag libraries coz of XML/XSL combination for
  generating pages. unique thing about this application is structure
of
  HTML is different for each client.
  
  Thanks
  Mahesh 
   
  



RE: XML/XSL/Struts Architecture

2001-07-11 Thread Mahesh Bhagia

Hi Greg,

we are planning to use XSL because structure of HTML forms will differ
on client basis. 


-Original Message-
From: Greg Reddin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 10:16 AM
Subject: RE: XML/XSL/Struts Architecture


Using XSL, you can recreate the majority of what the taglibs do.
However, that
begs the question of why you would use XSL in the first place.  I've
worked on a
Struts-based XSL project for about 6 months now, and we've had to
recreate so
much of the Struts functionality in our architecture that we find
ourselves
always asking why we're doing this.  Our data comes from the backend in
XML, so
it seemed logical to leave it in XML and use the parsers to access it.
But the
parsers (Xalan/Xerces) turn out to be a lot of overhead and got in our
way quite
a bit.  I'd like to go back and convert it to JSP.

-Original Message-
From: [EMAIL PROTECTED] at INTERNET
Sent: Wed 7/11/2001 3:41 AM
To: Reddin, Greg; [EMAIL PROTECTED] at INTERNET
Cc:
Subject: RE: XML/XSL/Struts Architecture



Hi Mahesh,
We have started using Struts for an application that uses XSP/XML/XSL
(using
Cocoon).  Instead of specifying a  JSP page in the struts configuration
file
we specify a XSP page.  This server page is responsible for getting XML
data
from some data object set up in the action classes (we are using
attributes
in the session object for now).  We also have extended ActionMapping to
allow us to specify the XSL stylesheet in the struts configuration file.
You are right about the use of tag libraries - that is one aspect of
struts
that you potentially lose out on using the above approach.
Regards,
John


 -Original Message-
 From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]]
 Sent: 10 July 2001 17:24
 To: Apache Struts (E-mail)
 Subject: XML/XSL/Struts Architecture

 Hi,

 In our application, we are using XML/XSL to generate JSP and plan to
use
 Struts for submitting data from HTML forms. Has anyone used / know
 if this architecture works. my thinking is ( correct me if wrong ) ,
we
 will not be able to use tag libraries coz of XML/XSL combination for
 generating pages. unique thing about this application is structure of
 HTML is different for each client.

 Thanks
 Mahesh





RE: XML/XSL/Struts Architecture

2001-07-11 Thread Matt Raible

Any chance you'd want to share these rewritten tags?


--- Meeraj Kunnumpurath
[EMAIL PROTECTED] wrote:
 I have rewritten the Struts HTML tags to use an XML
 nodes as the data model
 instead of bean instances. 
 
 Regards
 
 Meeraj/ 
 
 -Original Message-
 From: Mahesh Bhagia
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 11, 2001 3:11 PM
 To: [EMAIL PROTECTED]
 Subject: RE: XML/XSL/Struts Architecture
 
 
 Thanks John,
 
 How you do go about doing error checking with XML.
 so you use pattern
 method mechanism as per article form javaworld 
 Strut your stuff with JSP tags or some other
 mechanism 
 
 All suggestions are welcome
 
 Thanks
 Mahesh 
   
 
 -Original Message-
 From: O'Reilly John
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 11, 2001 4:42 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: XML/XSL/Struts Architecture
 
 
 Hi Mahesh,
 We have started using Struts for an application that
 uses XSP/XML/XSL
 (using
 Cocoon).  Instead of specifying a  JSP page in the
 struts configuration
 file
 we specify a XSP page.  This server page is
 responsible for getting XML
 data
 from some data object set up in the action classes
 (we are using
 attributes
 in the session object for now).  We also have
 extended ActionMapping to
 allow us to specify the XSL stylesheet in the struts
 configuration file.
 You are right about the use of tag libraries - that
 is one aspect of
 struts
 that you potentially lose out on using the above
 approach.
 Regards,
 John
 
 
  -Original Message-
  From:   Mahesh Bhagia
 [SMTP:[EMAIL PROTECTED]]
  Sent:   10 July 2001 17:24
  To: Apache Struts (E-mail)
  Subject:XML/XSL/Struts Architecture
  
  Hi,
  
  In our application, we are using XML/XSL to
 generate JSP and plan to
 use
  Struts for submitting data from HTML forms. Has
 anyone used / know 
  if this architecture works. my thinking is (
 correct me if wrong ) ,
 we
  will not be able to use tag libraries coz of
 XML/XSL combination for
  generating pages. unique thing about this
 application is structure of
  HTML is different for each client.
  
  Thanks
  Mahesh 
   
  


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: offtopic question

2001-07-11 Thread Aapo Laakkonen

 message: transaction isolation levels not supported.

 That let me suppose that both MS Access and MySql jdbc drivers do not
 support yet well the rowset package.

I think that access and mysql doesn't support transactions or they do not
support
the isolation level that was requested by your application. ANSI SQL defines
4
isolation levels and if application wants to have let's say committed read
isolation
level and db doesn't support it or doens't support higher isolation levels
(e.g.
repeatable read or serializable) then they need to abort the transaction.
Access is
kind of one man db and it doesn't support transactions I think, but I'm not
sure
about MySQL, but what I can remember is that it doesn't support
transactions.




Re: Updation using iterate tag

2001-07-11 Thread dhay



Hi Sandeep,

Try this:

  logic:iterate id=price name=MyFormBean property=pricesVector
  TR
 TD
bean:write name=price property=oldPrice/
 /TD

 TD 
html:text name=price property=newPrice /
 /TD
  /TR
  /logic:iterate

and have getter/setter for pricesVector in your MyFormBean  and getter/setters
for oldPrice and newPrice in Price object.

Hope that helps,

Dave





Sandeep_Yawale/LNTINFOTECH%lntinfotech.com@interlock.lexmark.com on 07/11/2001
11:08:30 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Updation using iterate tag



Hi All,

I have one form bean namely MyFormBean.
This bean contain vector (pricesVector) of class type Price.

The class Price has two attribute oldPrice and newPrice

I want to display prices vector in such fashion

-
oldprice1 (as label)  newPrice1 (in text box)
oldprice2 (as label)  newPrice2 (in text box)
oldprice2 (as label)  newPrice2 (in text box)
-

How do I do this using iterate tag, so that any updation in text box should
get updated in the vector (prices)?
I tried using iterate tag but could not get through?

Anybody having solution for this.

best regards,
Sandeep












Re: Updation using iterate tag

2001-07-11 Thread Gregor Rayman

[EMAIL PROTECTED] wrote:


 Hi All,
 
 I have one form bean namely MyFormBean.
 This bean contain vector (pricesVector) of class type Price.
 
 The class Price has two attribute oldPrice and newPrice
 
 I want to display prices vector in such fashion
 
 -
 oldprice1 (as label)  newPrice1 (in text box)
 oldprice2 (as label)  newPrice2 (in text box)
 oldprice2 (as label)  newPrice2 (in text box)
 -
 
 How do I do this using iterate tag, so that any updation in text box should
 get updated in the vector (prices)?
 I tried using iterate tag but could not get through?
 
 Anybody having solution for this.

1) You have to have two properties in your ActionForm:

public Collection getPrices();

and

public Price getPrice(int i);

Note: getPrice() should return valid Price even if the Vector does not
contain it. 

it could look something like this:

public Price getPrice(int i) {
while (pricesVector.size() = i) {
pricesVector.add(new Price());
}
return pricesVector.get(i);
}

2)

your iterate tag could look something like this:

logic:iterate 
name=editPricesForm property=prices 
id=element indexId=i
type=Price
  tr
  tdbean:write name=element property=oldPrice //td
  tdhtml:text property='%= price[ + i + ].newPrice %' /
  html:hidden property='%= price[ + i + ].productID %'  /
  /td
  /tr
/logic:iterate


You have to know, that the Vector will be FILLED (not just updated) when the
form is submitted. 

--
gR













Returning to called page after loggin on...

2001-07-11 Thread dhay



Hi everyone.

I am placing a tag on each page to check the user is logged on, which, as
expected, takes them to a login page if they are not.

However, I want to then return them to the page they tried to access before
being asked to log on.  Do I need to save the name of the page somewhere, or is
there an easier way?

Cheers,

Dave






Long Story short

2001-07-11 Thread Frank Ling

Hi, There:

I send a long version story regarding for the Iteration tag with indexed tag
for property update. Not too much people response. Here is the short version
for that story.

I get Dave hay's indexed tag work good with the Iterate tag for showing the
text field of my array attributes. I get attributes[n].value shows properly
on my JSP page. but nothing setting back to attributes array of my form
bean. the whole array is null after I received it on the next action class.

Can anybody explain to me, why I get all these attributes[n].value shows as
the name of HTML text name, then that will automatically populate back to my
array? It's not working that way for me right now. what I did wrong. Any
suggestion will be highly appreciated.

Thanks

Best Regards

Frank Ling




transactional token

2001-07-11 Thread Gogineni, Pratima

Hi,

I find that I would like to include transactional tokens from my jsp page -
I see that there is a transaction=true on the html:link tag but not on the
html:form tag. I am planning to add this on the html:form tag as well.

I just wanted to check with people on this list if there was a
reason/problem why this wasnt done in the implementation of struts itself.
Also is it considered a bad practise to saveTokens from the JSP pages at
request time rather than in an action?

Thanks
Pratima

-Original Message-
From: Gogineni, Pratima 
Sent: Tuesday, July 10, 2001 9:33 PM
To: '[EMAIL PROTECTED]'
Subject: would transactional token help in this case? (could be a
threadin g issue?)


Hi,

I have an application in which I havent used transactional tokens. I have a
text field where I defined a onchange=preprocess() which sets a value and
then submits the form. Heres the behaviour I see:

a. It works 'perfectly' when I change the value and move the focus out of
this text box (it gets submitted). 

b. It works 'alright' (for some reason this takes longer to process than the
above case) when I hit enter in the text field

c. It sometimes throws an error when I do step (a) followed by step (b)
without waiting for the control to return from step (a). The kind of error I
am getting (I would have to explain my program in detail to exactly say what
this error is) leads me to suspect that two threads are trying to
access/change the data in the form bean. 

Has anyone seen this behaviour before or knows if using transactional tokens
would help in this case? (I am suspecting not from what I know of the way
they work ...)

Also note that this form/application worked well when  I did not use onclick
- i.e. using the default behaviour of submitting the value of the text field
when you hit enter ...

Thanks
Pratima

-Original Message-
From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 7:49 AM
To: [EMAIL PROTECTED]
Subject: Error-page in web.xml


I'm hoping someone can help me understand this better. In web.xml, I have
the following entries -
error-page
exception-typejava.lang.Exception/exception-type
location/errorpage.jsp/location
/error-page
   error-page
exception-typejavax.servlet.ServletException/exception-type
location/errorpagesrvlt.jsp/location
/error-page

From my understanding, anytime an Exception, or ServletException occurs in
my application, it will call either errorpage.jsp or errorpagesrvlt.jsp. Is
that correct? Does it matter if the exception occurs in a JSP or a servlet?

This seems to work in Tomcat, but with SilverStream, I don't get taken to
the error page, but get the SilverStream generate error message.

In my errorpage.jsp I have -

%@ page language=Java isErrorPage=true%


is that right?

Thanks for any insite, this is driving me crazy.
Ryan



Re: Standard JSP Tag Library (JSPTL): Early Access

2001-07-11 Thread dhay



Caught by the second paragraph of link

The JSPTL requires a servlet container that supports the proposed Java Servlet
2.3 and
JavaServer Pages 1.2 specification. The Jakarta Project Tomcat 4 servlet
container
supports the new proposed specification and can be used for testing the JSPTL

Anyone know if this mean they won't work with tomcat 3.3?!!!

Dave





Shawn Bayern [EMAIL PROTECTED] on 07/11/2001
12:00:15 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED],
  [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Standard JSP Tag Library (JSPTL):  Early Access



Taglibs and Struts users,

Hi there.  As some of you might have heard, the JSR-052 group, operating
under the Java Community Process, has been engaged in an effort to develop
a standard JSP Tag Library (JSPTL).  Our work has drawn from the
experience of groups like Struts and Jakarta-Taglibs, and continuing
feedback and opinions from these groups will be extremely valuable as we
progress toward a final standard.

The JSPTL specification is not yet finished, but the group has opted to
use an Early Access (EA) program to get our work out to the community as
quickly as possible.  We have a reference implementation (RI) that
implements the core functionality we've discussed so far:  iteration,
conditional logic, and a framework in support of expression languages to
help reduce (or eliminate!) the need for Java scripting logic inside JSP
pages.

The first Early Access release of JSPTL went public today on the
Jakarta-Taglibs site.  For more information, go to

   http://jakarta.apache.org/taglibs/doc/jsptl-doc/intro.html

from which you can browse the current JSPTL documentation and download the
source for the RI.  As part of the distribution, we provide an 'examples'
application that demonstrates how the current version of JSPTL tags can be
used.

For comments on JSPTL-related issues, you can use the Jakarta-Taglibs
lists ([EMAIL PROTECTED] and [EMAIL PROTECTED])
as appropriate.  If, for any reason, you wish to contact the JSR-052 group
privately, you can mail [EMAIL PROTECTED]

Again, all comments -- particularly from Taglibs and Struts users! -- will
be greatly appreciated.  Many thanks,

Shawn Bayern
(JSPTL reference-implementation lead)

[ PS - Apologies for the crosspost, but I think there are a lot of
  people who aren't part of the intersection of these two groups. ]










RE: transactional token

2001-07-11 Thread Gogineni, Pratima

clearly - I dotn understand the transaction tokens very well ...

I just looked at the html:form tag and it seems they are adding the token in
there if one is present in the session? Why is this behaviour as opposed to
what is done in the html:link tag? so to use a transactional token with a
form I have to set one in the session?

thanks
Pratima

-Original Message-
From: Gogineni, Pratima 
Sent: Wednesday, July 11, 2001 10:22 AM
To: '[EMAIL PROTECTED]'
Subject: transactional token


Hi,

I find that I would like to include transactional tokens from my jsp page -
I see that there is a transaction=true on the html:link tag but not on the
html:form tag. I am planning to add this on the html:form tag as well.

I just wanted to check with people on this list if there was a
reason/problem why this wasnt done in the implementation of struts itself.
Also is it considered a bad practise to saveTokens from the JSP pages at
request time rather than in an action?

Thanks
Pratima

-Original Message-
From: Gogineni, Pratima 
Sent: Tuesday, July 10, 2001 9:33 PM
To: '[EMAIL PROTECTED]'
Subject: would transactional token help in this case? (could be a
threadin g issue?)


Hi,

I have an application in which I havent used transactional tokens. I have a
text field where I defined a onchange=preprocess() which sets a value and
then submits the form. Heres the behaviour I see:

a. It works 'perfectly' when I change the value and move the focus out of
this text box (it gets submitted). 

b. It works 'alright' (for some reason this takes longer to process than the
above case) when I hit enter in the text field

c. It sometimes throws an error when I do step (a) followed by step (b)
without waiting for the control to return from step (a). The kind of error I
am getting (I would have to explain my program in detail to exactly say what
this error is) leads me to suspect that two threads are trying to
access/change the data in the form bean. 

Has anyone seen this behaviour before or knows if using transactional tokens
would help in this case? (I am suspecting not from what I know of the way
they work ...)

Also note that this form/application worked well when  I did not use onclick
- i.e. using the default behaviour of submitting the value of the text field
when you hit enter ...

Thanks
Pratima

-Original Message-
From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 7:49 AM
To: [EMAIL PROTECTED]
Subject: Error-page in web.xml


I'm hoping someone can help me understand this better. In web.xml, I have
the following entries -
error-page
exception-typejava.lang.Exception/exception-type
location/errorpage.jsp/location
/error-page
   error-page
exception-typejavax.servlet.ServletException/exception-type
location/errorpagesrvlt.jsp/location
/error-page

From my understanding, anytime an Exception, or ServletException occurs in
my application, it will call either errorpage.jsp or errorpagesrvlt.jsp. Is
that correct? Does it matter if the exception occurs in a JSP or a servlet?

This seems to work in Tomcat, but with SilverStream, I don't get taken to
the error page, but get the SilverStream generate error message.

In my errorpage.jsp I have -

%@ page language=Java isErrorPage=true%


is that right?

Thanks for any insite, this is driving me crazy.
Ryan



Re: offtopic question

2001-07-11 Thread David Winterfeldt

I don't think MS Access and MySql support the
transaction levels that a CachedRowSet needs.  I know
that MS Access can't support EJBs for this reason.

David

--- Vilavanh Messien
[EMAIL PROTECTED] wrote:
 Hi all,
 
 I am currently building a web application with
 Struts and I am facing the
 following problem.
 I am using the CachedRowSet class to retrieve data
 from my database.
 Actually, I have no trouble when I perform a SELECT
 query. However, when I
 perform an UPDATE, DELETE or INSERT query, I get the
 following error
 message: transaction isolation levels not supported.
 
 This exception seems to be thrown only with MS
 Access and MySql databases.
 With Oracle, no exception is thrown and everything
 seems to work fine ...
 
 That let me suppose that both MS Access and MySql
 jdbc drivers do not
 support yet well the rowset package. Has anyone ever
 had such experience of
 this issue ? or could anyone give me some
 explanations ?
 
 Thanks in advance,
 
 Vilavanh Messien
 
 
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: null pointer error

2001-07-11 Thread Nick Chalko



This 
turned out to be a IBM WTE bug. 

The 
trick is all web apps must use JSP 1.1
Thanks 
to Amit for the answer.
- Here is what Amit said 
--
Yes I did find a workaround the problem. The believe 
this is a bug is in the servlet engine.
You need to change the webapp config file for ALL 
the webapps in your system to use jsp 1.1
compiler. Just changing the 
default_app.webapp to jsp 1.1 is not enough.VAJ seems to 
get
confused if it encounters any webapp config file 
which does not specify jsp 1.1 compiler. Its either
all or nothing. 

Please refer to the following email exchange I had 
with another person who inquired about the same problem.

Hope it helps.

Good luck,

Amit

---
Thank you! It works now! That's a bad 
bug. I was working in a customwebapp, but I guess you need to change 
all of the webapps to 1.1. Thanks 
again,Roger-Original Message-From: Amit Verma [mailto:[EMAIL PROTECTED]]Sent: 
Wednesday, June 27, 2001 10:38 AMTo: Endo, RogerSubject: Re: Taglib 
problem with VAJ 3.5.3You might want to check all of your webapp 
files, that is for all thedifferent webapps. In mycase even though 
the default_app.webapp for set properly there was a webappfor another 
appwhich was using JSP 1.0 which confused the servlet engine. I 
changed all mywebapps to useJSP1.1 which fixed the 
problem.Amit- Original Message -From: Endo, 
Roger [EMAIL PROTECTED]To: 'Amit 
Verma' [EMAIL PROTECTED]Sent: 
Wednesday, June 27, 2001 1:14 PMSubject: RE: Taglib problem with VAJ 
3.5.3 Thank you for you quick reply. Unfortunately I am 
already running JSP1.1. Taglibs work except for ones which implement 
BodyTag, where I get the null "out" stream. 
Thanks, Roger -Original Message- From: 
Amit Verma [mailto:[EMAIL PROTECTED]] Sent: 
Wednesday, June 27, 2001 10:09 AM To: Endo, Roger Subject: Re: 
Taglib problem with VAJ 3.5.3 Yes Roger, I did find 
solution to the problem. The problem stemmed from choice of JSP 
compiler specified in the webapp config file. Make sure you edit 
the default_app.webapp file to use jsp1.1 compiler which 
is 
codecom.ibm.ivj.jsp.jasper.runtime.JspDebugServlet/code 
By default IBM uses Jsp1.0 compiler. The default webapp file on 
my computer was under 
F:\IBMVJava3.5\ide\project_resources\IBMWebSphere Test 
Environment\hosts\default_host\default_app\servlets If you have 
multiple web apps then make sure you edit each one of thewebapp 
config file to specify JSP 1.1 compiler. You will obviously have to 
restart the servlet engine. And it shouldwork. Hope it 
helps. Good luck, Amit - 
Original Message - From: Endo, Roger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 
Wednesday, June 27, 2001 12:44 PM Subject: Re: Taglib problem with VAJ 
3.5.3  Hello - I saw your posting regarding the 
taglib with BodyTag problem in VAJ  3.5.3. I have the 
same problem. Did you find a solution?   
Thanks,  Roger

  - Original Message - 
  From: 
  Nick Chalko 

  To: '[EMAIL PROTECTED]' 
  Sent: Tuesday, July 10, 2001 9:19 
PM
  Subject: re:having problem with using tag 
  libraries with a body under VAJ
  
  Did you ever find 
  a fix for this problem.
  
  I'm having problem 
  with using tag libraries with a body under VAJ3.5.3 and 
  WTE. The tag library does not work when there is body. 
  Itthrows a NullPointerException from the jsp generated servlet code. 
  The specific line of code where the problem occurs isout = 
  pageContext.pushBody();The JspWriter, out is returned as null. Subsequent 
  call to out.printfails with a null pointer exception. 
  Has anybody encountered thisproblem? Keep in mind that the problem 
  only occurs using taglibraries with a body (i.e. your tag class extends 
  BodyTagSupport).

  


Re: Report to Recipient(s)

2001-07-11 Thread Joey Gibson

On Wed, 11 Jul 2001 08:51:32 -0600, Matt Raible
[EMAIL PROTECTED] wrote:

||| It's cause I typed in what is banned - it's the letter x three times in a
||| row!

You've got to love those simplistic internet filters!

Joey

-- Sun Certified Java2 Programmer
-- Political Rants: www.joeygibson.com
-- My Pocket Smalltalk Stuff: www.joeygibson.com/st
--
-- We thought about killin' him, but we kinda 
--  hated to go that far




RE: transactional token

2001-07-11 Thread Gogineni, Pratima

I looked at the saveToken() in the action class -its just saving it in the
session. So I guess that makes sense. 

Sorry for dashing off the previous mail without completely looking at the
code.

Thansk
Pratima
-Original Message-
From: Gogineni, Pratima 
Sent: Wednesday, July 11, 2001 10:30 AM
To: Gogineni, Pratima; '[EMAIL PROTECTED]'
Subject: RE: transactional token


clearly - I dotn understand the transaction tokens very well ...

I just looked at the html:form tag and it seems they are adding the token in
there if one is present in the session? Why is this behaviour as opposed to
what is done in the html:link tag? so to use a transactional token with a
form I have to set one in the session?

thanks
Pratima

-Original Message-
From: Gogineni, Pratima 
Sent: Wednesday, July 11, 2001 10:22 AM
To: '[EMAIL PROTECTED]'
Subject: transactional token


Hi,

I find that I would like to include transactional tokens from my jsp page -
I see that there is a transaction=true on the html:link tag but not on the
html:form tag. I am planning to add this on the html:form tag as well.

I just wanted to check with people on this list if there was a
reason/problem why this wasnt done in the implementation of struts itself.
Also is it considered a bad practise to saveTokens from the JSP pages at
request time rather than in an action?

Thanks
Pratima

-Original Message-
From: Gogineni, Pratima 
Sent: Tuesday, July 10, 2001 9:33 PM
To: '[EMAIL PROTECTED]'
Subject: would transactional token help in this case? (could be a
threadin g issue?)


Hi,

I have an application in which I havent used transactional tokens. I have a
text field where I defined a onchange=preprocess() which sets a value and
then submits the form. Heres the behaviour I see:

a. It works 'perfectly' when I change the value and move the focus out of
this text box (it gets submitted). 

b. It works 'alright' (for some reason this takes longer to process than the
above case) when I hit enter in the text field

c. It sometimes throws an error when I do step (a) followed by step (b)
without waiting for the control to return from step (a). The kind of error I
am getting (I would have to explain my program in detail to exactly say what
this error is) leads me to suspect that two threads are trying to
access/change the data in the form bean. 

Has anyone seen this behaviour before or knows if using transactional tokens
would help in this case? (I am suspecting not from what I know of the way
they work ...)

Also note that this form/application worked well when  I did not use onclick
- i.e. using the default behaviour of submitting the value of the text field
when you hit enter ...

Thanks
Pratima

-Original Message-
From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 7:49 AM
To: [EMAIL PROTECTED]
Subject: Error-page in web.xml


I'm hoping someone can help me understand this better. In web.xml, I have
the following entries -
error-page
exception-typejava.lang.Exception/exception-type
location/errorpage.jsp/location
/error-page
   error-page
exception-typejavax.servlet.ServletException/exception-type
location/errorpagesrvlt.jsp/location
/error-page

From my understanding, anytime an Exception, or ServletException occurs in
my application, it will call either errorpage.jsp or errorpagesrvlt.jsp. Is
that correct? Does it matter if the exception occurs in a JSP or a servlet?

This seems to work in Tomcat, but with SilverStream, I don't get taken to
the error page, but get the SilverStream generate error message.

In my errorpage.jsp I have -

%@ page language=Java isErrorPage=true%


is that right?

Thanks for any insite, this is driving me crazy.
Ryan



Re: unsuscribe me

2001-07-11 Thread Wayland Chan


--- Dimar Anez [EMAIL PROTECTED] wrote:
 unsuscribe me
 
 Easy + Automatic = EMATIC
 E-commerce enable your web site AND sell your
 product on ours.  Accept
 credit cards with no merchant account.  Free email
 and hosting.  Do it
 all yourself at www.ematic.com.

ezlm program = MAILING LIST SOFTWARE
maintain a mailing list for all your users. Process
administrivia requests such as subscribe and
UNSUBSCRIBE. Unsubscribe yourself without bugging
the list. Do it all yourself by mailing

[EMAIL PROTECTED]



__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Session Form Reset?

2001-07-11 Thread DHarty

Why does the servlet call the reset method of an action form even when it's
been put in the session scope?

It doesn't do much good if my session bean is reset to null after every
request!

D




Re: Updation using iterate tag

2001-07-11 Thread Gregor Rayman

[EMAIL PROTECTED] wrote:


 Hi Sandeep,

 Try this:

   logic:iterate id=price name=MyFormBean property=pricesVector
   TR
  TD
 bean:write name=price property=oldPrice/
  /TD

  TD 
 html:text name=price property=newPrice /
  /TD
   /TR
   /logic:iterate

 and have getter/setter for pricesVector in your MyFormBean  and
getter/setters
 for oldPrice and newPrice in Price object.

 Hope that helps,

 Dave


This cannot work. The displayed prices will be OK, but the update cannot
work. The generated paramter will ba called newPrice and the form
does not have such property.

--
gR




struts-config.xml

2001-07-11 Thread gdelgado

On the struts-config.xml file:
1)Can someone give me a description of the use of the 'input' attribute
under an action tag.

2)How can I handle the fact that the input may come from two different JPSs
(either one or the other).




Orion, Struts, and ClassLoader problem

2001-07-11 Thread SRadford

All,


Has anyone managed to resolve this issue? I've found many references to it
on both Struts and Orion mailing lists, with reference to loading resources
and classes.

Had a play myself with Struts, loading up the classes using different class
loader but to no avail.

It appears that the problem of loading classes ocurrs when a class is in
one jar file and it's parent class (super class) is in another jar (both
located in web-inf/lib of course).


I've re-opened bug number 389 in Orion's BugZilla (it was nice of them to
mark it as resolved). Feel free to vote for it, though it won't let me.


In the meantime, it looks like dumping all my jars (for ALL my apps) into
${orion.home}\lib
!

(why won't companies be happy with open source containers like JBoss)



Regards,


Sean

--
Dr Sean Radford, MBBS, MSc
Senior Consultant
Agora Professional Services Ltd
[EMAIL PROTECTED]
http://www.agora.co.uk
--
Agora Professional Services is an entrepreneurial consulting firm
specialising in e-Business and innovative solutions since 1995.




java.lang.NullPointerException at java.util.Hashtable.put

2001-07-11 Thread Matt Raible



I have installed SP3 for iPlanet Application 
Server, and when I try to view a struts form on my jsp page, I get the following 
error:

java.lang.NullPointerException 
at 
java.util.Hashtable.put(Hashtable.java:381) 
at 
com.netscape.server.servlet.platformhttp.PlatformHttpServletRequest.setAttribute(Unknown 
Source) at 
com.netscape.jsp.PageContextImpl.removeAttribute(Unknown 
Source) at 
org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591) 
at 
jsp.APPS.timetracker.us.co.douglas.application.timetracker.presentation.workProfileList._jspService(workP 
at 
jsp.APPS.timetracker.us.co.douglas.application.timetracker.presentation.workProfileList.service(workProfi 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:865) 
at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown 
Source) at 
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown 
Source) at 
com.kivasoft.applogic.AppLogic.execute(Unknown 
Source) at 
com.kivasoft.applogic.AppLogic.execute(Unknown 
Source) at 
com.kivasoft.thread.ThreadBasic.run(Native 
Method) at 
java.lang.Thread.run(Thread.java:479)

Does anyone know if this is a Struts bug or an 
iPlanet container bug?

Thanks,

Matt


RE: transactional token

2001-07-11 Thread Trieu, Danny

does anyone know where to find out how to use transactional token in struts?

Thanks,

-Original Message-
From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 10:30 AM
To: Gogineni, Pratima; '[EMAIL PROTECTED]'
Subject: RE: transactional token


clearly - I dotn understand the transaction tokens very well ...

I just looked at the html:form tag and it seems they are adding the token in
there if one is present in the session? Why is this behaviour as opposed to
what is done in the html:link tag? so to use a transactional token with a
form I have to set one in the session?

thanks
Pratima

-Original Message-
From: Gogineni, Pratima 
Sent: Wednesday, July 11, 2001 10:22 AM
To: '[EMAIL PROTECTED]'
Subject: transactional token


Hi,

I find that I would like to include transactional tokens from my jsp page -
I see that there is a transaction=true on the html:link tag but not on the
html:form tag. I am planning to add this on the html:form tag as well.

I just wanted to check with people on this list if there was a
reason/problem why this wasnt done in the implementation of struts itself.
Also is it considered a bad practise to saveTokens from the JSP pages at
request time rather than in an action?

Thanks
Pratima

-Original Message-
From: Gogineni, Pratima 
Sent: Tuesday, July 10, 2001 9:33 PM
To: '[EMAIL PROTECTED]'
Subject: would transactional token help in this case? (could be a
threadin g issue?)


Hi,

I have an application in which I havent used transactional tokens. I have a
text field where I defined a onchange=preprocess() which sets a value and
then submits the form. Heres the behaviour I see:

a. It works 'perfectly' when I change the value and move the focus out of
this text box (it gets submitted). 

b. It works 'alright' (for some reason this takes longer to process than the
above case) when I hit enter in the text field

c. It sometimes throws an error when I do step (a) followed by step (b)
without waiting for the control to return from step (a). The kind of error I
am getting (I would have to explain my program in detail to exactly say what
this error is) leads me to suspect that two threads are trying to
access/change the data in the form bean. 

Has anyone seen this behaviour before or knows if using transactional tokens
would help in this case? (I am suspecting not from what I know of the way
they work ...)

Also note that this form/application worked well when  I did not use onclick
- i.e. using the default behaviour of submitting the value of the text field
when you hit enter ...

Thanks
Pratima

-Original Message-
From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 7:49 AM
To: [EMAIL PROTECTED]
Subject: Error-page in web.xml


I'm hoping someone can help me understand this better. In web.xml, I have
the following entries -
error-page
exception-typejava.lang.Exception/exception-type
location/errorpage.jsp/location
/error-page
   error-page
exception-typejavax.servlet.ServletException/exception-type
location/errorpagesrvlt.jsp/location
/error-page

From my understanding, anytime an Exception, or ServletException occurs in
my application, it will call either errorpage.jsp or errorpagesrvlt.jsp. Is
that correct? Does it matter if the exception occurs in a JSP or a servlet?

This seems to work in Tomcat, but with SilverStream, I don't get taken to
the error page, but get the SilverStream generate error message.

In my errorpage.jsp I have -

%@ page language=Java isErrorPage=true%


is that right?

Thanks for any insite, this is driving me crazy.
Ryan




Re: Long Story short

2001-07-11 Thread dhay



Frank,

Do you have your struts-config set up correctly?  You might check that a new
form is not being created...

Dave

PS  Do you need the indexed naming?  If you don't, you don't need to use the
changed tags...




Frank Ling [EMAIL PROTECTED] on 07/11/2001
01:19:29 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Long Story short



Hi, There:

I send a long version story regarding for the Iteration tag with indexed tag
for property update. Not too much people response. Here is the short version
for that story.

I get Dave hay's indexed tag work good with the Iterate tag for showing the
text field of my array attributes. I get attributes[n].value shows properly
on my JSP page. but nothing setting back to attributes array of my form
bean. the whole array is null after I received it on the next action class.

Can anybody explain to me, why I get all these attributes[n].value shows as
the name of HTML text name, then that will automatically populate back to my
array? It's not working that way for me right now. what I did wrong. Any
suggestion will be highly appreciated.

Thanks

Best Regards

Frank Ling










RE: Returning to called page after loggin on...

2001-07-11 Thread Abraham Kang

Dave,

That is exactly what you would need to do in the tag.  You will need to
store the location under some session key and retrieve this after loggin in.

However.

The web app security mechanism handles protecting your resources, sending
unauthenticated users to the login page, authentication, and redirecting to
the desired page after successful login.  All you have to do is configure
the web.xml.

The only major issue is setting up your app server to use your
authentication mechanism as its security realm.

--Abraham

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 11, 2001 10:19 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Returning to called page after loggin on...




 Hi everyone.

 I am placing a tag on each page to check the user is logged on, which, as
 expected, takes them to a login page if they are not.

 However, I want to then return them to the page they tried to
 access before
 being asked to log on.  Do I need to save the name of the page
 somewhere, or is
 there an easier way?

 Cheers,

 Dave








Re: Updation using iterate tag

2001-07-11 Thread dhay



Whoops - my bad (thanks, Gregor!).  Had some old code which I hadn't fully
tested and copied in...  Was using the indexed names for referencing, and hadn't
thought through the saving stuff!!  Apologies.

Sandeep, you have two options here: use scriptlets, or my changed tags which are
available on Ted's site (http://husted.com/about/struts/indexed-tags.htm) and
should soon (hopefully) be added to the nightly build.

Let me know if you have any problems with it.

Dave




Gregor Rayman [EMAIL PROTECTED] on 07/11/2001 02:32:54
PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Re: Updation using iterate tag



[EMAIL PROTECTED] wrote:


 Hi Sandeep,

 Try this:

   logic:iterate id=price name=MyFormBean property=pricesVector
   TR
  TD
 bean:write name=price property=oldPrice/
  /TD

  TD 
 html:text name=price property=newPrice /
  /TD
   /TR
   /logic:iterate

 and have getter/setter for pricesVector in your MyFormBean  and
getter/setters
 for oldPrice and newPrice in Price object.

 Hope that helps,

 Dave


This cannot work. The displayed prices will be OK, but the update cannot
work. The generated paramter will ba called newPrice and the form
does not have such property.

--
gR










RE: transactional token

2001-07-11 Thread Gogineni, Pratima

I just figured it today. I looked for the documentation too but couldnt find
any.

Looking at the following methods helped me understand it.

a. saveToken(), resetToken(), isTokenValid() methods in Action class
b. computeURL ( computeParameters) mehtod in requestUtil shows how it is
added into the url of a link
c. look at the FormTag.java and LinkTag.java to see how the transactional
token is added

Hope this helps

Pratima




-Original Message-
From: Trieu, Danny [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 1:40 PM
To: '[EMAIL PROTECTED]'
Subject: RE: transactional token


does anyone know where to find out how to use transactional token in struts?

Thanks,

-Original Message-
From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 10:30 AM
To: Gogineni, Pratima; '[EMAIL PROTECTED]'
Subject: RE: transactional token


clearly - I dotn understand the transaction tokens very well ...

I just looked at the html:form tag and it seems they are adding the token in
there if one is present in the session? Why is this behaviour as opposed to
what is done in the html:link tag? so to use a transactional token with a
form I have to set one in the session?

thanks
Pratima

-Original Message-
From: Gogineni, Pratima 
Sent: Wednesday, July 11, 2001 10:22 AM
To: '[EMAIL PROTECTED]'
Subject: transactional token


Hi,

I find that I would like to include transactional tokens from my jsp page -
I see that there is a transaction=true on the html:link tag but not on the
html:form tag. I am planning to add this on the html:form tag as well.

I just wanted to check with people on this list if there was a
reason/problem why this wasnt done in the implementation of struts itself.
Also is it considered a bad practise to saveTokens from the JSP pages at
request time rather than in an action?

Thanks
Pratima

-Original Message-
From: Gogineni, Pratima 
Sent: Tuesday, July 10, 2001 9:33 PM
To: '[EMAIL PROTECTED]'
Subject: would transactional token help in this case? (could be a
threadin g issue?)


Hi,

I have an application in which I havent used transactional tokens. I have a
text field where I defined a onchange=preprocess() which sets a value and
then submits the form. Heres the behaviour I see:

a. It works 'perfectly' when I change the value and move the focus out of
this text box (it gets submitted). 

b. It works 'alright' (for some reason this takes longer to process than the
above case) when I hit enter in the text field

c. It sometimes throws an error when I do step (a) followed by step (b)
without waiting for the control to return from step (a). The kind of error I
am getting (I would have to explain my program in detail to exactly say what
this error is) leads me to suspect that two threads are trying to
access/change the data in the form bean. 

Has anyone seen this behaviour before or knows if using transactional tokens
would help in this case? (I am suspecting not from what I know of the way
they work ...)

Also note that this form/application worked well when  I did not use onclick
- i.e. using the default behaviour of submitting the value of the text field
when you hit enter ...

Thanks
Pratima

-Original Message-
From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 7:49 AM
To: [EMAIL PROTECTED]
Subject: Error-page in web.xml


I'm hoping someone can help me understand this better. In web.xml, I have
the following entries -
error-page
exception-typejava.lang.Exception/exception-type
location/errorpage.jsp/location
/error-page
   error-page
exception-typejavax.servlet.ServletException/exception-type
location/errorpagesrvlt.jsp/location
/error-page

From my understanding, anytime an Exception, or ServletException occurs in
my application, it will call either errorpage.jsp or errorpagesrvlt.jsp. Is
that correct? Does it matter if the exception occurs in a JSP or a servlet?

This seems to work in Tomcat, but with SilverStream, I don't get taken to
the error page, but get the SilverStream generate error message.

In my errorpage.jsp I have -

%@ page language=Java isErrorPage=true%


is that right?

Thanks for any insite, this is driving me crazy.
Ryan



Re: Updation using iterate tag

2001-07-11 Thread Gregor Rayman

[EMAIL PROTECTED] wrote:

 Whoops - my bad (thanks, Gregor!).  Had some old code which I hadn't fully
 tested and copied in...  Was using the indexed names for referencing, and
hadn't
 thought through the saving stuff!!  Apologies.

 Sandeep, you have two options here: use scriptlets, or my changed tags
which are
 available on Ted's site (http://husted.com/about/struts/indexed-tags.htm)
and
 should soon (hopefully) be added to the nightly build.

 Let me know if you have any problems with it.

 Dave

I will certainly test your tags as well :-) Seems much nicer that %=
scriplets %

--
gR







struts and Jrun 3.0

2001-07-11 Thread Rama Krishna



is there any problem with JRun 3.0 and struts. 
cause my development m/c has JRun 3.1 and everything worked fine. when i tried 
to put it on staging with JRun 3.0 

is it like JRun 3.0 doesn't work with struts or 
???


it gives me the 
following error:

javax.servlet.ServletException: 
nulljava.lang.AbstractMethodError	at 
allaire.jrun.jsp.JSPServlet.servletNeedsCreating(JSPServlet.java:312)	at 
allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:188)	at 
allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:168)	at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)	at 
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)	at 
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)	at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1747)	at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1584)	at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:490)	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)	at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)	at 
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)	at 
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)	at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)	at 
allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)	at 
allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)	at 
allaire.jrun.ThreadPool.run(ThreadPool.java:267)	at 
allaire.jrun.WorkerThread.run(WorkerThread.java:74)
thanks,
rama.


Re: Long Story short

2001-07-11 Thread Frank Ling

Hi, Dave:

Thanks for the reply, I did have form-bean define at my struts-config.xml,
in the matter fact, I did get all other form-bean field setting back form
HTML form except this attributes array.

The reason I used the changed indexed tag of html:text for iterate tag, is
recently all the thread on this mailing list regarding for Iterate property
updating all recommend using your changed tag to have text name set like
array items (I.e. attributes[n].value), then sounds like will help to set
this value back to original array on my form bean. I just don't get it how
this will be happen.

I do have all my html:text name set like that way (i.e.
attributes[n].value), but still get nothing setting back to my array, I do
have all the setter method for element of the array.

Do you know how your indexed tag will help on this matters?

Thanks again.

Frank Ling


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 2:22 PM
Subject: Re: Long Story short




 Frank,

 Do you have your struts-config set up correctly?  You might check that a
new
 form is not being created...

 Dave

 PS  Do you need the indexed naming?  If you don't, you don't need to use
the
 changed tags...




 Frank Ling [EMAIL PROTECTED] on 07/11/2001
 01:19:29 PM

 Please respond to [EMAIL PROTECTED]

 To:   [EMAIL PROTECTED]
 cc:(bcc: David Hay/Lex/Lexmark)
 Subject:  Long Story short



 Hi, There:

 I send a long version story regarding for the Iteration tag with indexed
tag
 for property update. Not too much people response. Here is the short
version
 for that story.

 I get Dave hay's indexed tag work good with the Iterate tag for showing
the
 text field of my array attributes. I get attributes[n].value shows
properly
 on my JSP page. but nothing setting back to attributes array of my form
 bean. the whole array is null after I received it on the next action
class.

 Can anybody explain to me, why I get all these attributes[n].value shows
as
 the name of HTML text name, then that will automatically populate back to
my
 array? It's not working that way for me right now. what I did wrong. Any
 suggestion will be highly appreciated.

 Thanks

 Best Regards

 Frank Ling











RE: struts and Jrun 3.0

2001-07-11 Thread Gogineni, Pratima



I got 
this error a couple of times without any reason too. JRUN 3.0 has jsp cacheing 
problems and shutting down the server, deleteing the cached jsp pages and 
restarting solves this problems in most cases. Our sales rep said these problems 
were fixed in 3.1.

If 
your webapp is called testApp it would have created a jsp directory under 
WEB-INF/ just delete all these files and then start the server 
again

  -Original Message-From: Rama Krishna 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 11, 2001 4:02 
  PMTo: [EMAIL PROTECTED]Subject: struts and 
  Jrun 3.0
  is there any problem with JRun 3.0 and struts. 
  cause my development m/c has JRun 3.1 and everything worked fine. when i tried 
  to put it on staging with JRun 3.0 
  
  is it like JRun 3.0 doesn't work with struts or 
  ???
  
  
  it gives me the 
  following error:
  
  javax.servlet.ServletException: 
  nulljava.lang.AbstractMethodErrorat 
  allaire.jrun.jsp.JSPServlet.servletNeedsCreating(JSPServlet.java:312)at 
  allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:188)at 
  allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:168)at 
  allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
  allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
  allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
  org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1747)at 
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1584)at 
  org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:490)at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:865)at 
  allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
  allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
  allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
  allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)at 
  allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)at 
  allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)at 
  allaire.jrun.ThreadPool.run(ThreadPool.java:267)at 
  allaire.jrun.WorkerThread.run(WorkerThread.java:74)
  thanks,
  rama.


Re: struts and Jrun 3.0

2001-07-11 Thread Rama Krishna




you are right. thanks. i did the way you said and 
that error is gone. now the problem is with setLocale(...) which is a known JRun 
problem. 

if i upgrade jrun does it retain the existing 
applications in the current version or should i recreate all 
those???




  - Original Message - 
  From: 
  Gogineni, Pratima 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, July 11, 2001 4:10 
  PM
  Subject: RE: struts and Jrun 3.0
  
  I 
  got this error a couple of times without any reason too. JRUN 3.0 has jsp 
  cacheing problems and shutting down the server, deleteing the cached jsp pages 
  and restarting solves this problems in most cases. Our sales rep said these 
  problems were fixed in 3.1.
  
  If 
  your webapp is called testApp it would have created a jsp directory under 
  WEB-INF/ just delete all these files and then start the server 
  again
  
-Original Message-From: Rama Krishna 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 11, 2001 
4:02 PMTo: [EMAIL PROTECTED]Subject: 
struts and Jrun 3.0
is there any problem with JRun 3.0 and 
struts. cause my development m/c has JRun 3.1 and everything worked fine. 
when i tried to put it on staging with JRun 3.0 

is it like JRun 3.0 doesn't work with struts 
or ???


it gives me the 
following error:

javax.servlet.ServletException: 
nulljava.lang.AbstractMethodErrorat 
allaire.jrun.jsp.JSPServlet.servletNeedsCreating(JSPServlet.java:312)at 
allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:188)at 
allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:168)at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1747)at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1584)at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:490)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)at 
allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)at 
allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)at 
allaire.jrun.ThreadPool.run(ThreadPool.java:267)at 
allaire.jrun.WorkerThread.run(WorkerThread.java:74)
thanks,
rama.


RE: struts and Jrun 3.0

2001-07-11 Thread Matthew O'Haire



Watch 
out with your custom tags TLD's moving from JRun 3.0 to 3.1. It's only a 
minor issue, but in JRun 3.0 the tag properties declared in the TLD 
were not verified against the implementing class (i.e. get/set methods). 
In 3.1 this is now done (as it should), and you can get caught out if your TLD's 
are not up to date!

  -Original Message-From: Gogineni, Pratima 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 12, 2001 
  09:10To: '[EMAIL PROTECTED]'Subject: RE: 
  struts and Jrun 3.0
  I 
  got this error a couple of times without any reason too. JRUN 3.0 has jsp 
  cacheing problems and shutting down the server, deleteing the cached jsp pages 
  and restarting solves this problems in most cases. Our sales rep said these 
  problems were fixed in 3.1.
  
  If 
  your webapp is called testApp it would have created a jsp directory under 
  WEB-INF/ just delete all these files and then start the server 
  again
  
-Original Message-From: Rama Krishna 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 11, 2001 
4:02 PMTo: [EMAIL PROTECTED]Subject: 
struts and Jrun 3.0
is there any problem with JRun 3.0 and 
struts. cause my development m/c has JRun 3.1 and everything worked fine. 
when i tried to put it on staging with JRun 3.0 

is it like JRun 3.0 doesn't work with struts 
or ???


it gives me the 
following error:

javax.servlet.ServletException: 
nulljava.lang.AbstractMethodErrorat 
allaire.jrun.jsp.JSPServlet.servletNeedsCreating(JSPServlet.java:312)at 
allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:188)at 
allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:168)at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1747)at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1584)at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:490)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)at 
allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)at 
allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)at 
allaire.jrun.ThreadPool.run(ThreadPool.java:267)at 
allaire.jrun.WorkerThread.run(WorkerThread.java:74)
thanks,
rama.


RE: struts and Jrun 3.0

2001-07-11 Thread Gogineni, Pratima



It 
retains but I guess its safer to backup ...

  -Original Message-From: Rama Krishna 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 11, 2001 4:33 
  PMTo: [EMAIL PROTECTED]Subject: Re: struts 
  and Jrun 3.0
  
  you are right. thanks. i did the way you said 
  and that error is gone. now the problem is with setLocale(...) which is a 
  known JRun problem. 
  
  if i upgrade jrun does it retain the existing 
  applications in the current version or should i recreate all 
  those???
  
  
  
  
- Original Message - 
From: 
Gogineni, Pratima 
To: '[EMAIL PROTECTED]' 

Sent: Wednesday, July 11, 2001 4:10 
PM
Subject: RE: struts and Jrun 3.0

I 
got this error a couple of times without any reason too. JRUN 3.0 has jsp 
cacheing problems and shutting down the server, deleteing the cached jsp 
pages and restarting solves this problems in most cases. Our sales rep said 
these problems were fixed in 3.1.

If 
your webapp is called testApp it would have created a jsp directory under 
WEB-INF/ just delete all these files and then start the server 
again

  -Original Message-From: Rama Krishna 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 11, 2001 
  4:02 PMTo: [EMAIL PROTECTED]Subject: 
  struts and Jrun 3.0
  is there any problem with JRun 3.0 and 
  struts. cause my development m/c has JRun 3.1 and everything worked fine. 
  when i tried to put it on staging with JRun 3.0 
  
  is it like JRun 3.0 doesn't work with 
  struts or ???
  
  
  it gives me the 
  following error:
  
  javax.servlet.ServletException: 
  nulljava.lang.AbstractMethodErrorat 
  allaire.jrun.jsp.JSPServlet.servletNeedsCreating(JSPServlet.java:312)at 
  allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:188)at 
  allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:168)at 
  allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
  allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
  allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
  org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1747)at 
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1584)at 
  org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:490)at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:865)at 
  allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
  allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
  allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
  allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)at 
  allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)at 
  allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)at 
  allaire.jrun.ThreadPool.run(ThreadPool.java:267)at 
  allaire.jrun.WorkerThread.run(WorkerThread.java:74)
  thanks,
  rama.


Re: struts and Jrun 3.0

2001-07-11 Thread Rama Krishna



it should do if i backup the properties files 
right??!!

  - Original Message - 
  From: 
  Gogineni, Pratima 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, July 11, 2001 4:33 
  PM
  Subject: RE: struts and Jrun 3.0
  
  It 
  retains but I guess its safer to backup ...
  
-Original Message-From: Rama Krishna [mailto:[EMAIL PROTECTED]]Sent: 
Wednesday, July 11, 2001 4:33 PMTo: [EMAIL PROTECTED]Subject: 
Re: struts and Jrun 3.0

you are right. thanks. i did the way you said 
and that error is gone. now the problem is with setLocale(...) which is a 
known JRun problem. 

if i upgrade jrun does it retain the existing 
applications in the current version or should i recreate all 
those???




  - Original Message - 
  From: 
  Gogineni, Pratima 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, July 11, 2001 4:10 
  PM
  Subject: RE: struts and Jrun 
3.0
  
  I got this error a couple of times without any reason too. JRUN 3.0 
  has jsp cacheing problems and shutting down the server, deleteing the 
  cached jsp pages and restarting solves this problems in most cases. Our 
  sales rep said these problems were fixed in 3.1.
  
  If your webapp is called testApp it would have created a jsp 
  directory under WEB-INF/ just delete all these files and then start the 
  server again
  
-Original Message-From: Rama Krishna 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 11, 2001 
4:02 PMTo: [EMAIL PROTECTED]Subject: 
struts and Jrun 3.0
is there any problem with JRun 3.0 and 
struts. cause my development m/c has JRun 3.1 and everything worked 
fine. when i tried to put it on staging with JRun 3.0 

is it like JRun 3.0 doesn't work with 
struts or ???


it gives me the 
following error:

javax.servlet.ServletException: 
nulljava.lang.AbstractMethodErrorat 
allaire.jrun.jsp.JSPServlet.servletNeedsCreating(JSPServlet.java:312)at 
allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:188)at 
allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:168)at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1747)at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1584)at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:490)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)at 
allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)at 
allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)at 
allaire.jrun.ThreadPool.run(ThreadPool.java:267)at 
allaire.jrun.WorkerThread.run(WorkerThread.java:74)
thanks,
rama.


Re: struts and Jrun 3.0

2001-07-11 Thread Rama Krishna



ok. will keep in mind. thanks much.

  - Original Message - 
  From: 
  Matthew 
  O'Haire 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, July 11, 2001 4:36 
  PM
  Subject: RE: struts and Jrun 3.0
  
  Watch out with your custom tags TLD's moving from 
  JRun 3.0 to 3.1. It's only a minor issue, but in JRun 3.0 
  the tag properties declared in the TLD were not verified against the 
  implementing class (i.e. get/set methods). In 3.1 this is now done (as 
  it should), and you can get caught out if your TLD's are not up to 
  date!
  
-Original Message-From: Gogineni, Pratima 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, July 12, 2001 
09:10To: '[EMAIL PROTECTED]'Subject: RE: 
struts and Jrun 3.0
I 
got this error a couple of times without any reason too. JRUN 3.0 has jsp 
cacheing problems and shutting down the server, deleteing the cached jsp 
pages and restarting solves this problems in most cases. Our sales rep said 
these problems were fixed in 3.1.

If 
your webapp is called testApp it would have created a jsp directory under 
WEB-INF/ just delete all these files and then start the server 
again

  -Original Message-From: Rama Krishna 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 11, 2001 
  4:02 PMTo: [EMAIL PROTECTED]Subject: 
  struts and Jrun 3.0
  is there any problem with JRun 3.0 and 
  struts. cause my development m/c has JRun 3.1 and everything worked fine. 
  when i tried to put it on staging with JRun 3.0 
  
  is it like JRun 3.0 doesn't work with 
  struts or ???
  
  
  it gives me the 
  following error:
  
  javax.servlet.ServletException: 
  nulljava.lang.AbstractMethodErrorat 
  allaire.jrun.jsp.JSPServlet.servletNeedsCreating(JSPServlet.java:312)at 
  allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:188)at 
  allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:168)at 
  allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
  allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
  allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
  org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1747)at 
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1584)at 
  org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:490)at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:865)at 
  allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)at 
  allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)at 
  allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)at 
  allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)at 
  allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)at 
  allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)at 
  allaire.jrun.ThreadPool.run(ThreadPool.java:267)at 
  allaire.jrun.WorkerThread.run(WorkerThread.java:74)
  thanks,
  rama.


ordering validations

2001-07-11 Thread cahana



Does anyone know how to order the way the validation errors 
show up? When the validate method of my ActionForm gets called and there 
are multiple errors, the order that the errors are displayed on the jsp is not 
the order in which Iadded them to  ActionErrors.

cameron


Re: Standard JSP Tag Library (JSPTL): Early Access

2001-07-11 Thread Shawn Bayern

Dave wrote:

 Caught by the second paragraph of link
 
 The JSPTL requires a servlet container that supports the proposed
 Java Servlet 2.3 and JavaServer Pages 1.2 specification. The Jakarta
 Project Tomcat 4 servlet container supports the new proposed
 specification and can be used for testing the JSPTL
 
 Anyone know if this mean they won't work with tomcat 3.3?!!!

Yes, JSPTL currently requires JSP 1.2, which Tomcat 3.x doesn't support.
JSPTL's current round of tags takes advantage of 1.2 functionality, and
some of the constraints the library imposes require a TagLibraryValidator,
which only JSP 1.2 supports.

Shawn




struts tags and thread safety

2001-07-11 Thread jdware

Hi all,
I'm wondering if the struts tags are thread safe?

I have a view which has two frames, each with a jsp page using the
logic:iterate referencing the same collection. When I request the page
which defines the frames and thus loads both jsp pages at the same time
I get exceptions thrown( see below). When I request the jsp pages
seperately, the pages work properly.

Anyone have thoughts on this?

thanks

john ware
 - with nested exception:
[weblogic.utils.NestedRuntimeException: Error writing 'Context hashcode:
'1491028', primaryKey: '284', flags: '', needsRefresh: '
alse', needsFlush: 'true', pinned: 'true', ejbObject hashcode:
'1284123', bean hashcode: '2949298'' to persistent store - with ne
ted exception:
[java.sql.SQLException: ORA-08177: can't serialize access for this
transaction
]]
at
weblogic.jts.internal.CoordinatorImpl.throwRollbackException(CoordinatorImpl.java:737)

at
weblogic.jts.internal.CoordinatorImpl.commit(CoordinatorImpl.java:377)
at weblogic.jts.internal.TxContext.commit(TxContext.java:255)
at
weblogic.ejb.internal.StatefulEJBObject.postInvokeOurTx(StatefulEJBObject.java:315)

at
weblogic.ejb.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:795)
at
com.arraybiopharma.ejb.entity.TimeSliceBeanEOImpl.getRegHours(TimeSliceBeanEOImpl.java:117)

at
com.arraybiopharma.ejb.entity.TimeSliceBeanEOImpl_WLSkel.invoke(TimeSliceBeanEOImpl_WLSkel.java:248)

at
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAdapter.java:347)

at
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:86)

at
weblogic.rmi.extensions.BasicRequestDispatcher.dispatch(BasicRequestDispatcher.java:82)

at
weblogic.rmi.internal.ServerRequest.sendOneWay(ServerRequest.java:73)
at
weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:77)
at
com.arraybiopharma.ejb.entity.TimeSliceBeanEOImpl_WLStub.getRegHours(TimeSliceBeanEOImpl_WLStub.java:789)

at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.struts.util.PropertyUtils.getSimpleProperty(PropertyUtils.java:717)

at
org.apache.struts.util.PropertyUtils.getNestedProperty(PropertyUtils.java:426)

at
org.apache.struts.util.PropertyUtils.getProperty(PropertyUtils.java:453)

at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:503)
at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:188)

at
jsp_servlet._timedetailhours._jspService(_timedetailhours.java:254)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)

at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)

at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)

at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)

at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)

at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

Wed Jul 11 18:54:53 MDT 2001:E WebAppServletContext-ats Root cause
of ServletException
javax.servlet.jsp.JspException: Exception thrown by getter for property
activities[0].timeSlices[10].regHours of bean timeForm
at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:513)
at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:188)

at
jsp_servlet._timedetailhours._jspService(_timedetailhours.java:254)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)

at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)

at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)

at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)

at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)

at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)




Re: changing languages

2001-07-11 Thread Pham Thanh Quan

You simply remove the locale from session and struts will get the default
locale, which is defined by every browser
Quan

- Original Message -
From: Manuel Moons [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 9:03 PM
Subject: changing languages


 Hello everybody,

 I have a small question.  I have written a test application for my company
 that uses struts, just to see what it can do.

 I am using different ApplicationResource files.  I have no problem
changing
 between my different languages.  I do this by setting the Locale object in
 my session scope.  I have one problem though.  When I change language and
I
 want to change back to the original one.  I have to make a double of my
 start up ApplicationResource file because he always needs the extra
 extensions in my file

 eg.  ApplicationResource_en_US.properties
  ApplicationResource_nl_BE.properties

 Is there any way of changing back to my original resource file?


 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.






Re: SV: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Calvin Yu

It doesn't look like you're using the right ant.bat file.  Did you modify
it, or are you using an ant.bat that you wrote yourself?  Make sure you use
ant.home/bin/ant.bat.  Try fully declaring it ([prompt:]
C:\jakarta-ant-1.3\bin\ant.bat).  It you're still seeing the problem, send
me the ant.bat file.

Calvin

- Original Message -
From: Chuck Amadi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 10:15 AM
Subject: Re: SV: just d/l  installed ANT'S need some guidance!!


 I have since removed the TOMCAT_HOME path that resulted the fact that my
 classpath is directing towards the tool.jar.

 I haven't got a tool.jar in the ant dir.
 Cheers Chuck.


 Peter Alfors wrote:

  print out your classpath and see which ant.jar is being used.
 
  Pete
 
  Chuck Amadi wrote:
 
   Oops forgot to mention that i am running Netbeans v 3.2.2 wereby ant's
is
   apparently alreay bundled nevertheless i would like a standalone , as
the
   ant 1.3 download is the current realease.
   Anyway would this cause any problems .
   Cheers Chuck
  
   Mikkel Bruun wrote:
  
please post the exception so we can look into it...
   
Mikkel
   
-Oprindelig meddelelse-
Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]]
Sendt: 11 July 2001 14:43
Til: [EMAIL PROTECTED]
Emne: Re: just d/l  installed ANT'S need some guidance!!
   
Hi, tried that and just ant from the ms-dos command line and got
Exception in Thread - I assume that i have a classpath issue
regarding
multithreading .
Any Suggestions Cheers Chuck
   
suhas wrote:
   
Part 1.1Type: Plain Text (text/plain)
Encoding: quoted-printable
   
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can
you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal  rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.
  
   --
   The views expressed by the sender of this message don't
   necessarily represent those of Brecon Beacons National Park
   Authority. This message is intended for the addressee(s) only
   and is sent in confidence; if you receive it in error, please can you
   let us know (at [EMAIL PROTECTED]) and then destroy all copies.
   Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
   adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
   Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
   yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
   mewn camgymeriad, a fyddech gystal  rhoi gwybod i
   ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.

 --
 The views expressed by the sender of this message don't
 necessarily represent those of Brecon Beacons National Park
 Authority. This message is intended for the addressee(s) only
 and is sent in confidence; if you receive it in error, please can you
 let us know (at [EMAIL PROTECTED]) and then destroy all copies.
 Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
 adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
 Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
 yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
 mewn camgymeriad, a fyddech gystal â rhoi gwybod i
 ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.






Re: XML/XSL/Struts Architecture

2001-07-11 Thread Calvin Yu

You are aware that there are other ways to do this, instead of using XSL,
right?  One way would be to use taglibs that makes a call to include a
client-specific form.  I'm not sure if your reason is good enough to use
XSL.

Calvin


- Original Message -
From: Mahesh Bhagia [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 12:34 PM
Subject: RE: XML/XSL/Struts Architecture


Hi Greg,

we are planning to use XSL because structure of HTML forms will differ
on client basis.


-Original Message-
From: Greg Reddin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 10:16 AM
Subject: RE: XML/XSL/Struts Architecture


Using XSL, you can recreate the majority of what the taglibs do.
However, that
begs the question of why you would use XSL in the first place.  I've
worked on a
Struts-based XSL project for about 6 months now, and we've had to
recreate so
much of the Struts functionality in our architecture that we find
ourselves
always asking why we're doing this.  Our data comes from the backend in
XML, so
it seemed logical to leave it in XML and use the parsers to access it.
But the
parsers (Xalan/Xerces) turn out to be a lot of overhead and got in our
way quite
a bit.  I'd like to go back and convert it to JSP.

-Original Message-
From: [EMAIL PROTECTED] at INTERNET
Sent: Wed 7/11/2001 3:41 AM
To: Reddin, Greg; [EMAIL PROTECTED] at INTERNET
Cc:
Subject: RE: XML/XSL/Struts Architecture



Hi Mahesh,
We have started using Struts for an application that uses XSP/XML/XSL
(using
Cocoon).  Instead of specifying a  JSP page in the struts configuration
file
we specify a XSP page.  This server page is responsible for getting XML
data
from some data object set up in the action classes (we are using
attributes
in the session object for now).  We also have extended ActionMapping to
allow us to specify the XSL stylesheet in the struts configuration file.
You are right about the use of tag libraries - that is one aspect of
struts
that you potentially lose out on using the above approach.
Regards,
John


 -Original Message-
 From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]]
 Sent: 10 July 2001 17:24
 To: Apache Struts (E-mail)
 Subject: XML/XSL/Struts Architecture

 Hi,

 In our application, we are using XML/XSL to generate JSP and plan to
use
 Struts for submitting data from HTML forms. Has anyone used / know
 if this architecture works. my thinking is ( correct me if wrong ) ,
we
 will not be able to use tag libraries coz of XML/XSL combination for
 generating pages. unique thing about this application is structure of
 HTML is different for each client.

 Thanks
 Mahesh






Re: XML/XSL/Struts Architecture

2001-07-11 Thread Calvin Yu


I had a similar problem, where the backend delivered model data in an XML
format.  We initially used XML/XSL, but we later went with JSPs.  What I did
to handle the XML data was write some taglibs that accessed XML data via
XPath.  I also wrote a taglib that will perform an XSL transformation and
include the resulting output to a JSP, which was used for handling the more
complexed XML structures.  I don't have any source code (as I'm not working
at that company any more), but I believe JavaWorld had an article that
talked about something similar.

Calvin

- Original Message -
From: Greg Reddin [EMAIL PROTECTED]
Cc: recipient list not shown:
Sent: Wednesday, July 11, 2001 10:16 AM
Subject: RE: XML/XSL/Struts Architecture


 Using XSL, you can recreate the majority of what the taglibs do.  However,
that
 begs the question of why you would use XSL in the first place.  I've
worked on a
 Struts-based XSL project for about 6 months now, and we've had to recreate
so
 much of the Struts functionality in our architecture that we find
ourselves
 always asking why we're doing this.  Our data comes from the backend in
XML, so
 it seemed logical to leave it in XML and use the parsers to access it.
But the
 parsers (Xalan/Xerces) turn out to be a lot of overhead and got in our way
quite
 a bit.  I'd like to go back and convert it to JSP.

 -Original Message-
 From: [EMAIL PROTECTED] at INTERNET
 Sent: Wed 7/11/2001 3:41 AM
 To: Reddin, Greg; [EMAIL PROTECTED] at INTERNET
 Cc:
 Subject: RE: XML/XSL/Struts Architecture



 Hi Mahesh,
 We have started using Struts for an application that uses XSP/XML/XSL
(using
 Cocoon).  Instead of specifying a  JSP page in the struts configuration
file
 we specify a XSP page.  This server page is responsible for getting XML
data
 from some data object set up in the action classes (we are using
attributes
 in the session object for now).  We also have extended ActionMapping to
 allow us to specify the XSL stylesheet in the struts configuration file.
 You are right about the use of tag libraries - that is one aspect of
struts
 that you potentially lose out on using the above approach.
 Regards,
 John


  -Original Message-
  From: Mahesh Bhagia [SMTP:[EMAIL PROTECTED]]
  Sent: 10 July 2001 17:24
  To: Apache Struts (E-mail)
  Subject: XML/XSL/Struts Architecture
 
  Hi,
 
  In our application, we are using XML/XSL to generate JSP and plan to use
  Struts for submitting data from HTML forms. Has anyone used / know
  if this architecture works. my thinking is ( correct me if wrong ) , we
  will not be able to use tag libraries coz of XML/XSL combination for
  generating pages. unique thing about this application is structure of
  HTML is different for each client.
 
  Thanks
  Mahesh
 
 




Testing Banned Content

2001-07-11 Thread Joe Gutierrez



xxx


Report to Recipient(s)

2001-07-11 Thread Paladin

Incident Information:-

Originator:Joe Gutierrez [EMAIL PROTECTED]
Recipients:\Struts \(E-mail\)\ [EMAIL PROTECTED]
Subject:  Testing Banned Content

Message from Joe Gutierrez [EMAIL PROTECTED] was quarantined because
it contained banned content.




transaction=true in html:link - bug or feature

2001-07-11 Thread Gogineni, Pratima

Hi,

I was using the transaction= true flag in the html:link tag. What I found
was that the token is not placed in the url params unless there is a either
paramId or name specified - I wanted to do this so I had to use a dummy url
parameter to do this.

I am not sure if this this a bug or if it is as designed ... 
I am using 1.0 release build

Thanks
Pratima

-Original Message-
From: Trieu, Danny [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 1:40 PM
To: '[EMAIL PROTECTED]'
Subject: RE: transactional token


does anyone know where to find out how to use transactional token in struts?

Thanks,

-Original Message-
From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 10:30 AM
To: Gogineni, Pratima; '[EMAIL PROTECTED]'
Subject: RE: transactional token


clearly - I dotn understand the transaction tokens very well ...

I just looked at the html:form tag and it seems they are adding the token in
there if one is present in the session? Why is this behaviour as opposed to
what is done in the html:link tag? so to use a transactional token with a
form I have to set one in the session?

thanks
Pratima

-Original Message-
From: Gogineni, Pratima 
Sent: Wednesday, July 11, 2001 10:22 AM
To: '[EMAIL PROTECTED]'
Subject: transactional token


Hi,

I find that I would like to include transactional tokens from my jsp page -
I see that there is a transaction=true on the html:link tag but not on the
html:form tag. I am planning to add this on the html:form tag as well.

I just wanted to check with people on this list if there was a
reason/problem why this wasnt done in the implementation of struts itself.
Also is it considered a bad practise to saveTokens from the JSP pages at
request time rather than in an action?

Thanks
Pratima

-Original Message-
From: Gogineni, Pratima 
Sent: Tuesday, July 10, 2001 9:33 PM
To: '[EMAIL PROTECTED]'
Subject: would transactional token help in this case? (could be a
threadin g issue?)


Hi,

I have an application in which I havent used transactional tokens. I have a
text field where I defined a onchange=preprocess() which sets a value and
then submits the form. Heres the behaviour I see:

a. It works 'perfectly' when I change the value and move the focus out of
this text box (it gets submitted). 

b. It works 'alright' (for some reason this takes longer to process than the
above case) when I hit enter in the text field

c. It sometimes throws an error when I do step (a) followed by step (b)
without waiting for the control to return from step (a). The kind of error I
am getting (I would have to explain my program in detail to exactly say what
this error is) leads me to suspect that two threads are trying to
access/change the data in the form bean. 

Has anyone seen this behaviour before or knows if using transactional tokens
would help in this case? (I am suspecting not from what I know of the way
they work ...)

Also note that this form/application worked well when  I did not use onclick
- i.e. using the default behaviour of submitting the value of the text field
when you hit enter ...

Thanks
Pratima

-Original Message-
From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 7:49 AM
To: [EMAIL PROTECTED]
Subject: Error-page in web.xml


I'm hoping someone can help me understand this better. In web.xml, I have
the following entries -
error-page
exception-typejava.lang.Exception/exception-type
location/errorpage.jsp/location
/error-page
   error-page
exception-typejavax.servlet.ServletException/exception-type
location/errorpagesrvlt.jsp/location
/error-page

From my understanding, anytime an Exception, or ServletException occurs in
my application, it will call either errorpage.jsp or errorpagesrvlt.jsp. Is
that correct? Does it matter if the exception occurs in a JSP or a servlet?

This seems to work in Tomcat, but with SilverStream, I don't get taken to
the error page, but get the SilverStream generate error message.

In my errorpage.jsp I have -

%@ page language=Java isErrorPage=true%


is that right?

Thanks for any insite, this is driving me crazy.
Ryan