RE: [ANNOUNCE] Struts Console v3.0

2002-10-31 Thread Tal Lev-Ami
Excellent tools, thank you!

Where can I report bugs and problems? Is this mailing list good? 
Since I already wasted your time I think I found a problem:
I opened the validation.xml that comes with Struts example (after adding the
DOCTYPE line). In that file there are two forms, one form with two fields
that have 3 args and another form with several fields that have only one
arg. However, when I browse the fields of the form I see the second and
third args of the fields in the first form!

While I am at it, an improvement suggestion. A most useful feature would be
to be able to stand on a name of a class and be able to open it in the
eclipse's editor, as far as I understand eclipse plug-ins it shouldn't be
very complicated to do.

Thanks again,

Tal Lev-Ami
Trivnet Ltd.

-Original Message-
From: James Holmes [mailto:jholmes612;yahoo.com]
Sent: Wednesday, October 30, 2002 8:51 PM
To: Struts Users Mailing List
Subject: [ANNOUNCE] Struts Console v3.0


Struts Console version 3.0 is now available.

http://www.jamesholmes.com/struts/

Download Now:
http://www.jamesholmes.com/struts/struts-console-3.0.zip
  -- OR --
http://www.jamesholmes.com/struts/struts-console-3.0.tar.gz

Struts Console is FREE software.

Eclipse plugin support and Validator config file
support is finally here.  This release also makes
working with DynaActionForms more convenient.

Changes with Struts Console v3.0

  *) Fixed bug where Forwards' Configuration Class
 attribute was incorrect.

  *) Added support for Validator config files.

  *) Added plugin support for Eclipse.

  *) Added support for className attribute of
 data-source elements.

  *) Added support for className attribute of
 exception elements.

  *) Added support for className attribute of
 form-bean elements.

  *) Added support for className attribute of
 form-property elements.

  *) Added support for adding set-property elements
 to form-property elements.

  *) Added drop down list of values for Type field
 of Form Properties for FormBeans.

  *) Added drop down list of values for
 FormBean's Type field.


Thanks,

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/



__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




ApplicationsRessources

2002-10-31 Thread Yann Verlynde
If I want to have a message in a JSP, I use:

bean:message key=email.protocol bundle=APPLICATION_CONFIGURATION/

How do u do to take back all the messages?




Re: tiles definition doesn't work, config looks correct, am baffled

2002-10-31 Thread Cedric Dumoulin

 Hi,

 What is the error ? Also check the output in the tomcat error log file.

Alayne Wartell wrote:


Hi,
I'm trying to get Tiles running with Struts, and I'm getting 404's when I
try to use tiles definitions.
I'm running Struts 1.1b2 and Tomcat.
I can run a JSP-only Tiles template just fine.
I really hope someone can help. I've checked everything I can think of and
have run out of ideas.
Details follow.
Thanks very much,
Alayne
(struts newbie)

I'm trying to access http://localhost:8080/tilesproj/testdefinition.do
which forwards to definition .mydefinition
which is in tiles-defs.xml
I've configured the Tiles plug-in in struts-config.xml. I originally had it
in web.xml but either way I get the same behavior.
I'm running the regular Struts controller.

Here are my configuration files:

tiles-defs.xml :
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE tiles-definitions PUBLIC
  -//Apache Software Foundation//DTD Tiles Configuration//EN
  http://jakarta.apache.org/struts/dtds/tiles-config.dtd;

tile-definitions
!-- page templates --
 definition name=.standardBaseLayout path
=/standardBaseLayout.jsp
   put name=header value=/header.jsp /
   put name=body value= /
   put name=footer value=/footer.jsp /
 /definition

!-- put application pages here --
 definition name=.mydefinition extends=.standardBaseLayout
   put name=body value=/mypage.jsp /
 /definition
/tile-definitions

struts-config.xml :

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

struts-config

   global-forwards
  forward
   name=index
   path=/index.jsp/
   /global-forwards

   action-mappings
   action
 path=/testuse
 forward=/testuse.jsp /
   /action
   action
 path=/testdefinition
 type=org.apache.struts.tiles.actions.NoOpAction
 forward name=success path=.mydefinition /
 forward name=failure path=.mydefinition /
   /action

   /action-mappings

 !-- tiles plug-in --
 plug-in className=org.apache.struts.tiles.TilesPlugin 
   set-property property=definitions-config
  value=/WEB-INF/tiles-defs.xml /
   set-property property=definitions-debug value=2 /
   set-property property=definitions-parser-details value=2 /
   set-property property=definitions-parser-validate value=true /
 /plug-in

   message-resources parameter=resources.application/

/struts-config

---
web.xml :
?xml version=1.0 encoding=ISO-8859-1?

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

web-app
 !-- Standard Action Servlet Configuration (with debugging) --
 servlet
   servlet-nameaction/servlet-name
   servlet-classorg.apache.struts.action.ActionServlet/servlet-class
   init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
   /init-param
   init-param
 param-namedebug/param-name
 param-value2/param-value
   /init-param
   init-param
 param-namedetail/param-name
 param-value2/param-value
   /init-param
   load-on-startup2/load-on-startup
   init-param
 param-nameapplication/param-name
 param-valueApplicationResources/param-value
   /init-param
 /servlet


 !-- Standard Action Servlet Mapping --
 servlet-mapping
   servlet-nameaction/servlet-name
   url-pattern*.do/url-pattern
 /servlet-mapping

 !-- The Usual Welcome File List --
 welcome-file-list
   welcome-fileindex.jsp/welcome-file
 /welcome-file-list

 !-- Struts Tag Library Descriptors --
 taglib
   taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
   taglib-location/WEB-INF/struts-bean.tld/taglib-location
 /taglib

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

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

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

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

 !-- tiles plug-in --

 !--plug-in className=org.apache.struts.tiles.TilesPlugin 
   set-property property=definitions-config
  value=/WEB-INF/tiles-defs.xml /
   set-property property=definitions-debug value=2 /
   set-property property=definitions-parser-details value=2 /
   set-property property=definitions-parser-validate value=true /
 /plug-in--

/web-app




--
To unsubscribe, e-mail: 

Re: Why Tiles still has no Tab layout ?

2002-10-31 Thread Cedric Dumoulin

 A tabs layout can be considered as an assembly of tiles ;-).
 There is a tabs layout in the current distribution. It requires a list 
of bodies and associated tab names as input. The tabs layout is simply 
declared in a definition using the appropriate layout, and providing the 
required list.
 The tabs layout work well with latest Struts nightly builds and 
tomcat4.1.12.
 I have an improve version that allows nesting of tabs (not yet committed).

   Cedric

David Graham wrote:

I'm not sure that's tiles main purpose.  Tiles allows you to construct 
a view from various page elements defined in an xml file.  A tab 
layout is a higher level concept.

David






From: Slava_L [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Why Tiles still has no Tab layout ?
Date: Thu, 31 Oct 2002 13:04:28 +0800

Will be ever presented example about  Tab layouts?




_
Unlimited Internet access for only $21.95/month.  Try MSN! 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: logic:present parameter

2002-10-31 Thread Xavier Combelle
Maybe your form is in the request scope instead of
session scope ( just set scope to session of the action mappiing
instruts-congig.xml )
So your form settings will be kept between two calls of your page

Xavier

 -Message d'origine-
 De : Marcus Biel [mailto:Marcus.Biel;bmw.de]
 Envoye : jeudi 31 octobre 2002 09:41
 A : [EMAIL PROTECTED]
 Objet : logic:present parameter



 I got a selectbox. When you select a value, you get displayed a table of
 data records.

 Now I want to sort this table, add, edit and delete records on the same
 page.

 I got a logic:present tag. I want to see if the user already selected a
 value.

 If so, the Table should get displayed.

 My problem is, that this parameter gets reset in some way when I
 reforwad to the same jsp again,
 after doing an action like sorting.

 This is really anyoing, because when I hit submit on the selectbox
 again,
 all I did -the sorting - gets destroyed, and the regular list gets
 displayed again.


 html:form action=getAlaskaGroups.do method=POST
 html:select property=plantSelection size=1
 html:options name=plantListBean
 property=plantList/
 /html:select br
 html:submit/
 /html:form

 logic:present parameter=plantSelection
   Show Table when plant has been selected once in session.
   Also directly show table after sort records action, add
 records action,
 edit records action, delete records action.
 /logic:present


 Any ideas ???

 thx in advance,

 marcs

 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Help please in ApplicationResources

2002-10-31 Thread Yann Verlynde
If I want to have a message in a JSP, I use this code:
bean:message key=email.protocol bundle=APPLICATION_CONFIGURATION/

But I want to have all the messages resources in my JSP, 
How can I do that please?

Thanks in advance




DynaValidatorAction and NullPointerException (again)...

2002-10-31 Thread Marcus Edwards
Hi,

I have run into a problem that, judging by the posts in the archive,
numerous others have run into:

java.lang.NullPointerException
 at
org.apache.struts.action.DynaActionForm.getDynaProperty(DynaActionForm.java:
551)
 at org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:365)

I read all of the previous messages and have tried the suggestions listed
there but I still haven't got it
to work. I would greatly appreciate some help with this.

---8--- struts-config.xml
form-bean name=applyPersonalDetailsForm
type=org.apache.struts.validator.DynaValidatorForm dynamic=true
form-property name=title type=java.lang.String/
   form-property name=forenames type=java.lang.String/
   form-property name=surname type=java.lang.String/
   form-property name=previousSurname type=java.lang.String/
...etc...
/form-bean

action path=/applyPersonalDetails
type=com.sun.elearning.ui.apply.ApplyPersonalDetailsAction
name=applyPersonalDetailsForm
input=/personal_details.jsp
scope=request
attribute=applyPersonalDetailsForm
forward name=success
path=/editApplication.do?action=edit /
/action

action path=/editPersonalDetails
 type=com.sun.elearning.ui.apply.EditPersonalDetailsAction
 name=applyPersonalDetailsForm
 scope=request
 validate=false
forward name=success path=/personal_details.jsp /
/action

---8--- personaldetails.jsp
html:form action=/applyPersonalDetails
p1.01 *Title/p
phtml:select styleId=titleID property=title
styleClass=entry-textfield
 html:option value=- Please select -/html:option
 html:options name=lists property=titlesList/
/html:select/p

p1.02 *Forenames / given names/p
phtml:text property=forenames styleId=forenameID
styleClass=entry-textfield maxlength=256 size=16//p

p1.03 *Surname/p
phtml:text property=surname styleId=forenameID
styleClass=entry-textfield maxlength=256 size=16//p

p1.04  Previous Surname/p
phtml:text property=previousSurname styleId=forenameID
styleClass=entry-textfield maxlength=256 size=16//p

html:submit/
/html:form

---8--- EditPersonalDetails.java
  public ActionForward execute(
ActionMapping mapping,
ActionForm actionForm,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
  {
ActionForward result = null;
Application appl = null;

if (meetsRequirements(request))
{
  appl = (Application)
request.getSession().getAttribute(Constants.APPLICATION_KEY);
  DynaValidatorForm daForm = (DynaValidatorForm) actionForm;

  // Create the DynaForm  reconfigure it based on the mapping config
for this action
  if(daForm == null)
  {
   daForm = new DynaValidatorForm();
   daForm.reset(mapping, request);
  }

  populateDynaForm(daForm, appl);

  // set the updated appplication into the session
  request.getSession().setAttribute(Constants.APPLICATION_KEY, appl);

  // forward to the success page
  result = mapping.findForward(Constants.SUCCESS_FORWARD);
}
else
{ // the action could not be completed because the pre-requisites were
not met
  result = mapping.findForward(Constants.SUCCESS_FORWARD);
}
return result;
  }

---8---

Volumous thanks in advance...

Marcus



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Help please in ApplicationResources

2002-10-31 Thread Lucas
Hi Yann,

IMHO, from my understanding, the idea of having message resources bundle
in a separate text file is so that we do not have to change any codes
(JSP/Java) which means easier maintenance and more flexibility. So I
would suggest using a text file for a resource bundle and put it
anywhere below your WEB-INF/classes/dir1/dir2 as somefilename.properties
(I would put all the resources in the same directory) and then you can
access using
bean:message key=somekeyname bundle=dir1.dir2.somefilename/ (note
that the .properties extension is not needed).

If you insist on using JSP then you should just use scriplet variables
like
%
String emailProtocol = POP3
%

and call it using

%= emailProtocol %

Do I get your question right?

Hope it helps,

Lucas



 -Original Message-
 From: Yann Verlynde [mailto:yverlynde;oxade.com]
 Sent: Wednesday, October 30, 2002 11:58 PM
 To: Struts
 Subject: Help please in ApplicationResources
 
 If I want to have a message in a JSP, I use this code:
 bean:message key=email.protocol
bundle=APPLICATION_CONFIGURATION/
 
 But I want to have all the messages resources in my JSP,
 How can I do that please?
 
 Thanks in advance



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Help please in ApplicationResources

2002-10-31 Thread Yann Verlynde
Hi Lucas,

Thanks for the response but you don't understand my question, I think it is
due to my english...;-)
I have already one application resources file named
ApplicationResources.properties so I use already a Resource Bundle but I
want to write a page that print all the content of this ResourceBundle.
I know that to have a property I must use:
bean:message key=email.protocol bundle=APPLICATION_CONFIGURATION/
So with that, I can print all the properties but I is very long and not
flexible.
It is not a very good solution because I put the name of the property
'email.protocol.
So I would like a generic method or Tag to take back all the properties in
an Array of the Resources Bundle in my JSP.

Thanks in advance
Yann


- Original Message -
From: Lucas [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, October 31, 2002 11:05 AM
Subject: RE: Help please in ApplicationResources


 Hi Yann,

 IMHO, from my understanding, the idea of having message resources bundle
 in a separate text file is so that we do not have to change any codes
 (JSP/Java) which means easier maintenance and more flexibility. So I
 would suggest using a text file for a resource bundle and put it
 anywhere below your WEB-INF/classes/dir1/dir2 as somefilename.properties
 (I would put all the resources in the same directory) and then you can
 access using
 bean:message key=somekeyname bundle=dir1.dir2.somefilename/ (note
 that the .properties extension is not needed).

 If you insist on using JSP then you should just use scriplet variables
 like
 %
 String emailProtocol = POP3
 %

 and call it using

 %= emailProtocol %

 Do I get your question right?

 Hope it helps,

 Lucas



  -Original Message-
  From: Yann Verlynde [mailto:yverlynde;oxade.com]
  Sent: Wednesday, October 30, 2002 11:58 PM
  To: Struts
  Subject: Help please in ApplicationResources
 
  If I want to have a message in a JSP, I use this code:
  bean:message key=email.protocol
 bundle=APPLICATION_CONFIGURATION/
 
  But I want to have all the messages resources in my JSP,
  How can I do that please?
 
  Thanks in advance



 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Marcus Biel
What's better:

To have a bean let's say BookBean.java
that has got a String title, author, pages

and an Actionform that uses this BookBean,

or is it better to have an ActionForm
that has a String title, author, pages.

Imho it's much faster and easier to have your properties in your
ActionForm,

but I bet according to the MVC design its recommend to use Beans.


Right ?


thx,

marcus

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: actions only for html:form ?

2002-10-31 Thread Quentin.Cope
Mohan

I think what you want to do is to setup an action mapping something like:

   action
path=mainscreen
type=your.class.goes.here

forward name=success path=loggoff path here /
/action   

Then create an action class and do what you want in the execute method.

Regards

Quentin

-Original Message-
From: Mohan Radhakrishnan [mailto:MohanR;hclcomnet.co.in]
Sent: 31 October 2002 10:23
To: 'Struts Users Mailing List'
Subject: actions only for html:form ?


Hi,
a href=mainscreen.jsp/a

  I am trying to find out how to use the above href representation to fire
an action. I need to fire an action for reload,logoff etc. Sorry if this
is too elementary.

   The html:form tag has an action. How do I fire an action for logging off
if I have an image as a menu? Do I just specify a href=logoff.jsp/a ?
   A bit of explanation would really help.

 A use case that is related is this.

  1. User presses reload button.
  2. If fires a reload action.This action does something useful.
  3. Forwards to the same page.
Thanks,
Mohan

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Andrew Hill
Technically speaking, the ActionForm IS a bean.
It's purpose is to represent the users input (which you can validate and if
necessary redisplay for correction) before transferring in your action the
(validated) values (with appropriate type conversion) to your business
object and vice versa.
Your BO itself may well be a bean too - such as your BookBean perhaps?
The actionForm and the business object will of course have a very similar
(often identical) set of properties, however they serve different purposes -
for example you will note that while your BOs beans would have various
property types (ie: int for pages etc...) you ActionForm will *usually* just
be strings (some folk use bools for checkboxes though) - a result of it
being a place to store the string data submitted in the request or read from
the BO ready for display in the form...

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Thursday, October 31, 2002 18:20
To: [EMAIL PROTECTED]
Subject: MVC Design: property in ActionForm or Bean with property in
ActionForm ?


What's better:

To have a bean let's say BookBean.java
that has got a String title, author, pages

and an Actionform that uses this BookBean,

or is it better to have an ActionForm
that has a String title, author, pages.

Imho it's much faster and easier to have your properties in your
ActionForm,

but I bet according to the MVC design its recommend to use Beans.


Right ?


thx,

marcus

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: tiles:put / in ActionForward.perform()

2002-10-31 Thread Roland Carlsson
Ok. so far I have got it but I still doesn't get the request into context.

 ComponentContext context = ComponentContext.getContext( request );
returns null so I having a hard time to test the
org.apache.struts.webapp.tiles.test.TestActionTileAction class.

What is wrong when ComponentContext.getContext(request) returns null? I
doesn't get any help from the documentation here.

Thanks in advace
Roland Carlsson


- Original Message -
From: Cedric Dumoulin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 30, 2002 4:56 PM
Subject: Re: tiles:put / in ActionForward.perform()



   Ok, I haven't read  carefully enough your previous mail.
   You can create a new definition from a definition read in the factory,
 and then instruct current Struts action to use your new definition. More
 precisely, the definition associated to the struts forward will be
 overloaded by your definition.
   The class org.apache.struts.webapp.tiles.test.TestActionTileAction use
 in the tiles-documentation/test do that.
   Following is an extract from this class. The code get the definition,
 copy it, modify the copy, and then put it in the appropriate request
 attribute. The


   // Read definition from factory, but we can create it here.

 ComponentDefinition definition = DefinitionsUtil.getDefinition(
... );

 definition = new ComponentDefinition(definition);

 definition.putAttribute( attributeName, aValue );

 DefinitionsUtil.setActionDefinition( request, definition);

   ...

   return (mapping.findForward(success));


   Cedric



 Roland Carlsson wrote:

 Hi !
 I think the DefinitionDispatcherAction doesn't do what I want to do
 
 Imagine that you have a definition with 2 tiles (left and body)
 In the left tile there are a collection of links that will change the
 content of body.
 
 If I understands what the DefinitonDispatcherAction does it will change
what
 defintion to use. What I want to do is to change one tile in the
defintion,
 much like a frameset where i doesn't change the frameset, only one page
in
 it. So I want to call the same defintion and alter a tile in that
defintion.
 Not change the defintion.
 
 The problem with the perform-method I posted is that it change the tile
in
 the application-scope and I havn't figured out yet how to make the change
 isolate into a request only.
 
 Regards
 Roland
 
 
 
 
 - Original Message -
 From: Cedric Dumoulin [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, October 30, 2002 2:11 PM
 Subject: Re: tiles:put / in ActionForward.perform()
 
 
 
 
   Hi,
 
   I think there is an action in the Tiles/Struts distribution doing
 exactly that ;-)
 Check org.apache.struts.tiles.actions.DefinitionDispatcherAction.
 
  Cedric
 
 Roland Carlsson wrote:
 
 
 
 I have solved my own question. If anyone is intrested I past the code
 
 
 below.
 
 
 The change in the definition lasts only for the request and will not
