Using Scroll Bars

2002-11-25 Thread Alok Garg
Hello,
If I have 3 jsp pages to included in a template. 
Like 
a.jsp
b.jsp
c.jsp

If I want to display a scrollbar in the b.jsp as the data in it is going to be very 
big.

Thanking you
Alok



RE: Using Scroll Bars

2002-11-25 Thread Andrew Hill
If you are only targetting the newer browsers you might be able to achieve
this using CSS-P stylesheets  - have a look at the overflow attribute -
though I could never get it to work in Netscrap6 - just in IE and didnt take
it very far (quick experiment only), maybe its not standard?.
If thats not an option, then you will need to use frames instead of
templates. You could also use the more 'flexible' iframe tag - though its
not supported in the older Netscrap browsers, and seemed a bit dodgy when I
tried it in 6.
For both CSS-P and iframe solutions Im not sure of support among the smaller
broswers - ie: conquerer, opera, etc... We can probably rule out lynx ;-
A classical frame based solution is probably the way to go, though will
involve a fair amount of refactoring on your part - not to mention the extra
effort involved in managing several frames.

-Original Message-
From: Alok Garg [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 16:10
To: Struts Users Mailing List
Subject: Using Scroll Bars


Hello,
If I have 3 jsp pages to included in a template.
Like
a.jsp
b.jsp
c.jsp

If I want to display a scrollbar in the b.jsp as the data in it is going to
be very big.

Thanking you
Alok


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




Problem with actionForm scope

2002-11-25 Thread Yann Verlynde
Hello,

It seems that I lost my attributes of the form. It seems that my form is
reinitialized when the form is redisplayed.
My form is well defined in my struts-config.xml file as to be used in
session scope.
However, I would like to keep these parameter because I would like to fill
the form at different moments.

name.jsp (1)---Form class --name.jsp (filled with the (1)
information)--Form class etc

Thanks in advance
Yann





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




RE: Problem with actionForm scope

2002-11-25 Thread Andrew Hill
Well, if your form is defined as using session scope it should work - you
will retain the same form object. In this case you may need to take a look
at what your reset() method is doing as this is called on submit each time
before the form values are populated from the request.

If screen A has field A (but not B) while screen B has field B (but not A)
and your reset unconditionally clears the values for both A and B then on
screen A you will lose the value for field B and on screen B you will lose
the value for field A - to handle this issue you need to check which screen
did the submit in your reset() method and only clear the fields for which
you will be getting new values. Incidentally you only need to clear fields
for which the view is rendered using a checkbox, radio button, multiple
select, or textarea(?) (these being the ones that submit no values under
certain circumstances and thus create the need for a reset() method in the
first place.

-Original Message-
From: Yann Verlynde [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 17:16
To: Struts
Subject: Problem with actionForm scope


Hello,

It seems that I lost my attributes of the form. It seems that my form is
reinitialized when the form is redisplayed.
My form is well defined in my struts-config.xml file as to be used in
session scope.
However, I would like to keep these parameter because I would like to fill
the form at different moments.

name.jsp (1)---Form class --name.jsp (filled with the (1)
information)--Form class etc

Thanks in advance
Yann





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


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




Re: Problem with actionForm scope

2002-11-25 Thread Gemes Tibor
2002. november 25. 10:16 dátummal Yann Verlynde ezt írtad:

 It seems that I lost my attributes of the form. It seems that my form is
 reinitialized when the form is redisplayed.
 My form is well defined in my struts-config.xml file as to be used in
 session scope.
 However, I would like to keep these parameter because I would like to fill
 the form at different moments.

RTFA

I bet your form is a DynaActionForm. The reset() is called on every request 
for these form. 

You've got 2 options: 

- include all the properties in hidden fields,
- override the reset() of the form.

Hth,

Tib



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




AW: java.sql.Date again!!

2002-11-25 Thread Andreas Langmann
hmmm...

make the following files...


package de.km.bw.estat.struts.utils;

import java.sql.Date;

public class DateWrapper extends java.sql.Date {
  static java.text.DateFormat df = new
java.text.SimpleDateFormat(dd-MM-);

  public static void setFormatStr(String formatStr) {
df = new java.text.SimpleDateFormat(formatStr);
  }

  public DateWrapper(long date) {
super(date);
  }

  public String toString() {
return df.format(this);
  }
}

/** coverts java.util.Date to String using BeanUtils ***/
package de.km.bw.estat.struts.utils;

import org.apache.commons.beanutils.Converter;
import java.text.*;
import java.util.*;

public class DateBeanUtilsConverter implements Converter {

private String formatPattern = null;

public void setFormatPattern(String formatPattern) {
this.formatPattern = formatPattern;
}

public Object convert(Class type, Object value) {
DateWrapper date = null;

if (value != null
 (value instanceof String)
 (type == DateWrapper.class)) {
try {

String s = value.toString();
SimpleDateFormat formatter =
new SimpleDateFormat(formatPattern);
date = new DateWrapper(formatter.parse(s).getTime());

} catch (Exception e) {
//ErrorLogging.println(DateBeanUtilsConverter:  + e);
}
}
return date;
}
}

package de.km.bw.estat.struts.utils;

import java.text.*;
import java.util.*;

import org.apache.commons.beanutils.Converter;
import org.apache.commons.beanutils.converters.*;


public class StringBeanUtilsConverterDate implements Converter {

  //~ Statische Variblen und
Initialisierer ---

  private static final StringConverter stringConverter = new
StringConverter();

  //~
Instanz-Variablen ---

  private String formatPattern = null;

  //~
Methoden 

  /**
   * TODO_documentieren
   *
   * @param formatPattern TODO_documentieren
   */
  public void setFormatPattern(String formatPattern) {
this.formatPattern = formatPattern;
  }


  /**
   * TODO_documentieren
   *
   * @param type TODO_documentieren
   * @param value TODO_documentieren
   *
   * @return TODO_documentieren
   */
  public Object convert(Class type, Object value) {

Object returnValue = null;

if (value != null) {

  if ((type == String.class)  (value instanceof DateWrapper)) {

SimpleDateFormat formatter = new SimpleDateFormat(formatPattern);
String dateString = formatter.format(value);

returnValue = dateString;
  }
  else {
returnValue = stringConverter.convert(type, value);
  }
}

return returnValue;
  }
}
*

add the following static block to your BaseAction:

// for static block
import org.apache.commons.beanutils.ConvertUtils;
import org.apache.log4j.Logger;
import org.apache.struts.action.*;
import org.apache.struts.actions.*;
import org.apache.struts.util.MessageResources;


  static {
DateBeanUtilsConverter dateConverter = new DateBeanUtilsConverter();
dateConverter.setFormatPattern(dd.MM.);

StringBeanUtilsConverterDate myStringConverter = new
StringBeanUtilsConverterDate();
myStringConverter.setFormatPattern(dd.MM.);
ConvertUtils.register(dateConverter, DateWrapper.class);
ConvertUtils.register(myStringConverter, String.class);
  }
**

thats it. now you'll use DateWrapper Class in Formbeans and anything is
fine.

greetings,

Andreas

-Ursprüngliche Nachricht-
Von: Slava_L [mailto:[EMAIL PROTECTED]]
Gesendet: 25.11.2002 06:12
An: Struts Users Mailing List
Betreff: java.sql.Date again!!


Well, are there any changes about java.sql.Date-in-Struts problem?
What is the best appropriate way to solve the representation poblem (i.e.
when Date converts in non-localezed string like -MM-DD)
?


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




Re: java.sql.Date again!!

2002-11-25 Thread Gemes Tibor
2002. november 25. 06:11 dtummal Slava_L ezt rtad:
 Well, are there any changes about java.sql.Date-in-Struts problem?
 What is the best appropriate way to solve the representation poblem (i.e.
 when Date converts in non-localezed string like -MM-DD) ?

For java.sql.Date the default format is -mm-dd. You can change it however 
with the following key in your resourcebundle:

org.apache.struts.taglib.bean.format.sql.date=mm/dd/

Hth,

Tib


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




RE: Problem with actionForm scope

2002-11-25 Thread Andrew Hill
Hmm. It does seem a bit counterintuitive.
Ill post this reply back to the list as well to see if anyone else has an
idea.

-Original Message-
From: Yann Verlynde [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 17:35
To: [EMAIL PROTECTED]
Subject: Re: Problem with actionForm scope


Hello,

Thanks for the answer,
My reset method is empty. I have one JSP Page and one form class, but I
would like to return on my JSP page after the user has chosen a value in a
select tag.
The form class is populated with its value and my action class is in charge
of getting information from the database (where id = value).
I don't understand why my form is reset whereas my reset method is empty

Thanks
Yann

- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 10:22 AM
Subject: RE: Problem with actionForm scope


 Well, if your form is defined as using session scope it should work - you
 will retain the same form object. In this case you may need to take a look
 at what your reset() method is doing as this is called on submit each time
 before the form values are populated from the request.

 If screen A has field A (but not B) while screen B has field B (but not A)
 and your reset unconditionally clears the values for both A and B then on
 screen A you will lose the value for field B and on screen B you will lose
 the value for field A - to handle this issue you need to check which
screen
 did the submit in your reset() method and only clear the fields for which
 you will be getting new values. Incidentally you only need to clear fields
 for which the view is rendered using a checkbox, radio button, multiple
 select, or textarea(?) (these being the ones that submit no values under
 certain circumstances and thus create the need for a reset() method in the
 first place.

 -Original Message-
 From: Yann Verlynde [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 25, 2002 17:16
 To: Struts
 Subject: Problem with actionForm scope


 Hello,

 It seems that I lost my attributes of the form. It seems that my form is
 reinitialized when the form is redisplayed.
 My form is well defined in my struts-config.xml file as to be used in
 session scope.
 However, I would like to keep these parameter because I would like to fill
 the form at different moments.

 name.jsp (1)---Form class --name.jsp (filled with the (1)
 information)--Form class etc

 Thanks in advance
 Yann





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


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



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




AW: java.sql.Date again!!

2002-11-25 Thread Andreas Langmann
-Ursprngliche Nachricht-
For java.sql.Date the default format is -mm-dd. You can change it
however
with the following key in your resourcebundle:

org.apache.struts.taglib.bean.format.sql.date=mm/dd/

no, that will not work. in beta-2 this key is not used correctly... (look
into the sources or give it a try).

greetings,

Andreas


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




[OT] strange connection problem - 2nd try

2002-11-25 Thread Hirschmann, Bernhard

Hello struts user!

Second try with my problem. Maybe someone has a clue?


-Ursprüngliche Nachricht-
Von: Hirschmann, Bernhard 
Gesendet: Freitag, 22. November 2002 13:35
An: '[EMAIL PROTECTED]'
Betreff: [OT] strange connection problem


Hello!

I have a strange problem with a socket write error from time to time with
our application, which occures not reproducable, but maybe once or twice a
day.

In the browser I may see then besides parts of my regular view some toString
results of my beans in the form. 
When I go back in the browser and try it again, in most cases everything
works fine. So it really seems to be a something in the socket connection.
But I hope I can prevent this somehow...

Here is the stack trace when this happens:

Error Message: Connection reset by peer: socket write error
Error Code: 500
Target Servlet: null
Error Stack: 
java.net.SocketException: Connection reset by peer: socket write error 
 at java.net.SocketOutputStream.socketWrite(Native Method) 
 at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled
Code)) 
 at com.ibm.ws.io.Stream.write(Stream.java(Compiled Code)) 
 at com.ibm.ws.io.WriteStream.flush(WriteStream.java(Compiled Code)) 
 at com.ibm.ws.http.ResponseStream.flush(ResponseStream.java(Compiled
Code)) 
 at com.ibm.ws.io.WriteStream.flush(WriteStream.java(Compiled Code)) 
 at
com.ibm.servlet.engine.srp.SRPConnection.flush(SRPConnection.java(Compiled
Code)) 
 at
com.ibm.servlet.engine.srp.SRPConnection.flush(SRPConnection.java(Compiled
Code)) 
 at
com.ibm.servlet.engine.srt.SRTOutputStream.flush(SRTOutputStream.java(Compil
ed Code)) 
 at java.io.OutputStreamWriter.flush(OutputStreamWriter.java(Compiled
Code)) 
 at
com.ibm.servlet.engine.srt.BufferedWriter.flushChars(BufferedWriter.java(Com
piled Code)) 
 at
com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer(BufferedWriter.java(Co
mpiled Code)) 
 at
com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer(BufferedWriter.java(Co
mpiled Code)) 
 at
com.ibm.servlet.engine.srt.SRTServletResponse.flushBuffer(SRTServletResponse
.java(Compiled Code)) 
 at
com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServl
etResponseProxy.java(Compiled Code)) 
 at
com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServl
etResponseProxy.java(Compiled Code)) 
 at
com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServl
etResponseProxy.java(Compiled Code)) 
 at
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java(Compiled
Code)) 
 at d_00025cBrowser.fg_jsp_0._jspService(fg_jsp_0.java:241) 
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code)) 
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:286) 


We're using WebSphere 4 on Win2K.

Any hint highly appreciated!

Regards,
Bernhard

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


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




Re: Problem with actionForm scope

2002-11-25 Thread Gemes Tibor
2002. november 25. 10:39 dátummal Andrew Hill ezt írtad:
 Thanks for the answer,
 My reset method is empty. I have one JSP Page and one form class, but I
 would like to return on my JSP page after the user has chosen a value in a
 select tag.
 The form class is populated with its value and my action class is in charge
 of getting information from the database (where id = value).
 I don't understand why my form is reset whereas my reset method is empty

Are you sure that you're in the same session? (check it with writing out your 
sessionid in every page for debugging. if it changes from request to request 
you're in trouble).

 I used to have a problem with sessions recently and found the same behaviour, 
and we found that the container created a new session for each request. 

I am sorry to say this, but we did not know what solved our problem. We tried 
a lots of things and suddenly the problem dissapeared. 

I know for sure that this problem did not appear with authentication turned 
on.

Tib

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




StrutsTestCase

2002-11-25 Thread Marco Fabbri
Has someone setup it (http://strutstestcase.sourceforge.net/) on WSAD ? (Websphere 
Studio Application Developer)

Thanks a lot in advance.

Marco Fabbri