make
 any permanent changes.
 
 Regards
 Roland Carlsson
 
 
 public ActionForward perform(
 ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
 throws IOException, ServletException
  {
String forward = success;
String path = request.getParameter(body);
// Change nothing
if(path == null || path.equals()){
  // do nothing
}else{
  // Try to change body-page
  ServletContext context =
 this.getServlet().getServletConfig().getServletContext();
  ComponentDefinition cd = null;
  try{
  cd = DefinitionsUtil.getDefinition(path, request, context) ;
  cd.put(body, request.getParameter(body));
  // if something is wrong
  }catch(Exception e){
e.printStackTrace();
forward = error;
  }
}
return mapping.findForward(forward);
  }
 
 - Original Message -
 From: Roland Carlsson [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, October 29, 2002 4:31 PM
 Subject: tiles:put / in ActionForward.perform()
 
 
 
 
 
 
 Hi!
 I'm trying to expand my tiles with a dynamic body. I want to control
 
 
 this
 
 
 body with a simple parameter in the url eg
 http://localhost:8081/myPage?body=aTile.jsp . Does anyone have an
 
 
 example
 
 
 
 
 of
 
 
 
 
 how to do this?
 
 Thanks in advance
 Roland Carlsson
 
 
 --
 To unsubscribe, e-mail:
 
 
 
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
 
 
 
 
 For additional commands, e-mail:
 
 
 
 
 mailto:struts-user-help;jakarta.apache.org
 
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
 
 
 For additional commands, e-mail:
 
 
 mailto:struts-user-help;jakarta.apache.org
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
 
 
 For additional commands, e-mail:
 
 
 mailto:struts-user-help;jakarta.apache.org
 
 
 
 
 --
 To unsubscribe, e-mail:

RE: MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Xavier Combelle
I have nearly the same think
but I use to create properties as Integer which avoid me
to make a call to Integer.valueOf()

Am I wrong ?


Sincerly
Xavier
 -Message d'origine-
 De : Andrew Hill [mailto:andrew.david.hill;gridnode.com]
 Envoye : jeudi 31 octobre 2002 11:42
 A : Struts Users Mailing List
 Objet : RE: MVC Design: property in ActionForm or Bean with property in
 ActionForm ?


 Technically speaking, the ActionForm IS a bean.
 It's purpose is to represent the users input (which you can
 validate and if
 necessary redisplay for correction) before transferring in your action the
 (validated) values (with appropriate type conversion) to your business
 object and vice versa.
 Your BO itself may well be a bean too - such as your BookBean perhaps?
 The actionForm and the business object will of course have a very similar
 (often identical) set of properties, however they serve different
 purposes -
 for example you will note that while your BOs beans would have various
 property types (ie: int for pages etc...) you ActionForm will
 *usually* just
 be strings (some folk use bools for checkboxes though) - a result of it
 being a place to store the string data submitted in the request
 or read from
 the BO ready for display in the form...

 -Original Message-
 From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
 Sent: Thursday, October 31, 2002 18:20
 To: [EMAIL PROTECTED]
 Subject: MVC Design: property in ActionForm or Bean with property in
 ActionForm ?


 What's better:

 To have a bean let's say BookBean.java
 that has got a String title, author, pages

 and an Actionform that uses this BookBean,

 or is it better to have an ActionForm
 that has a String title, author, pages.

 Imho it's much faster and easier to have your properties in your
 ActionForm,

 but I bet according to the MVC design its recommend to use Beans.


 Right ?


 thx,

 marcus

 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [ANNOUNCE] Struts Console v3.0

2002-10-31 Thread Galbreath, Mark
Swing sucks.  When is Sun going to get it's act together on providing a
lightweight GUI framework?  Anybody read Alan Williamson's editorial in the
10/02 edition of Java Developer's Journal?

Mark

-Original Message-
From: James Holmes [mailto:jholmes612;yahoo.com]
Sent: Wednesday, October 30, 2002 5:52 PM

Struts Console is Swing not SWT.

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Andrew Hill
Well one problem with actually modelling you ints as ints in the ActionForm
is what happens if your user types in something like forty two instead of
42?

I forget whether this causes an exception in the processPopulate() method of
the RequestProcessor or if it silently converts it to the value 0. If the
former you have a problem catching it and if the later (which I think is
what happens?) how do you know whether that zero is supposed to be zero or
if its because your hairbrained user entered garbage?

Furthermore when you redisplay the page for them to try again its considered
good practice to rub their noses in the mess they left (ie: redisplay forty
two in the field) together with an appropriate error message next to that
field...
(Personally I think the wording of these sort of error messages should be
written by the host of the weakest link tv show ... but alas ... best
practice says they should be 'friendly' ;-)


-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Thursday, October 31, 2002 18:52
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: MVC Design: property in ActionForm or Bean with property in
ActionForm ?


I have nearly the same think
but I use to create properties as Integer which avoid me
to make a call to Integer.valueOf()

Am I wrong ?


Sincerly
Xavier
 -Message d'origine-
 De : Andrew Hill [mailto:andrew.david.hill;gridnode.com]
 Envoye : jeudi 31 octobre 2002 11:42
 A : Struts Users Mailing List
 Objet : RE: MVC Design: property in ActionForm or Bean with property in
 ActionForm ?


 Technically speaking, the ActionForm IS a bean.
 It's purpose is to represent the users input (which you can
 validate and if
 necessary redisplay for correction) before transferring in your action the
 (validated) values (with appropriate type conversion) to your business
 object and vice versa.
 Your BO itself may well be a bean too - such as your BookBean perhaps?
 The actionForm and the business object will of course have a very similar
 (often identical) set of properties, however they serve different
 purposes -
 for example you will note that while your BOs beans would have various
 property types (ie: int for pages etc...) you ActionForm will
 *usually* just
 be strings (some folk use bools for checkboxes though) - a result of it
 being a place to store the string data submitted in the request
 or read from
 the BO ready for display in the form...

 -Original Message-
 From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
 Sent: Thursday, October 31, 2002 18:20
 To: [EMAIL PROTECTED]
 Subject: MVC Design: property in ActionForm or Bean with property in
 ActionForm ?


 What's better:

 To have a bean let's say BookBean.java
 that has got a String title, author, pages

 and an Actionform that uses this BookBean,

 or is it better to have an ActionForm
 that has a String title, author, pages.

 Imho it's much faster and easier to have your properties in your
 ActionForm,

 but I bet according to the MVC design its recommend to use Beans.


 Right ?


 thx,

 marcus

 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




[OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Andrew Hill
I love Swing.
hmm... actually come to think of it I love *developing* with Swing. Using it
however... urrrgh!

-Original Message-
From: Galbreath, Mark [mailto:Galbreath;tessco.com]
Sent: Thursday, October 31, 2002 18:55
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Struts Console v3.0


Swing sucks.  When is Sun going to get it's act together on providing a
lightweight GUI framework?  Anybody read Alan Williamson's editorial in the
10/02 edition of Java Developer's Journal?

Mark

-Original Message-
From: James Holmes [mailto:jholmes612;yahoo.com]
Sent: Wednesday, October 30, 2002 5:52 PM

Struts Console is Swing not SWT.

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Xavier Combelle
So in your point of view, a DynaActionForm should be enougth for
any kind of form ?

Xavier

 -Message d'origine-
 De : Andrew Hill [mailto:andrew.david.hill;gridnode.com]
 Envoye : jeudi 31 octobre 2002 12:00
 A : Struts Users Mailing List
 Objet : RE: MVC Design: property in ActionForm or Bean with property in
 ActionForm ?


 Well one problem with actually modelling you ints as ints in the
 ActionForm
 is what happens if your user types in something like forty two
 instead of
 42?

 I forget whether this causes an exception in the
 processPopulate() method of
 the RequestProcessor or if it silently converts it to the value 0. If the
 former you have a problem catching it and if the later (which I think is
 what happens?) how do you know whether that zero is supposed to be zero or
 if its because your hairbrained user entered garbage?

 Furthermore when you redisplay the page for them to try again its
 considered
 good practice to rub their noses in the mess they left (ie:
 redisplay forty
 two in the field) together with an appropriate error message next to that
 field...
 (Personally I think the wording of these sort of error messages should be
 written by the host of the weakest link tv show ... but alas ... best
 practice says they should be 'friendly' ;-)


 -Original Message-
 From: Xavier Combelle [mailto:xcombelle;kaptech.com]
 Sent: Thursday, October 31, 2002 18:52
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: RE: MVC Design: property in ActionForm or Bean with property in
 ActionForm ?


 I have nearly the same think
 but I use to create properties as Integer which avoid me
 to make a call to Integer.valueOf()

 Am I wrong ?


 Sincerly
 Xavier
  -Message d'origine-
  De : Andrew Hill [mailto:andrew.david.hill;gridnode.com]
  Envoye : jeudi 31 octobre 2002 11:42
  A : Struts Users Mailing List
  Objet : RE: MVC Design: property in ActionForm or Bean with property in
  ActionForm ?
 
 
  Technically speaking, the ActionForm IS a bean.
  It's purpose is to represent the users input (which you can
  validate and if
  necessary redisplay for correction) before transferring in your
 action the
  (validated) values (with appropriate type conversion) to your business
  object and vice versa.
  Your BO itself may well be a bean too - such as your BookBean perhaps?
  The actionForm and the business object will of course have a
 very similar
  (often identical) set of properties, however they serve different
  purposes -
  for example you will note that while your BOs beans would have various
  property types (ie: int for pages etc...) you ActionForm will
  *usually* just
  be strings (some folk use bools for checkboxes though) - a result of it
  being a place to store the string data submitted in the request
  or read from
  the BO ready for display in the form...
 
  -Original Message-
  From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
  Sent: Thursday, October 31, 2002 18:20
  To: [EMAIL PROTECTED]
  Subject: MVC Design: property in ActionForm or Bean with property in
  ActionForm ?
 
 
  What's better:
 
  To have a bean let's say BookBean.java
  that has got a String title, author, pages
 
  and an Actionform that uses this BookBean,
 
  or is it better to have an ActionForm
  that has a String title, author, pages.
 
  Imho it's much faster and easier to have your properties in your
  ActionForm,
 
  but I bet according to the MVC design its recommend to use Beans.
 
 
  Right ?
 
 
  thx,
 
  marcus
 
  --
  To unsubscribe, e-mail:
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
 
 
  --
  To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Galbreath, Mark
I agree, but then, I love Java - all of it (but especially the new 1.4
goodies!).  I even loved AWT! But as an end-user app?  Ugh!  This is why I
stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource hogs,
only because they are built with Swing.  Give me vi or give me death!

-Original Message-
From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
Sent: Thursday, October 31, 2002 6:02 AM
To: Struts Users Mailing List
Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I love Swing.
hmm... actually come to think of it I love *developing* with Swing. Using it
however... urrrgh!

-Original Message-
From: Galbreath, Mark [mailto:Galbreath;tessco.com]
Sent: Thursday, October 31, 2002 18:55
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Struts Console v3.0


Swing sucks.  When is Sun going to get it's act together on providing a
lightweight GUI framework?  Anybody read Alan Williamson's editorial in the
10/02 edition of Java Developer's Journal?

Mark

-Original Message-
From: James Holmes [mailto:jholmes612;yahoo.com]
Sent: Wednesday, October 30, 2002 5:52 PM

Struts Console is Swing not SWT.

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: actions only for html:form ?

2002-10-31 Thread Mohan Radhakrishnan
Hi,
The menus use img tags and href. I haven't tried this but html:link
page=/logoff.do loggoff/html:link is for text links?
bye,
Mohan

-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Thursday, October 31, 2002 4:15 PM
To: Struts Users Mailing List
Subject: RE: actions only for html:form ?


I think you should try something like
html:link page=/logoff.do loggoff/html:link
which call an action without using any form

for the problem of reload page,
i think in the preceding action,
you should save the path in the session scope

Regards,
Xavier



 -Message d'origine-
 De : Mohan Radhakrishnan [mailto:MohanR;hclcomnet.co.in]
 Envoyé : jeudi 31 octobre 2002 11:23
 À : 'Struts Users Mailing List'
 Objet : actions only for html:form ?


 Hi,
 a href=mainscreen.jsp/a

   I am trying to find out how to use the above href
 representation to fire
 an action. I need to fire an action for reload,logoff etc.
 Sorry if this
 is too elementary.

The html:form tag has an action. How do I fire an action for
 logging off
 if I have an image as a menu? Do I just specify a
 href=logoff.jsp/a ?
A bit of explanation would really help.

  A use case that is related is this.

   1. User presses reload button.
   2. If fires a reload action.This action does something useful.
   3. Forwards to the same page.
 Thanks,
 Mohan

 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Galbreath, Mark
I've not used them, but I believe the consensus of the list is, once you
have mastered how to use them, why use anything else?

Mark

-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Thursday, October 31, 2002 6:12 AM
To: Struts Users Mailing List
Subject: RE: MVC Design: property in ActionForm or Bean with property in
ActionForm ?


So in your point of view, a DynaActionForm should be enougth for
any kind of form ?

Xavier

 -Message d'origine-
 De : Andrew Hill [mailto:andrew.david.hill;gridnode.com]
 Envoye : jeudi 31 octobre 2002 12:00
 A : Struts Users Mailing List
 Objet : RE: MVC Design: property in ActionForm or Bean with property in
 ActionForm ?


 Well one problem with actually modelling you ints as ints in the
 ActionForm
 is what happens if your user types in something like forty two
 instead of
 42?

 I forget whether this causes an exception in the
 processPopulate() method of
 the RequestProcessor or if it silently converts it to the value 0. If the
 former you have a problem catching it and if the later (which I think is
 what happens?) how do you know whether that zero is supposed to be zero or
 if its because your hairbrained user entered garbage?

 Furthermore when you redisplay the page for them to try again its
 considered
 good practice to rub their noses in the mess they left (ie:
 redisplay forty
 two in the field) together with an appropriate error message next to that
 field...
 (Personally I think the wording of these sort of error messages should be
 written by the host of the weakest link tv show ... but alas ... best
 practice says they should be 'friendly' ;-)


 -Original Message-
 From: Xavier Combelle [mailto:xcombelle;kaptech.com]
 Sent: Thursday, October 31, 2002 18:52
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: RE: MVC Design: property in ActionForm or Bean with property in
 ActionForm ?


 I have nearly the same think
 but I use to create properties as Integer which avoid me
 to make a call to Integer.valueOf()

 Am I wrong ?


 Sincerly
 Xavier
  -Message d'origine-
  De : Andrew Hill [mailto:andrew.david.hill;gridnode.com]
  Envoye : jeudi 31 octobre 2002 11:42
  A : Struts Users Mailing List
  Objet : RE: MVC Design: property in ActionForm or Bean with property in
  ActionForm ?
 
 
  Technically speaking, the ActionForm IS a bean.
  It's purpose is to represent the users input (which you can
  validate and if
  necessary redisplay for correction) before transferring in your
 action the
  (validated) values (with appropriate type conversion) to your business
  object and vice versa.
  Your BO itself may well be a bean too - such as your BookBean perhaps?
  The actionForm and the business object will of course have a
 very similar
  (often identical) set of properties, however they serve different
  purposes -
  for example you will note that while your BOs beans would have various
  property types (ie: int for pages etc...) you ActionForm will
  *usually* just
  be strings (some folk use bools for checkboxes though) - a result of it
  being a place to store the string data submitted in the request
  or read from
  the BO ready for display in the form...
 
  -Original Message-
  From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
  Sent: Thursday, October 31, 2002 18:20
  To: [EMAIL PROTECTED]
  Subject: MVC Design: property in ActionForm or Bean with property in
  ActionForm ?
 
 
  What's better:
 
  To have a bean let's say BookBean.java
  that has got a String title, author, pages
 
  and an Actionform that uses this BookBean,
 
  or is it better to have an ActionForm
  that has a String title, author, pages.
 
  Imho it's much faster and easier to have your properties in your
  ActionForm,
 
  but I bet according to the MVC design its recommend to use Beans.
 
 
  Right ?
 
 
  thx,
 
  marcus
 
  --
  To unsubscribe, e-mail:
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
 
 
  --
  To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Andrew Hill
Id be lost without my JBuilder since I started using it my brains
ability to store details of method names and parameters has dropped to zero.
Without my helpful tooltips Id be taking that second option :-(

-Original Message-
From: Galbreath, Mark [mailto:Galbreath;tessco.com]
Sent: Thursday, October 31, 2002 19:10
To: 'Struts Users Mailing List'
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I agree, but then, I love Java - all of it (but especially the new 1.4
goodies!).  I even loved AWT! But as an end-user app?  Ugh!  This is why I
stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource hogs,
only because they are built with Swing.  Give me vi or give me death!

-Original Message-
From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
Sent: Thursday, October 31, 2002 6:02 AM
To: Struts Users Mailing List
Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I love Swing.
hmm... actually come to think of it I love *developing* with Swing. Using it
however... urrrgh!

-Original Message-
From: Galbreath, Mark [mailto:Galbreath;tessco.com]
Sent: Thursday, October 31, 2002 18:55
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Struts Console v3.0


Swing sucks.  When is Sun going to get it's act together on providing a
lightweight GUI framework?  Anybody read Alan Williamson's editorial in the
10/02 edition of Java Developer's Journal?

Mark

-Original Message-
From: James Holmes [mailto:jholmes612;yahoo.com]
Sent: Wednesday, October 30, 2002 5:52 PM

Struts Console is Swing not SWT.

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Xavier Combelle
I also love vi

but for java developpement, maybe Eclipse is a good choice

??

Xavier




 -Message d'origine-
 De : Galbreath, Mark [mailto:Galbreath;tessco.com]
 Envoyé : jeudi 31 octobre 2002 12:10
 À : 'Struts Users Mailing List'
 Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I agree, but then, I love Java - all of it (but especially the new 1.4
 goodies!).  I even loved AWT! But as an end-user app?  Ugh!  This is why I
 stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource hogs,
 only because they are built with Swing.  Give me vi or give me death!

 -Original Message-
 From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
 Sent: Thursday, October 31, 2002 6:02 AM
 To: Struts Users Mailing List
 Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I love Swing.
 hmm... actually come to think of it I love *developing* with
 Swing. Using it
 however... urrrgh!

 -Original Message-
 From: Galbreath, Mark [mailto:Galbreath;tessco.com]
 Sent: Thursday, October 31, 2002 18:55
 To: 'Struts Users Mailing List'
 Subject: RE: [ANNOUNCE] Struts Console v3.0


 Swing sucks.  When is Sun going to get it's act together on providing a
 lightweight GUI framework?  Anybody read Alan Williamson's
 editorial in the
 10/02 edition of Java Developer's Journal?

 Mark

 -Original Message-
 From: James Holmes [mailto:jholmes612;yahoo.com]
 Sent: Wednesday, October 30, 2002 5:52 PM

 Struts Console is Swing not SWT.

 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Andrew Hill
Haven't actually tried the Dynaforms myself so couldnt make such a
recommendation. One thing Ive noticed though is that as soon as you think
you have something that will be suitable for all your needs along comes
another requirement that what you have cant handle (its a direct result of
murphys law...) :-(

To be honest (looking from the outside) I dont see what all the fuss about
Dynaforms is...
I much prefer having nice solid bean classes that I can compile against...
(And get nice JBuilder tooltips reminding me what properties they have hehe
;-)
(Mind you Im not using JSP (cos its evil) and tend to access my forms as
java objects quite often in my form renderers...)

-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Thursday, October 31, 2002 19:12
To: Struts Users Mailing List
Subject: RE: MVC Design: property in ActionForm or Bean with property in
ActionForm ?


So in your point of view, a DynaActionForm should be enougth for
any kind of form ?

Xavier

 -Message d'origine-
 De : Andrew Hill [mailto:andrew.david.hill;gridnode.com]
 Envoye : jeudi 31 octobre 2002 12:00
 A : Struts Users Mailing List
 Objet : RE: MVC Design: property in ActionForm or Bean with property in
 ActionForm ?


 Well one problem with actually modelling you ints as ints in the
 ActionForm
 is what happens if your user types in something like forty two
 instead of
 42?

 I forget whether this causes an exception in the
 processPopulate() method of
 the RequestProcessor or if it silently converts it to the value 0. If the
 former you have a problem catching it and if the later (which I think is
 what happens?) how do you know whether that zero is supposed to be zero or
 if its because your hairbrained user entered garbage?

 Furthermore when you redisplay the page for them to try again its
 considered
 good practice to rub their noses in the mess they left (ie:
 redisplay forty
 two in the field) together with an appropriate error message next to that
 field...
 (Personally I think the wording of these sort of error messages should be
 written by the host of the weakest link tv show ... but alas ... best
 practice says they should be 'friendly' ;-)


 -Original Message-
 From: Xavier Combelle [mailto:xcombelle;kaptech.com]
 Sent: Thursday, October 31, 2002 18:52
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: RE: MVC Design: property in ActionForm or Bean with property in
 ActionForm ?


 I have nearly the same think
 but I use to create properties as Integer which avoid me
 to make a call to Integer.valueOf()

 Am I wrong ?


 Sincerly
 Xavier
  -Message d'origine-
  De : Andrew Hill [mailto:andrew.david.hill;gridnode.com]
  Envoye : jeudi 31 octobre 2002 11:42
  A : Struts Users Mailing List
  Objet : RE: MVC Design: property in ActionForm or Bean with property in
  ActionForm ?
 
 
  Technically speaking, the ActionForm IS a bean.
  It's purpose is to represent the users input (which you can
  validate and if
  necessary redisplay for correction) before transferring in your
 action the
  (validated) values (with appropriate type conversion) to your business
  object and vice versa.
  Your BO itself may well be a bean too - such as your BookBean perhaps?
  The actionForm and the business object will of course have a
 very similar
  (often identical) set of properties, however they serve different
  purposes -
  for example you will note that while your BOs beans would have various
  property types (ie: int for pages etc...) you ActionForm will
  *usually* just
  be strings (some folk use bools for checkboxes though) - a result of it
  being a place to store the string data submitted in the request
  or read from
  the BO ready for display in the form...
 
  -Original Message-
  From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
  Sent: Thursday, October 31, 2002 18:20
  To: [EMAIL PROTECTED]
  Subject: MVC Design: property in ActionForm or Bean with property in
  ActionForm ?
 
 
  What's better:
 
  To have a bean let's say BookBean.java
  that has got a String title, author, pages
 
  and an Actionform that uses this BookBean,
 
  or is it better to have an ActionForm
  that has a String title, author, pages.
 
  Imho it's much faster and easier to have your properties in your
  ActionForm,
 
  but I bet according to the MVC design its recommend to use Beans.
 
 
  Right ?
 
 
  thx,
 
  marcus
 
  --
  To unsubscribe, e-mail:
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
 
 
  --
  To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:

RE: actions only for html:form ?

2002-10-31 Thread Quentin.Cope
Mohan

Sorry should have been more explicit. You would then want a line like : a 
href=logoff.do

-Original Message-
From: Mohan Radhakrishnan [mailto:MohanR;hclcomnet.co.in]
Sent: 31 October 2002 10:38
To: 'Struts Users Mailing List'
Subject: RE: actions only for html:form ?


Hi,
   I am doing things like that. mainscreen is my main page. The mapping
should be like this. Isn't it?
   action
path=logoff
type=your.class.goes.here

forward name=success path=login path here /
/action   

 Will my href be a href=logoff.jsp/a this? But logoff doesn't have any
JSP? It should be the login.jsp ?

A use case that is related is this.

  1. User presses reload button.
  2. If fires a reload action.This action does something useful.
  3. Forwards to the same page.
Thanks,
Mohan

-Original Message-
From: Quentin.Cope [mailto:Quentin.Cope;cpg-logistics.com]
Sent: Thursday, October 31, 2002 4:00 PM
To: Struts Users Mailing List
Subject: RE: actions only for html:form ?


Mohan

I think what you want to do is to setup an action mapping something like:

   action
path=mainscreen
type=your.class.goes.here

forward name=success path=loggoff path here /
/action   

Then create an action class and do what you want in the execute method.

Regards

Quentin

-Original Message-
From: Mohan Radhakrishnan [mailto:MohanR;hclcomnet.co.in]
Sent: 31 October 2002 10:23
To: 'Struts Users Mailing List'
Subject: actions only for html:form ?


Hi,
a href=mainscreen.jsp/a

  I am trying to find out how to use the above href representation to fire
an action. I need to fire an action for reload,logoff etc. Sorry if this
is too elementary.

   The html:form tag has an action. How do I fire an action for logging off
if I have an image as a menu? Do I just specify a href=logoff.jsp/a ?
   A bit of explanation would really help.

 A use case that is related is this.

  1. User presses reload button.
  2. If fires a reload action.This action does something useful.
  3. Forwards to the same page.
Thanks,
Mohan

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Galbreath, Mark
I know exactly what you are saying!  However, since I started using vi about
6 months ago, my knowledge of the Java J2SE and J2EE API has increased
10-fold because I cannot use the tool-tip (dot-completion) crutch.  Instead,
I have to actually READ the damn thing and make my own assessment of what is
appropriate.  Then compile and run...oops!  That wasn't the right method
...must...try...something...else...read...the...documentation.

:-)