Re: java.sql.Date again!!

2002-11-25 Thread Slava_L
duz it work in struts 1.0.x ? never heard about thes keys, where i can find
more keys ?
- Original Message -
From: Gemes Tibor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 5:36 PM
Subject: Re: java.sql.Date again!!


2002. november 25. 06:11 dtummal Slava_L ezt rtad:
 Well, are there any changes about java.sql.Date-in-Struts problem?
 What is the best appropriate way to solve the representation poblem (i.e.
 when Date converts in non-localezed string like -MM-DD) ?

For java.sql.Date the default format is -mm-dd. You can change it
however
with the following key in your resourcebundle:

org.apache.struts.taglib.bean.format.sql.date=mm/dd/

Hth,

Tib


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




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




Re: AW: java.sql.Date again!!

2002-11-25 Thread Gemes Tibor
2002. november 25. 10:39 dtummal Andreas Langmann ezt rtad:

 no, that will not work. in beta-2 this key is not used correctly... (look
 into the sources or give it a try).

How is it possible than that it is working for me? Of course I looked into the 
source otherwise I couldn't have find these keys out, and I don't see any 
problem. Could you explain a case in which it produces improper output?

Uhh, maybe input fields with java.sql.Date? I convert them by myself with this 
mask as well, thou  I plan to use a custom SqlDateConverter class for this 
task. Soon  soon it'll come.

Tib

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




Programatically define Tiles Definitions (Struts Nightly)

2002-11-25 Thread Ove Ranheim

Since the Template Tag now is deprecated, how do I mangage to solve this
issue with Tiles?

  ContentMap cm = ContentMap contentMap = new ContentMap();
contentMap.put(top, new Content(page1.java, false));
contentMap.put(left, new Content(page2.java, false));
contentMap.put(right, new Content(page3.java, false));
contentMap.put(bottom, new Content(page4.java, false));
  ContentMapStack.push(pageContext, cm);

Regards,
Ove Ranheim
[EMAIL PROTECTED]


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




AW: AW: java.sql.Date again!!

2002-11-25 Thread Andreas Langmann
Thats it. I use input fields and a german date format

Uhh, maybe input fields with java.sql.Date? I convert them by myself with
this
mask as well, thou  I plan to use a custom SqlDateConverter class for this
task. Soon  soon it'll come.

You can re-use my DateWrapper Class (prior posting this morning)
I hope that the next struts release can handle this without so much
customizing

greetings,

Andreas



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




Re: AW: java.sql.Date again!!

2002-11-25 Thread Slava_L
But is it possible to hide DateWrapper behind java.sql.Date ? i wish to use
JDBC type in my FormBean
- Original Message -
From: Andreas Langmann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 6:57 PM
Subject: AW: AW: java.sql.Date again!!


 Thats it. I use input fields and a german date format

 Uhh, maybe input fields with java.sql.Date? I convert them by myself with
 this
 mask as well, thou  I plan to use a custom SqlDateConverter class for
this
 task. Soon  soon it'll come.

 You can re-use my DateWrapper Class (prior posting this morning)
 I hope that the next struts release can handle this without so much
 customizing

 greetings,

 Andreas



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




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




XML Include for validation.xml

2002-11-25 Thread Andreas Langmann
Hello,

i tried the following:

**
?xml version=1.0 encoding=ISO-8859-1 standalone=yes ?

!DOCTYPE validation
[
   !ENTITY a SYSTEM
file://C:/Programme/eclipse/workspace/appl/build/webapp/WEB-INF/validation/
validation-a.xml
   !ENTITY b SYSTEM
file://C:/Programme/eclipse/workspace/appl/build/webapp/WEB-INF/validation/
validation-b.xml
   !ENTITY c SYSTEM /WEB-INF/validation/validation-c.xml
]

form-validation
  formset
a;

b;

c;
  /formset
/form-validation
*

and it works... but how can i use relative url's for the included files?
This example loads validation-a, and validation-b, but not c...

I dont want to use http://127.0.0.1/...xml; because i dont want to give the
xml files to public http access

The same problem in struts-config xml for including form-bean-definitions
was no problem... it works fine, but here i got problems with missing dtd if
i use the header from struts-examples...

tia

Andreas


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




AW: AW: java.sql.Date again!!

2002-11-25 Thread Andreas Langmann
Hmmm

make a constructor accepting java.sql.Date for DateWrapper and a getDate()
method returning java.sql.Date.
I have no idea how to do more integration

any ideas?

greetings,

Andreas

-Ursprngliche Nachricht-
Von: Slava_L [mailto:[EMAIL PROTECTED]]
Gesendet: 25.11.2002 12:01
An: Struts Users Mailing List
Betreff: Re: AW: java.sql.Date again!!


But is it possible to hide DateWrapper behind java.sql.Date ? i wish to use
JDBC type in my FormBean
- Original Message -
From: Andreas Langmann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 6:57 PM
Subject: AW: AW: java.sql.Date again!!


 Thats it. I use input fields and a german date format

 Uhh, maybe input fields with java.sql.Date? I convert them by myself with
 this
 mask as well, thou  I plan to use a custom SqlDateConverter class for
this
 task. Soon  soon it'll come.

 You can re-use my DateWrapper Class (prior posting this morning)
 I hope that the next struts release can handle this without so much
 customizing

 greetings,

 Andreas



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




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



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




Re: AW: java.sql.Date again!!

2002-11-25 Thread Slava_L
In your recent msg you posted 3 classes and as i can see one for String to
Date (DateBeanUtilsConverter), the second (StringBeanUtilsConverterDate) for
Date to String - duz Struts invoke it instead of  Class.toString method ?
- Original Message -
From: Andreas Langmann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 7:09 PM
Subject: AW: AW: java.sql.Date again!!


 Hmmm

 make a constructor accepting java.sql.Date for DateWrapper and a getDate()
 method returning java.sql.Date.
 I have no idea how to do more integration

 any ideas?

 greetings,

 Andreas

 -Ursprngliche Nachricht-
 Von: Slava_L [mailto:[EMAIL PROTECTED]]
 Gesendet: 25.11.2002 12:01
 An: Struts Users Mailing List
 Betreff: Re: AW: java.sql.Date again!!


 But is it possible to hide DateWrapper behind java.sql.Date ? i wish to
use
 JDBC type in my FormBean
 - Original Message -
 From: Andreas Langmann [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, November 25, 2002 6:57 PM
 Subject: AW: AW: java.sql.Date again!!


  Thats it. I use input fields and a german date format
 
  Uhh, maybe input fields with java.sql.Date? I convert them by myself
with
  this
  mask as well, thou  I plan to use a custom SqlDateConverter class for
 this
  task. Soon  soon it'll come.
 
  You can re-use my DateWrapper Class (prior posting this morning)
  I hope that the next struts release can handle this without so much
  customizing
 
  greetings,
 
  Andreas
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 


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



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




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




AW: AW: java.sql.Date again!!

2002-11-25 Thread Andreas Langmann
That would be nice no, for display struts uses DateWrapper.toString(),
the converters are used for filling formBeans

If you register these Converters for java.sql.Date, the display-format would
be wrong but you could change the display-format manually (in the jsp
page)

-Ursprngliche Nachricht-
Von: Slava_L [mailto:[EMAIL PROTECTED]]
Gesendet: 25.11.2002 12:22
An: Struts Users Mailing List
Betreff: Re: AW: java.sql.Date again!!


In your recent msg you posted 3 classes and as i can see one for String to
Date (DateBeanUtilsConverter), the second (StringBeanUtilsConverterDate) for
Date to String - duz Struts invoke it instead of  Class.toString method ?
- Original Message -
From: Andreas Langmann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 7:09 PM
Subject: AW: AW: java.sql.Date again!!


 Hmmm

 make a constructor accepting java.sql.Date for DateWrapper and a getDate()
 method returning java.sql.Date.
 I have no idea how to do more integration

 any ideas?

 greetings,

 Andreas

 -Ursprngliche Nachricht-
 Von: Slava_L [mailto:[EMAIL PROTECTED]]
 Gesendet: 25.11.2002 12:01
 An: Struts Users Mailing List
 Betreff: Re: AW: java.sql.Date again!!


 But is it possible to hide DateWrapper behind java.sql.Date ? i wish to
use
 JDBC type in my FormBean
 - Original Message -
 From: Andreas Langmann [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, November 25, 2002 6:57 PM
 Subject: AW: AW: java.sql.Date again!!


  Thats it. I use input fields and a german date format
 
  Uhh, maybe input fields with java.sql.Date? I convert them by myself
with
  this
  mask as well, thou  I plan to use a custom SqlDateConverter class for
 this
  task. Soon  soon it'll come.
 
  You can re-use my DateWrapper Class (prior posting this morning)
  I hope that the next struts release can handle this without so much
  customizing
 
  greetings,
 
  Andreas
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 


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



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




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



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




Re: Forwarding and File Download problem

2002-11-25 Thread Pontus Jonsson
On tor, 2002-11-21 at 07:28, Eddie Fung wrote:

 
 Also the dialog box that IE pops up says that you are downloading the 
 file: action class name  from localhost. This is misleading as the 
 actual dialog box that is next presented correctly names the output file 
 name that I have set up. How can I change the name of the file on the first 
 dialog box ?


The only way I know of to suggest a filename to a browser is to output
the header

Content-disposition: attachment; filename=filename

However I think this only applies when you're dumping the file directly
after the header. Is this what you want to do?

Pontus
-- 
- p o n t u s  j o n s s o n
[EMAIL PROTECTED]  +46907867143
GPG key:   http://www.educ.umu.se/~pontus/gpg.txt




signature.asc
Description: This is a digitally signed message part


FrmameWork and Design Pattern

2002-11-25 Thread Brijesh NK
Hi,
I am totally confused with the word FrameWork and Design Patters. Could any
body explain the distinct difference between these two. Or how these words
are related to each other?


Thanks  Regards


Brijesh


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




RE: Help :: Dyna forms and Validation

2002-11-25 Thread Jordan Thomas
No, I am actually using the workflow extension which requires one to use
the performAction() method. Also, I am using a nightly build of struts
from about a week ago.

Thanks

Jordan

-Original Message-
From: Billy Bacon [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 22 November 2002 1:19 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Help :: Dyna forms and Validation


Do you have an execute() method in your Action? What version of Struts
are you using?

- Original Message -
From: Jordan Thomas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 22, 2002 5:10 AM
Subject: Help :: Dyna forms and Validation


 Hi,

 I have a dynaform that is simply calling inside the action class the 
 following.

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

   return (mapping.findForward(entry));

}

 When I enter the form, it is doing the error checking as soon as I 
 enter the page. How can I stop the application from doing this? I 
 tried using form.validate(mapping, request).clear(); in the above 
 method but that didn't work. Is there a way to somehow clear these 
 error values. I am using a dynaform specified as:

 form name=loginForm
 field property=username 
 depends=required,minlength,maxlength
 arg0 key=label.login.username/
 arg1 name=minlength key=${var:minlength} 
 resource=false/
 arg2 name=maxlength key=${var:maxlength} 
 resource=false/
 var
 var-nameminlength/var-name
 var-value2/var-value
 /var
 var
 var-namemaxlength/var-name
 var-value12/var-value
 /var
 /field
 field property=password 
 depends=required,minlength,maxlength
 arg0 key=label.login.password/
 arg1 name=minlength key=${var:minlength} 
 resource=false/
 arg2 name=maxlength key=${var:maxlength} 
 resource=false/
 var
 var-nameminlength/var-name
 var-value6/var-value
 /var
 var
 var-namemaxlength/var-name
 var-value12/var-value
 /var
 /field
 /form

 And in my struts-config.xml I have:

 form-bean name=loginForm dynamic=true
 type=org.apache.struts.validator.DynaValidatorForm
 form-property name=username type=java.lang.String /
 form-property name=password type=java.lang.String /
 /form-bean

  

 action path=/login
 type=scoop.web.struts.login.LoginEntryAction
 name=loginForm
 scope=request
 input=/tiles/login
 validate=true
 forward name=entry path=/tiles/login/
 /action

 Any help would be great. Thanks in advance

 Jordan


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




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




Re: AW: java.sql.Date again!!

2002-11-25 Thread Gemes Tibor
2002. november 25. 10:31 dátummal Andreas Langmann ezt írtad:


   static {
 DateBeanUtilsConverter dateConverter = new DateBeanUtilsConverter();
 dateConverter.setFormatPattern(dd.MM.);

 StringBeanUtilsConverterDate myStringConverter = new
 StringBeanUtilsConverterDate();
 myStringConverter.setFormatPattern(dd.MM.);
 ConvertUtils.register(dateConverter, DateWrapper.class);
 ConvertUtils.register(myStringConverter, String.class);
   }


Would it cause any problem if calling setFormatPattern on every execute()? I 
would like to provide different input format depending on the client locale. 
So I decided to put the 2 converters into a static variable, and call 
setFormatPattern on every request, retrieving the formatPattern from a 
resourcebundle (which bundle is used by the WriteTag as well).


And your Converters are the one I was planning to implement. Thank you. Thank 
you.

Tib

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




Re: java.sql.Date again!!

2002-11-25 Thread Slava_L
while i wuz playin' with these convertors i could not make second
convertor StringBeanUtilsConverterDate excuted.
When exactly Struts will invoke it
- Original Message -
From: Andreas Langmann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 7:31 PM
Subject: AW: AW: java.sql.Date again!!


 That would be nice no, for display struts uses DateWrapper.toString(),
 the converters are used for filling formBeans

 If you register these Converters for java.sql.Date, the display-format
would
 be wrong but you could change the display-format manually (in the jsp
 page)




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




Re: RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-25 Thread Chuck Cavaness
Wendy,

  That's a great question that I don't know the answer to. I would direct that 
question directly to O'Reilly at [EMAIL PROTECTED]

Chuck

 
 From: Wendy Smoak [EMAIL PROTECTED]
 Date: 2002/11/24 Sun PM 10:20:27 EST
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available
 
 Chuck wrote:
  I just wanted to let everyone know that my Struts book published by
 O'Reilly is 
  now available and shipping. You can get it from Amazon, Bookpool, etc. 
 
 Any idea if/when they will put it on Safari (http://safari.oreilly.com)?
 Technical books go out of date so fast that I like to make sure it's truly
 classic before adding it to the collection. Besides, work pays for the
 Safari subscription.  ;)
 
 -- 
 Wendy Smoak
 Application Systems Analyst, Sr.
 ASU IA Information Resources Management 
 
 
 


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




AW: AW: java.sql.Date again!!

2002-11-25 Thread Andreas Langmann
i had tested it inside the execute method, and all worked fine. It will slow
down the execute a bit, but i could'nt realize a change ;-)

Better way would be convertutils use a context-object to set
format-strings...

but i think a solution for this problem could be in next release

And your Converters are the one I was planning to implement. Thank you.
Thank
you.

Nothing to thank, it was a mailinglist co-production ;-)

greetings,

Andreas


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




AW: java.sql.Date again!!

2002-11-25 Thread Andreas Langmann
hmmm... for conversion from form-bean to a displayable string, struts uses
DateWrapper.toString(). it should use the converter instead, but that dont
work. Bug in struts?! Might its no bug and this class is used for other
cases...
Had you set a break point and debugged the thing?

greetings,

Andreas

-Ursprngliche Nachricht-
Von: Slava_L [mailto:[EMAIL PROTECTED]]
Gesendet: 25.11.2002 12:56
An: Struts Users Mailing List
Betreff: Re: java.sql.Date again!!


while i wuz playin' with these convertors i could not make second
convertor StringBeanUtilsConverterDate excuted.
When exactly Struts will invoke it


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




javax.servlet.ServletException: Missing message for key index.title

2002-11-25 Thread ravi shankar
Hi friends,
I've got the following error, which i got while opening a jsp file.

javax.servlet.ServletException: Missing message for key index.title
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461)
at 
jsp._0002fjsp_0002fBookView_0002ejspBookView_jsp_3._jspService(_0002fjsp_0002fBookView_0002ejspBookView_jsp_3.java:150)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
...