-Original Message-
From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
Sent: Thursday, October 31, 2002 6:13 AM
To: Struts Users Mailing List
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


Id be lost without my JBuilder since I started using it my brains
ability to store details of method names and parameters has dropped to zero.
Without my helpful tooltips Id be taking that second option :-(

-Original Message-
From: Galbreath, Mark [mailto:Galbreath;tessco.com]
Sent: Thursday, October 31, 2002 19:10
To: 'Struts Users Mailing List'
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I agree, but then, I love Java - all of it (but especially the new 1.4
goodies!).  I even loved AWT! But as an end-user app?  Ugh!  This is why I
stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource hogs,
only because they are built with Swing.  Give me vi or give me death!

-Original Message-
From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
Sent: Thursday, October 31, 2002 6:02 AM
To: Struts Users Mailing List
Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I love Swing.
hmm... actually come to think of it I love *developing* with Swing. Using it
however... urrrgh!

-Original Message-
From: Galbreath, Mark [mailto:Galbreath;tessco.com]
Sent: Thursday, October 31, 2002 18:55
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Struts Console v3.0


Swing sucks.  When is Sun going to get it's act together on providing a
lightweight GUI framework?  Anybody read Alan Williamson's editorial in the
10/02 edition of Java Developer's Journal?

Mark

-Original Message-
From: James Holmes [mailto:jholmes612;yahoo.com]
Sent: Wednesday, October 30, 2002 5:52 PM

Struts Console is Swing not SWT.

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Galbreath, Mark
Alan Williamson also makes a good case for Eclipse in the Oct. 2002 edition
of Java Developer's Journal, p. 5.  His article, and what people have said
on this list has made me interested enough to try it out.  And it's
apparently built with SWT (Standard Widget Toolkit), not Swing.

Mark

-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Thursday, October 31, 2002 6:20 AM
To: Struts Users Mailing List
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I also love vi

but for java developpement, maybe Eclipse is a good choice

??

Xavier




 -Message d'origine-
 De : Galbreath, Mark [mailto:Galbreath;tessco.com]
 Envoyé : jeudi 31 octobre 2002 12:10
 À : 'Struts Users Mailing List'
 Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I agree, but then, I love Java - all of it (but especially the new 1.4
 goodies!).  I even loved AWT! But as an end-user app?  Ugh!  This is why I
 stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource hogs,
 only because they are built with Swing.  Give me vi or give me death!

 -Original Message-
 From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
 Sent: Thursday, October 31, 2002 6:02 AM
 To: Struts Users Mailing List
 Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I love Swing.
 hmm... actually come to think of it I love *developing* with
 Swing. Using it
 however... urrrgh!

 -Original Message-
 From: Galbreath, Mark [mailto:Galbreath;tessco.com]
 Sent: Thursday, October 31, 2002 18:55
 To: 'Struts Users Mailing List'
 Subject: RE: [ANNOUNCE] Struts Console v3.0


 Swing sucks.  When is Sun going to get it's act together on providing a
 lightweight GUI framework?  Anybody read Alan Williamson's
 editorial in the
 10/02 edition of Java Developer's Journal?

 Mark

 -Original Message-
 From: James Holmes [mailto:jholmes612;yahoo.com]
 Sent: Wednesday, October 30, 2002 5:52 PM

 Struts Console is Swing not SWT.

 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




html:options with an ActionForm

2002-10-31 Thread Murray, Christopher
I have an Arraylist of beans in a form with 2 attributes.  I wish to display
one of the attributes in a drop down list and the other I wish to submit in
the parent select tag when one of the elements is selected.

I am having trouble getting the options tag to retrieve the list from the
form and retrieve the attributes from   the beans.  When I use the
collections attribute in the options tag it refers to the list as a bean.

form-bean name=myActionForm
type=com.blah blah blah.MyActionForm/

action path=/blah blah blah/MySearch
type=com.blah blah blah.MyAction
name=myActionForm
scope=request
input=MyPage.jsp
forward name=success path=/blah blah
blah/NewPage.jsp/forward
/action

html:form method=post action=/blah blah blah/MySearch

html:select property=customerId

html:options collection=customerNameList property=id
labelProperty=name /

/html:select

/html:form

Where customerNameList is set in the form by the previous action.

public List getCustomerNameList() {
return customerNameList;
}

public void setCustomerNameList(List customerNameList) {

this.customerNameList = customerNameList;
}


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: actions only for html:form ?

2002-10-31 Thread Marcus Biel
Use the link page like the others told you.
Just in case your logoff Action needs a dynamic parameter (like userid)
you can do this like this:

html:link page=/logoff.do paramName=beanName paramId=userId
paramProperty=userId

For an image look at:
http://localhost:8080/struts-documentation/struts-html.html#img

(Struts Docu also helps with links and everything else)

hope this helps.

marcus

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Andrew Hill
I do remember reading some article a while ago about IBMs attempts to wrest
'control' of Java from Sun, and how the choice of Eclipse as a name was
nomenclaturally significant in this regard...

-Original Message-
From: Galbreath, Mark [mailto:Galbreath;tessco.com]
Sent: Thursday, October 31, 2002 19:33
To: 'Struts Users Mailing List'
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


Alan Williamson also makes a good case for Eclipse in the Oct. 2002 edition
of Java Developer's Journal, p. 5.  His article, and what people have said
on this list has made me interested enough to try it out.  And it's
apparently built with SWT (Standard Widget Toolkit), not Swing.

Mark

-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Thursday, October 31, 2002 6:20 AM
To: Struts Users Mailing List
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I also love vi

but for java developpement, maybe Eclipse is a good choice

??

Xavier




 -Message d'origine-
 De : Galbreath, Mark [mailto:Galbreath;tessco.com]
 Envoyé : jeudi 31 octobre 2002 12:10
 À : 'Struts Users Mailing List'
 Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I agree, but then, I love Java - all of it (but especially the new 1.4
 goodies!).  I even loved AWT! But as an end-user app?  Ugh!  This is why I
 stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource hogs,
 only because they are built with Swing.  Give me vi or give me death!

 -Original Message-
 From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
 Sent: Thursday, October 31, 2002 6:02 AM
 To: Struts Users Mailing List
 Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I love Swing.
 hmm... actually come to think of it I love *developing* with
 Swing. Using it
 however... urrrgh!

 -Original Message-
 From: Galbreath, Mark [mailto:Galbreath;tessco.com]
 Sent: Thursday, October 31, 2002 18:55
 To: 'Struts Users Mailing List'
 Subject: RE: [ANNOUNCE] Struts Console v3.0


 Swing sucks.  When is Sun going to get it's act together on providing a
 lightweight GUI framework?  Anybody read Alan Williamson's
 editorial in the
 10/02 edition of Java Developer's Journal?

 Mark

 -Original Message-
 From: James Holmes [mailto:jholmes612;yahoo.com]
 Sent: Wednesday, October 30, 2002 5:52 PM

 Struts Console is Swing not SWT.

 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Marcus Biel
btw:
That's just what I am looking for!
How can I check if a user typed in a string instead of a number?

marcus

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: xhtml-support

2002-10-31 Thread Stefan.Landro
If you need to create xhtml, you could check out the stxx plugin: 
xml+xslt-xhtml

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com] 
Sent: Mittwoch, 30. Oktober 2002 17:10
To: [EMAIL PROTECTED]
Subject: Re: xhtml-support

The developers have debated this issue quite a bit recently.  I'm not sure 
that xhtml will make it into 1.1.

David






From: Marko Petersen [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: xhtml-support
Date: Wed, 30 Oct 2002 16:51:29 +0100

Hi list,

I am new to struts and want to use the struts-html.tld
to generate an xhtml page. Is there any way to force
struts to close tags like html:text ... / becomes
input ... / ?

Greetings,

Marko


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Get a speedy connection with MSN Broadband.  Join now! 
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: actions only for html:form ?

2002-10-31 Thread Marcus Biel
Well, of course you can put your image into the link instead of text,
just like you would do it with simple html.

I have to admit so far I never used an image link,
so I still sugest you to look in your struts docu,

but it should be something like:
html:link page=/logoff.do html:imgimage.jpg/html:img/html:link

marcus

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Galbreath, Mark
Are you kidding?  Dude, everything typed in an HTML form is a string.  You
have to do some validation.

Mark

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Thursday, October 31, 2002 6:40 AM

btw:
That's just what I am looking for!
How can I check if a user typed in a string instead of a number?

marcus

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: html:options with an ActionForm

2002-10-31 Thread Marcus Biel
I guess you got just the same problem as I had.
1. I guess you misunderstood the way of ActionClass and ActionForm.

First of all, the ActionForm gets filled with the data the user types in
the input fields on your jsp. Then the action gets called.

So I bet putting your List into a Form won't help you, because you will
build it in your action.

You have to:
At the end of your action, write an request.setAtribute for your list.
Even better might be, to put your list into a bean and to put this bean
into request.

Then you should be able to use it.
You should carefully read:
http://localhost:8080/struts-documentation/struts-html.html#options

Imho it's written quite tricky. I needed some time to fully understand
it.
(I'm german, so it was even harder)
How to use the options tag depends wether your using a bean, a form, a
property

I got a Vector of Strings in a Bean, and I am not using the Form (I
doubt this could work)
Here's my solution:
html:form action=getAlaskaGroups.do method=POST
html:select property=plantSelection size=1
html:option value=%bean:message
key=index.selectbox.all//html:option
html:options name=plantListBean property=plantList/
/html:select br
html:submitbean:message key=submit.getAlaskaGroups//html:submit
/html:form

hope this helps.

marcus
p.s: My Vector is build dynamically from database

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: logic:present parameter

2002-10-31 Thread Marcus Biel
Nope, it's in session scope.
Imho I know what happens:

the parameter is in session scope, but when reloading my jsp,
there comes the form again, and the parameter gets reset.
I already deleted this parameter from the reset method,
but this neither helped.

marcus


[EMAIL PROTECTED] schrieb:
 
 Maybe your form is in the request scope instead of
 session scope ( just set scope to session of the action mappiing
 instruts-congig.xml )
 So your form settings will be kept between two calls of your page
 
 Xavier

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: MVC Design: property in ActionForm or Bean with property in A ctionForm ?

2002-10-31 Thread Marcus Biel
yes of course I know!
But how can I be sure that this String is a Integer ?

I mean I can simply convert this String to an Integer,
but I doubt this would help, cause a String can get converted to an
Integer.
(Like A is 65 I think)

So how can I be sure that the user typed 65 and not A ?

Marcus


[EMAIL PROTECTED] schrieb:
 
 Are you kidding?  Dude, everything typed in an HTML form is a string.  You
 have to do some validation.
 
 Mark

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: MVC Design: property in ActionForm or Bean with property in A ctionForm ?

2002-10-31 Thread Galbreath, Mark
Check out the static methods of the java.lang.Character class.  isDigit()
should solve your dilemma.

Mark

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Thursday, October 31, 2002 7:04 AM

yes of course I know!
But how can I be sure that this String is a Integer ?

I mean I can simply convert this String to an Integer,
but I doubt this would help, cause a String can get converted to an
Integer.
(Like A is 65 I think)

So how can I be sure that the user typed 65 and not A ?

Marcus


[EMAIL PROTECTED] schrieb:
 
 Are you kidding?  Dude, everything typed in an HTML form is a string.  You
 have to do some validation.
 
 Mark

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: logic:present parameter

2002-10-31 Thread Galbreath, Mark
Keep the original value in the associated Action class and populate the
field when the JSP is reloaded.

Mark

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Thursday, October 31, 2002 7:01 AM
To: [EMAIL PROTECTED]
Subject: Re: logic:present parameter


Nope, it's in session scope.
Imho I know what happens:

the parameter is in session scope, but when reloading my jsp,
there comes the form again, and the parameter gets reset.
I already deleted this parameter from the reset method,
but this neither helped.

marcus


[EMAIL PROTECTED] schrieb:
 
 Maybe your form is in the request scope instead of
 session scope ( just set scope to session of the action mappiing
 instruts-congig.xml )
 So your form settings will be kept between two calls of your page
 
 Xavier

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: MVC Design: property in ActionForm or Bean with property in A ctionForm ?

2002-10-31 Thread Andrew Hill
What is a 'good-practice' method of validating a numeric string?
Ive been lazy and am doing a Integer.parseInt() in a try catch but its
probably far from the best way...
(Have been meaning to check out the java.text.NumberFormat stuff but always
had more interes... uh... important things to do first and havent had time
yet...)

-Original Message-
From: Galbreath, Mark [mailto:Galbreath;tessco.com]
Sent: Thursday, October 31, 2002 20:13
To: 'Struts Users Mailing List'
Subject: RE: MVC Design: property in ActionForm or Bean with property in
A ctionForm ?


Check out the static methods of the java.lang.Character class.  isDigit()
should solve your dilemma.

Mark

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Thursday, October 31, 2002 7:04 AM

yes of course I know!
But how can I be sure that this String is a Integer ?

I mean I can simply convert this String to an Integer,
but I doubt this would help, cause a String can get converted to an
Integer.
(Like A is 65 I think)

So how can I be sure that the user typed 65 and not A ?

Marcus


[EMAIL PROTECTED] schrieb:

 Are you kidding?  Dude, everything typed in an HTML form is a string.  You
 have to do some validation.

 Mark

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: logic:present parameter

2002-10-31 Thread Xavier Combelle
About the reset method, you should know that 
it is called each time your action is called,
before your action is called, just before the
struts framework populate the form with the parameter of the request

but here the problem is that you used
logic:present parameter=plantSelection
/logic:present
which check in the parameter

instead of 

logic:present  name=yourFormName property=plantSelection 
/logic:present
which should check in the form bean


xavier 




 -Message d'origine-
 De : Marcus Biel [mailto:Marcus.Biel;bmw.de]
 Envoye : jeudi 31 octobre 2002 13:01
 A : [EMAIL PROTECTED]
 Objet : Re: logic:present parameter
 
 
 Nope, it's in session scope.
 Imho I know what happens:
 
 the parameter is in session scope, but when reloading my jsp,
 there comes the form again, and the parameter gets reset.
 I already deleted this parameter from the reset method,
 but this neither helped.
 
 marcus
 
 
 [EMAIL PROTECTED] schrieb:
  
  Maybe your form is in the request scope instead of
  session scope ( just set scope to session of the action mappiing
  instruts-congig.xml )
  So your form settings will be kept between two calls of your page
  
  Xavier
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Basic logic:equals question

2002-10-31 Thread Affan Qureshi
A rather basic question.
I want to accomplish in my JSP:

if((request.getParameter(ext)!=null)||(request.getParameter(ext).equals(
0)))
{
/* do Something */
}
else
{
/* do Something else */
}

Using the logic:equals tag I write

logic:equals parameter=ext value=0


/logic:equals
logic:equals parameter=ext value=1


/logic:equals

But first this is not an else equivalent and secondly it does not account
for null if the parameter is not found in request.
What is the solution?

Thanks for your time on this silly question.



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Basic logic:equals question

2002-10-31 Thread Affan Qureshi
I guess i can do:
logic:present parameter=ext
logic:equal parameter=ext value=0
bean:write ../
/logic:equal
/logic:present

for
if((request.getParameter(ext)!=null)||(request.getParameter(ext).equals(
0)))
but still I can't figure out the else clause. I dont want to insert
another set of logic:present ... and logic:equal tags with inverse
conditions cause that will introduce another if instead of the else
clause.

- Original Message -
From: Affan Qureshi [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Thursday, October 31, 2002 5:20 PM
Subject: Basic logic:equals question


 A rather basic question.
 I want to accomplish in my JSP:


if((request.getParameter(ext)!=null)||(request.getParameter(ext).equals(
 0)))
 {
 /* do Something */
 }
 else
 {
 /* do Something else */
 }

 Using the logic:equals tag I write

 logic:equals parameter=ext value=0


 /logic:equals
 logic:equals parameter=ext value=1


 /logic:equals

 But first this is not an else equivalent and secondly it does not
account
 for null if the parameter is not found in request.
 What is the solution?

 Thanks for your time on this silly question.



 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




from and bean

2002-10-31 Thread Victor Batista
Hello!
I am trying to create a jsp whose action depends on a request parameter. I
have trying the following, with no results:

html:form action=bean:write name=userurl scope=request/
focus=username 
and
html:form action='bean:write name=userurl scope=request/'
focus=username 
and
html:form action=bean:write name=userurl scope=request/
focus=username 

I always get an exception which states that the bean userurl has no value


When I hardcode the action, it works ok:

html:form action=saveNewUser.action focus=username 
.
bean:write name=userurl scope=request/




Can any one help me please?
Thanks in advance,
Victor Batista



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: actions only for html:form ?

2002-10-31 Thread Mohan Radhakrishnan
Hi,

So if my original tag is like this

a href=logoff.action onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('x','','images/x.gif',1);
img name=smwinterfacestats_r2_c8 src=images/x.gif width=38
height=34 border=0 alt=

then the new one would be

like this.

html:link page=/logoff.action  onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('x','','images/x.gif',1);
 html:img  name=x src=images/x.gif width=38 height=34 border=0
alt=
 /html:img
/html:link

Shouldn't onMouseOut/onMouseOver be attributes of html:img? I will try
this.

Thanks,
Mohan



-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Thursday, October 31, 2002 5:19 PM
To: [EMAIL PROTECTED]
Subject: Re: actions only for html:form ?


Well, of course you can put your image into the link instead of text,
just like you would do it with simple html.

I have to admit so far I never used an image link,
so I still sugest you to look in your struts docu,

but it should be something like:
html:link page=/logoff.do html:imgimage.jpg/html:img/html:link

marcus

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: MVC Design: property in ActionForm or Bean with property in A ctionForm ?

2002-10-31 Thread Galbreath, Mark
Well, Marcus was just asking how he could differentiate between an input of
A vs 65 (text vs digit).  The simplest way I know is something like:

char test = request( getParameter( formObject1 )).charAt( 0 );
if( Character.isDigit( test ) {
  doSomething();
}

If you want to validate the accuracy of a number or sequence of numbers:

NumberFormat nf = NumberFormat.getInstance();
Number number = nf.parse( request.getParameter( formObject1 ));
if( number.floatValue() != 3.14 ) {
  System.out.println( No pi for you! );
}

Mark

-Original Message-
From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
Sent: Thursday, October 31, 2002 7:17 AM
To: Struts Users Mailing List
Subject: RE: MVC Design: property in ActionForm or Bean with property in
A ctionForm ?


What is a 'good-practice' method of validating a numeric string?
Ive been lazy and am doing a Integer.parseInt() in a try catch but its
probably far from the best way...
(Have been meaning to check out the java.text.NumberFormat stuff but always
had more interes... uh... important things to do first and havent had time
yet...)

-Original Message-
From: Galbreath, Mark [mailto:Galbreath;tessco.com]
Sent: Thursday, October 31, 2002 20:13
To: 'Struts Users Mailing List'
Subject: RE: MVC Design: property in ActionForm or Bean with property in
A ctionForm ?


Check out the static methods of the java.lang.Character class.  isDigit()
should solve your dilemma.

Mark

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Thursday, October 31, 2002 7:04 AM

yes of course I know!
But how can I be sure that this String is a Integer ?

I mean I can simply convert this String to an Integer,
but I doubt this would help, cause a String can get converted to an
Integer.
(Like A is 65 I think)

So how can I be sure that the user typed 65 and not A ?

Marcus


[EMAIL PROTECTED] schrieb:

 Are you kidding?  Dude, everything typed in an HTML form is a string.  You
 have to do some validation.

 Mark

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




problem while using struts 1.1

2002-10-31 Thread KISHORE KUMAR KOTA Rao

While trying to run the severe,it says problem loading servlet SAXParser
exception
Can anybody help me out in this.

[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
javax.xml.parsers.ParserConfigurationException: Namespace not supported by
SAXParser
at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60)
at
com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.ja
va:57)
at org.apache.commons.digester.Digester.getParser(Digester.java:676)
at
org.apache.commons.digester.Digester.getXMLReader(Digester.java:892)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1257)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:451)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
va:802)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
rvlet.java:141)
at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
eServlet.java:254)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
vlet.java:107)
at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
84)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
Manager.java:226)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA
ppServletManager.java:357)
at
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1010)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
at
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:65
2)
at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
at com.ibm.ws.runtime.Server.startModule(Server.java:617)
at
com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
at
com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349
)
at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:884)
at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
at
com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja
va)
[ERROR] Digester - -Digester.getParser:
javax.xml.parsers.ParserConfigurationException: Namespace not supported by
SAXParser
java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method
getXMLReader()Lorg/xml/sax/XMLReader; not found
at
org.apache.commons.digester.Digester.getXMLReader(Digester.java:892)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1257)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:451)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
va:802)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
rvlet.java:141)
at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
eServlet.java:254)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
vlet.java:107)
at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
84)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
Manager.java:226)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA
ppServletManager.java:357)
at
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1010)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
at
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:65
2)
at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
   