pls help me solving the problem, i've checked the classpaths and files, which seems to 
be in place.

ravi




Re: javax.servlet.ServletException: Missing message for key index.title

2002-11-25 Thread kiuma
I suppose you haven't defined the index.title value in your 
MessageResources.porperties.

ravi shankar wrote:

Hi friends,
I've got the following error, which i got while opening a jsp file.

javax.servlet.ServletException: Missing message for key index.title
	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461)
	at jsp._0002fjsp_0002fBookView_0002ejspBookView_jsp_3._jspService(_0002fjsp_0002fBookView_0002ejspBookView_jsp_3.java:150)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
...

pls help me solving the problem, i've checked the classpaths and files, which seems to be in place.

ravi






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




Re: javax.servlet.ServletException: Missing message for key index.title

2002-11-25 Thread ravi shankar
 I suppose you haven't defined the index.title value in your
 MessageResources.porperties.


Hi
thanx for replying.
Yup, I've the file and the 'index.title' is defined. i am using
'ApplicationResources.properties' file which i got it in struts-example
application which i downloaded from the site.

pls could you tell me what files has to be in which folder..

thanx
ravi



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




Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Foong Tzer
Dear Struts supporter,

There seems to be a real world problem with using Struts (well, not
really Struts, but JSP Tag Libraries). It seems despite zero java coding
on the JSP pages, those 'funny' tags are still not digest-able by average
graphic designers. I mean, if they were to use Macromedia DreamWeaver, it
would not've rendered the look and feel if the tags were something like
this: -

html:img page=/nice.gif altKey=Nice/

html:html locale=true  /html:html

html:link page=/another.jspbean:message
key=another.title//html:link


As opposed to the native standard HTML tags?

I'm really not sure whether Macromedia or any other popular graphic
artiste tool would render these Struts JSP pages properly. Anybody here
has any experience solving this real world problem?

Thanks. Any help would be much appreciated.
Regards,

  Tzer
  [EMAIL PROTECTED]

Is J2EE messing up your mind?
http://www.see-consulting.com

--
http://fastmail.fm - Or how I learned to stop worrying and
  love email again

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




Re: FrmameWork and Design Pattern

2002-11-25 Thread Foong Tzer
On Mon, 25 Nov 2002 05:06:07 +0530, Brijesh NK
[EMAIL PROTECTED] said:
 Hi,
 I am totally confused with the word FrameWork and Design Patters. Could
 any
 body explain the distinct difference between these two. Or how these
 words
 are related to each other?

Framework? Hmmm, some may argue that Struts is not a framework, but I
believe it is. It has got very good web tier design patterns implemented
in Struts. What am I talking about? Perhaps, some resources in my
company's website can help you. http://www.see-consulting.com

 Thanks  Regards
 
 
 Brijesh
Regards,

  Tzer
  [EMAIL PROTECTED]

Is J2EE messing up your mind?
http://www.see-consulting.com

-- 
http://fastmail.fm - Email service worth paying for. Try it for free

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




Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread vellosa

Haha! 

This whole idea of J2EE where we have seperation of roles hasn't quite happened has 
it. The idea that there are business process programmers, database programmers, front 
end guys etc. In the end it's always the same person fulfilling all the roles.

On the projects that I have been on in the past Graphic designers have been 
comissioned to make up the pages, which are done statically. Then the programmers have 
gone through the pains of making these pages dynamic.

Regards
IV



  from:Foong Tzer [EMAIL PROTECTED]
  date:Mon, 25 Nov 2002 13:31:26
  to:  [EMAIL PROTECTED], [EMAIL PROTECTED]
  subject: Re: Struts: a Graphic Artist blessing or curse?
 
 Dear Struts supporter,
 
 There seems to be a real world problem with using Struts (well, not
 really Struts, but JSP Tag Libraries). It seems despite zero java coding
 on the JSP pages, those 'funny' tags are still not digest-able by average
 graphic designers. I mean, if they were to use Macromedia DreamWeaver, it
 would not've rendered the look and feel if the tags were something like
 this: -
 
 html:img page=/nice.gif altKey=Nice/
 
 html:html locale=true  /html:html
 
 html:link page=/another.jspbean:message
 key=another.title//html:link
 
 
 As opposed to the native standard HTML tags?
 
 I'm really not sure whether Macromedia or any other popular graphic
 artiste tool would render these Struts JSP pages properly. Anybody here
 has any experience solving this real world problem?
 
 Thanks. Any help would be much appreciated.
 Regards,
 
   Tzer
   [EMAIL PROTECTED]
 
 Is J2EE messing up your mind?
 http://www.see-consulting.com
 
 --
 http://fastmail.fm - Or how I learned to stop worrying and
   love email again
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placement=home_multi.gifsite=amazon

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




Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Gemes Tibor
2002. november 25. 14:49 dátummal [EMAIL PROTECTED] ezt írtad:
 Haha!

 This whole idea of J2EE where we have seperation of roles hasn't quite
 happened has it. The idea that there are business process programmers,
 database programmers, front end guys etc. In the end it's always the same
 person fulfilling all the roles.

Bad for you. And definitely would have been bad for our clients if I had 
designed the user interfaces. HAHA. 

Tib

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




Re: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-25 Thread Martyn Inglis
Just seen this, interested by the safari site, whats the feedback on 
it's usefulness? Sounds too good to be true! (if my company'd pay for it 
too! )

Martyn


Chuck Cavaness wrote:

Wendy,

 That's a great question that I don't know the answer to. I would direct that question directly to O'Reilly at [EMAIL PROTECTED]

Chuck

 

From: Wendy Smoak [EMAIL PROTECTED]
Date: 2002/11/24 Sun PM 10:20:27 EST
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available

Chuck wrote:
   

I just wanted to let everyone know that my Struts book published by
 

O'Reilly is 
   

now available and shipping. You can get it from Amazon, Bookpool, etc. 
 

Any idea if/when they will put it on Safari (http://safari.oreilly.com)?
Technical books go out of date so fast that I like to make sure it's truly
classic before adding it to the collection. Besides, work pays for the
Safari subscription.  ;)

--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 



   



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


 






MX Financial Solutions is a trading name of MX Moneyextra Financial
Solutions Ltd, which is regulated by the Financial Services Authority and a
member of the General Insurance Standards Council.

MX Moneyextra Financial Solutions Ltd is registered in England No. 3379907.

Registered Office: One Temple Back East, Temple Quay, Bristol BS1 6DX
A wholly owned subsidiary of Bristol  West plc.




Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Foong Tzer
C'mon guys. I've seen many great Struts website look  feel (Definitelly
generated by a graphic artist tool). I'm sure someone here has got some
good experience to share?

On Mon, 25 Nov 2002 13:49:14 + (GMT), [EMAIL PROTECTED] said:
 
 Haha! 
 
 This whole idea of J2EE where we have seperation of roles hasn't quite
 happened has it. The idea that there are business process programmers,
 database programmers, front end guys etc. In the end it's always the same
 person fulfilling all the roles.
 
 On the projects that I have been on in the past Graphic designers have
 been comissioned to make up the pages, which are done statically. Then
 the programmers have gone through the pains of making these pages
 dynamic.
 
 Regards
 IV
 
 
 
   from:Foong Tzer [EMAIL PROTECTED]
   date:Mon, 25 Nov 2002 13:31:26
   to:  [EMAIL PROTECTED], [EMAIL PROTECTED]
   subject: Re: Struts: a Graphic Artist blessing or curse?
  
  Dear Struts supporter,
  
  There seems to be a real world problem with using Struts (well, not
  really Struts, but JSP Tag Libraries). It seems despite zero java coding
  on the JSP pages, those 'funny' tags are still not digest-able by average
  graphic designers. I mean, if they were to use Macromedia DreamWeaver, it
  would not've rendered the look and feel if the tags were something like
  this: -
  
  html:img page=/nice.gif altKey=Nice/
  
  html:html locale=true  /html:html
  
  html:link page=/another.jspbean:message
  key=another.title//html:link
  
  
  As opposed to the native standard HTML tags?
  
  I'm really not sure whether Macromedia or any other popular graphic
  artiste tool would render these Struts JSP pages properly. Anybody here
  has any experience solving this real world problem?
  
  Thanks. Any help would be much appreciated.
  Regards,
  
Tzer
[EMAIL PROTECTED]
  
  Is J2EE messing up your mind?
  http://www.see-consulting.com
  
  --
  http://fastmail.fm - Or how I learned to stop worrying and
love email again
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  
 
 
 
 
http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placement=home_multi.gifsite=amazon
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 

Regards,

  Tzer
  [EMAIL PROTECTED]

Is J2EE messing up your mind?
http://www.see-consulting.com

-- 
http://fastmail.fm - Send your email first class

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




Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Brian Hickey
I don't think management of a development staff was a goal of J2EE :o)

It is separation of process and/or skill sets that Struts/MVC provides for.
Whether this happens or not is up to people, not software... yes?

The method you refer to in your last paragraph is quite common and works
quite well. If someone can do all of the tasks in a large Struts project,
they are highly skilled, very experienced and are probably compensated quite
well.

Struts taglibs, like most all taglibs, are converted in the servlet and HTML
equivalents are emitted as the browser only understands HTML. Perhaps this
is the piece that designers/web developers struggle with.

FWIW, graphic design and Java development generally use different parts of
the human brain. It isn't to say they are mutually exclusive, just that it
is difficult to switch back and forth between these skills.

Brian


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 8:49 AM
Subject: Re: Struts: a Graphic Artist blessing or curse?



 Haha!

 This whole idea of J2EE where we have seperation of roles hasn't quite
happened has it. The idea that there are business process programmers,
database programmers, front end guys etc. In the end it's always the same
person fulfilling all the roles.

 On the projects that I have been on in the past Graphic designers have
been comissioned to make up the pages, which are done statically. Then the
programmers have gone through the pains of making these pages dynamic.

 Regards
 IV


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




RE: javax.servlet.ServletException: Missing message for key index.title

2002-11-25 Thread Taariq Levack
pls could you tell me what files has to be in which folder..
thanx
ravi

its not so important where you keep the ApplicationResources.properties
file, and afaik its not even important what you name it, as long as its
properly defined in your web-inf/struts-config.xml file

message-resources
parameter=what.ever.your.package.ApplicationResources/

in this case the ApplicationResources.properties file should be in
classes/what/ever/your/package/

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




Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Cyber.Zombie
My last JSP job did not suffer that problem -- the graphics designer 
also did 100% of the JSP work.  This on a post 1.0.2 nightly with 
integrated nested extensions (I had convinced the client on the benefits 
of the nested extension and they prefered integrated rather than in a 
separate package).  The data architect did 100% of the database work 
(and some of the use case work -- he was quite good at high-level 
analysis).  The programmers did 100% of the coding.  The only aberration 
was me (the chief architect) -- not only did I do analysis through 
detailed design (using TogetherJ for class and sequence diagrams), I 
also did a fair amount of coding.

Contrast that with my last .NET job:  The graphics designers did 
strictly static HTML work.  The converion to dynamic HTML, database work 
and coding was shared by everyone else (not much of a design to start with).

[EMAIL PROTECTED] wrote:

Haha! 

This whole idea of J2EE where we have seperation of roles hasn't quite happened has it. The idea that there are business process programmers, database programmers, front end guys etc. In the end it's always the same person fulfilling all the roles.

On the projects that I have been on in the past Graphic designers have been comissioned to make up the pages, which are done statically. Then the programmers have gone through the pains of making these pages dynamic.

Regards
IV



 

from:Foong Tzer [EMAIL PROTECTED]
date:Mon, 25 Nov 2002 13:31:26
to:  [EMAIL PROTECTED], [EMAIL PROTECTED]
subject: Re: Struts: a Graphic Artist blessing or curse?

Dear Struts supporter,

There seems to be a real world problem with using Struts (well, not
really Struts, but JSP Tag Libraries). It seems despite zero java coding
on the JSP pages, those 'funny' tags are still not digest-able by average
graphic designers. I mean, if they were to use Macromedia DreamWeaver, it
would not've rendered the look and feel if the tags were something like
this: -

html:img page=/nice.gif altKey=Nice/

html:html locale=true  /html:html

html:link page=/another.jspbean:message
key=another.title//html:link


As opposed to the native standard HTML tags?

I'm really not sure whether Macromedia or any other popular graphic
artiste tool would render these Struts JSP pages properly. Anybody here
has any experience solving this real world problem?