RE: html:options with an ActionForm

2002-10-31 Thread Murray, Christopher
Isn't the action form is a bean on the request ?

If the list is wrapped in the action form then isn't this the same as your
last suggestion,

Even better might be, to put your list into a bean and to put this bean
into request. ?

Have tried putting the list on the request but the page displays a blank
drop down list.

in the action :

request.setAttribute(MyActionForm, myForm);
request.setAttribute(customerNameList, myForm.getCustomerNameList());

in page:

html:form method=post action=/blah blah blah/MyAction

html:select property=customerId

html:options collection=customerNameList property=id
labelProperty=name /

/html:select

/html:form

Getting a blank drop down list.  

???

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: 31 October 2002 11:59
To: [EMAIL PROTECTED]
Subject: Re: html:options with an ActionForm


I guess you got just the same problem as I had.
1. I guess you misunderstood the way of ActionClass and ActionForm.

First of all, the ActionForm gets filled with the data the user types in
the input fields on your jsp. Then the action gets called.

So I bet putting your List into a Form won't help you, because you will
build it in your action.

You have to:
At the end of your action, write an request.setAtribute for your list.
Even better might be, to put your list into a bean and to put this bean
into request.

Then you should be able to use it.
You should carefully read:
http://localhost:8080/struts-documentation/struts-html.html#options

Imho it's written quite tricky. I needed some time to fully understand
it.
(I'm german, so it was even harder)
How to use the options tag depends wether your using a bean, a form, a
property

I got a Vector of Strings in a Bean, and I am not using the Form (I
doubt this could work)
Here's my solution:
html:form action=getAlaskaGroups.do method=POST
html:select property=plantSelection size=1
html:option value=%bean:message
key=index.selectbox.all//html:option
html:options name=plantListBean property=plantList/
/html:select br
html:submitbean:message
key=submit.getAlaskaGroups//html:submit
/html:form

hope this helps.

marcus
p.s: My Vector is build dynamically from database

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: logic:present parameter

2002-10-31 Thread Marcus Biel
Sorrry, this was a bit to short for me.

Which field are you talking about ?
I guess you mean the ActionForm.
If you mean the ActionForm, how could I fill it using my Action ???
First of al the ActionForm gets called, THEN the Action gets called,
so I could hardly fill my ActionForm from my ActionClass.

Marcus



[EMAIL PROTECTED] schrieb:
 
 Keep the original value in the associated Action class and populate the
 field when the JSP is reloaded.
 
 Mark


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Basic logic:equals question

2002-10-31 Thread Marcus Biel
if: logic:equal
else: logic:notEqual

marcus

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: [Tiles] Getting wrong page definition when Struts does auto validation.

2002-10-31 Thread Cedric Dumoulin

 Looks like there is a problem.
 Does meshAction.do use the correct layout when there is no error ? 
If yes, there is something wrong when validate reroute the request.

  Cedric

[EMAIL PROTECTED] wrote:

I have  converted most of my developing application to Tiles with great
success, but I have just found a error that I hope somone
could help me with. It apears to me  to be a bug because I think I have it
configured properly.

I am using 1.1b2 with tomcat 4.0.4

Most of my pages will extend one page layout definition, but several use an
alternate page layout.
I will post the config code below, here is a summary:
My two layouts are:

definition name=masterLayout path=/WEB-INF/common/MainLayoutPage.jsp
and
definition name=masterWideLayout path=/WEB-INF/common/MainLayoutWideContentPage.jsp

then
definition name=customer.master extends=masterLayout 
and
definition name=customer.wide.master extends=masterWideLayout 

I have a page definition:
definition name=view.mesh.main extends=customer.wide.master 

When I  let Struts call the validate method and route back to my LoadAction the page displays the error messages but the page is displayed
using the masterLayout definition.

I hope I have provided the proper info
--
Page definiition in  xml file:
definition name=masterLayout path=/WEB-INF/common/MainLayoutPage.jsp
   put name=footer value=/WEB-INF/common/PageFooter.jsp /
   put name=messageTable   value=/WEB-INF/common/MessageTable.jsp /
   put name=headerMenu value=/WEB-INF/common/HeaderMenu.jsp /
 /definition

 definition name=masterWideLayout path=/WEB-INF/common/MainLayoutWideContentPage.jsp
   put name=footer value=/WEB-INF/common/PageFooter.jsp /
   put name=messageTable   value=/WEB-INF/common/MessageTable.jsp /
   put name=headerMenu value=/WEB-INF/common/HeaderMenu.jsp /
 /definition


 !-- The top definitions for the customer pages --
  definition name=customer.master extends=masterLayout 
   put name=sideMenu value=/WEB-INF/customer/table/CustomerMenu.jsp /
  /definition

  definition name=customer.wide.master extends=masterWideLayout 
   put name=sideMenu value=/WEB-INF/customer/table/CustomerMenu.jsp /
  /definition

   !--  Mesh Views **
   Note that this uses the wide layout definition
   --
   definition name=view.mesh.main extends=customer.wide.master 
   put name=title  value=Transaction Meshing /
   put name=header value=/WEB-INF/common/PageHeader.jsp?pageTitle=Transaction Meshing /
  put name=summary value=/WEB-INF/customer/form/CurrentCustomerSummaryForm.jsp?actionTarget=/meshChangeCurrentCustomer.do /
  put name=mainContent value=/WEB-INF/customer/table/CustomerMeshMainTable.jsp /
  put name=wideContent value=/WEB-INF/customer/form/CustomerMeshMainForm.jsp /
   /definition
   !-- --

Struts config Info:
action path=/meshLoad
   type=com.nlg.ar.web.customer.action.CustomerMeshingLoadAction
name=customerMeshingForm
   scope=request
   validate=false
forward name=success path=view.mesh.main /
 /action

action
 path=/meshAction
 type=com.nlg.ar.web.customer.action.CustomerMeshAction
 name=customerMeshingForm
 scope=request
 validate=true
 input=/meshLoad.do
forward name=success path=/meshLoad.do /
 /action



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


 



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: MVC Design: property in ActionForm or Bean with property in A ctionForm ?

2002-10-31 Thread Marcus Biel
But remember we got Strings, not Characters.
Sorry I know this is dumb, but today I worked this much,
I really can't get a clear mind.
8-)

marcus

[EMAIL PROTECTED] schrieb:
 
 Check out the static methods of the java.lang.Character class.  isDigit()
 should solve your dilemma.
 
 Mark

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: tiles:put / in ActionForward.perform()

2002-10-31 Thread Cedric Dumoulin

 The context is the tile context. It is associated to current tile, and 
created when you insert the Tile, or forward to a tile. So, it doesn't 
exist if your action is called throw the normal Struts way. But, you 
don't need the context to get a definition from the factory and put it 
in the request scope in order to be used by the struts forward.

   Cedric

Roland Carlsson wrote:

Ok. so far I have got it but I still doesn't get the request into context.

ComponentContext context = ComponentContext.getContext( request );
returns null so I having a hard time to test the
org.apache.struts.webapp.tiles.test.TestActionTileAction class.

What is wrong when ComponentContext.getContext(request) returns null? I
doesn't get any help from the documentation here.

Thanks in advace
Roland Carlsson


- Original Message -
From: Cedric Dumoulin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 30, 2002 4:56 PM
Subject: Re: tiles:put / in ActionForward.perform()


 

 Ok, I haven't read  carefully enough your previous mail.
 You can create a new definition from a definition read in the factory,
and then instruct current Struts action to use your new definition. More
precisely, the definition associated to the struts forward will be
overloaded by your definition.
 The class org.apache.struts.webapp.tiles.test.TestActionTileAction use
in the tiles-documentation/test do that.
 Following is an extract from this class. The code get the definition,
copy it, modify the copy, and then put it in the appropriate request
attribute. The


 // Read definition from factory, but we can create it here.

   ComponentDefinition definition = DefinitionsUtil.getDefinition(
   

... );
 

   definition = new ComponentDefinition(definition);

   definition.putAttribute( attributeName, aValue );

   DefinitionsUtil.setActionDefinition( request, definition);

 ...

 return (mapping.findForward(success));


 Cedric



Roland Carlsson wrote:

   

Hi !
I think the DefinitionDispatcherAction doesn't do what I want to do

Imagine that you have a definition with 2 tiles (left and body)
In the left tile there are a collection of links that will change the
content of body.

If I understands what the DefinitonDispatcherAction does it will change
 

what
 

defintion to use. What I want to do is to change one tile in the
 

defintion,
 

much like a frameset where i doesn't change the frameset, only one page
 

in
 

it. So I want to call the same defintion and alter a tile in that
 

defintion.
 

Not change the defintion.

The problem with the perform-method I posted is that it change the tile
 

in
 

the application-scope and I havn't figured out yet how to make the change
isolate into a request only.

Regards
Roland




- Original Message -
From: Cedric Dumoulin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 30, 2002 2:11 PM
Subject: Re: tiles:put / in ActionForward.perform()




 

Hi,

I think there is an action in the Tiles/Struts distribution doing
exactly that ;-)
Check org.apache.struts.tiles.actions.DefinitionDispatcherAction.

   Cedric

Roland Carlsson wrote:



   

I have solved my own question. If anyone is intrested I past the code


 

below.


 

The change in the definition lasts only for the request and will not
 

make
 

any permanent changes.

Regards
Roland Carlsson


public ActionForward perform(
  ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
throws IOException, ServletException
{
 String forward = success;
 String path = request.getParameter(body);
 // Change nothing
 if(path == null || path.equals()){
   // do nothing
 }else{
   // Try to change body-page
   ServletContext context =
this.getServlet().getServletConfig().getServletContext();
   ComponentDefinition cd = null;
   try{
   cd = DefinitionsUtil.getDefinition(path, request, context) ;
   cd.put(body, request.getParameter(body));
   // if something is wrong
   }catch(Exception e){
 e.printStackTrace();
 forward = error;
   }
 }
 return mapping.findForward(forward);
}

- Original Message -
From: Roland Carlsson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 4:31 PM
Subject: tiles:put / in ActionForward.perform()






 

Hi!
I'm trying to expand my tiles with a dynamic body. I want to control


   

this


 

body with a simple parameter in the url eg
http://localhost:8081/myPage?body=aTile.jsp . Does anyone have an


   

example


 

   

of




 

how to do this?

Thanks in advance
Roland Carlsson


--
To unsubscribe, e-mail:




   

mailto:struts-user-unsubscribe;jakarta.apache.org




 

For additional commands, e-mail:




   

mailto:struts-user-help;jakarta.apache.org




--
To 

RE: actions only for html:form ?

2002-10-31 Thread Mohan Radhakrishnan
Hi,
I might be slightly confused here.

Is the following right ?

a href=logoff.action onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('x','','images/x.gif',1);
img name=x src=images/x.gif width=59 height=34 border=0 alt=
/a

If it is not then this is how it should be.

html:link page=/logoff.action  onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('x','','images/x.gif',1);
 html:img  name=x src=images/x.gif width=38 height=34 border=0
alt=
 /html:img
/html:link

Am I right? The second method is not liked by the parser. logoff.action can
have an action that must eventually forward to login.jsp.

Thanks,
Mohan

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Thursday, October 31, 2002 5:19 PM
To: [EMAIL PROTECTED]
Subject: Re: actions only for html:form ?


Well, of course you can put your image into the link instead of text,
just like you would do it with simple html.

I have to admit so far I never used an image link,
so I still sugest you to look in your struts docu,

but it should be something like:
html:link page=/logoff.do html:imgimage.jpg/html:img/html:link

marcus

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: MVC Design: property in ActionForm or Bean with property in A ctionForm ?

2002-10-31 Thread Galbreath, Mark
See my response to Andrew for taking a String and getting a char out of it -
posted about an hour ago.

Mark

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Thursday, October 31, 2002 8:27 AM
To: [EMAIL PROTECTED]
Subject: Re: MVC Design: property in ActionForm or Bean with property in
A ctionForm ?


But remember we got Strings, not Characters.
Sorry I know this is dumb, but today I worked this much,
I really can't get a clear mind.
8-)

marcus

[EMAIL PROTECTED] schrieb:
 
 Check out the static methods of the java.lang.Character class.  isDigit()
 should solve your dilemma.
 
 Mark

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: MVC Design: property in ActionForm or Bean with property in A ctionForm ?

2002-10-31 Thread Andrew Hill
hehe, I know the feeling :-)

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Thursday, October 31, 2002 21:27
To: [EMAIL PROTECTED]
Subject: Re: MVC Design: property in ActionForm or Bean with property in
A ctionForm ?


But remember we got Strings, not Characters.
Sorry I know this is dumb, but today I worked this much,
I really can't get a clear mind.
8-)

marcus

[EMAIL PROTECTED] schrieb:

 Check out the static methods of the java.lang.Character class.  isDigit()
 should solve your dilemma.

 Mark

--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [ANNOUNCE] Struts Console v3.0

2002-10-31 Thread Galbreath, Mark
Yup...been following that and Williamson also mentions thinlets.  I haven't
had the time to check it out yet, however.

-Original Message-
From: Jerry Jalenak [mailto:Jerry.Jalenak;LABONE.com]
Sent: Thursday, October 31, 2002 8:58 AM
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Struts Console v3.0


Mark,

A couple of weeks ago there was post to this list on a light-weight GUI
package.  You might take a look at www.thinlet.com - I haven't had time to
play around with this yet but it looks quite interesting

Jerry

 -Original Message-
 From: Galbreath, Mark [mailto:Galbreath;tessco.com]
 Sent: Thursday, October 31, 2002 4:55 AM
 To: 'Struts Users Mailing List'
 Subject: RE: [ANNOUNCE] Struts Console v3.0
 
 
 Swing sucks.  When is Sun going to get it's act together on 
 providing a
 lightweight GUI framework?  Anybody read Alan Williamson's 
 editorial in the
 10/02 edition of Java Developer's Journal?
 
 Mark
 
 -Original Message-
 From: James Holmes [mailto:jholmes612;yahoo.com]
 Sent: Wednesday, October 30, 2002 5:52 PM
 
 Struts Console is Swing not SWT.
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:struts-user-help;jakarta.apache.org
 
 

This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.



--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Architecture question. Device Independence.

2002-10-31 Thread Darren Hill
Hi all,

Looking for some in-sight from all you experts out there.

I'm designing struts-application and what to make it 'device-independent'.
I've looked into stxx, which is exactly what I'm looking for, but its not
been upgraded to Struts 1.1.  I don't have the resources to create this for
myself, and am looking for a 'plugable' architecture to solve this problem.

Is there anything else out there that does the same thing?

Any tips I should consider?

Darren.

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Help please in ApplicationResources

2002-10-31 Thread James Mitchell
This would not be possible with the current API.

You can do this with your own implementation (as I have done), but that is
still just a hack.

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

Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former.
- Albert Einstein (1879-1955)


 -Original Message-
 From: Yann Verlynde [mailto:yverlynde;oxade.com]
 Sent: Thursday, October 31, 2002 5:19 AM
 To: Struts Users Mailing List
 Subject: Re: Help please in ApplicationResources


 Hi Lucas,

 Thanks for the response but you don't understand my question, I
 think it is
 due to my english...;-)
 I have already one application resources file named
 ApplicationResources.properties so I use already a Resource Bundle but I
 want to write a page that print all the content of this ResourceBundle.
 I know that to have a property I must use:
 bean:message key=email.protocol bundle=APPLICATION_CONFIGURATION/
 So with that, I can print all the properties but I is very long and not
 flexible.
 It is not a very good solution because I put the name of the property
 'email.protocol.
 So I would like a generic method or Tag to take back all the properties in
 an Array of the Resources Bundle in my JSP.

 Thanks in advance
 Yann


 - Original Message -
 From: Lucas [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, October 31, 2002 11:05 AM
 Subject: RE: Help please in ApplicationResources


  Hi Yann,
 
  IMHO, from my understanding, the idea of having message resources bundle
  in a separate text file is so that we do not have to change any codes
  (JSP/Java) which means easier maintenance and more flexibility. So I
  would suggest using a text file for a resource bundle and put it
  anywhere below your WEB-INF/classes/dir1/dir2 as somefilename.properties
  (I would put all the resources in the same directory) and then you can
  access using
  bean:message key=somekeyname bundle=dir1.dir2.somefilename/ (note
  that the .properties extension is not needed).
 
  If you insist on using JSP then you should just use scriplet variables
  like
  %
  String emailProtocol = POP3
  %
 
  and call it using
 
  %= emailProtocol %
 
  Do I get your question right?
 
  Hope it helps,
 
  Lucas
 
 
 
   -Original Message-
   From: Yann Verlynde [mailto:yverlynde;oxade.com]
   Sent: Wednesday, October 30, 2002 11:58 PM
   To: Struts
   Subject: Help please in ApplicationResources
  
   If I want to have a message in a JSP, I use this code:
   bean:message key=email.protocol
  bundle=APPLICATION_CONFIGURATION/
  
   But I want to have all the messages resources in my JSP,
   How can I do that please?
  
   Thanks in advance
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 


 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: tiles definition doesn't work, config looks correct, am baffled

2002-10-31 Thread Alayne Wartell

Oops, meant to include the error message (404 error):
The requested resource (/tilesproj/.mydefinition) is not available.
.mydefinition is in my tiles-defs.xml, but struts is apparently thinking it
should be a file in my web app directory.
The JSP files I'm specifying do all exist.
I'm currently figuring out how to configure tomcat logging (tomcat newbie
too) but maybe the above info will tell you something?
Thanks.




   
  
   
  
   To:   Struts Users Mailing List 
[EMAIL PROTECTED]  
  Cedric Dumoulin  cc:   (bcc: Alayne Wartell/Towers 
Perrin) 
  [EMAIL PROTECTED]Subject:  Re: tiles definition doesn't 
work, config looks correct, am 
  gbaffled
  
   
  
  10/31/2002 04:01 
  
  AM   
  
  Please respond to
  
  Struts Users
  
  Mailing List
  
   
  
   
  





  Hi,

  What is the error ? Also check the output in the tomcat error log file.

Alayne Wartell wrote:

Hi,
I'm trying to get Tiles running with Struts, and I'm getting 404's when I
try to use tiles definitions.
I'm running Struts 1.1b2 and Tomcat.
I can run a JSP-only Tiles template just fine.
I really hope someone can help. I've checked everything I can think of and
have run out of ideas.
Details follow.
Thanks very much,
Alayne
(struts newbie)

I'm trying to access http://localhost:8080/tilesproj/testdefinition.do
which forwards to definition .mydefinition
which is in tiles-defs.xml
I've configured the Tiles plug-in in struts-config.xml. I originally had
it
in web.xml but either way I get the same behavior.
I'm running the regular Struts controller.

Here are my configuration files:

tiles-defs.xml :
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE tiles-definitions PUBLIC
   -//Apache Software Foundation//DTD Tiles Configuration//EN
   http://jakarta.apache.org/struts/dtds/tiles-config.dtd;

tile-definitions
!-- page templates --
  definition name=.standardBaseLayout path