Thanks. Any help would be much appreciated.
Regards,

 Tzer
 [EMAIL PROTECTED]

Is J2EE messing up your mind?
http://www.see-consulting.com

--
http://fastmail.fm - Or how I learned to stop worrying and
 love email again

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

   




http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placement=home_multi.gifsite=amazon

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


 




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




Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Arron Bates
It's up to your designers. I've had designers that throw their hands up
at anything under the bonnet at all. Being a graphic designer myself, I
don't mind cutting code at any level. :)


The trick with anything like this is find the middle ground for your
team. For some, it's just having them cut just the HTML face and working
a process that allows flexibility with changes.

But the fact is, you can pick the difference of professional design. You
just have to ask yourself as to how much you want to pay for it.

I wish you luck.


Arron.



On Tue, 2002-11-26 at 00:49, [EMAIL PROTECTED] wrote:
 
 Haha! 
 
 This whole idea of J2EE where we have seperation of roles hasn't quite happened has 
it. The idea that there are business process programmers, database programmers, front 
end guys etc. In the end it's always the same person fulfilling all the roles.
 
 On the projects that I have been on in the past Graphic designers have been 
comissioned to make up the pages, which are done statically. Then the programmers 
have gone through the pains of making these pages dynamic.
 
 Regards
 IV
 
 
 
   from:Foong Tzer [EMAIL PROTECTED]
   date:Mon, 25 Nov 2002 13:31:26
   to:  [EMAIL PROTECTED], [EMAIL PROTECTED]
   subject: Re: Struts: a Graphic Artist blessing or curse?
  
  Dear Struts supporter,
  
  There seems to be a real world problem with using Struts (well, not
  really Struts, but JSP Tag Libraries). It seems despite zero java coding
  on the JSP pages, those 'funny' tags are still not digest-able by average
  graphic designers. I mean, if they were to use Macromedia DreamWeaver, it
  would not've rendered the look and feel if the tags were something like
  this: -
  
  html:img page=/nice.gif altKey=Nice/
  
  html:html locale=true  /html:html
  
  html:link page=/another.jspbean:message
  key=another.title//html:link
  
  
  As opposed to the native standard HTML tags?
  
  I'm really not sure whether Macromedia or any other popular graphic
  artiste tool would render these Struts JSP pages properly. Anybody here
  has any experience solving this real world problem?
  
  Thanks. Any help would be much appreciated.
  Regards,
  
Tzer
[EMAIL PROTECTED]
  
  Is J2EE messing up your mind?
  http://www.see-consulting.com
  
  --
  http://fastmail.fm - Or how I learned to stop worrying and
love email again
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  
 
 
 
 
http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placement=home_multi.gifsite=amazon
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]



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




RE: AW: java.sql.Date again!!

2002-11-25 Thread Nelson, Laird
 -Original Message-
 From: Slava_L [mailto:[EMAIL PROTECTED]]
 But is it possible to hide DateWrapper behind java.sql.Date ? 
 i wish to use
 JDBC type in my FormBean

As a rule, FormBeans should only work with Strings.  For example, suppose
the date field on your FormBean is supposed to be populated from a user's
form submission.  What if the user types in a bad value, and you want to
return to the submission page to flag the error with the problematic field
highlighted?  For that you need to capture the value initially as a String,
because otherwise automatic type conversion will lose the user's original
(bad) value.  See the archives of this list for details.

Cheers,
Laird

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




RE: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Chappell, Simon P
Our recently completed Struts-based system had very simple, low graphic screens and so 
we elected not to have a page designer.

For a laugh, we slapped a background on the screen of one of my digital photos that I 
had taken of a recent sunset at a local state park (after fading it so people could 
still read the text on the page) and the users loved it and requested that it be left 
in. Who needs graphic designers? ;-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


-Original Message-
From: Cyber.Zombie [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 8:11 AM
To: Struts Users Mailing List
Subject: Re: Struts: a Graphic Artist blessing or curse?


My last JSP job did not suffer that problem -- the graphics designer 
also did 100% of the JSP work.  This on a post 1.0.2 nightly with 
integrated nested extensions (I had convinced the client on 
the benefits 
of the nested extension and they prefered integrated rather than in a 
separate package).  The data architect did 100% of the database work 
(and some of the use case work -- he was quite good at high-level 
analysis).  The programmers did 100% of the coding.  The only 
aberration 
was me (the chief architect) -- not only did I do analysis through 
detailed design (using TogetherJ for class and sequence diagrams), I 
also did a fair amount of coding.

Contrast that with my last .NET job:  The graphics designers did 
strictly static HTML work.  The converion to dynamic HTML, 
database work 
and coding was shared by everyone else (not much of a design 
to start with).

[EMAIL PROTECTED] wrote:

Haha! 

This whole idea of J2EE where we have seperation of roles 
hasn't quite happened has it. The idea that there are business 
process programmers, database programmers, front end guys etc. 
In the end it's always the same person fulfilling all the roles.

On the projects that I have been on in the past Graphic 
designers have been comissioned to make up the pages, which 
are done statically. Then the programmers have gone through 
the pains of making these pages dynamic.

Regards
IV



  

 from:Foong Tzer [EMAIL PROTECTED]
 date:Mon, 25 Nov 2002 13:31:26
 to:  [EMAIL PROTECTED], 
[EMAIL PROTECTED]
 subject: Re: Struts: a Graphic Artist blessing or curse?

Dear Struts supporter,

There seems to be a real world problem with using Struts (well, not
really Struts, but JSP Tag Libraries). It seems despite zero 
java coding
on the JSP pages, those 'funny' tags are still not 
digest-able by average
graphic designers. I mean, if they were to use Macromedia 
DreamWeaver, it
would not've rendered the look and feel if the tags were 
something like
this: -

html:img page=/nice.gif altKey=Nice/

html:html locale=true  /html:html

html:link page=/another.jspbean:message
key=another.title//html:link


As opposed to the native standard HTML tags?

I'm really not sure whether Macromedia or any other popular graphic
artiste tool would render these Struts JSP pages properly. 
Anybody here
has any experience solving this real world problem?

Thanks. Any help would be much appreciated.
Regards,

  Tzer
  [EMAIL PROTECTED]

Is J2EE messing up your mind?
http://www.see-consulting.com

--
http://fastmail.fm - Or how I learned to stop worrying and
  love email again

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






http://www.amazon.co.uk/exec/obidos/redirect-home?tag=vellosco
uk-21placement=home_multi.gifsite=amazon

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


  




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



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




Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Foong Tzer
On Mon, 25 Nov 2002 08:10:45 -0600, Cyber.Zombie
[EMAIL PROTECTED] said:
 My last JSP job did not suffer that problem -- the graphics designer 
 also did 100% of the JSP work. 

Thats sounds quite fair. But most of the real expert graphic artist here
knows nuts about programming. What's more if you require them to code JSP
+ Servlet using an alien tool called IDE running/testing via Tomcat or
whetever web container you used.


  This on a post 1.0.2 nightly with 
 integrated nested extensions (I had convinced the client on the benefits 
 of the nested extension and they prefered integrated rather than in a 
 separate package).  The data architect did 100% of the database work 
 (and some of the use case work -- he was quite good at high-level 
 analysis).  The programmers did 100% of the coding.  The only aberration 
 was me (the chief architect) -- not only did I do analysis through 
 detailed design (using TogetherJ for class and sequence diagrams), I 
 also did a fair amount of coding.
 
 Contrast that with my last .NET job:  The graphics designers did 
 strictly static HTML work.  The converion to dynamic HTML, database work 
 and coding was shared by everyone else (not much of a design to start
 with).
 
 [EMAIL PROTECTED] wrote:
 
 Haha! 
 
 This whole idea of J2EE where we have seperation of roles hasn't quite happened has 
it. The idea that there are business process programmers, database programmers, front 
end guys etc. In the end it's always the same person fulfilling all the roles.
 
 On the projects that I have been on in the past Graphic designers have been 
comissioned to make up the pages, which are done statically. Then the programmers 
have gone through the pains of making these pages dynamic.
 
 Regards
 IV
 
 
 
   
 
  from:Foong Tzer [EMAIL PROTECTED]
  date:Mon, 25 Nov 2002 13:31:26
  to:  [EMAIL PROTECTED], [EMAIL PROTECTED]
  subject: Re: Struts: a Graphic Artist blessing or curse?
 
 Dear Struts supporter,
 
 There seems to be a real world problem with using Struts (well, not
 really Struts, but JSP Tag Libraries). It seems despite zero java coding
 on the JSP pages, those 'funny' tags are still not digest-able by average
 graphic designers. I mean, if they were to use Macromedia DreamWeaver, it
 would not've rendered the look and feel if the tags were something like
 this: -
 
 html:img page=/nice.gif altKey=Nice/
 
 html:html locale=true  /html:html
 
 html:link page=/another.jspbean:message
 key=another.title//html:link
 
 
 As opposed to the native standard HTML tags?
 
 I'm really not sure whether Macromedia or any other popular graphic
 artiste tool would render these Struts JSP pages properly. Anybody here
 has any experience solving this real world problem?
 
 Thanks. Any help would be much appreciated.
 Regards,
 
   Tzer
   [EMAIL PROTECTED]
 
 Is J2EE messing up your mind?
 http://www.see-consulting.com
 
 --
 http://fastmail.fm - Or how I learned to stop worrying and
   love email again
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placement=home_multi.gifsite=amazon
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
   
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 

Regards,

  Tzer
  [EMAIL PROTECTED]

Is J2EE messing up your mind?
http://www.see-consulting.com
-- 
http://fastmail.fm - Choose from over 50 domains or use your own

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




Re: Struts 1.1b2 and Sybase EAServer 4.1.0 (Jaguar)

2002-11-25 Thread Eugene Gunichev
Servlet definition and mapping:
  servlet
servlet-nameaction/servlet-name
display-nameaction/display-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value3/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value3/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet

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

Version of Struts is 1.1b2

- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 23, 2002 9:44 PM
Subject: Re: Struts 1.1b2 and Sybase EAServer 4.1.0 (Jaguar)


 What does your servlet definition and mapping look like from web.xml?
What
 version of Struts are you using?

 David






 From: Eugene Gunichev [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Struts 1.1b2 and Sybase EAServer 4.1.0 (Jaguar)
 Date: Sat, 23 Nov 2002 17:32:58 -
 
 Has anyone gotten Struts to work in EAServer? EAServer produces strange
 error Unable to start servlet action: java.lang.ClassCastException:
 org.apache.struts.action.ActionServlet. Following is full stack trace:
 
 java.lang.ClassCastException: org.apache.struts.action.ActionServlet
  at com.sybase.jaguar.servlet.JagServlet.init(JagServlet.java:56)
  at

com.sybase.jaguar.servlet.ServletPool.createInitializedInstance(ServletPool
.java:146)
  at
 com.sybase.jaguar.servlet.ServletPool.getInstance(ServletPool.java:65)
  at com.sybase.jaguar.servlet.ServletPool.start(ServletPool.java:262)
  at

com.sybase.jaguar.servlet.JagServletContext.startServlet(JagServletContext.
java:1966)
  at

com.sybase.jaguar.servlet.JagServletContext.startWebAppServlets(JagServletC
ontext.java:1579)
  at

com.sybase.jaguar.servlet.ServletEngine.startWebAppServlets(ServletEngine.j
ava:779)
  at

com.sybase.jaguar.servlet.ServletServiceImpl.startWebAppServlets(ServletSer
viceImpl.java:155)
  at

com.sybase.jaguar.servlet._sk_JaguarServlet_ServletService.invoke(_sk_Jagua
rServlet_ServletService.java:467)


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


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


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




ActionForm instance lost

2002-11-25 Thread Lenharcik, Juraj
Hi,

I overwrite my ActionForm instance with a new one, which is deserialized
from xml.

Test t = (Test) form;
.
t = u.unmarshall(reader);   // XML -- Java

When I formward to the JSP, the values from the Test ActionForm are not
accessible. If I write this:

request.setAttribiute(myform, t); //myform ist the configured name of
the form in struts-config

Everything works fine. 
Is there a possibility to do this without the static line (myform) ? I tried
to solve it with the ActionForm.servlet, but it doesn't work.

Thank you,
Juraj

 


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




AW: AW: java.sql.Date again!!

2002-11-25 Thread Andreas Langmann
As a rule, FormBeans should only work with Strings.  For example, suppose
the date field on your FormBean is supposed to be populated from a user's
form submission.  What if the user types in a bad value, and you want to
return to the submission page to flag the error with the problematic field
highlighted?  For that you need to capture the value initially as a String,
because otherwise automatic type conversion will lose the user's original
(bad) value.  See the archives of this list for details.

for that, i use the javascript validation, so this case never happens.

And the formBeans containing Integer and Date objects are perfect as
parameters for business-methods.

for example:

form_bean_xxx contains
  teacher : fb_teacher


fb_teacher contains
  name
  birthdate : DateWrapper

you can give form_bean.teacher to a session bean method.
so you need not much parameters and no separate simpletypes

greetings,

Andreas


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




RE: XML Include for validation.xml

2002-11-25 Thread James Mitchell
At the same level, have you tried:
!ENTITY c SYSTEM validation-c.xml
   ^


--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?
- Seymour Cray (1925-1996), father of supercomputing


 -Original Message-
 From: Andreas Langmann [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 25, 2002 6:05 AM
 To: Struts User Mailingliste
 Subject: XML Include for validation.xml


 Hello,

 i tried the following:

 **
 ?xml version=1.0 encoding=ISO-8859-1 standalone=yes ?

 !DOCTYPE validation
 [
!ENTITY a SYSTEM
 file://C:/Programme/eclipse/workspace/appl/build/webapp/WEB-INF/validation/
 validation-a.xml
!ENTITY b SYSTEM
 file://C:/Programme/eclipse/workspace/appl/build/webapp/WEB-INF/validation/
 validation-b.xml
!ENTITY c SYSTEM /WEB-INF/validation/validation-c.xml
 ]

 form-validation
   formset
 a;

 b;

 c;
   /formset
 /form-validation
 *

 and it works... but how can i use relative url's for the included files?
 This example loads validation-a, and validation-b, but not c...

 I dont want to use http://127.0.0.1/...xml; because i dont want to give the
 xml files to public http access

 The same problem in struts-config xml for including form-bean-definitions
 was no problem... it works fine, but here i got problems with missing dtd if
 i use the header from struts-examples...

 tia

 Andreas


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




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




RE: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Míguel Ángel Mulero Martínez
Have you looked at this?
http://jakarta.apache.org/taglibs/doc/ultradev4-doc/intro.html

I don't have tried it, so if you do it please comment to group.


 -Mensaje original-
 De: Foong Tzer [mailto:[EMAIL PROTECTED]]
 Enviado el: lunes, 25 de noviembre de 2002 14:31
 Para: Struts Users Mailing List; Struts Users Mailing List
 Asunto: Struts: a Graphic Artist blessing or curse?


 Dear Struts supporter,

 There seems to be a real world problem with using Struts (well, not
 really Struts, but JSP Tag Libraries). It seems despite zero java coding
 on the JSP pages, those 'funny' tags are still not digest-able by average
 graphic designers. I mean, if they were to use Macromedia DreamWeaver, it
 would not've rendered the look and feel if the tags were something like
 this: -

 html:img page=/nice.gif altKey=Nice/

 html:html locale=true  /html:html

 html:link page=/another.jspbean:message
 key=another.title//html:link


 As opposed to the native standard HTML tags?

 I'm really not sure whether Macromedia or any other popular graphic
 artiste tool would render these Struts JSP pages properly. Anybody here
 has any experience solving this real world problem?

 Thanks. Any help would be much appreciated.
 Regards,

   Tzer
   [EMAIL PROTECTED]

 Is J2EE messing up your mind?
 http://www.see-consulting.com

 --
 http://fastmail.fm - Or how I learned to stop worrying and
   love email again

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


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




AW: XML Include for validation.xml

2002-11-25 Thread Andreas Langmann
At the same level, have you tried:
!ENTITY c SYSTEM validation-c.xml
  ^
yes parser says something about relative uri not allowed without base
uri. think it's a bug in common-validation?


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




Validation framework not multi-app aware.

2002-11-25 Thread Maarten . DeCock
Hi,

When using multi-applications in struts and using a different validator.xml
for each sub-application, the validator framework fails to work. No
validation occurs.

-- The plugin configuration of the main app:
  plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
  /plug-in

-- The plugin configuration of the sub-app:
  plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/q20031/validation.xml/
  /plug-in

Is there a solution for this problem?



Re: Re: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-25 Thread Chuck Cavaness
As far as the Struts book showing up on Safari, I just sent an email off to the 
marketing person for my book and asked her. I'll let you know as soon as I hear 
something. Regarding the usefulness of the site, I've never used it but I'm sure 
someone else can comment.

Chuck

 
 From: Martyn Inglis [EMAIL PROTECTED]
 Date: 2002/11/25 Mon AM 09:10:05 EST
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: [ANNOUNCE] O'Reilly Struts Book Now Available
 
 Just seen this, interested by the safari site, whats the feedback on 
 it's usefulness? Sounds too good to be true! (if my company'd pay for it 
 too! )
 
 Martyn
 
 
 Chuck Cavaness wrote:
 
 Wendy,
 
   That's a great question that I don't know the answer to. I would direct that 
question directly to O'Reilly at [EMAIL PROTECTED]
 
 Chuck
 
   
 
 From: Wendy Smoak [EMAIL PROTECTED]
 Date: 2002/11/24 Sun PM 10:20:27 EST
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available
 
 Chuck wrote:
 
 
 I just wanted to let everyone know that my Struts book published by
   
 
 O'Reilly is 
 
 
 now available and shipping. You can get it from Amazon, Bookpool, etc. 
   
 
 Any idea if/when they will put it on Safari (http://safari.oreilly.com)?
 Technical books go out of date so fast that I like to make sure it's truly
 classic before adding it to the collection. Besides, work pays for the
 Safari subscription.  ;)
 
 -- 
 Wendy Smoak
 Application Systems Analyst, Sr.
 ASU IA Information Resources Management 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
   
 
 
 
 
 
 
 MX Financial Solutions is a trading name of MX Moneyextra Financial
 Solutions Ltd, which is regulated by the Financial Services Authority and a
 member of the General Insurance Standards Council.
 
 MX Moneyextra Financial Solutions Ltd is registered in England No. 3379907.
 
 Registered Office: One Temple Back East, Temple Quay, Bristol BS1 6DX
 A wholly owned subsidiary of Bristol  West plc.
 
 
 


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




Re: Validation framework not multi-app aware.

2002-11-25 Thread Eddie Bush
You have said nothing about which release you're working with.  If it's 
a nightly build it should work - if you're not using a nightly build, 
I'd suggest you grab a nice, fresh binary off the shelf and give things 
a go.  The validator should be there for modules (that's what we call 
them now - not sub-apps).

[EMAIL PROTECTED] wrote:

Hi,

When using multi-applications in struts and using a different validator.xml
for each sub-application, the validator framework fails to work. No
validation occurs.

-- The plugin configuration of the main app:
 plug-in className=org.apache.struts.validator.ValidatorPlugIn
   set-property property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
 /plug-in

-- The plugin configuration of the sub-app:
 plug-in className=org.apache.struts.validator.ValidatorPlugIn
   set-property property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/q20031/validation.xml/
 /plug-in

Is there a solution for this problem?

 


--
Eddie Bush





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




Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Daniel H. F. e Silva
Hi Foong,
 After some headaches and some experience, i do the following:
  1 - We (developers and programmers) write a clear requirement doc about a graphical 
interface,
with all data that will be displayed, data type and this kind of stuff.
  2 - Our designers develop all graphical interface based on that requirement doc, 
using their
prefered IDE. Result will be pure HTML containing all data specified at requirement 
doc, but sure,
these data will be like foo bar data. Just necessary data to show all interface 
features will be
present. This process is a kind of pair programming (one graphical designer and one 
developer) to
guarantee that all requirements will be achieved.
  3 - We (developers and programmer), as we know HTML and as we developed together 
with designers,
integrate all real code to get all data that has to be showed.
 
  Well, i don't know if this is the best approach. But it have been working here at my 
job for a
long time. 
  Tips? New experiences? I'd like to hear about them.

Best regards,
 Daniel. 

--- Foong Tzer [EMAIL PROTECTED] wrote:
 Dear Struts supporter,
 
 There seems to be a real world problem with using Struts (well, not
 really Struts, but JSP Tag Libraries). It seems despite zero java coding
 on the JSP pages, those 'funny' tags are still not digest-able by average
 graphic designers. I mean, if they were to use Macromedia DreamWeaver, it
 would not've rendered the look and feel if the tags were something like
 this: -
 
 html:img page=/nice.gif altKey=Nice/
 
 html:html locale=true  /html:html
 
 html:link page=/another.jspbean:message
 key=another.title//html:link
 
 
 As opposed to the native standard HTML tags?
 
 I'm really not sure whether Macromedia or any other popular graphic
 artiste tool would render these Struts JSP pages properly. Anybody here
 has any experience solving this real world problem?
 
 Thanks. Any help would be much appreciated.
 Regards,
 
   Tzer
   [EMAIL PROTECTED]
 
 Is J2EE messing up your mind?
 http://www.see-consulting.com
 
 --
 http://fastmail.fm - Or how I learned to stop worrying and
   love email again
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Validation framework not multi-app aware.

2002-11-25 Thread Maarten . DeCock
I'm currently using version 1.1 b2.
I'll give the nightly build a try.

Thanx for your reply,
Maarten

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: maandag 25 november 2002 17:06
To: Struts Users Mailing List
Subject: Re: Validation framework not multi-app aware.


You have said nothing about which release you're working with.  If it's 
a nightly build it should work - if you're not using a nightly build, 
I'd suggest you grab a nice, fresh binary off the shelf and give things 
a go.  The validator should be there for modules (that's what we call 
them now - not sub-apps).

[EMAIL PROTECTED] wrote:

Hi,

When using multi-applications in struts and using a different validator.xml
for each sub-application, the validator framework fails to work. No
validation occurs.

-- The plugin configuration of the main app:
  plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
  /plug-in

-- The plugin configuration of the sub-app:
  plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/q20031/validation.xml/
  /plug-in

Is there a solution for this problem?

  


-- 
Eddie Bush





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



Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread vellosa


 I don't think management of a development staff was a goal 
 of J2EE :o)
 
 It is separation of process and/or skill sets that Struts/MVC 
 provides for. Whether this happens or not is up to people,
 not software... yes?

Indeed the seperation of the tasks in your project is up to 
the people involved, but I do believe it was a goal of the 
J2EE architecture to _help_ split these up. Where people who 
understand database access write your EJBs. Those who understand the business 
processes are writing the Session beans that contain 
business logic, and those that understand the user interactions
are writing the JSPs.

From my point of view you can try to assign people with 
particular parts of a project, but then managment will require
things to be done now and a front end JSP programmer is suddenly
coding database access. I've seen it. 10 odbc (yes odbc)
connections from the index jsp. It was a nightmare! didn't 
even provide any useful information.
 
 The method you refer to in your last paragraph is quite 
 common and works quite well. 

I've seen this a number of times now. It has worked very well 
for me too. We have often used a junior programmer here as a 
way for them to get into a project and understand more of what
we are trying to achieve over all.

 If someone can do all of the tasks in a large Struts project,
 they are highly skilled, very experienced and are probably
 compensated quite well.
 
I don't know about highly skilled, but I do end up having a hand
in all the tasks in our current project. I definataly know I'm
not compensated well for it though!

 Struts taglibs, like most all taglibs, are converted in the
 servlet and HTML equivalents are emitted as the browser
 only understands HTML. Perhaps this is the piece that 
 designers/web developers struggle with.
 
 FWIW, graphic design and Java development generally use 
 different parts of the human brain. It isn't to say they
 are mutually exclusive, just that it is difficult to switch
 back and forth between these skills.

I'll use that next time someone complains about my nice plain
white pages with a table in the middle ;)

 Brian

Cheers
IV
 
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, November 25, 2002 8:49 AM
 Subject: Re: Struts: a Graphic Artist blessing or curse?
 
 
 
  Haha!
 
  This whole idea of J2EE where we have seperation of roles hasn't quite
 happened has it. The idea that there are business process programmers,
 database programmers, front end guys etc. In the end it's always the same
 person fulfilling all the roles.
 
  On the projects that I have been on in the past Graphic designers have
 been comissioned to make up the pages, which are done statically. Then the
 programmers have gone through the pains of making these pages dynamic.
 
  Regards
  IV
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placement=home_multi.gifsite=amazon

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




RE: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Chappell, Simon P


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 9:07 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Struts: a Graphic Artist blessing or curse?

snip

 FWIW, graphic design and Java development generally use 
 different parts of the human brain. It isn't to say they
 are mutually exclusive, just that it is difficult to switch
 back and forth between these skills.

I'll use that next time someone complains about my nice plain
white pages with a table in the middle ;)

If Craig felt that was good enough for the struts-example, then my goodness, it's good 
enough for me! ;-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

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




Re: FrmameWork and Design Pattern

2002-11-25 Thread Eddie Bush
Have you ever seen a new building going up?  You know - when there's 
just steel beams there?  That would be a framework (roughly speaking). 
Now, the design patterns would deal with how the beams should be 
situated so that the building will hold-up over time -- or so that the 
building may be added onto later more easily (if this is a design goal).

Frameworks are super-generic libraries (APIs) which allow you to 
become productive with something faster by taking care of most of the 
muss and fuss and allowing you to build upon their base to bring 
things to fruition faster.  Patterns may be used to design the framework 
- in fact, Struts makes use of several J2EE Blueprint patterns.  All in 
the world a pattern is ... is just a solid, proven way for solving a 
problem.  Have you read any design pattern books?  That would make for 
good research material to help better understand what a pattern is.

Brijesh NK wrote:

Hi,
I am totally confused with the word FrameWork and Design Patters. Could any
body explain the distinct difference between these two. Or how these words
are related to each other?


Thanks  Regards


Brijesh



--
Eddie Bush





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




Action Name

2002-11-25 Thread edgar
Does anyone know how to easily get the current action name (other than
decomposing it from the URI)?

The idea is I am writing a class of generic reporting servlets and I
would like to stick in a simple form or link to return to the prior
action.

Any ideas would be appreciated.

Edgar.


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




RE: Validation framework not multi-app aware.

2002-11-25 Thread Hohlen, John
Eddie,

I just to make sure I understand your statement before I spend a bunch of
time on this.  Modules (formerly sub-apps) work with the rest of the Struts
1.1 (i.e. the Validation framework, etc) -- in the latest nightly build.
I'm just double checking b/c I spent a bunch of time when Struts 1.1 B2 came
out trying to get these two to play together.  I didn't know they weren't
compatible at that time.

Thanks!

JOHN

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 10:06 AM
To: Struts Users Mailing List
Subject: Re: Validation framework not multi-app aware.


You have said nothing about which release you're working with.  If it's 
a nightly build it should work - if you're not using a nightly build, 
I'd suggest you grab a nice, fresh binary off the shelf and give things 
a go.  The validator should be there for modules (that's what we call 
them now - not sub-apps).

[EMAIL PROTECTED] wrote:

Hi,

When using multi-applications in struts and using a different validator.xml
for each sub-application, the validator framework fails to work. No
validation occurs.

-- The plugin configuration of the main app:
  plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
  /plug-in

-- The plugin configuration of the sub-app:
  plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/q20031/validation.xml/
  /plug-in

Is there a solution for this problem?

  


-- 
Eddie Bush





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

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




[tiles] insert: Illegal to flush within a custom tag...

2002-11-25 Thread Etienne Labont
Hi, 

I'm using the tabs layout and it works well. But I have this problem when I
try to insert tab bodies inside a layout made of custom tags: I get the
error message
Can't insert page 'whatever-page.jsp' : Illegal to flush within a custom
tag 

The layout comes out right but this message is displayed where the tab body
should be... And it gives the same result wether flush is true or false on
the insert call.

I think this is not directly related to the tabs layout so my example might
be misleading... But can somebody help me with this?



Etienne



Does the current version of struts run with tomcat-3.2.4?