=/standardBaseLayout.jsp
put name=header value=/header.jsp /
put name=body value= /
put name=footer value=/footer.jsp /
  /definition

!-- put application pages here --
  definition name=.mydefinition extends=.standardBaseLayout
put name=body value=/mypage.jsp /
  /definition
/tile-definitions

struts-config.xml :

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

struts-config

global-forwards
   forward
name=index
path=/index.jsp/
/global-forwards

action-mappings
action
  path=/testuse
  forward=/testuse.jsp /
/action
action
  path=/testdefinition
  type=org.apache.struts.tiles.actions.NoOpAction
  forward name=success path=.mydefinition /
  forward name=failure path=.mydefinition /
/action

/action-mappings

  !-- tiles plug-in --
  plug-in className=org.apache.struts.tiles.TilesPlugin 
set-property property=definitions-config
   value=/WEB-INF/tiles-defs.xml /
set-property property=definitions-debug value=2 /
set-property property=definitions-parser-details value=2 /
set-property property=definitions-parser-validate value=true /
  /plug-in

message-resources parameter=resources.application/

/struts-config


---


Re: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread John Owen
Use JCreator. Or would you feel blasphemus using a Java tool written in c++?
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, October 31, 2002 5:09 AM
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I agree, but then, I love Java - all of it (but especially the new 1.4
 goodies!).  I even loved AWT! But as an end-user app?  Ugh!  This is why I
 stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource hogs,
 only because they are built with Swing.  Give me vi or give me death!

 -Original Message-
 From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
 Sent: Thursday, October 31, 2002 6:02 AM
 To: Struts Users Mailing List
 Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I love Swing.
 hmm... actually come to think of it I love *developing* with Swing. Using
it
 however... urrrgh!

 -Original Message-
 From: Galbreath, Mark [mailto:Galbreath;tessco.com]
 Sent: Thursday, October 31, 2002 18:55
 To: 'Struts Users Mailing List'
 Subject: RE: [ANNOUNCE] Struts Console v3.0


 Swing sucks.  When is Sun going to get it's act together on providing a
 lightweight GUI framework?  Anybody read Alan Williamson's editorial in
the
 10/02 edition of Java Developer's Journal?

 Mark

 -Original Message-
 From: James Holmes [mailto:jholmes612;yahoo.com]
 Sent: Wednesday, October 30, 2002 5:52 PM

 Struts Console is Swing not SWT.

 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread David Graham
I use eclipse for many reasons, one of which is it's GUI and relative light 
weight (50-60 MB).  The eclipse group wrote SWT because Swing stinks, 
everyone except Sun recognizes that (that should stir some people up ;-).  
SWT passes graphics calls straight to the OS so it's fast and you get native 
widgets, none of this fake stuff.

The swing implementation on the Mac is the only one that passes straight 
through to the OS like SWT.


David






From: Galbreath, Mark [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
Date: Thu, 31 Oct 2002 06:33:25 -0500

Alan Williamson also makes a good case for Eclipse in the Oct. 2002 edition
of Java Developer's Journal, p. 5.  His article, and what people have 
said
on this list has made me interested enough to try it out.  And it's
apparently built with SWT (Standard Widget Toolkit), not Swing.

Mark

-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Thursday, October 31, 2002 6:20 AM
To: Struts Users Mailing List
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I also love vi

but for java developpement, maybe Eclipse is a good choice

??

Xavier




 -Message d'origine-
 De : Galbreath, Mark [mailto:Galbreath;tessco.com]
 Envoyé : jeudi 31 octobre 2002 12:10
 À : 'Struts Users Mailing List'
 Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I agree, but then, I love Java - all of it (but especially the new 1.4
 goodies!).  I even loved AWT! But as an end-user app?  Ugh!  This is why 
I
 stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource 
hogs,
 only because they are built with Swing.  Give me vi or give me death!

 -Original Message-
 From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
 Sent: Thursday, October 31, 2002 6:02 AM
 To: Struts Users Mailing List
 Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I love Swing.
 hmm... actually come to think of it I love *developing* with
 Swing. Using it
 however... urrrgh!

 -Original Message-
 From: Galbreath, Mark [mailto:Galbreath;tessco.com]
 Sent: Thursday, October 31, 2002 18:55
 To: 'Struts Users Mailing List'
 Subject: RE: [ANNOUNCE] Struts Console v3.0


 Swing sucks.  When is Sun going to get it's act together on providing a
 lightweight GUI framework?  Anybody read Alan Williamson's
 editorial in the
 10/02 edition of Java Developer's Journal?

 Mark

 -Original Message-
 From: James Holmes [mailto:jholmes612;yahoo.com]
 Sent: Wednesday, October 30, 2002 5:52 PM

 Struts Console is Swing not SWT.

 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



Ted's book..

2002-10-31 Thread Jeff_Mychasiw
http://www.manning.com/ebook_buy.html?project=husted


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Newbie: Accessing form values

2002-10-31 Thread Ian Crossfield

I expect it to be an obvious answer, but I'm just banging my head against the 
desk now...

How do I go about accessing a parameter held within a form so that it can be 
used by the logic tasks for comparison?

I.e. I have a form field called currentPage, this has the appropriate get and 
set methods within its form EditDatabaseForm. I want to get at it several 
times in tags similar to:
  logic:equal name=currentPage value=1

I suspect it's something to do with the bean:stuts or bean:define tag, but 
I can't find a suitable example.

Thanks

Ian



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Newbie: Accessing form values

2002-10-31 Thread Xavier Combelle

just use
logic:equal name=editDatabaseForm property=currentPage value=1
where editDatabaseForm is the formBena's name as specified in
struts-config.xml

Regards,
Xavier

 -Message d'origine-
 De : Ian Crossfield [mailto:ian.xfield;dsl.pipex.com]
 Envoyé : jeudi 31 octobre 2002 16:17
 À : [EMAIL PROTECTED]
 Objet : Newbie: Accessing form values



 I expect it to be an obvious answer, but I'm just banging my head
 against the
 desk now...

 How do I go about accessing a parameter held within a form so
 that it can be
 used by the logic tasks for comparison?

 I.e. I have a form field called currentPage, this has the
 appropriate get and
 set methods within its form EditDatabaseForm. I want to get at
 it several
 times in tags similar to:
   logic:equal name=currentPage value=1

 I suspect it's something to do with the bean:stuts or
 bean:define tag, but
 I can't find a suitable example.

 Thanks

 Ian



 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Newbie: Accessing form values

2002-10-31 Thread Ian Crossfield

Cheers - oh well its only half an hour till home time... :)

Quoting Xavier Combelle [EMAIL PROTECTED]:

 
 just use
 logic:equal name=editDatabaseForm property=currentPage value=1
 where editDatabaseForm is the formBena's name as specified in
 struts-config.xml
 
 Regards,
 Xavier
 
  -Message d'origine-
  De : Ian Crossfield [mailto:ian.xfield;dsl.pipex.com]
  Envoyé : jeudi 31 octobre 2002 16:17
  À : [EMAIL PROTECTED]
  Objet : Newbie: Accessing form values
 
 
 
  I expect it to be an obvious answer, but I'm just banging my head
  against the
  desk now...
 
  How do I go about accessing a parameter held within a form so
  that it can be
  used by the logic tasks for comparison?
 
  I.e. I have a form field called currentPage, this has the
  appropriate get and
  set methods within its form EditDatabaseForm. I want to get at
  it several
  times in tags similar to:
logic:equal name=currentPage value=1
 
  I suspect it's something to do with the bean:stuts or
  bean:define tag, but
  I can't find a suitable example.
 
  Thanks
 
  Ian
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 




--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Set Attribute values from beans....

2002-10-31 Thread Victor Batista

Hello!
How can I set attribute values with values stored in beans?

For instance, I want to build a JSP which renderes an HTML form with the
action value dependant on the value of a bean. I have tried the following
ways, but I always get an error:

html:form action=bean:write name=userurl scope=request/
focus=username 
and
html:form action='bean:write name=userurl scope=request/'
focus=username 
and
html:form action=bean:write name=userurl scope=request/
focus=username 


Can any one please tell me how can I do this?


When I hardcode the action, it works ok:

html:form action=saveNewUser.action focus=username 
.
bean:write name=userurl scope=request/



Any help would be appreciated.

Thanks in advance,
Victor Batista



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: tiles definition doesn't work, config looks correct, am baffled

2002-10-31 Thread Hue Holleran
Hi Alayne,

From one tiles newbie to another...

The general format of the action... for tiles is shown below:

  action-mappings
!-- Action mapping for profile form --
action path=/profileInput
type=com.caraveltech.ex2.ProfileAction
name=profileForm
scope=request
input=tile.profileInput
validate=true
  forward name=success path=tile.profileOutput/
/action
  /action-mappings

Where input is the tiles definition to be displayed.

This was from a lovely little training app by Wellie Chao that I found
personally very useful when learning tiles obtained from IBM's site:

http://www-106.ibm.com/developerworks/java/library/j-strutstiles.html

Apologies if you're already aware of this article ... it provides some
really nice, simple worked examples of tiles with struts and comes with
downloadable source and interestingly a nice coverage of ant - if you've
not used that before also.

Hue.

-Original Message-
From: Alayne Wartell [mailto:alayne.wartell;towers.com]
Sent: 31 October 2002 14:49
To: Struts Users Mailing List
Subject: Re: tiles definition doesn't work, config looks correct, am
baffled



Oops, meant to include the error message (404 error):
The requested resource (/tilesproj/.mydefinition) is not available.
mydefinition is in my tiles-defs.xml, but struts is apparently thinking it
should be a file in my web app directory.
The JSP files I'm specifying do all exist.
I'm currently figuring out how to configure tomcat logging (tomcat newbie
too) but maybe the above info will tell you something?
Thanks.






   To:   Struts Users
Mailing List [EMAIL PROTECTED]
  Cedric Dumoulin  cc:   (bcc: Alayne
Wartell/Towers Perrin)
  [EMAIL PROTECTED]Subject:  Re: tiles
definition doesn't work, config looks correct, am
  gbaffled

  10/31/2002 04:01
  AM
  Please respond to
  Struts Users
  Mailing List







  Hi,

  What is the error ? Also check the output in the tomcat error log file.

Alayne Wartell wrote:

Hi,
I'm trying to get Tiles running with Struts, and I'm getting 404's when I
try to use tiles definitions.
I'm running Struts 1.1b2 and Tomcat.
I can run a JSP-only Tiles template just fine.
I really hope someone can help. I've checked everything I can think of and
have run out of ideas.
Details follow.
Thanks very much,
Alayne
(struts newbie)

I'm trying to access http://localhost:8080/tilesproj/testdefinition.do
which forwards to definition .mydefinition
which is in tiles-defs.xml
I've configured the Tiles plug-in in struts-config.xml. I originally had
it
in web.xml but either way I get the same behavior.
I'm running the regular Struts controller.

Here are my configuration files:

tiles-defs.xml :
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE tiles-definitions PUBLIC
   -//Apache Software Foundation//DTD Tiles Configuration//EN
   http://jakarta.apache.org/struts/dtds/tiles-config.dtd;

tile-definitions
!-- page templates --
  definition name=.standardBaseLayout path
=/standardBaseLayout.jsp
put name=header value=/header.jsp /
put name=body value= /
put name=footer value=/footer.jsp /
  /definition

!-- put application pages here --
  definition name=.mydefinition extends=.standardBaseLayout
put name=body value=/mypage.jsp /
  /definition
/tile-definitions

struts-config.xml :

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

struts-config

global-forwards
   forward
name=index
path=/index.jsp/
/global-forwards

action-mappings
action
  path=/testuse
  forward=/testuse.jsp /
/action
action
  path=/testdefinition
  type=org.apache.struts.tiles.actions.NoOpAction
  forward name=success path=.mydefinition /
  forward name=failure path=.mydefinition /
/action

/action-mappings

  !-- tiles plug-in --
  plug-in className=org.apache.struts.tiles.TilesPlugin 
set-property property=definitions-config
   value=/WEB-INF/tiles-defs.xml /
set-property property=definitions-debug value=2 /
set-property property=definitions-parser-details value=2 /
set-property property=definitions-parser-validate value=true /
  /plug-in

message-resources parameter=resources.application/

/struts-config



RE: Basic logic:equals question

2002-10-31 Thread Karr, David
 -Original Message-
 From: Affan Qureshi [mailto:quereshi;etilize.com]
 Sent: Thursday, October 31, 2002 4:20 AM
 
 A rather basic question.
 I want to accomplish in my JSP:
 
 if((request.getParameter(ext)!=null)||(request.getParameter(
 ext).equals(
 0)))
 {
 /* do Something */
 }
 else
 {
 /* do Something else */
 }

This is one place where using the JavaServer Pages Standard Tag Library (JSTL) 
provides a small advantage.  Using the JSTL, this would look something like this:

  c:choose
   c:when test=${param.ext eq '0'}
 Do something.
   /c:when
   c:otherwise
 Do something else.
   /c:otherwise
  /c:choose

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Problems with nesting....

2002-10-31 Thread Sriram Hariharan
Hi, I'm facing problems with nesting...

The exception given is

javax.servlet.jsp.JspException: Property 'recordList' is not indexed.

my code looks as this...

nested:iterate id=element property=recordList
   nested:iterate name=element property=recordData

 
 
   /nested:iterate
/nested:iterate

What do I change? What does the error mean?? I'm using Struts 1.0.2.

Thanks in advance, Sri...

_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Haseltine, Celeste
I have to add my 2cents on this dicussion.

I've been using eclipse for the past 3 months, and I absolutely love it.  If
you get the right plugins, you can customize it for whatever development you
are doing.  You can find a list of plugins for Eclipse at:
http://eclipse-plugins.2y.net/eclipse/index.jsp.

I highly recommend it if you don't have the resources to purchase one of the
higher end tools.

Celeste Haseltine, PE
MTL, Inc
Dallas, TX 

-Original Message-
From: Galbreath, Mark [mailto:Galbreath;tessco.com]
Sent: Thursday, October 31, 2002 5:33 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


Alan Williamson also makes a good case for Eclipse in the Oct. 2002 edition
of Java Developer's Journal, p. 5.  His article, and what people have said
on this list has made me interested enough to try it out.  And it's
apparently built with SWT (Standard Widget Toolkit), not Swing.

Mark

-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Thursday, October 31, 2002 6:20 AM
To: Struts Users Mailing List
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I also love vi

but for java developpement, maybe Eclipse is a good choice

??

Xavier




 -Message d'origine-
 De : Galbreath, Mark [mailto:Galbreath;tessco.com]
 Envoyé : jeudi 31 octobre 2002 12:10
 À : 'Struts Users Mailing List'
 Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I agree, but then, I love Java - all of it (but especially the new 1.4
 goodies!).  I even loved AWT! But as an end-user app?  Ugh!  This is why I
 stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource hogs,
 only because they are built with Swing.  Give me vi or give me death!

 -Original Message-
 From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
 Sent: Thursday, October 31, 2002 6:02 AM
 To: Struts Users Mailing List
 Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 I love Swing.
 hmm... actually come to think of it I love *developing* with
 Swing. Using it
 however... urrrgh!

 -Original Message-
 From: Galbreath, Mark [mailto:Galbreath;tessco.com]
 Sent: Thursday, October 31, 2002 18:55
 To: 'Struts Users Mailing List'
 Subject: RE: [ANNOUNCE] Struts Console v3.0


 Swing sucks.  When is Sun going to get it's act together on providing a
 lightweight GUI framework?  Anybody read Alan Williamson's
 editorial in the
 10/02 edition of Java Developer's Journal?

 Mark

 -Original Message-
 From: James Holmes [mailto:jholmes612;yahoo.com]
 Sent: Wednesday, October 30, 2002 5:52 PM

 Struts Console is Swing not SWT.

 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Problems with nesting....

2002-10-31 Thread Rick Reumann


On Thursday, October 31, 2002, 11:31:15 AM, Sriram wrote:

SH javax.servlet.jsp.JspException: Property 'recordList' is not indexed.

I haven't seen this error before... just guessing .. are you sure
recordList is a collection of some sort?

-- 

Rick
mailto:maillist;reumann.net


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread David Graham
This is one area Eclipse is lacking in.  I wish they would include web 
development tools (like jsp highlighting) in the standard release.  I use 
the SolarEclipse plugin for jsp and xml stuff.  It's not the best but it's 
better than a simple text editor.

http://solareclipse.sourceforge.net/

David