2002-11-25 Thread Zsolt Koppany
Hi,

we do have to support tomcat-3.2.4 and I just would like to known whether 
struts-1.1 runs with tomcat-3.2.4.

Zsolt

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




Migrating from 1.0.2 to 1.1

2002-11-25 Thread Francesco Russo
Hi everybody,

I have a question concerning how to move a piece of code working with 
the Struts 1.0.2  release to the upcoming 1.1 stable one. What I do is:

public myActionServlet extends ActionServlet
{
   ...
   public Class getClass(String fullyQualifiedName)
   {
 FastHashMap fhm = this.actions;
 java.lang.Object obj = fhm.get( fullyQualifiedName );
 return obj.getClass();
   }
   ...
}

My intent is to retreive the Class instance associated with the Action 
identified by the provided fully qualified name in order to save the 
time required for loading it via the class loader, since it could 
already have been instantiated by the controller itself!

What I am warried about is that the actions protected field in the 
ActionServlet class no longer exists in the 1.1 Struts release.

Might anyone tell me how this simple piece of code can be geared to 
Struts 1.1?

Thanks in advance,
Francesco.




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



RE: set a html:checkbox checked

2002-11-25 Thread Mouratidis, Georg
Hi, Oliver

did you get any response. i'm looking for the same.
could you send me your solution please?

thx

Georg M.

-Original Message-
From: Oliver Kersten [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 21. November 2002 17:34
To: [EMAIL PROTECTED]
Subject: set a html:checkbox checked


Hi,

how can I set a checkbox checked during creation in the JSP. In HTML I would
do it like this:

  input type=checkbox name=mycheck checked

But I can't find that for the struts tag:

  html:checkbox property=mycheckcheck it/html:ckeckbox

And can I use the value true to set a checkbox checked. I get only a
true from my bean and not a checked or something else.

ciao Oliver.



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


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




[Taglib] A common taglibs file

2002-11-25 Thread Sri Sankaran
Do you know if there is any runtime overhead incurred by having unnecessary taglib 
directives in a JSP file?  

I am thinking of creating a monolithic taglibs.jsp file that just contains the taglib 
directives that *any* page in my application would need.  Then when adding a page to 
the application, I simply have to include taglibs.jsp.

I can see benefits of doing so but I wanted to know if there any (non-trivial) 
processing overhead.

Sri



RE: set a html:checkbox checked

2002-11-25 Thread Karr, David
In your Action class which forwards to the JSP, you have to have code which sets the 
property associated with the checkbox to either true, yes, on, or the value set 
in the value attribute.

 -Original Message-
 From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]]
 
 Hi, Oliver
 
 did you get any response. i'm looking for the same.
 could you send me your solution please?
 
 thx
 
 Georg M.
 
 -Original Message-
 From: Oliver Kersten [mailto:[EMAIL PROTECTED]]
 
 Hi,
 
 how can I set a checkbox checked during creation in the JSP. 
 In HTML I would
 do it like this:
 
   input type=checkbox name=mycheck checked
 
 But I can't find that for the struts tag:
 
   html:checkbox property=mycheckcheck it/html:ckeckbox
 
 And can I use the value true to set a checkbox checked. I get only a
 true from my bean and not a checked or something else.

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




RE: set a html:checkbox checked

2002-11-25 Thread Mouratidis, Georg
any examples please. i do not understand how to do it.

thx

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: Montag, 25. November 2002 17:34
To: Struts Users Mailing List
Subject: RE: set a html:checkbox checked


In your Action class which forwards to the JSP, you have to have code which sets the 
property associated with the checkbox to either true, yes, on, or the value set 
in the value attribute.

 -Original Message-
 From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]]
 
 Hi, Oliver
 
 did you get any response. i'm looking for the same.
 could you send me your solution please?
 
 thx
 
 Georg M.
 
 -Original Message-
 From: Oliver Kersten [mailto:[EMAIL PROTECTED]]
 
 Hi,
 
 how can I set a checkbox checked during creation in the JSP. 
 In HTML I would
 do it like this:
 
   input type=checkbox name=mycheck checked
 
 But I can't find that for the struts tag:
 
   html:checkbox property=mycheckcheck it/html:ckeckbox
 
 And can I use the value true to set a checkbox checked. I get only a
 true from my bean and not a checked or something else.

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


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




RE: set a html:checkbox checked

2002-11-25 Thread edgar
Don't use the struts tag.  The struts checkbox tag assumes all
checkboxes are off.  Use something like

input type='checkbox' name='yourbeanproperty' checked

As long as you use the name which corresponds to the form bean property
struts will correctly link the data back to your form.  Hope this helps.

Edgar

-Original Message-
From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 25, 2002 11:25 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: set a html:checkbox checked


Hi, Oliver

did you get any response. i'm looking for the same.
could you send me your solution please?

thx

Georg M.

-Original Message-
From: Oliver Kersten [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 21. November 2002 17:34
To: [EMAIL PROTECTED]
Subject: set a html:checkbox checked


Hi,

how can I set a checkbox checked during creation in the JSP. In HTML I
would do it like this:

  input type=checkbox name=mycheck checked

But I can't find that for the struts tag:

  html:checkbox property=mycheckcheck it/html:ckeckbox

And can I use the value true to set a checkbox checked. I get only a
true from my bean and not a checked or something else.

ciao Oliver.



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


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


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




Re: Migrating from 1.0.2 to 1.1

2002-11-25 Thread David Graham
If the ActionServlet has instantiated an Action then it has already been 
loaded by the class loader and won't be loaded again by your servlet.  I 
suggest removing that piece of code entirely.

David






From: Francesco Russo [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Migrating from 1.0.2 to 1.1
Date: Mon, 25 Nov 2002 17:13:42 +0100

Hi everybody,

I have a question concerning how to move a piece of code working with the 
Struts 1.0.2  release to the upcoming 1.1 stable one. What I do is:

public myActionServlet extends ActionServlet
{
   ...
   public Class getClass(String fullyQualifiedName)
   {
 FastHashMap fhm = this.actions;
 java.lang.Object obj = fhm.get( fullyQualifiedName );
 return obj.getClass();
   }
   ...
}

My intent is to retreive the Class instance associated with the Action 
identified by the provided fully qualified name in order to save the time 
required for loading it via the class loader, since it could already have 
been instantiated by the controller itself!

What I am warried about is that the actions protected field in the 
ActionServlet class no longer exists in the 1.1 Struts release.

Might anyone tell me how this simple piece of code can be geared to Struts 
1.1?

Thanks in advance,
Francesco.




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


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



RE: set a html:checkbox checked

2002-11-25 Thread edgar
I believe the value attribute in the case of the textbox is the 'text'
returned by a 'checked' checkbox, not the boolean value of the checkbox.

Edgar

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 25, 2002 11:34 AM
To: 'Struts Users Mailing List'
Subject: RE: set a html:checkbox checked


In your Action class which forwards to the JSP, you have to have code
which sets the property associated with the checkbox to either true,
yes, on, or the value set in the value attribute.

 -Original Message-
 From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]]
 
 Hi, Oliver
 
 did you get any response. i'm looking for the same.
 could you send me your solution please?
 
 thx
 
 Georg M.
 
 -Original Message-
 From: Oliver Kersten [mailto:[EMAIL PROTECTED]]
 
 Hi,
 
 how can I set a checkbox checked during creation in the JSP.
 In HTML I would
 do it like this:
 
   input type=checkbox name=mycheck checked
 
 But I can't find that for the struts tag:
 
   html:checkbox property=mycheckcheck it/html:ckeckbox
 
 And can I use the value true to set a checkbox checked. I get only a

 true from my bean and not a checked or something else.

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


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




RE: set a html:checkbox checked

2002-11-25 Thread Mouratidis, Georg
The poblem is not to post back, the problem ist to populate the checkbox checked.

I would like to set the checked attribut dynamically.

something like :
if tablecolumn.value == 1 then checkbox = checked

any idea
thx georg M.


Don't use the struts tag.  The struts checkbox tag assumes all
checkboxes are off.  Use something like

input type='checkbox' name='yourbeanproperty' checked

As long as you use the name which corresponds to the form bean property
struts will correctly link the data back to your form.  Hope this helps.

Edgar

-Original Message-
From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 25, 2002 11:25 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: set a html:checkbox checked


Hi, Oliver

did you get any response. i'm looking for the same.
could you send me your solution please?

thx

Georg M.

-Original Message-
From: Oliver Kersten [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 21. November 2002 17:34
To: [EMAIL PROTECTED]
Subject: set a html:checkbox checked


Hi,

how can I set a checkbox checked during creation in the JSP. In HTML I
would do it like this:

  input type=checkbox name=mycheck checked

But I can't find that for the struts tag:

  html:checkbox property=mycheckcheck it/html:ckeckbox

And can I use the value true to set a checkbox checked. I get only a
true from my bean and not a checked or something else.

ciao Oliver.



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


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


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


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




validator-rules.xml with netscape - bug report.

2002-11-25 Thread Arik Levin ( Tikal )
HI all.

I have this cross platform issue and when it comes to
validator-rules.xml I had a problem which I wanted to share with you.

In the validator-rules.xml the parsing popup alert message has a bug
in netscpae.

The line alert(fields.join('\n')); is fine for explorer but not in
netscape. The Join function does not do the work.

Instead I used it like this:

alert(join(fields,'\n'));


function join(arr,token)
{
/**
 *  Description:
 *  This function behaves like 'Join'
(Array function, which doesn't work in Netscape).
 *  The join method is used for join all
the elements of an array into a single string 
 *  separated by a specified string
separator (if none is specified, the default is a comma). 
 *
 *  parameters:
 *   arr: given Array object.
 *   token: string.
 *
 *  return: new parsed String.
*/

retStr = ;

if (arr)
{
if(arr.length  0)
{
if (token != null) retStr =
replace(arr.toString(),,,token);
else retStr = arr.toString();
}
}

return retStr;
}


I thought it would be interesting to you all.

Ciao.




Re: validator-rules.xml with netscape - bug report.

2002-11-25 Thread David Graham
Netscape does support the join function as documented here:
http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/

David







From: Arik  Levin ( Tikal ) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: validator-rules.xml with netscape - bug report.
Date: Mon, 25 Nov 2002 18:55:58 +0200

HI all.

	I have this cross platform issue and when it comes to
validator-rules.xml I had a problem which I wanted to share with you.

	In the validator-rules.xml the parsing popup alert message has a bug
in netscpae.

	The line alert(fields.join('\n')); is fine for explorer but not in
netscape. The Join function does not do the work.

	Instead I used it like this:

	alert(join(fields,'\n'));


		function join(arr,token)
		{
		/**
		 *  Description:
		 *  	This function behaves like 'Join'
(Array function, which doesn't work in Netscape).
		 *		The join method is used for join all
the elements of an array into a single string
		 *		separated by a specified string
separator (if none is specified, the default is a comma).
		 *
		 *  parameters:
		 *		 arr: given Array object.
		 *	 token: string.
		 *
		 *  return: new parsed String.
		*/

		retStr = ;

		if (arr)
		{
		if(arr.length  0)
		{
		if (token != null) retStr =
replace(arr.toString(),,,token);
		else retStr = arr.toString();
		}
		}

		return retStr;
		}


		I thought it would be interesting to you all.

		Ciao.




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


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



RE: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Joe Germuska
This is an interesting thread, as we have a lot of challenges working 
with our artists to create JSPs for use with Struts.  Of course, I 
would suggest that the issue has little to do with Struts, and a lot 
to do with the state of JSP tools.

I think that JSP 2.0 and Java Server Faces (JSF) both offer a lot of 
promise for better tools for non-programmers to make JSPs.  JSP 2.0 
allows us to totally prohibit scriptlets, which must be the biggest 
challenge for GUI page editing tools.  Also, JSF promises a lot of 
standardized web UI widgets which, by virtue of being standardized, 
will provide a more reliable area of concern for GUI editing apps to 
support.

Considering a recent thread here about JSP vs. Velocity, it's worth 
noting that one of the pros of Velocity is that its templating is a 
little more transparent in browsers and GUI editing tools -- although 
you still have the problem that loops and such don't ever look 
anything like what you'll end up with.

With Mac OS X, we've been flirting with the idea of setting up our 
designers with dev environments more like what our programmers have, 
with a local application server (Tomcat) and an ant script so that 
they can work on pages and see how their changes impact things, and 
hopefully eventually understand most of what goes on in custom JSP 
tags (Struts or other).  But that will be a support challenge, so 
we'll see when we finally make it happen...

Joe

--
--
* Joe Germuska{ [EMAIL PROTECTED] }
It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records.
	--Sam Goody, 1956

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



RE: BasicDataSource data source usage.

2002-11-25 Thread Anthony Mutiso 2
Thanks Craig and David. It was the differences in the nested setter property
names. BasicDataSource required a driverClassName and username in place
of the GenericDataSource ones of driverClass and user.

I should have been able to find this in the documentation but somehow over
looked it.

Thanks again

Anthony

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: November 22, 2002 2:56 PM
To: Struts Users Mailing List
Subject: Re: BasicDataSource data source usage.


On Fri, 22 Nov 2002, Anthony Mutiso 2 wrote:

 Date: Fri, 22 Nov 2002 13:47:04 -0700
 From: Anthony Mutiso 2 [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Mail List (E-mail) [EMAIL PROTECTED]
 Subject: BasicDataSource data source usage.

 The struts javadoc page for GenericDataSource says to use BasicDataSource.

 When I configure a struts data-source with BasicDataSource, my struts 1.1
b2
 application fails work with a

 java.sql.SQLException: Cannot load JDBC driver class 'null'

 On the appplication startup

 While if I remove the type attribute all appears well.

 This dies
   data-source key=SiteCatalogDataSource
 type=org.apache.commons.dbcp.BasicDataSource

 This works
   data-source key=SiteCatalogDataSource


Without seeing your nested property setter elements, it's impossible to
know for sure, but I'd bet that you didn't adjust the property names to
match.  For example, in DBCP the JDBC driver class is set by the
driverClassName  property, while for GenericDataSource it's
driverClass.

 Why do I want a BasicDataSource? The docs implie that I can do it, and
 GenericDataSource's methods are all deprecated.


For backwards compatibility, GenericDataSource in 1.1 is just a wrapper
around BasicDataSource.  The wrapper adapts automatically to the property
name differences, so old 1.0 apps continue to work.

 I wanted to get the at the DriveClassName within the app to print out in
the
 logs the application configuration.

 Thanks

 Anthony


Craig


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

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




Nested Iterate Tag and indexId problem

2002-11-25 Thread david . fields
I am using the nested tags with Struts 1.02.

I want to be able to dynamically set a call to a javascript function.  I 
want to pass in the row number to the function.

I currently have


nested:iterate property=asrTranList 
type=abbott.ai.tcgm.entities.AsrTran indexId=idx
tr
td class=maintCenter
nested:text property=actionCode maxlength=1 
size=1 styleClass=maintWidth1
 onchange=makeEditDirty('hideOnEdit','showOnEdit','bean:write name=idx 
scope=page /');
onkeyup=return autoTab(this, 1, event); 
/
/td
/tr
/nested:iterate

This does not work.


I have also tried

nested:iterate property=asrTranList 
type=abbott.ai.tcgm.entities.AsrTran indexId=idx
tr
td class=maintCenter
nested:text property=actionCode maxlength=1 
size=1 styleClass=maintWidth1
 onchange=makeEditDirty('hideOnEdit','showOnEdit','%=idx%');
onkeyup=return autoTab(this, 1, event); 
/
/td
/tr
/nested:iterate

It does not work either.

It is looking to me like a bug with the nested tags.  They sure have been 
very useful.  I would hate to change all the code back at this point.

Why can I use a regular jsp %=idx% to get the value of the indexId from 
the iterate tag?

Thanks.



THIS IS TRUE -- PEOPLE SHOULD PLAN FOR REALITY -- Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread micael
This is exactly right, and application frameworks should begin working to 
this reality, rather than some ideal, which is what is happening now.  This 
is really the way the whole http/tcp/ip protocol would suggest.  The 
practice is mirrowing what makes sense.

Micael

At 01:49 PM 11/25/2002 +, you wrote:

Haha!

This whole idea of J2EE where we have seperation of roles hasn't quite 
happened has it. The idea that there are business process programmers, 
database programmers, front end guys etc. In the end it's always the same 
person fulfilling all the roles.

On the projects that I have been on in the past Graphic designers have 
been comissioned to make up the pages, which are done statically. Then the 
programmers have gone through the pains of making these pages dynamic.

Regards
IV



  from:Foong Tzer [EMAIL PROTECTED]
  date:Mon, 25 Nov 2002 13:31:26
  to:  [EMAIL PROTECTED], [EMAIL PROTECTED]
  subject: Re: Struts: a Graphic Artist blessing or curse?

 Dear Struts supporter,

 There seems to be a real world problem with using Struts (well, not
 really Struts, but JSP Tag Libraries). It seems despite zero java coding
 on the JSP pages, those 'funny' tags are still not digest-able by average
 graphic designers. I mean, if they were to use Macromedia DreamWeaver, it
 would not've rendered the look and feel if the tags were something like
 this: -

 html:img page=/nice.gif altKey=Nice/

 html:html locale=true  /html:html

 html:link page=/another.jspbean:message
 key=another.title//html:link


 As opposed to the native standard HTML tags?

 I'm really not sure whether Macromedia or any other popular graphic
 artiste tool would render these Struts JSP pages properly. Anybody here
 has any experience solving this real world problem?

 Thanks. Any help would be much appreciated.
 Regards,

   Tzer
   [EMAIL PROTECTED]

 Is J2EE messing up your mind?
 http://www.see-consulting.com

 --
 http://fastmail.fm - Or how I learned to stop worrying and
   love email again

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




http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placement=home_multi.gifsite=amazon

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



NoClassDefFound on validationForm in WAR

2002-11-25 Thread Joe Wyatt

I've seen several similar problems in the archives, but none of the
solutions seem to work for my problem.  I'm using Struts 1.1b2 with
Weblogic servers (tried both 6.1sp3 and 7.0).  In my WAR the WEB-INF/lib
contains all of the commons and struts jars.  The WEB-INF/classes directory
contains my simple form and action subclass.  The init() method of the
ActionServlet is throwing the noclassdeffound error at deploy time.

I've followed best and worst practices.  I've placed the jars int /ext
directories as well as the system classpath.  Nothing seems to correct this
situation.  I'll be happy to believe it is something that I have ill
configured, but, if it is, it is a subtle little bugger.

There are no EAR files in question here.  This is a case of a simple WAR
that is turning into a major battle.

Ideas anyone?

Joe



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




Re: FrmameWork and Design Pattern

2002-11-25 Thread Craig R. McClanahan


On Mon, 25 Nov 2002, Brijesh NK wrote:


 I am totally confused with the word FrameWork and Design Patters. Could any
 body explain the distinct difference between these two. Or how these words
 are related to each other?


To me (at least informally), there are a couple criteria that distinguish
the two concepts:

* Design patterns are smaller, while frameworks are larger.  You
  might use several design patterns in a single class, while frameworks
  (like Struts) might implement many design patterns.

* Design patterns are abstract while frameworks are concrete.
  The design patterns describe general relationships between the actors,
  without any definition of specific APIs (or even of specific languages
  used to implement them).  Frameworks tend to provide concrete APIs,
  in a particular language, that provide the basic foundation on top of
  which you build an application solution.

* Design patterns are flexible while frameworks are predefined.  The
  description of a design pattern often describes alternative strategies
  you can use to implement variations on the theme of that particular
  pattern.  Frameworks have typically chosen particular patterns for you
  (although they often give you extension points at which to modify the
  pre-chosen behavior).

Things that are similar (and tend to lead to confusion):

* A given application will often implement many design patterns, and
  can just as easily utilize multiple frameworks for different portions
  of the problem.  For example, one could consider the Servlet API to
  be a framework, on top of which the Struts framework runs.

* Both design patterns and frameworks describe relationships between
  multiple application components - the difference is in the specificity
  of the description.


 Thanks  Regards


 Brijesh


Craig


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




Re: Nested Iterate Tag and indexId problem

2002-11-25 Thread Patrice
Perhaps I made a mistake, but nested tags are available since Struts 1.1: I
think they are not available on Struts 1.02.

Best regards
  Patrice

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 6:33 PM
Subject: Nested Iterate Tag and indexId problem


 I am using the nested tags with Struts 1.02.

 I want to be able to dynamically set a call to a javascript function.  I
 want to pass in the row number to the function.

 I currently have


 nested:iterate property=asrTranList
 type=abbott.ai.tcgm.entities.AsrTran indexId=idx
 tr
 td class=maintCenter
 nested:text property=actionCode maxlength=1
 size=1 styleClass=maintWidth1
  onchange=makeEditDirty('hideOnEdit','showOnEdit','bean:write name=idx
 scope=page /');
 onkeyup=return autoTab(this, 1, event);
 /
 /td
 /tr
 /nested:iterate

 This does not work.


 I have also tried

 nested:iterate property=asrTranList
 type=abbott.ai.tcgm.entities.AsrTran indexId=idx
 tr
 td class=maintCenter
 nested:text property=actionCode maxlength=1
 size=1 styleClass=maintWidth1
  onchange=makeEditDirty('hideOnEdit','showOnEdit','%=idx%');
 onkeyup=return autoTab(this, 1, event);
 /
 /td
 /tr
 /nested:iterate

 It does not work either.

 It is looking to me like a bug with the nested tags.  They sure have been
 very useful.  I would hate to change all the code back at this point.

 Why can I use a regular jsp %=idx% to get the value of the indexId from
 the iterate tag?

 Thanks.



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




RE: FrmameWork and Design Pattern

2002-11-25 Thread edgar
Excellent description of the two.

I think of them a little differently which might help.

Design Patterns are a language for developers to communicate
with.  Very useful for discussions of how to accomplish things.

Frameworks are projects which implement design patterns.

Edgar



-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 25, 2002 12:42 PM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: Re: FrmameWork and Design Pattern




On Mon, 25 Nov 2002, Brijesh NK wrote:


 I am totally confused with the word FrameWork and Design Patters. 
 Could any body explain the distinct difference between these two. Or 
 how these words are related to each other?


To me (at least informally), there are a couple criteria that
distinguish the two concepts:

* Design patterns are smaller, while frameworks are larger.  You
  might use several design patterns in a single class, while frameworks
  (like Struts) might implement many design patterns.

* Design patterns are abstract while frameworks are concrete.
  The design patterns describe general relationships between the actors,
  without any definition of specific APIs (or even of specific languages
  used to implement them).  Frameworks tend to provide concrete APIs,
  in a particular language, that provide the basic foundation on top of
  which you build an application solution.

* Design patterns are flexible while frameworks are predefined.  The
  description of a design pattern often describes alternative strategies
  you can use to implement variations on the theme of that particular
  pattern.  Frameworks have typically chosen particular patterns for you
  (although they often give you extension points at which to modify the
  pre-chosen behavior).

Things that are similar (and tend to lead to confusion):

* A given application will often implement many design patterns, and
  can just as easily utilize multiple frameworks for different portions
  of the problem.  For example, one could consider the Servlet API to
  be a framework, on top of which the Struts framework runs.

* Both design patterns and frameworks describe relationships between
  multiple application components - the difference is in the specificity
  of the description.


 Thanks  Regards


 Brijesh


Craig


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


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




Re: AW: java.sql.Date again!!

2002-11-25 Thread Craig R. McClanahan


On Mon, 25 Nov 2002, Slava_L wrote:

 Date: Mon, 25 Nov 2002 19:01:26 +0800
 From: Slava_L [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: AW: java.sql.Date again!!

 But is it possible to hide DateWrapper behind java.sql.Date ? i wish to use
 JDBC type in my FormBean

You really don't want to do that.

Consider the case where your user types in an invalid date (no matter what
particular design format you choose).  What users expect is that the input
form will be redisplayed (with error messages), with the originally
entered data redisplayed.  That cannot happen if the form bean property is
a java.sql.Date.

In general, if you're going to use an HTML text input field to accept
data, the corresponding form bean property should be a String.  Do the
conversions in the Action that receives and processes the form (the
BeanUtils.copyProperties() method is very useful for this purpose).

Craig


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




Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Craig R. McClanahan


On Mon, 25 Nov 2002, Foong Tzer wrote:

 Date: Mon, 25 Nov 2002 05:31:26 -0800
 From: Foong Tzer [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED],
  Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Struts: a Graphic Artist blessing or curse?

 Dear Struts supporter,

 There seems to be a real world problem with using Struts (well, not
 really Struts, but JSP Tag Libraries). It seems despite zero java coding
 on the JSP pages, those 'funny' tags are still not digest-able by average
 graphic designers. I mean, if they were to use Macromedia DreamWeaver, it
 would not've rendered the look and feel if the tags were something like
 this: -

 html:img page=/nice.gif altKey=Nice/

 html:html locale=true  /html:html

 html:link page=/another.jspbean:message
 key=another.title//html:link


 As opposed to the native standard HTML tags?

 I'm really not sure whether Macromedia or any other popular graphic
 artiste tool would render these Struts JSP pages properly. Anybody here
 has any experience solving this real world problem?

 Thanks. Any help would be much appreciated.

One feature of Ultradev that is very valuable here is called live data
mode.  In the case of JSP pages, it uses Tomcat behind the scenes to
actually run the page, and the user is editing the GUI version of the page
without necessarily understanding that this is happening.

There's an Ultradev plugin available at Apache that enables GUI-based
editing of any JSP custom tag library (not just Struts tags) at the
Jakarta Taglibs project:

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

That is worth checking out.

 Regards,

   Tzer
   [EMAIL PROTECTED]


Craig


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




RE: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Craig R. McClanahan


On Mon, 25 Nov 2002, Chappell, Simon P wrote:


 If Craig felt that was good enough for the struts-example, then my
 goodness, it's good enough for me! ;-)


As I've said a couple of times, struts-example is pretty much my resume
documenting my GUI design skills.  Good thing I know a little Java to go
with it.  :-)

 Simon


Craig


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




Re: Struts 1.1b2 and Sybase EAServer 4.1.0 (Jaguar)

2002-11-25 Thread Craig R. McClanahan
Struts does not support multiple servlet mappings to the same action
servlet instance.

Craig


On Mon, 25 Nov 2002, Eugene Gunichev wrote:

 Date: Mon, 25 Nov 2002 16:17:25 +0200
 From: Eugene Gunichev [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Struts 1.1b2 and Sybase EAServer 4.1.0 (Jaguar)

 Servlet definition and mapping:
   servlet
 servlet-nameaction/servlet-name
 display-nameaction/display-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
   param-namedebug/param-name
   param-value3/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value3/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 load-on-startup2/load-on-startup
   /servlet

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

 Version of Struts is 1.1b2

 - Original Message -
 From: David Graham [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, November 23, 2002 9:44 PM
 Subject: Re: Struts 1.1b2 and Sybase EAServer 4.1.0 (Jaguar)


  What does your servlet definition and mapping look like from web.xml?
 What
  version of Struts are you using?
 
  David
 
 
 
 
 
 
  From: Eugene Gunichev [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Struts 1.1b2 and Sybase EAServer 4.1.0 (Jaguar)
  Date: Sat, 23 Nov 2002 17:32:58 -
  
  Has anyone gotten Struts to work in EAServer? EAServer produces strange
  error Unable to start servlet action: java.lang.ClassCastException:
  org.apache.struts.action.ActionServlet. Following is full stack trace:
  
  java.lang.ClassCastException: org.apache.struts.action.ActionServlet
   at com.sybase.jaguar.servlet.JagServlet.init(JagServlet.java:56)
   at
 
 com.sybase.jaguar.servlet.ServletPool.createInitializedInstance(ServletPool
 .java:146)
   at
  com.sybase.jaguar.servlet.ServletPool.getInstance(ServletPool.java:65)
   at com.sybase.jaguar.servlet.ServletPool.start(ServletPool.java:262)
   at
 
 com.sybase.jaguar.servlet.JagServletContext.startServlet(JagServletContext.
 java:1966)
   at
 
 com.sybase.jaguar.servlet.JagServletContext.startWebAppServlets(JagServletC
 ontext.java:1579)
   at
 
 com.sybase.jaguar.servlet.ServletEngine.startWebAppServlets(ServletEngine.j
 ava:779)
   at
 
 com.sybase.jaguar.servlet.ServletServiceImpl.startWebAppServlets(ServletSer
 viceImpl.java:155)
   at
 
 com.sybase.jaguar.servlet._sk_JaguarServlet_ServletService.invoke(_sk_Jagua
 rServlet_ServletService.java:467)
 
 
  _
  Tired of spam? Get advanced junk mail protection with MSN 8.
  http://join.msn.com/?page=features/junkmail
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 

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




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




Placing jsp tags within nested tags not working.

2002-11-25 Thread david . fields
I'm having problems trying to nest code within a nested tag.

nested:text property=actionCode maxlength=1 size=1 
styleClass=maintWidth1
 onchange=makeEditDirty('hideOnEdit','showOnEdit','%=chkBxId%');
onkeyup=return autoTab(this, 1, event); /

This doesn't work.

The output looks like this...

input type=text name=asrTranList[0].actionCode maxlength=1 size=1 
value=072 onkeyup=return autoTab(this, 3, event); 
onchange=makeEditDirty('hideOnEdit','showOnEdit','%=chkBxId%'); 
class=maintWidth1

Any ideas how I can get this to work?




Re: [Taglib] A common taglibs file

2002-11-25 Thread Craig R. McClanahan


On Mon, 25 Nov 2002, Sri Sankaran wrote:

 Date: Mon, 25 Nov 2002 11:34:18 -0500
 From: Sri Sankaran [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts-User [EMAIL PROTECTED]
 Subject: [Taglib] A common taglibs file

 Do you know if there is any runtime overhead incurred by having
 unnecessary taglib directives in a JSP file?


There *should* be no runtime overhead from this (but, of course, the
actual answer is based on the behavior of the JSP page compiler in your
server).

Using a standard header file to encapsulate taglib directives is a very
common technique.  In fact, JSP 2.0 adds a mechanism to do it
automatically -- you essentially get to say for JSP pages that match this
URL pattern, add this header file at compile time.

Craig


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




Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread micael
The answer is below.  That is really it.  Let them build the GUI, then you 
massage it.  That is the easiest way to go about things.  If someone has 
something better, I don't know it.  This way of doing things is pretty 
easy.  The backend guy does not have to know the details of the gui, and 
vice versa.

At 06:06 AM 11/25/2002 -0800, you wrote:
C'mon guys. I've seen many great Struts website look  feel (Definitelly
generated by a graphic artist tool). I'm sure someone here has got some
good experience to share?

On Mon, 25 Nov 2002 13:49:14 + (GMT), [EMAIL PROTECTED] said:

 Haha!

 This whole idea of J2EE where we have seperation of roles hasn't quite
 happened has it. The idea that there are business process programmers,
 database programmers, front end guys etc. In the end it's always the same
 person fulfilling all the roles.

 On the projects that I have been on in the past Graphic designers have
 been comissioned to make up the pages, which are done statically. Then
 the programmers have gone through the pains of making these pages
 dynamic.

 Regards
 IV



   from:Foong Tzer [EMAIL PROTECTED]
   date:Mon, 25 Nov 2002 13:31:26
   to:  [EMAIL PROTECTED], [EMAIL PROTECTED]
   subject: Re: Struts: a Graphic Artist blessing or curse?
 
  Dear Struts supporter,
 
  There seems to be a real world problem with using Struts (well, not
  really Struts, but JSP Tag Libraries). It seems despite zero java coding
  on the JSP pages, those 'funny' tags are still not digest-able by average
  graphic designers. I mean, if they were to use Macromedia DreamWeaver, it
  would not've rendered the look and feel if the tags were something like
  this: -
 
  html:img page=/nice.gif altKey=Nice/
 
  html:html locale=true  /html:html
 
  html:link page=/another.jspbean:message
  key=another.title//html:link
 
 
  As opposed to the native standard HTML tags?
 
  I'm really not sure whether Macromedia or any other popular graphic
  artiste tool would render these Struts JSP pages properly. Anybody here
  has any experience solving this real world problem?
 
  Thanks. Any help would be much appreciated.
  Regards,
 
Tzer
[EMAIL PROTECTED]
 
  Is J2EE messing up your mind?
  http://www.see-consulting.com
 
  --
  http://fastmail.fm - Or how I learned to stop worrying and
love email again
 
  --
  To unsubscribe, 
e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 



 
http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placement=home_multi.gifsite=amazon

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



Regards,

  Tzer
  [EMAIL PROTECTED]

Is J2EE messing up your mind?
http://www.see-consulting.com

--
http://fastmail.fm - Send your email first class

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



RE: Placing jsp tags within nested tags not working.

2002-11-25 Thread Karr, David
request-time scriptlet expressions have to be the ENTIRE attribute
value, not just a portion of it.  If you want to use a scriptlet, you'll
have to concatenate strings together, something like this:

  onchange='%= makeEditDirty(\'hideOnEdit\',\'showOnEdit\',\' +
chkBxId + \'); %'

I have no idea whether this uses quotes correctly.  This is a good
advertisement for using Struts-EL, as this would instead look like this:

  onchange=makeEditDirty('hideOnEdit','showOnEdit','${chkBxId}'); 

(Assuming chkBxId is available as a scoped attribute.)

Unfortunately, we haven't yet implemented a nested-el library.  It is
quite straightforward, I just haven't done it yet.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 25, 2002 10:01 AM
 To: [EMAIL PROTECTED]
 Subject: Placing jsp tags within nested tags not working.
 
 
 I'm having problems trying to nest code within a nested tag.
 
 nested:text property=actionCode maxlength=1 size=1 
 styleClass=maintWidth1
  onchange=makeEditDirty('hideOnEdit','showOnEdit','%=chkBxId%');
 onkeyup=return autoTab(this, 1, event); /
 
 This doesn't work.
 
 The output looks like this...
 
 input type=text name=asrTranList[0].actionCode 
 maxlength=1 size=1 
 value=072 onkeyup=return autoTab(this, 3, event); 
 onchange=makeEditDirty('hideOnEdit','showOnEdit','%=chkBxId%'); 
 class=maintWidth1
 
 Any ideas how I can get this to work?
 
 

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




Forwards and Frames

2002-11-25 Thread Shryock, Chad
Hello,

Background information: I have a page split into two frames, top and bottom.
I have a form in the top part, that displays a list of messages.  The user
then selects the messages they want displayed and they press a button and
the button forwards the information to the bottom form? How do I do this in
the Action Class? Or what should I search under? I have Mastering Jakarta
Struts and Struts in Action to look into this, I just don't know what it
is called.

Thanks,
Chad Shryock.

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




html: field question

2002-11-25 Thread Shryock, Chad
Hello,

I have a page that has a large form. I need to be able to make some fields
read-only dynamically for some views of the table. I tried html:text
property=userID readonly=bean:write name=user
property=userReadOnlyState//.

Thanks,
Chad Shryock.

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




Re: html: field question

2002-11-25 Thread Patrice
You can't use tags in tags: try this:

bean:define id=readonly name=user property=userReadOnlyState/
html:text property=userID readonly=%= readonly%/

Hope it helps
Patrice

- Original Message -
From: Shryock, Chad [EMAIL PROTECTED]
To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 7:22 PM
Subject: html: field question


 Hello,

 I have a page that has a large form. I need to be able to make some fields
 read-only dynamically for some views of the table. I tried html:text
 property=userID readonly=bean:write name=user
 property=userReadOnlyState//.

 Thanks,
 Chad Shryock.

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



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




RE: html: field question

2002-11-25 Thread Karr, David
You can't nest JSP tags inside an attribute value of a JSP tag.  You'll have to use a 
scriptlet expression for the readonly property.  You might do it like this:

bean:define id=roflag name=user property=userReadOnlyState/
html:text property=userID readonly=%= roflag %/.

If you were using Struts-EL, it would be a little cleaner, and look like this:

html-el:text property=userID readonly=${user.userReadOnlyState}/.

 -Original Message-
 From: Shryock, Chad [mailto:[EMAIL PROTECTED]]
 
 Hello,
 
 I have a page that has a large form. I need to be able to 
 make some fields
 read-only dynamically for some views of the table. I tried html:text
 property=userID readonly=bean:write name=user
 property=userReadOnlyState//.
 
 Thanks,
 Chad Shryock.

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




RE: Forwards and Frames

2002-11-25 Thread Kristian Duske
Hi,

 Background information: I have a page split into two frames, top
 and bottom.
 I have a form in the top part, that displays a list of messages.  The user
 then selects the messages they want displayed and they press a button and
 the button forwards the information to the bottom form? How do I
 do this in
 the Action Class? Or what should I search under? I have Mastering Jakarta
 Struts and Struts in Action to look into this, I just don't
 know what it
 is called.

This is more an HTML question than a Struts question. You have to specify
the target-Attribute for the html:form tag, very much like in HTML:

html:form ... target=bottom
...
/html:form

The value of this attribute is the name of the bottom frame, as specified in
your frameset:

frameset ...
frame name=top ...
frame name=bottom ...
/frameset

Regards
Kristian


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




Re: html: field question

2002-11-25 Thread David Graham
You can't use a custom tag in another custom tag's attribute.  You can use a 
jsp expression in the attribute though.

David






From: Shryock, Chad [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED]
Subject: html: field question
Date: Mon, 25 Nov 2002 13:22:58 -0500

Hello,

I have a page that has a large form. I need to be able to make some fields
read-only dynamically for some views of the table. I tried html:text
property=userID readonly=bean:write name=user
property=userReadOnlyState//.

Thanks,
Chad Shryock.

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


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


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



Question: Struts-EL Release

2002-11-25 Thread Hohlen, John
I have a question about whether there will be an official release of the
Struts-EL subproject.  I'm currently using a nightly release (11/14) of
Struts-EL with Struts 1.1 B2.  Since there is no release of Struts-EL, I
was wondering if one nightly build is better than the other -- almost like a
beta version of Struts-EL.  Otherwise, I'll assume the later, the better.

On a related note: When Struts1.1 is officially released, will Struts-EL
be part of the release?  If not, will Struts-EL be baselined at that time
(i.e. an official release to assure compatibility)?

Thanks,

JOHN

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




RE: [tiles] insert: Illegal to flush within a custom tag...

2002-11-25 Thread Etienne Labont
Solved it by using the jsp:include instead of the tiles:insert... Thanks
anyway...

 -Original Message-
 From: Etienne Labonté [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 25, 2002 11:01 AM
 To: Struts Users Mailing List (E-mail)
 Subject: [tiles] insert: Illegal to flush within a custom tag...
 
 
 Hi, 
 
 I'm using the tabs layout and it works well. But I have this 
 problem when I
 try to insert tab bodies inside a layout made of custom tags: 
 I get the
 error message
 Can't insert page 'whatever-page.jsp' : Illegal to flush 
 within a custom
 tag 
 
 The layout comes out right but this message is displayed 
 where the tab body
 should be... And it gives the same result wether flush is 
 true or false on
 the insert call.
 
 I think this is not directly related to the tabs layout so my 
 example might
 be misleading... But can somebody help me with this?
 
 
 
 Etienne
 



Re: set a html:checkbox checked

2002-11-25 Thread Patrice
I think you should set the property of the form in an action, that will
forward to your JSP.
In this action, set the property corresponding to your check box at true:

MyForm myForm = (MyForm) form;
if (tablecolumn.value == 1) {
myForm.setCheckboxProperty = true;
}

Then, the check box corresponding to CheckBoxProperty will be checked on the
JSP.

Hope it helps
Patrice



- Original Message -
From: Mouratidis, Georg [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, November 25, 2002 5:44 PM
Subject: RE: set a html:checkbox checked


 The poblem is not to post back, the problem ist to populate the checkbox
checked.

 I would like to set the checked attribut dynamically.

 something like :
 if tablecolumn.value == 1 then checkbox = checked

 any idea
 thx georg M.


 Don't use the struts tag.  The struts checkbox tag assumes all
 checkboxes are off.  Use something like

 input type='checkbox' name='yourbeanproperty' checked

 As long as you use the name which corresponds to the form bean property
 struts will correctly link the data back to your form.  Hope this helps.

 Edgar

 -Original Message-
 From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 25, 2002 11:25 AM
 To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
 Subject: RE: set a html:checkbox checked


 Hi, Oliver

 did you get any response. i'm looking for the same.
 could you send me your solution please?

 thx

 Georg M.

 -Original Message-
 From: Oliver Kersten [mailto:[EMAIL PROTECTED]]
 Sent: Donnerstag, 21. November 2002 17:34
 To: [EMAIL PROTECTED]
 Subject: set a html:checkbox checked


 Hi,

 how can I set a checkbox checked during creation in the JSP. In HTML I
 would do it like this:

   input type=checkbox name=mycheck checked

 But I can't find that for the struts tag:

   html:checkbox property=mycheckcheck it/html:ckeckbox

 And can I use the value true to set a checkbox checked. I get only a
 true from my bean and not a checked or something else.

 ciao Oliver.



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


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


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


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




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




RE: Question: Struts-EL Release

2002-11-25 Thread Karr, David
Normally the nightly build is pretty stable.  Unfortunately, some unknown problem made 
the Struts-EL distribution disappear from the nightly builds between the 18th and the 
24th of this month.  The build on the 25th appears to have it.

Yes, Struts-EL will be in the 1.1 release.

With respect to baselining the release, it's no different from anything else in the 
release.  If you get the 1.1 release, you get the 1.1 release.

 -Original Message-
 From: Hohlen, John [mailto:[EMAIL PROTECTED]]
 
 I have a question about whether there will be an official 
 release of the
 Struts-EL subproject.  I'm currently using a nightly 
 release (11/14) of
 Struts-EL with Struts 1.1 B2.  Since there is no release of 
 Struts-EL, I
 was wondering if one nightly build is better than the other 
 -- almost like a
 beta version of Struts-EL.  Otherwise, I'll assume the later, 
 the better.
 
 On a related note: When Struts1.1 is officially released, 
 will Struts-EL
 be part of the release?  If not, will Struts-EL be 
 baselined at that time
 (i.e. an official release to assure compatibility)?
 
 Thanks,
 
 JOHN
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




  1   2   >