From: Sri Sankaran [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
Date: Thu, 31 Oct 2002 10:41:14 -0500

What plug-in do you recommend for JSP editing?

When I looked (a few months ago) the choice was pretty light and even those 
were very weak on code completion and error hightlighting.

Sri

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Thursday, October 31, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I use eclipse for many reasons, one of which is it's GUI and relative light
weight (50-60 MB).  The eclipse group wrote SWT because Swing stinks,
everyone except Sun recognizes that (that should stir some people up ;-).
SWT passes graphics calls straight to the OS so it's fast and you get 
native
widgets, none of this fake stuff.

The swing implementation on the Mac is the only one that passes straight
through to the OS like SWT.


David






From: Galbreath, Mark [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
Date: Thu, 31 Oct 2002 06:33:25 -0500

Alan Williamson also makes a good case for Eclipse in the Oct. 2002
edition of Java Developer's Journal, p. 5.  His article, and what
people have said on this list has made me interested enough to try it
out.  And it's apparently built with SWT (Standard Widget Toolkit), not
Swing.

Mark

-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Thursday, October 31, 2002 6:20 AM
To: Struts Users Mailing List
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I also love vi

but for java developpement, maybe Eclipse is a good choice

??

Xavier




  -Message d'origine-
  De : Galbreath, Mark [mailto:Galbreath;tessco.com]
  Envoyé : jeudi 31 octobre 2002 12:10
  À : 'Struts Users Mailing List'
  Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
 
 
  I agree, but then, I love Java - all of it (but especially the new
  1.4 goodies!).  I even loved AWT! But as an end-user app?  Ugh!
  This is why
I
  stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource
hogs,
  only because they are built with Swing.  Give me vi or give me
  death!
 
  -Original Message-
  From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
  Sent: Thursday, October 31, 2002 6:02 AM
  To: Struts Users Mailing List
  Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
 
 
  I love Swing.
  hmm... actually come to think of it I love *developing* with Swing.
  Using it however... urrrgh!
 
  -Original Message-
  From: Galbreath, Mark [mailto:Galbreath;tessco.com]
  Sent: Thursday, October 31, 2002 18:55
  To: 'Struts Users Mailing List'
  Subject: RE: [ANNOUNCE] Struts Console v3.0
 
 
  Swing sucks.  When is Sun going to get it's act together on
  providing a lightweight GUI framework?  Anybody read Alan
  Williamson's editorial in the 10/02 edition of Java Developer's
  Journal?
 
  Mark
 
  -Original Message-
  From: James Holmes [mailto:jholmes612;yahoo.com]
  Sent: Wednesday, October 30, 2002 5:52 PM
 
  Struts Console is Swing not SWT.
 
  --
  To unsubscribe, e-mail:
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
 
 
  --
  To unsubscribe, e-mail:
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
 
  --
  To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 

RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Xavier Combelle
When I use Struts console eclipse plugin , a new window is open
and when I use SolarEclipse, it is open in the editor pane.
Do I have a problem in the configuration of struts console ?

Xavier


 -Message d'origine-
 De : David Graham [mailto:dgraham1980;hotmail.com]
 Envoyé : jeudi 31 octobre 2002 17:55
 À : [EMAIL PROTECTED]
 Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


 This is one area Eclipse is lacking in.  I wish they would include web
 development tools (like jsp highlighting) in the standard release.  I use
 the SolarEclipse plugin for jsp and xml stuff.  It's not the best
 but it's
 better than a simple text editor.

 http://solareclipse.sourceforge.net/

 David


 From: Sri Sankaran [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
 Date: Thu, 31 Oct 2002 10:41:14 -0500
 
 What plug-in do you recommend for JSP editing?
 
 When I looked (a few months ago) the choice was pretty light and
 even those
 were very weak on code completion and error hightlighting.
 
 Sri
 
 -Original Message-
 From: David Graham [mailto:dgraham1980;hotmail.com]
 Sent: Thursday, October 31, 2002 10:15 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
 
 
 I use eclipse for many reasons, one of which is it's GUI and
 relative light
 weight (50-60 MB).  The eclipse group wrote SWT because Swing stinks,
 everyone except Sun recognizes that (that should stir some people up ;-).
 SWT passes graphics calls straight to the OS so it's fast and you get
 native
 widgets, none of this fake stuff.
 
 The swing implementation on the Mac is the only one that passes straight
 through to the OS like SWT.
 
 
 David
 
 
 
 
 
 
  From: Galbreath, Mark [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
  Date: Thu, 31 Oct 2002 06:33:25 -0500
  
  Alan Williamson also makes a good case for Eclipse in the Oct. 2002
  edition of Java Developer's Journal, p. 5.  His article, and what
  people have said on this list has made me interested enough to try it
  out.  And it's apparently built with SWT (Standard Widget Toolkit), not
  Swing.
  
  Mark
  
  -Original Message-
  From: Xavier Combelle [mailto:xcombelle;kaptech.com]
  Sent: Thursday, October 31, 2002 6:20 AM
  To: Struts Users Mailing List
  Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
  
  
  I also love vi
  
  but for java developpement, maybe Eclipse is a good choice
  
  ??
  
  Xavier
  
  
  
  
-Message d'origine-
De : Galbreath, Mark [mailto:Galbreath;tessco.com]
Envoyé : jeudi 31 octobre 2002 12:10
À : 'Struts Users Mailing List'
Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
   
   
I agree, but then, I love Java - all of it (but especially the new
1.4 goodies!).  I even loved AWT! But as an end-user app?  Ugh!
This is why
  I
stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource
  hogs,
only because they are built with Swing.  Give me vi or give me
death!
   
-Original Message-
From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
Sent: Thursday, October 31, 2002 6:02 AM
To: Struts Users Mailing List
Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
   
   
I love Swing.
hmm... actually come to think of it I love *developing* with Swing.
Using it however... urrrgh!
   
-Original Message-
From: Galbreath, Mark [mailto:Galbreath;tessco.com]
Sent: Thursday, October 31, 2002 18:55
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Struts Console v3.0
   
   
Swing sucks.  When is Sun going to get it's act together on
providing a lightweight GUI framework?  Anybody read Alan
Williamson's editorial in the 10/02 edition of Java Developer's
Journal?
   
Mark
   
-Original Message-
From: James Holmes [mailto:jholmes612;yahoo.com]
Sent: Wednesday, October 30, 2002 5:52 PM
   
Struts Console is Swing not SWT.
   
--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org
   
   
--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org
   
--
To unsubscribe, e-mail:
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
  
  
  --
  To unsubscribe, e-mail:
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  

RE: MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Craig R. McClanahan


On Thu, 31 Oct 2002, Andrew Hill wrote:

 Date: Thu, 31 Oct 2002 20:16:34 +0800
 From: Andrew Hill [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: MVC Design: property in ActionForm or Bean with property in
 A ctionForm ?

 What is a 'good-practice' method of validating a numeric string?
 Ive been lazy and am doing a Integer.parseInt() in a try catch but its
 probably far from the best way...

Nothing wrong with that (in the validate() method, for example), given
that you're ultimately going to need to convert to an integer to use in
your model tier.  From a performance perspective, you might consider
keeping the converted value and making it available (to your Action) under
a different property name in order to avoid doing the conversion again.

 (Have been meaning to check out the java.text.NumberFormat stuff but always
 had more interes... uh... important things to do first and havent had time
 yet...)

But necessary if you want to allow your user to stick commas and decimal
points (or the reverse for countries that do it backwards :-) in a
Locale-sensitive manner.

Craig


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread James Holmes
No.  Struts Console opens in another window because it
is written with Swing and not Eclipse's native SWT. 
I'm not planning to rewrite Struts Console in SWT just
to work with Eclipse when every other IDE is using
Swing.

-james

--- Xavier Combelle [EMAIL PROTECTED] wrote:
 When I use Struts console eclipse plugin , a new
 window is open
 and when I use SolarEclipse, it is open in the
 editor pane.
 Do I have a problem in the configuration of struts
 console ?
 
 Xavier
 
 
  -Message d'origine-
  De : David Graham [mailto:dgraham1980;hotmail.com]
  Envoyé : jeudi 31 octobre 2002 17:55
  À : [EMAIL PROTECTED]
  Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE]
 Struts Console v3.0]
 
 
  This is one area Eclipse is lacking in.  I wish
 they would include web
  development tools (like jsp highlighting) in the
 standard release.  I use
  the SolarEclipse plugin for jsp and xml stuff. 
 It's not the best
  but it's
  better than a simple text editor.
 
  http://solareclipse.sourceforge.net/
 
  David
 
 
  From: Sri Sankaran [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
  To: Struts Users Mailing List
 [EMAIL PROTECTED]
  Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE]
 Struts Console v3.0]
  Date: Thu, 31 Oct 2002 10:41:14 -0500
  
  What plug-in do you recommend for JSP editing?
  
  When I looked (a few months ago) the choice was
 pretty light and
  even those
  were very weak on code completion and error
 hightlighting.
  
  Sri
  
  -Original Message-
  From: David Graham
 [mailto:dgraham1980;hotmail.com]
  Sent: Thursday, October 31, 2002 10:15 AM
  To: [EMAIL PROTECTED]
  Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE]
 Struts Console v3.0]
  
  
  I use eclipse for many reasons, one of which is
 it's GUI and
  relative light
  weight (50-60 MB).  The eclipse group wrote SWT
 because Swing stinks,
  everyone except Sun recognizes that (that should
 stir some people up ;-).
  SWT passes graphics calls straight to the OS so
 it's fast and you get
  native
  widgets, none of this fake stuff.
  
  The swing implementation on the Mac is the only
 one that passes straight
  through to the OS like SWT.
  
  
  David
  
  
  
  
  
  
   From: Galbreath, Mark [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
   To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
   Subject: RE: [OT] Swing [WAS: RE:
 [ANNOUNCE] Struts Console v3.0]
   Date: Thu, 31 Oct 2002 06:33:25 -0500
   
   Alan Williamson also makes a good case for
 Eclipse in the Oct. 2002
   edition of Java Developer's Journal, p. 5. 
 His article, and what
   people have said on this list has made me
 interested enough to try it
   out.  And it's apparently built with SWT
 (Standard Widget Toolkit), not
   Swing.
   
   Mark
   
   -Original Message-
   From: Xavier Combelle
 [mailto:xcombelle;kaptech.com]
   Sent: Thursday, October 31, 2002 6:20 AM
   To: Struts Users Mailing List
   Subject: RE: [OT] Swing [WAS: RE:
 [ANNOUNCE] Struts Console v3.0]
   
   
   I also love vi
   
   but for java developpement, maybe Eclipse is a
 good choice
   
   ??
   
   Xavier
   
   
   
   
 -Message d'origine-
 De : Galbreath, Mark
 [mailto:Galbreath;tessco.com]
 Envoyé : jeudi 31 octobre 2002 12:10
 À : 'Struts Users Mailing List'
 Objet : RE: [OT] Swing [WAS: RE:
 [ANNOUNCE] Struts Console v3.0]


 I agree, but then, I love Java - all of it
 (but especially the new
 1.4 goodies!).  I even loved AWT! But as an
 end-user app?  Ugh!
 This is why
   I
 stopped using Forte, NetBeans, JDeveloper,
 JBuilder, etc.  Resource
   hogs,
 only because they are built with Swing. 
 Give me vi or give me
 death!

 -Original Message-
 From: Andrew Hill
 [mailto:andrew.david.hill;gridnode.com]
 Sent: Thursday, October 31, 2002 6:02 AM
 To: Struts Users Mailing List
 Subject: [OT] Swing [WAS: RE: [ANNOUNCE]
 Struts Console v3.0]


 I love Swing.
 hmm... actually come to think of it I love
 *developing* with Swing.
 Using it however... urrrgh!

 -Original Message-
 From: Galbreath, Mark
 [mailto:Galbreath;tessco.com]
 Sent: Thursday, October 31, 2002 18:55
 To: 'Struts Users Mailing List'
 Subject: RE: [ANNOUNCE] Struts Console v3.0


 Swing sucks.  When is Sun going to get it's
 act together on
 providing a lightweight GUI framework? 
 Anybody read Alan
 Williamson's editorial in the 10/02 edition
 of Java Developer's
 Journal?

 Mark

 -Original Message-
 From: James Holmes
 [mailto:jholmes612;yahoo.com]
 Sent: Wednesday, October 30, 2002 5:52 PM

 Struts Console is Swing not SWT.

 --
 To unsubscribe, e-mail:

 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


 --

RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread David Graham
If you made Struts Console open source, somebody could try porting it to SWT 
for you :-).

David






From: James Holmes [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
Date: Thu, 31 Oct 2002 09:27:24 -0800 (PST)

No.  Struts Console opens in another window because it
is written with Swing and not Eclipse's native SWT.
I'm not planning to rewrite Struts Console in SWT just
to work with Eclipse when every other IDE is using
Swing.

-james

--- Xavier Combelle [EMAIL PROTECTED] wrote:
 When I use Struts console eclipse plugin , a new
 window is open
 and when I use SolarEclipse, it is open in the
 editor pane.
 Do I have a problem in the configuration of struts
 console ?

 Xavier


  -Message d'origine-
  De : David Graham [mailto:dgraham1980;hotmail.com]
  Envoyé : jeudi 31 octobre 2002 17:55
  À : [EMAIL PROTECTED]
  Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE]
 Struts Console v3.0]
 
 
  This is one area Eclipse is lacking in.  I wish
 they would include web
  development tools (like jsp highlighting) in the
 standard release.  I use
  the SolarEclipse plugin for jsp and xml stuff.
 It's not the best
  but it's
  better than a simple text editor.
 
  http://solareclipse.sourceforge.net/
 
  David
 
 
  From: Sri Sankaran [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
  To: Struts Users Mailing List
 [EMAIL PROTECTED]
  Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE]
 Struts Console v3.0]
  Date: Thu, 31 Oct 2002 10:41:14 -0500
  
  What plug-in do you recommend for JSP editing?
  
  When I looked (a few months ago) the choice was
 pretty light and
  even those
  were very weak on code completion and error
 hightlighting.
  
  Sri
  
  -Original Message-
  From: David Graham
 [mailto:dgraham1980;hotmail.com]
  Sent: Thursday, October 31, 2002 10:15 AM
  To: [EMAIL PROTECTED]
  Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE]
 Struts Console v3.0]
  
  
  I use eclipse for many reasons, one of which is
 it's GUI and
  relative light
  weight (50-60 MB).  The eclipse group wrote SWT
 because Swing stinks,
  everyone except Sun recognizes that (that should
 stir some people up ;-).
  SWT passes graphics calls straight to the OS so
 it's fast and you get
  native
  widgets, none of this fake stuff.
  
  The swing implementation on the Mac is the only
 one that passes straight
  through to the OS like SWT.
  
  
  David
  
  
  
  
  
  
   From: Galbreath, Mark [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
   To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
   Subject: RE: [OT] Swing [WAS: RE:
 [ANNOUNCE] Struts Console v3.0]
   Date: Thu, 31 Oct 2002 06:33:25 -0500
   
   Alan Williamson also makes a good case for
 Eclipse in the Oct. 2002
   edition of Java Developer's Journal, p. 5.
 His article, and what
   people have said on this list has made me
 interested enough to try it
   out.  And it's apparently built with SWT
 (Standard Widget Toolkit), not
   Swing.
   
   Mark
   
   -Original Message-
   From: Xavier Combelle
 [mailto:xcombelle;kaptech.com]
   Sent: Thursday, October 31, 2002 6:20 AM
   To: Struts Users Mailing List
   Subject: RE: [OT] Swing [WAS: RE:
 [ANNOUNCE] Struts Console v3.0]
   
   
   I also love vi
   
   but for java developpement, maybe Eclipse is a
 good choice
   
   ??
   
   Xavier
   
   
   
   
 -Message d'origine-
 De : Galbreath, Mark
 [mailto:Galbreath;tessco.com]
 Envoyé : jeudi 31 octobre 2002 12:10
 À : 'Struts Users Mailing List'
 Objet : RE: [OT] Swing [WAS: RE:
 [ANNOUNCE] Struts Console v3.0]


 I agree, but then, I love Java - all of it
 (but especially the new
 1.4 goodies!).  I even loved AWT! But as an
 end-user app?  Ugh!
 This is why
   I
 stopped using Forte, NetBeans, JDeveloper,
 JBuilder, etc.  Resource
   hogs,
 only because they are built with Swing.
 Give me vi or give me
 death!

 -Original Message-
 From: Andrew Hill
 [mailto:andrew.david.hill;gridnode.com]
 Sent: Thursday, October 31, 2002 6:02 AM
 To: Struts Users Mailing List
 Subject: [OT] Swing [WAS: RE: [ANNOUNCE]
 Struts Console v3.0]


 I love Swing.
 hmm... actually come to think of it I love
 *developing* with Swing.
 Using it however... urrrgh!

 -Original Message-
 From: Galbreath, Mark
 [mailto:Galbreath;tessco.com]
 Sent: Thursday, October 31, 2002 18:55
 To: 'Struts Users Mailing List'
 Subject: RE: [ANNOUNCE] Struts Console v3.0


 Swing sucks.  When is Sun going to get it's
 act together on
 providing a lightweight GUI framework?
 Anybody read Alan
 Williamson's editorial in the 10/02 edition
 of Java Developer's
 Journal?

 Mark

 -Original 

possibility of a new beta release?

2002-10-31 Thread Andy_Freeman
With all of the changes that have taken place since the last beta, are
there any thoughts of a Struts 1.1b3?

TIA,
Andy


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: [OT] Eclipse and webapp organization

2002-10-31 Thread David Graham
There are lots of ways to do it.  Eclipse projects live in 
$ECLIPSE_HOME/workspace by default but you can point eclipse to an outside 
project folder.  I have one java project for each web-app.  It contains my 
java source under /WEB-INF/src and builds into /WEB-INF/classes.  My jsps 
just live in directories under the project root.

The tomcat plugin is helpful for web development:
http://www.sysdeo.com/eclipse/tomcatPlugin.html

David






From: Dan Payne [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [OT] Eclipse and webapp organization
Date: Thu, 31 Oct 2002 11:42:54 -0600

I've started looking at Eclipse (thanks to the suggestions of many on this
list) and was curious how other Struts developers organized their webapps
w/in Eclipse.  I currently develop each webapp at

C:\webapps\app-name\bin
C:\webapps\app-name\build
C:\webapps\app-name\dist
C:\webapps\app-name\docs
C:\webapps\app-name\pre (preproduction: contains image templates, stock
logos, etc)
C:\webapps\app-name\src
C:\webapps\app-name\unused
C:\webapps\app-name\web
C:\webapps\app-name\build.xml (for use with ant)
C:\webapps\app-name\startup.bat (to startup tomcat instance)
C:\webapps\app-name\shutdown.bat (to shutdown tomcat instance)

Ant deploys to the relative context at

C:\contexts\app-name\webapps\ROOT\

Each context has its own tomcat instance.

Anyways, I've been doing it this way for quite some time now and am
consequently suffering tunnel vision. How can I smoothly import my existing
apps (these contain many, many JSPs and lots of java packages) into 
Eclipse?
I tried creating a new project with the base set at c:\webapps\app-name
but that threw thousands of errors with my classes, mostly The import
package-name cannot be resolved. Do I need to set up separate projects,
one for my java classes and the other for my JSPs, or do I need a
reshuffling of my folders/files? Any help would be appreciated.  I checked
the documentation but didn't see any examples on how to integrate both, 
what
seems to me to be, a simple project and a java project. I really like what 
I
see with eclipse and would like to get started with it.

Thanks again, all.

-Dan


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Get faster connections -- switch to MSN Internet Access! 
http://resourcecenter.msn.com/access/plans/default.asp


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread David Graham
Yes, I've seen that one but it's currently not as nice as Struts Console.  
You wouldn't have to rewrite it if you made it open source :-).  What are 
your thoughts on that?

David






From: James Holmes [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
Date: Thu, 31 Oct 2002 09:49:08 -0800 (PST)

Well, Struts Console would essentially need everything
rewritten since 95% of the code is Swing code for the
GUI.  It just doesn't make sense to me to rewrite it
when there is already a native SWT Struts config
editor:

EasyStruts
http://easystruts.sf.net

-james

--- David Graham [EMAIL PROTECTED] wrote:
 If you made Struts Console open source, somebody
 could try porting it to SWT
 for you :-).

 David






 From: James Holmes [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE]
 Struts Console v3.0]
 Date: Thu, 31 Oct 2002 09:27:24 -0800 (PST)
 
 No.  Struts Console opens in another window because
 it
 is written with Swing and not Eclipse's native SWT.
 I'm not planning to rewrite Struts Console in SWT
 just
 to work with Eclipse when every other IDE is using
 Swing.
 
 -james
 
 --- Xavier Combelle [EMAIL PROTECTED] wrote:
   When I use Struts console eclipse plugin , a new
   window is open
   and when I use SolarEclipse, it is open in the
   editor pane.
   Do I have a problem in the configuration of
 struts
   console ?
  
   Xavier
  
  
-Message d'origine-
De : David Graham
 [mailto:dgraham1980;hotmail.com]
Envoyé : jeudi 31 octobre 2002 17:55
À : [EMAIL PROTECTED]
Objet : RE: [OT] Swing [WAS: RE:
 [ANNOUNCE]
   Struts Console v3.0]
   
   
This is one area Eclipse is lacking in.  I
 wish
   they would include web
development tools (like jsp highlighting) in
 the
   standard release.  I use
the SolarEclipse plugin for jsp and xml stuff.
   It's not the best
but it's
better than a simple text editor.
   
http://solareclipse.sourceforge.net/
   
David
   
   
From: Sri Sankaran [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
   [EMAIL PROTECTED]
To: Struts Users Mailing List
   [EMAIL PROTECTED]
Subject: RE: [OT] Swing [WAS: RE:
 [ANNOUNCE]
   Struts Console v3.0]
Date: Thu, 31 Oct 2002 10:41:14 -0500

What plug-in do you recommend for JSP
 editing?

When I looked (a few months ago) the choice
 was
   pretty light and
even those
were very weak on code completion and error
   hightlighting.

Sri

-Original Message-
From: David Graham
   [mailto:dgraham1980;hotmail.com]
Sent: Thursday, October 31, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: RE: [OT] Swing [WAS: RE:
 [ANNOUNCE]
   Struts Console v3.0]


I use eclipse for many reasons, one of which
 is
   it's GUI and
relative light
weight (50-60 MB).  The eclipse group wrote
 SWT
   because Swing stinks,
everyone except Sun recognizes that (that
 should
   stir some people up ;-).
SWT passes graphics calls straight to the OS
 so
   it's fast and you get
native
widgets, none of this fake stuff.

The swing implementation on the Mac is the
 only
   one that passes straight
through to the OS like SWT.


David






 From: Galbreath, Mark
 [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
   [EMAIL PROTECTED]
 To: 'Struts Users Mailing List'
   [EMAIL PROTECTED]
 Subject: RE: [OT] Swing [WAS: RE:
   [ANNOUNCE] Struts Console v3.0]
 Date: Thu, 31 Oct 2002 06:33:25 -0500
 
 Alan Williamson also makes a good case for
   Eclipse in the Oct. 2002
 edition of Java Developer's Journal, p.
 5.
   His article, and what
 people have said on this list has made me
   interested enough to try it
 out.  And it's apparently built with SWT
   (Standard Widget Toolkit), not
 Swing.
 
 Mark
 
 -Original Message-
 From: Xavier Combelle
   [mailto:xcombelle;kaptech.com]
 Sent: Thursday, October 31, 2002 6:20 AM
 To: Struts Users Mailing List
 Subject: RE: [OT] Swing [WAS: RE:
   [ANNOUNCE] Struts Console v3.0]
 
 
 I also love vi
 
 but for java developpement, maybe Eclipse
 is a
   good choice
 
 ??
 
 Xavier
 
 
 
 
   -Message d'origine-
   De : Galbreath, Mark
   [mailto:Galbreath;tessco.com]
   Envoyé : jeudi 31 octobre 2002 12:10
   À : 'Struts Users Mailing List'
   Objet : RE: [OT] Swing [WAS: RE:
   [ANNOUNCE] Struts Console v3.0]
  
  
   I agree, but then, I love Java - all of
 it
   (but especially the new
   1.4 goodies!).  I even loved AWT! But as
 an
   end-user app?  Ugh!

[Vote] Wouldn't it be nice to have a testing framework like StrutsTestCase as part of the Struts distribution?

2002-10-31 Thread Trieu, Danny
Hi all,

I just want to know what do you think of having some sort of testing
framwork like StrutsTestCase, a Cactus extension, as part of Struts'
distribution.

Thanks,

danny



Re: Architecture question. Device Independence.

2002-10-31 Thread Danny Mui
Stxx has a version for 1.1, it's currently in CVS.  I was able to get it 
to work on my trivial examples.

Their mailing list also has a lot 1.1 tidbits as well.

danny

Darren Hill wrote:

Hi all,

Looking for some in-sight from all you experts out there.

I'm designing struts-application and what to make it 'device-independent'.
I've looked into stxx, which is exactly what I'm looking for, but its not
been upgraded to Struts 1.1.  I don't have the resources to create this for
myself, and am looking for a 'plugable' architecture to solve this problem.

Is there anything else out there that does the same thing?

Any tips I should consider?

Darren.

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
 





--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread James Holmes
You're right, I wouldn't have to rewrite it, but
someone would.

I'm not opposed to open source, obviously, as I'm
involed with Struts and other open source projects. 
However, I'm not ready to open source Struts Console.

-james

--- David Graham [EMAIL PROTECTED] wrote:
 Yes, I've seen that one but it's currently not as
 nice as Struts Console.  
 You wouldn't have to rewrite it if you made it open
 source :-).  What are 
 your thoughts on that?
 
 David
 
 
 
 
 
 
 From: James Holmes [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE]
 Struts Console v3.0]
 Date: Thu, 31 Oct 2002 09:49:08 -0800 (PST)
 
 Well, Struts Console would essentially need
 everything
 rewritten since 95% of the code is Swing code for
 the
 GUI.  It just doesn't make sense to me to rewrite
 it
 when there is already a native SWT Struts config
 editor:
 
 EasyStruts
 http://easystruts.sf.net
 
 -james
 
 --- David Graham [EMAIL PROTECTED] wrote:
   If you made Struts Console open source, somebody
   could try porting it to SWT
   for you :-).
  
   David
  
  
  
  
  
  
   From: James Holmes [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
   [EMAIL PROTECTED]
   To: Struts Users Mailing List
   [EMAIL PROTECTED]
   Subject: RE: [OT] Swing [WAS: RE:
 [ANNOUNCE]
   Struts Console v3.0]
   Date: Thu, 31 Oct 2002 09:27:24 -0800 (PST)
   
   No.  Struts Console opens in another window
 because
   it
   is written with Swing and not Eclipse's native
 SWT.
   I'm not planning to rewrite Struts Console in
 SWT
   just
   to work with Eclipse when every other IDE is
 using
   Swing.
   
   -james
   
   --- Xavier Combelle [EMAIL PROTECTED]
 wrote:
 When I use Struts console eclipse plugin , a
 new
 window is open
 and when I use SolarEclipse, it is open in
 the
 editor pane.
 Do I have a problem in the configuration of
   struts
 console ?

 Xavier


  -Message d'origine-
  De : David Graham
   [mailto:dgraham1980;hotmail.com]
  Envoyé : jeudi 31 octobre 2002 17:55
  À : [EMAIL PROTECTED]
  Objet : RE: [OT] Swing [WAS: RE:
   [ANNOUNCE]
 Struts Console v3.0]
 
 
  This is one area Eclipse is lacking in.  I
   wish
 they would include web
  development tools (like jsp highlighting)
 in
   the
 standard release.  I use
  the SolarEclipse plugin for jsp and xml
 stuff.
 It's not the best
  but it's
  better than a simple text editor.
 
  http://solareclipse.sourceforge.net/
 
  David
 
 
  From: Sri Sankaran
 [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
  To: Struts Users Mailing List
 [EMAIL PROTECTED]
  Subject: RE: [OT] Swing [WAS: RE:
   [ANNOUNCE]
 Struts Console v3.0]
  Date: Thu, 31 Oct 2002 10:41:14 -0500
  
  What plug-in do you recommend for JSP
   editing?
  
  When I looked (a few months ago) the
 choice
   was
 pretty light and
  even those
  were very weak on code completion and
 error
 hightlighting.
  
  Sri
  
  -Original Message-
  From: David Graham
 [mailto:dgraham1980;hotmail.com]
  Sent: Thursday, October 31, 2002 10:15 AM
  To: [EMAIL PROTECTED]
  Subject: RE: [OT] Swing [WAS: RE:
   [ANNOUNCE]
 Struts Console v3.0]
  
  
  I use eclipse for many reasons, one of
 which
   is
 it's GUI and
  relative light
  weight (50-60 MB).  The eclipse group
 wrote
   SWT
 because Swing stinks,
  everyone except Sun recognizes that (that
   should
 stir some people up ;-).
  SWT passes graphics calls straight to the
 OS
   so
 it's fast and you get
  native
  widgets, none of this fake stuff.
  
  The swing implementation on the Mac is
 the
   only
 one that passes straight
  through to the OS like SWT.
  
  
  David
  
  
  
  
  
  
   From: Galbreath, Mark
   [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
   To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
   Subject: RE: [OT] Swing [WAS: RE:
 [ANNOUNCE] Struts Console v3.0]
   Date: Thu, 31 Oct 2002 06:33:25 -0500
   
   Alan Williamson also makes a good case
 for
 Eclipse in the Oct. 2002
   edition of Java Developer's Journal,
 p.
   5.
 His article, and what
   people have said on this list has made
 me
 interested enough to try it
   out.  And it's apparently built with
 SWT
 (Standard Widget Toolkit), not
   Swing.
   
   Mark
   
   -Original Message-
   From: Xavier Combelle
 [mailto:xcombelle;kaptech.com]
   Sent: Thursday, October 31, 2002 6:20
 AM
   To: Struts Users Mailing List
   Subject: RE: 

bean:write filtering and newlines

2002-10-31 Thread oleg . morenkov
hi,

the problem is mentioned here
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=struts-user;jakarta.apache.orgmsgId=366811
to which I don't see a clean solution.

eg., imagine a form bean was populated with data from html:textareas. This
data is later presented in read-only mode on another page using
bean:write. Filtering does only half the job: e.g. '' are substituted
with 'lt;', but linebreaks are not substituted with br/. Somebody might
also want to keep consecutive spaces by substituting them with nbsp;,
although I find this unneccessary.

htmlifying all the strings manually before storing them in the database is
not an option because this means they cannot be updated from html:textarea
anymore. Please don't suggest using html:textarea disabled=true instead
of bean:write:)
A possible solution would be having an additional getter for each string
field that would return that string in HTML format; this method would be
used for bean:writes. However, I would prefer to have an additional
attribute to bean:write (e.g keepBreaks=true) which would do the job.

Does anybody else need that? I can easily extend WriteTag myself, but I
wouldn't want to create a customized struts distribution just for my
project.

If someone knows a better solution to this, please let me know.

Oleg


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Eclipse and webapp organization

2002-10-31 Thread Dan Payne
Thanks, David.  Hey, does it matter if I create the project as a Java or
Simple project?

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Thursday, October 31, 2002 11:53 AM
To: [EMAIL PROTECTED]
Subject: Re: [OT] Eclipse and webapp organization


There are lots of ways to do it.  Eclipse projects live in
$ECLIPSE_HOME/workspace by default but you can point eclipse to an outside
project folder.  I have one java project for each web-app.  It contains my
java source under /WEB-INF/src and builds into /WEB-INF/classes.  My jsps
just live in directories under the project root.

The tomcat plugin is helpful for web development:
http://www.sysdeo.com/eclipse/tomcatPlugin.html

David






From: Dan Payne [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [OT] Eclipse and webapp organization
Date: Thu, 31 Oct 2002 11:42:54 -0600

I've started looking at Eclipse (thanks to the suggestions of many on this
list) and was curious how other Struts developers organized their webapps
w/in Eclipse.  I currently develop each webapp at

C:\webapps\app-name\bin
C:\webapps\app-name\build
C:\webapps\app-name\dist
C:\webapps\app-name\docs
C:\webapps\app-name\pre (preproduction: contains image templates, stock
logos, etc)
C:\webapps\app-name\src
C:\webapps\app-name\unused
C:\webapps\app-name\web
C:\webapps\app-name\build.xml (for use with ant)
C:\webapps\app-name\startup.bat (to startup tomcat instance)
C:\webapps\app-name\shutdown.bat (to shutdown tomcat instance)

Ant deploys to the relative context at

C:\contexts\app-name\webapps\ROOT\

Each context has its own tomcat instance.

Anyways, I've been doing it this way for quite some time now and am
consequently suffering tunnel vision. How can I smoothly import my existing
apps (these contain many, many JSPs and lots of java packages) into
Eclipse?
I tried creating a new project with the base set at c:\webapps\app-name
but that threw thousands of errors with my classes, mostly The import
package-name cannot be resolved. Do I need to set up separate projects,
one for my java classes and the other for my JSPs, or do I need a
reshuffling of my folders/files? Any help would be appreciated.  I checked
the documentation but didn't see any examples on how to integrate both,
what
seems to me to be, a simple project and a java project. I really like what
I
see with eclipse and would like to get started with it.

Thanks again, all.

-Dan


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


_
Get faster connections -- switch to MSN Internet Access!
http://resourcecenter.msn.com/access/plans/default.asp


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Eclipse and webapp organization

2002-10-31 Thread Dan Payne
Spoke too soon. Nevermind that last question.

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Thursday, October 31, 2002 11:53 AM
To: [EMAIL PROTECTED]
Subject: Re: [OT] Eclipse and webapp organization


There are lots of ways to do it.  Eclipse projects live in
$ECLIPSE_HOME/workspace by default but you can point eclipse to an outside
project folder.  I have one java project for each web-app.  It contains my
java source under /WEB-INF/src and builds into /WEB-INF/classes.  My jsps
just live in directories under the project root.

The tomcat plugin is helpful for web development:
http://www.sysdeo.com/eclipse/tomcatPlugin.html

David






From: Dan Payne [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [OT] Eclipse and webapp organization
Date: Thu, 31 Oct 2002 11:42:54 -0600

I've started looking at Eclipse (thanks to the suggestions of many on this
list) and was curious how other Struts developers organized their webapps
w/in Eclipse.  I currently develop each webapp at

C:\webapps\app-name\bin
C:\webapps\app-name\build
C:\webapps\app-name\dist
C:\webapps\app-name\docs
C:\webapps\app-name\pre (preproduction: contains image templates, stock
logos, etc)
C:\webapps\app-name\src
C:\webapps\app-name\unused
C:\webapps\app-name\web
C:\webapps\app-name\build.xml (for use with ant)
C:\webapps\app-name\startup.bat (to startup tomcat instance)
C:\webapps\app-name\shutdown.bat (to shutdown tomcat instance)

Ant deploys to the relative context at

C:\contexts\app-name\webapps\ROOT\

Each context has its own tomcat instance.

Anyways, I've been doing it this way for quite some time now and am
consequently suffering tunnel vision. How can I smoothly import my existing
apps (these contain many, many JSPs and lots of java packages) into
Eclipse?
I tried creating a new project with the base set at c:\webapps\app-name
but that threw thousands of errors with my classes, mostly The import
package-name cannot be resolved. Do I need to set up separate projects,
one for my java classes and the other for my JSPs, or do I need a
reshuffling of my folders/files? Any help would be appreciated.  I checked
the documentation but didn't see any examples on how to integrate both,
what
seems to me to be, a simple project and a java project. I really like what
I
see with eclipse and would like to get started with it.

Thanks again, all.

-Dan


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


_
Get faster connections -- switch to MSN Internet Access!
http://resourcecenter.msn.com/access/plans/default.asp


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: tiles definition doesn't work, config looks correct, am baffled

2002-10-31 Thread Alayne Wartell

Hi Hue,
I am aware of that article but have been following this one:
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html?
as my model. It's even simpler -- it just displays a templated page. The
mapping only needs an action and a forward (and path, of course.)

I can get the article's example working, and I can even get my tiles
definition working in the example app. But the example app uses Struts 1.0,
with 1.0-style Tiles configuration. My own example, which I haven't fixed
yet, uses 1.1.
Have you been using 1.1?

Thanks for your suggestions.



   
  
   
  
   To:   'Struts Users Mailing List' 
[EMAIL PROTECTED]  
  Hue Holleran   cc:   (bcc: Alayne Wartell/Towers 
Perrin) 
  hueh@softwareskiSubject:  RE: tiles definition doesn't 
work, config looks correct, am 
  lls.net  baffled
  
   
  
  10/31/2002 10:35 
  
  AM   
  
  Please respond to
  
  Struts Users
  
  Mailing List
  
   
  
   
  




Hi Alayne,

From one tiles newbie to another...

The general format of the action... for tiles is shown below:

  action-mappings
!-- Action mapping for profile form --
action path=/profileInput
type=com.caraveltech.ex2.ProfileAction
name=profileForm
scope=request
input=tile.profileInput
validate=true
  forward name=success path=tile.profileOutput/
/action
  /action-mappings

Where input is the tiles definition to be displayed.

This was from a lovely little training app by Wellie Chao that I found
personally very useful when learning tiles obtained from IBM's site:


http://www-106.ibm.com/developerworks/java/library/j-strutstiles.html

Apologies if you're already aware of this article ... it provides some
really nice, simple worked examples of tiles with struts and comes with
downloadable source and interestingly a nice coverage of ant - if you've
not used that before also.

Hue.

-Original Message-
From: Alayne Wartell [mailto:alayne.wartell;towers.com]
Sent: 31 October 2002 14:49
To: Struts Users Mailing List
Subject: Re: tiles definition doesn't work, config looks correct, am
baffled



Oops, meant to include the error message (404 error):
The requested resource (/tilesproj/.mydefinition) is not available.
mydefinition is in my tiles-defs.xml, but struts is apparently thinking it
should be a file in my web app directory.
The JSP files I'm specifying do all exist.
I'm currently figuring out how to configure tomcat logging (tomcat newbie
too) but maybe the above info will tell you something?
Thanks.






   To:   Struts Users
Mailing List [EMAIL PROTECTED]
  Cedric Dumoulin  cc:   (bcc: Alayne
Wartell/Towers Perrin)
  [EMAIL PROTECTED]Subject:  Re: tiles
definition doesn't work, config looks correct, am
  gbaffled

  10/31/2002 04:01
  AM
  Please respond to
  Struts Users
  Mailing List







  Hi,

  What is the error ? Also check the output in the tomcat error log file.

Alayne Wartell wrote:

Hi,
I'm trying to get Tiles running with Struts, and I'm getting 404's when I
try to use tiles definitions.
I'm running Struts 1.1b2 and Tomcat.
I can run a JSP-only Tiles template just fine.
I really hope someone can help. I've checked everything I can think of and
have run out of ideas.
Details follow.
Thanks very much,
Alayne
(struts newbie)

I'm trying to access http://localhost:8080/tilesproj/testdefinition.do
which forwards to definition 

[MVC] Pull C-V

2002-10-31 Thread Jacob Hookom
I was wondering if there was a way to pull action forwards into the current action 
much like filter chaining.  The execute method would access a bunch of data from the 
model, then use it within the pulled Action, then close/free up the used Objects.  
This would require the ability to also send up a proxied response to write to 
(example: forwarding to an XML file, then transforming it server side-- yes, I know 
all about stxx; another example: opening an actual resultset passing it as a request 
attribute to a jsp, then closing it on method return).

Regards,
Jacob


RE: tiles definition doesn't work, config looks correct, am baffled

2002-10-31 Thread Hue Holleran
Hi Alayne,

Yes, we're using struts-1.1b2, although using tiles from the latest nightly
build, as the included tiles-documentation.war did not work for us - on
Tomcat3.3aFinal or 4.1.12-3 on W2K or Debian on JDK1.4.1_01.
tiles-documenation.war from nightly build actually works fine on all,
though!

Sorry to bombard you with links but I also found Chuck Cavaness's review
book on theserverside.com useful although it tails off a little at the end
of the tiles chapter .. really looking forward to my copy which is on order,
though!

I'll try copying-and-pasting your code into the working 1.1 we have here to
see if it will possibly work in a different environment and I'll post a
reply a little later on.

Hue.

-Original Message-
From: Alayne Wartell [mailto:alayne.wartell;towers.com]
Sent: 31 October 2002 18:29
To: Struts Users Mailing List
Subject: RE: tiles definition doesn't work, config looks correct, am
baffled



Hi Hue,
I am aware of that article but have been following this one:
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html?
as my model. It's even simpler -- it just displays a templated page. The
mapping only needs an action and a forward (and path, of course.)

I can get the article's example working, and I can even get my tiles
definition working in the example app. But the example app uses Struts 1.0,
with 1.0-style Tiles configuration. My own example, which I haven't fixed
yet, uses 1.1.
Have you been using 1.1?

Thanks for your suggestions.





   To:   'Struts Users
Mailing List' [EMAIL PROTECTED]
  Hue Holleran   cc:   (bcc: Alayne
Wartell/Towers Perrin)
  hueh@softwareskiSubject:  RE: tiles
definition doesn't work, config looks correct, am
  lls.net  baffled

  10/31/2002 10:35
  AM
  Please respond to
  Struts Users
  Mailing List






Hi Alayne,

From one tiles newbie to another...

The general format of the action... for tiles is shown below:

  action-mappings
!-- Action mapping for profile form --
action path=/profileInput
type=com.caraveltech.ex2.ProfileAction
name=profileForm
scope=request
input=tile.profileInput
validate=true
  forward name=success path=tile.profileOutput/
/action
  /action-mappings

Where input is the tiles definition to be displayed.

This was from a lovely little training app by Wellie Chao that I found
personally very useful when learning tiles obtained from IBM's site:


http://www-106.ibm.com/developerworks/java/library/j-strutstiles.html

Apologies if you're already aware of this article ... it provides some
really nice, simple worked examples of tiles with struts and comes with
downloadable source and interestingly a nice coverage of ant - if you've
not used that before also.

Hue.

-Original Message-
From: Alayne Wartell [mailto:alayne.wartell;towers.com]
Sent: 31 October 2002 14:49
To: Struts Users Mailing List
Subject: Re: tiles definition doesn't work, config looks correct, am
baffled



Oops, meant to include the error message (404 error):
The requested resource (/tilesproj/.mydefinition) is not available.
mydefinition is in my tiles-defs.xml, but struts is apparently thinking it
should be a file in my web app directory.
The JSP files I'm specifying do all exist.
I'm currently figuring out how to configure tomcat logging (tomcat newbie
too) but maybe the above info will tell you something?
Thanks.






   To:   Struts Users
Mailing List [EMAIL PROTECTED]
  Cedric Dumoulin  cc:   (bcc: Alayne
Wartell/Towers Perrin)
  [EMAIL PROTECTED]Subject:  Re: tiles
definition doesn't work, config looks correct, am
  gbaffled

  10/31/2002 04:01
  AM
  Please respond to
  Struts Users
  Mailing List







  Hi,

  What is the error ? Also check the output in the tomcat error log file.

Alayne Wartell wrote:

Hi,
I'm trying to get Tiles running with Struts, and I'm getting 404's when I
try to use tiles definitions.
I'm running Struts 1.1b2 and Tomcat.
I can run a JSP-only Tiles template just fine.
I really hope someone can help. I've checked everything I can think of and
have run out of ideas.
Details follow.
Thanks very much,
Alayne
(struts newbie)

I'm trying to access http://localhost:8080/tilesproj/testdefinition.do
which forwards to definition .mydefinition
which is in tiles-defs.xml
I've configured the Tiles plug-in in struts-config.xml. I originally had
it
in web.xml but either way I get the same behavior.
I'm running the regular Struts controller.

Here are 

RE: Question - DynaActionForm and indexed property

2002-10-31 Thread Praful . Kapadia
Note: this will be this simple only if all your creditCard attributes are
Strings, otherwise you'll need to resort to PropertyUtils.copyProperties()
or some homegrown conversion method, I believe.

I have this problem. The attributes are not strings (and they have no useful 
toString() method).

How do I cope with that?

Thanks

Praful
 

-Original Message-
From: Taylor, Jason [mailto:jtaylor;cobaltgroup.com]
Sent: 25 October 2002 18:21
To: 'Struts Users Mailing List'
Subject: RE: Question - DynaActionForm and indexed property


If it's an ArrayList, you'd specify the type as java.util.ArrayList

-Original Message-
From: Andy Kriger [mailto:akriger;greaterthanone.com]
Sent: Friday, October 25, 2002 8:00 AM
To: Struts Users Mailing List
Subject: RE: Question - DynaActionForm and indexed property


does that type format of class[] apply to Arrays and Lists?

-Original Message-
From: Taylor, Jason [mailto:jtaylor;cobaltgroup.com]
Sent: Friday, October 25, 2002 10:42
To: 'Struts Users Mailing List'
Subject: RE: Question - DynaActionForm and indexed property


hope you're using struts 1.1-- you're going to need the indexed attribute.
Here's the basic idea:

logic:iterate id=creditCard name=myForm property=creditCards
Type: html:text name=creditCard property=type indexed=true /
Name: html:text name=creditCard property=name indexed=true /
...
/logic:iterate

and

form-bean name=myForm type=o.a.s.a.DynaActionForm
form-property name=creditCards type=com.ra.ic.model.CreditCard[] /
/form-bean

Note: this will be this simple only if all your creditCard attributes are
Strings, otherwise you'll need to resort to PropertyUtils.copyProperties()
or some homegrown conversion method, I believe.

-JT

-Original Message-
From: Andy Kriger [mailto:akriger;greaterthanone.com]
Sent: Friday, October 25, 2002 7:15 AM
To: Struts Users Mailing List
Subject: Question - DynaActionForm and indexed property


I am trying to setup a DynaActionForm to use indexed and named properties.
But I'm getting an error and, not knowing BeanUtils very well, I'm wondering
if someone can guide me in what I need to do to make this work.

In my form...
html:text property='creditCard[0].type' /
html:text property='creditCard[0].name' /
html:text property='creditCard[0].number' /
html:text property='creditCard[0].expDate' /

In my struts-config.xml...
form-property name='creditCard[0].type' type='com.ra.ic.model.CreditCard'
/
form-property name='creditCard[0].name' type='com.ra.ic.model.CreditCard'
/
form-property name='creditCard[0].number' type='com.ra.ic.model.CreditCard'
/
form-property name='creditCard[0].expDate'
type='com.ra.ic.model.CreditCard' /

CreditCard has get/set methods for type, name, number, expDate.

The error I'm getting is...
javax.servlet.jsp.JspException:
No getter method for property creditCard[0].type of bean
org.apache.struts.taglib.html.BEAN
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:742)





--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

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

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

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


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: [MVC] Pull C-V

2002-10-31 Thread Joe Germuska
At 12:16 PM -0600 2002/10/31, Jacob Hookom wrote:

I was wondering if there was a way to pull action forwards into the 
current action much like filter chaining.

Sounds kind of like
Struts Action Plug-in Extension 1.0 (for Struts 1.1b) by ASQ dot 
COM. Provides a clean and transparent way to plug-in common 
controller logic (such as authentication, workflow, etc.) for all 
Struts actions in an application
http://www.asqdotcom.be/struts/

Is this what you're talking about?

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:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



Re: possibility of a new beta release?

2002-10-31 Thread Craig R. McClanahan


On Thu, 31 Oct 2002 [EMAIL PROTECTED] wrote:

 Date: Thu, 31 Oct 2002 12:34:07 -0500
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: possibility of a new beta release?

 With all of the changes that have taken place since the last beta, are
 there any thoughts of a Struts 1.1b3?


That's a question for the developers list.  My personal feeling is that
squashing the remaining few bugs should lead to a release candidate
build, rather than a beta.

 TIA,
 Andy

Craig


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: possibility of a new beta release?

2002-10-31 Thread Vincent Stoessel
How is the bug bounty going, anyway?
Craig R. McClanahan wrote:


On Thu, 31 Oct 2002 [EMAIL PROTECTED] wrote:



Date: Thu, 31 Oct 2002 12:34:07 -0500
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: possibility of a new beta release?

With all of the changes that have taken place since the last beta, are
there any thoughts of a Struts 1.1b3?




That's a question for the developers list.  My personal feeling is that
squashing the remaining few bugs should lead to a release candidate
build, rather than a beta.



TIA,
Andy



Craig


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org



--
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Haseltine, Celeste
I use both Lombaz and Aston Wizard.  Lombaz is better, but it is very
difficult to set up correctly.  Since I am NOT using one the application or
EJB servers it configured to work with, I have it only partially working in
my version of Eclipse.  

Celeste

-Original Message-
From: Sri Sankaran [mailto:Sri.Sankaran;sas.com]
Sent: Thursday, October 31, 2002 9:41 AM
To: Struts Users Mailing List
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


What plug-in do you recommend for JSP editing?

When I looked (a few months ago) the choice was pretty light and even those
were very weak on code completion and error hightlighting.

Sri

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com] 
Sent: Thursday, October 31, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I use eclipse for many reasons, one of which is it's GUI and relative light 
weight (50-60 MB).  The eclipse group wrote SWT because Swing stinks, 
everyone except Sun recognizes that (that should stir some people up ;-).  
SWT passes graphics calls straight to the OS so it's fast and you get native

widgets, none of this fake stuff.

The swing implementation on the Mac is the only one that passes straight 
through to the OS like SWT.


David






From: Galbreath, Mark [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
Date: Thu, 31 Oct 2002 06:33:25 -0500

Alan Williamson also makes a good case for Eclipse in the Oct. 2002 
edition of Java Developer's Journal, p. 5.  His article, and what 
people have said on this list has made me interested enough to try it 
out.  And it's apparently built with SWT (Standard Widget Toolkit), not 
Swing.

Mark

-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Thursday, October 31, 2002 6:20 AM
To: Struts Users Mailing List
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]


I also love vi

but for java developpement, maybe Eclipse is a good choice

??

Xavier




  -Message d'origine-
  De : Galbreath, Mark [mailto:Galbreath;tessco.com]
  Envoyé : jeudi 31 octobre 2002 12:10
  À : 'Struts Users Mailing List'
  Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
 
 
  I agree, but then, I love Java - all of it (but especially the new 
  1.4 goodies!).  I even loved AWT! But as an end-user app?  Ugh!  
  This is why
I
  stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource
hogs,
  only because they are built with Swing.  Give me vi or give me 
  death!
 
  -Original Message-
  From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
  Sent: Thursday, October 31, 2002 6:02 AM
  To: Struts Users Mailing List
  Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
 
 
  I love Swing.
  hmm... actually come to think of it I love *developing* with Swing. 
  Using it however... urrrgh!
 
  -Original Message-
  From: Galbreath, Mark [mailto:Galbreath;tessco.com]
  Sent: Thursday, October 31, 2002 18:55
  To: 'Struts Users Mailing List'
  Subject: RE: [ANNOUNCE] Struts Console v3.0
 
 
  Swing sucks.  When is Sun going to get it's act together on 
  providing a lightweight GUI framework?  Anybody read Alan 
  Williamson's editorial in the 10/02 edition of Java Developer's 
  Journal?
 
  Mark
 
  -Original Message-
  From: James Holmes [mailto:jholmes612;yahoo.com]
  Sent: Wednesday, October 30, 2002 5:52 PM
 
  Struts Console is Swing not SWT.
 
  --
  To unsubscribe, e-mail: 
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail: 
  mailto:struts-user-help;jakarta.apache.org
 
 
  --
  To unsubscribe, e-mail: 
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail: 
  mailto:struts-user-help;jakarta.apache.org
 
  --
  To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail: 
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   

RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread David Graham
Fair enough.  I realize it's time consuming to open source something.  I 
think the tool is pretty nifty and was curious to see the source.

Dave






From: James Holmes [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
Date: Thu, 31 Oct 2002 10:05:54 -0800 (PST)

You're right, I wouldn't have to rewrite it, but
someone would.

I'm not opposed to open source, obviously, as I'm
involed with Struts and other open source projects.
However, I'm not ready to open source Struts Console.

-james

--- David Graham [EMAIL PROTECTED] wrote:
 Yes, I've seen that one but it's currently not as
 nice as Struts Console.
 You wouldn't have to rewrite it if you made it open
 source :-).  What are
 your thoughts on that?

 David






 From: James Holmes [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE]
 Struts Console v3.0]
 Date: Thu, 31 Oct 2002 09:49:08 -0800 (PST)
 
 Well, Struts Console would essentially need
 everything
 rewritten since 95% of the code is Swing code for
 the
 GUI.  It just doesn't make sense to me to rewrite
 it
 when there is already a native SWT Struts config
 editor:
 
 EasyStruts
 http://easystruts.sf.net
 
 -james
 
 --- David Graham [EMAIL PROTECTED] wrote:
   If you made Struts Console open source, somebody
   could try porting it to SWT
   for you :-).
  
   David
  
  
  
  
  
  
   From: James Holmes [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
   [EMAIL PROTECTED]
   To: Struts Users Mailing List
   [EMAIL PROTECTED]
   Subject: RE: [OT] Swing [WAS: RE:
 [ANNOUNCE]
   Struts Console v3.0]
   Date: Thu, 31 Oct 2002 09:27:24 -0800 (PST)
   
   No.  Struts Console opens in another window
 because
   it
   is written with Swing and not Eclipse's native
 SWT.
   I'm not planning to rewrite Struts Console in
 SWT
   just
   to work with Eclipse when every other IDE is
 using
   Swing.
   
   -james
   
   --- Xavier Combelle [EMAIL PROTECTED]
 wrote:
 When I use Struts console eclipse plugin , a
 new
 window is open
 and when I use SolarEclipse, it is open in
 the
 editor pane.
 Do I have a problem in the configuration of
   struts
 console ?

 Xavier


  -Message d'origine-
  De : David Graham
   [mailto:dgraham1980;hotmail.com]
  Envoyé : jeudi 31 octobre 2002 17:55
  À : [EMAIL PROTECTED]
  Objet : RE: [OT] Swing [WAS: RE:
   [ANNOUNCE]
 Struts Console v3.0]
 
 
  This is one area Eclipse is lacking in.  I
   wish
 they would include web
  development tools (like jsp highlighting)
 in
   the
 standard release.  I use
  the SolarEclipse plugin for jsp and xml
 stuff.
 It's not the best
  but it's
  better than a simple text editor.
 
  http://solareclipse.sourceforge.net/
 
  David
 
 
  From: Sri Sankaran
 [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
  To: Struts Users Mailing List
 [EMAIL PROTECTED]
  Subject: RE: [OT] Swing [WAS: RE:
   [ANNOUNCE]
 Struts Console v3.0]
  Date: Thu, 31 Oct 2002 10:41:14 -0500
  
  What plug-in do you recommend for JSP
   editing?
  
  When I looked (a few months ago) the
 choice
   was
 pretty light and
  even those
  were very weak on code completion and
 error
 hightlighting.
  
  Sri
  
  -Original Message-
  From: David Graham
 [mailto:dgraham1980;hotmail.com]
  Sent: Thursday, October 31, 2002 10:15 AM
  To: [EMAIL PROTECTED]
  Subject: RE: [OT] Swing [WAS: RE:
   [ANNOUNCE]
 Struts Console v3.0]
  
  
  I use eclipse for many reasons, one of
 which
   is
 it's GUI and
  relative light
  weight (50-60 MB).  The eclipse group
 wrote
   SWT
 because Swing stinks,
  everyone except Sun recognizes that (that
   should
 stir some people up ;-).
  SWT passes graphics calls straight to the
 OS
   so
 it's fast and you get
  native
  widgets, none of this fake stuff.
  
  The swing implementation on the Mac is
 the
   only
 one that passes straight
  through to the OS like SWT.
  
  
  David
  
  
  
  
  
  
   From: Galbreath, Mark
   [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
   To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
   Subject: RE: [OT] Swing [WAS: RE:
 [ANNOUNCE] Struts Console v3.0]
   Date: Thu, 31 Oct 2002 06:33:25 -0500
   
   Alan Williamson also makes a good case
 for
 Eclipse in the Oct. 2002
   edition of Java Developer's Journal,
 p.
   5.
 His article, and what
   people have 

RE: tiles definition doesn't work, config looks correct, am baffled

2002-10-31 Thread Hue Holleran
Hi Alayne,

Ok, a bit quicker than I thought. This works fine for us - pasted the code
in as follows:

struts-config.xml:

  action-mappings
action path=/testdefinition
type=org.apache.struts.tiles.actions.NoOpAction
forward name=success path=.NiceBoxMainMenu /
forward name=failure path=.NiceBoxMainMenu /
/action
  /action-mappings

  (even replicated the . at the start but using one of our tiles
definitions).

tiles-defs.xml:

  tiles-definitions
!-- Main menu options in a nice box. --
definition name=.NiceBoxMainMenu
path=/tiles-layouts/NiceBoxGreen.jsp
  put name=titleString value=titleString-CHANGE-ME /
  put name=bodyContent
value=/tiles-components/menus/MainMenuOptions.jsp /
/definition
  /tiles-definitions

I've hacked our HTML to remove any bits to protect the innocent - have
packaged in a .war - not sending to the group.and will send to you
personally as it's nearly 1MB - as it has the jars in it. Hopefully you can
try in your environment to see if it works there.

Hue.

-Original Message-
From: Hue Holleran [mailto:hueh;softwareskills.net]
Sent: 31 October 2002 18:44
To: 'Struts Users Mailing List'
Subject: RE: tiles definition doesn't work, config looks correct, am
baffled


Hi Alayne,

Yes, we're using struts-1.1b2, although using tiles from the latest nightly
build, as the included tiles-documentation.war did not work for us - on
Tomcat3.3aFinal or 4.1.12-3 on W2K or Debian on JDK1.4.1_01.
tiles-documenation.war from nightly build actually works fine on all,
though!

Sorry to bombard you with links but I also found Chuck Cavaness's review
book on theserverside.com useful although it tails off a little at the end
of the tiles chapter .. really looking forward to my copy which is on order,
though!

I'll try copying-and-pasting your code into the working 1.1 we have here to
see if it will possibly work in a different environment and I'll post a
reply a little later on.

Hue.

-Original Message-
From: Alayne Wartell [mailto:alayne.wartell;towers.com]
Sent: 31 October 2002 18:29
To: Struts Users Mailing List
Subject: RE: tiles definition doesn't work, config looks correct, am
baffled



Hi Hue,
I am aware of that article but have been following this one:
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html?
as my model. It's even simpler -- it just displays a templated page. The
mapping only needs an action and a forward (and path, of course.)

I can get the article's example working, and I can even get my tiles
definition working in the example app. But the example app uses Struts 1.0,
with 1.0-style Tiles configuration. My own example, which I haven't fixed
yet, uses 1.1.
Have you been using 1.1?

Thanks for your suggestions.





   To:   'Struts Users
Mailing List' [EMAIL PROTECTED]
  Hue Holleran   cc:   (bcc: Alayne
Wartell/Towers Perrin)
  hueh@softwareskiSubject:  RE: tiles
definition doesn't work, config looks correct, am
  lls.net  baffled

  10/31/2002 10:35
  AM
  Please respond to
  Struts Users
  Mailing List






Hi Alayne,

From one tiles newbie to another...

The general format of the action... for tiles is shown below:

  action-mappings
!-- Action mapping for profile form --
action path=/profileInput
type=com.caraveltech.ex2.ProfileAction
name=profileForm
scope=request
input=tile.profileInput
validate=true
  forward name=success path=tile.profileOutput/
/action
  /action-mappings

Where input is the tiles definition to be displayed.

This was from a lovely little training app by Wellie Chao that I found
personally very useful when learning tiles obtained from IBM's site:


http://www-106.ibm.com/developerworks/java/library/j-strutstiles.html

Apologies if you're already aware of this article ... it provides some
really nice, simple worked examples of tiles with struts and comes with
downloadable source and interestingly a nice coverage of ant - if you've
not used that before also.

Hue.

-Original Message-
From: Alayne Wartell [mailto:alayne.wartell;towers.com]
Sent: 31 October 2002 14:49
To: Struts Users Mailing List
Subject: Re: tiles definition doesn't work, config looks correct, am
baffled



Oops, meant to include the error message (404 error):
The requested resource (/tilesproj/.mydefinition) is not available.
mydefinition is in my tiles-defs.xml, but struts is apparently thinking it
should be a file in my web app directory.
The JSP files I'm specifying do all exist.
I'm currently figuring out how to configure tomcat logging (tomcat newbie
too) but maybe the above info will tell you something?
Thanks.






   To:   

RE: Suggested Change in ActionForwards

2002-10-31 Thread Ken Riley
Hmm, it is similar in some ways but not exactly what I'm talking about.

My goal is to have a templated page where each element of the 
page can be rendered by a different struts action. So I can have 
a header, content, footer, etc action called by a single tile.
This can work with the TilesRequestProcessor as there is code there 
( assuming you have a compatible servlet container, I don't ) to 
change all forwards after the first one to includes.

The change I was proposing would allow the developer to explicitly
do an include instead of a forward. There is already a redirect 
parameter. I thought it would be beneficial to be able to include 
as well.

I need this change because of the way my servlet container treats
forwards. I would guess that other developers could use this 
capability. Perhaps not. 

Either way I am looking for feedback for the idea. 





-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Tuesday, October 29, 2002 12:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Suggested Change in ActionForwards


This sounds very similar to the 1.1 feature of putting tiles in the forward 
like:

forward name=success path=account.form.myFormTile /

This tells Tiles to process the account.form.myFormTile definition and 
construct the response.  Does that meet your needs?

David



From: Ken Riley [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Suggested Change in ActionForwards
Date: Tue, 29 Oct 2002 12:23:52 -0500

Hi all,

Recently I've had a good deal of trouble with templates after upgrading my
servlet container. It seems my container vendor has revisited their
interpretation of forwards in the JSP spec which broke my application
horribly.  Several people on this list ( thanks Cedric and others ) gave me
good suggestions about how to get my app up and going again. Unfortunately,
my servlet container made it very difficult for any quick-fix solution
that I tried. The solution that finally solved my problem involved adding
a new 'feature' to the ActionForward and a slight addition to
the struts-config.dtd. I wanted to share the idea with the group to see
if these additions might be helpful to the rest of the community.

What I've done is add an include parameter for the forward tag in the
struts-config.xml file. This tells the ActionServlet (I'm currently working
with 1.02) to do an include instead of a forward after processing the
action. This is similar to the redirect parameter that already exists.
What this allows me to do is explicitly declare that the target
of the forward is in fact not a complete page but is a fragment meant
to be included in a template (or tile). This also allows me to have each
element of the template (or tile) be an action.

The TilesRequestProcessor currently will do an include instead of a forward
if the request.isCommitted() is true. This is nice (except it doesn't work
with my #@% servlet container) but I would like to be able to explicitly
declare this behavior in the base struts package so that the developer has
control of the way forwards operate.

So, a forward that needs to be an include looks like
forward name=success path=/jsp/myPage.jsp include=true/
where include is an optional parameter that defaults to false.

I've made the few code changes in my local version of 1.02. I would be 
willing
to submit the changes to the current tree if the powers that be think that
this would be good for the package.

Thanks for any feedback or ulconstructive/ul criticism :).

Ken

--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Get faster connections -- switch to MSN Internet Access! 
http://resourcecenter.msn.com/access/plans/default.asp


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




null pointer exception in tiles-documentation/examples/summariesTabs.jsp

2002-10-31 Thread Zsolt Koppany
Hi,

I get a null pointer exception in 
tiles-documentation/examples/summariesTabs.jsp I using struts-1.1-b2 with 
tomcat-4.12 when enablePooling=true in web.xml.

Do you know any fix?

Zsolt


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: null pointer exception in tiles-documentation/examples/summariesTabs.jsp

2002-10-31 Thread Hue Holleran
Hi Zsolt,

If it's the version of tiles-documentation.war that came with 1.1b2 then it
did not work for us - we tried to identify the issues but did not get very
far - probably due to tiles being very new to us. The
tiles-documentation.war from the nightly build worked immediately for us ...
in fact it was on the tabs examples that we had the problems with the one
from 1.1b2 - the rest of the examples did appear to work. The nightly build
version sorted all of these - so I'd recommend you try this first!

Hue.

-Original Message-
From: Zsolt Koppany [mailto:zkoppany;web.de]
Sent: 31 October 2002 20:18
To: [EMAIL PROTECTED]
Subject: null pointer exception in
tiles-documentation/examples/summariesTabs.jsp


Hi,

I get a null pointer exception in
tiles-documentation/examples/summariesTabs.jsp I using struts-1.1-b2 with
tomcat-4.12 when enablePooling=true in web.xml.

Do you know any fix?

Zsolt


--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Suggested Change in ActionForwards

2002-10-31 Thread Robert Kuhar
i don't know much about tiles, but couldn't you achieve this effect by
putting just IFRAMEs  in each of your template elements?  Each
IFRAME would then be a separate pass at the server, effectively giving
you a unique Action for each element of your template.

 [EMAIL PROTECTED] 10/31/2002 12:07:27 
Hmm, it is similar in some ways but not exactly what I'm talking
about.

My goal is to have a templated page where each element of the 
page can be rendered by a different struts action. So I can have 
a header, content, footer, etc action called by a single tile.
This can work with the TilesRequestProcessor as there is code there 
( assuming you have a compatible servlet container, I don't ) to 
change all forwards after the first one to includes.

The change I was proposing would allow the developer to explicitly
do an include instead of a forward. There is already a redirect 
parameter. I thought it would be beneficial to be able to include 
as well.

I need this change because of the way my servlet container treats
forwards. I would guess that other developers could use this 
capability. Perhaps not. 

Either way I am looking for feedback for the idea. 





-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com] 
Sent: Tuesday, October 29, 2002 12:39 PM
To: [EMAIL PROTECTED] 
Subject: Re: Suggested Change in ActionForwards


This sounds very similar to the 1.1 feature of putting tiles in the
forward 
like:

forward name=success path=account.form.myFormTile /

This tells Tiles to process the account.form.myFormTile definition and

construct the response.  Does that meet your needs?

David



From: Ken Riley [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Suggested Change in ActionForwards
Date: Tue, 29 Oct 2002 12:23:52 -0500

Hi all,

Recently I've had a good deal of trouble with templates after
upgrading my
servlet container. It seems my container vendor has revisited their
interpretation of forwards in the JSP spec which broke my application
horribly.  Several people on this list ( thanks Cedric and others )
gave me
good suggestions about how to get my app up and going again.
Unfortunately,
my servlet container made it very difficult for any quick-fix
solution
that I tried. The solution that finally solved my problem involved
adding
a new 'feature' to the ActionForward and a slight addition to
the struts-config.dtd. I wanted to share the idea with the group to
see
if these additions might be helpful to the rest of the community.

What I've done is add an include parameter for the forward tag in
the
struts-config.xml file. This tells the ActionServlet (I'm currently
working
with 1.02) to do an include instead of a forward after processing the
action. This is similar to the redirect parameter that already
exists.
What this allows me to do is explicitly declare that the target
of the forward is in fact not a complete page but is a fragment
meant
to be included in a template (or tile). This also allows me to have
each
element of the template (or tile) be an action.

The TilesRequestProcessor currently will do an include instead of a
forward
if the request.isCommitted() is true. This is nice (except it doesn't
work
with my #@% servlet container) but I would like to be able to
explicitly
declare this behavior in the base struts package so that the developer
has
control of the way forwards operate.

So, a forward that needs to be an include looks like
forward name=success path=/jsp/myPage.jsp include=true/
where include is an optional parameter that defaults to false.

I've made the few code changes in my local version of 1.02. I would be

willing
to submit the changes to the current tree if the powers that be think
that
this would be good for the package.

Thanks for any feedback or ulconstructive/ul criticism :).

Ken

--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Get faster connections -- switch to MSN Internet Access! 
http://resourcecenter.msn.com/access/plans/default.asp 


--
To unsubscribe, e-mail:  
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:  
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




  1   2   >