Re: Newbie question about Tiles suitability.

2002-03-26 Thread Ben Peter

Hi Alex,

make sure you have a look at JetSpeed at

   http://jakarta.apache.org/jetspeed/

Cheers,
Ben

Alex Colic wrote:
 Hi,
 
 I just got told I have to create a web site similar to myYahoo where the
 user can customize what they want to view on the screen. You know the type,
 where you can pick and choose from a number of categories and a page is
 custom created for you.
 
 Is this a job for the Tiles framework?
 
 Thanks for any help.
 
 Regards,
 
 
 Alex
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



-- 
Benjamin Peter  +49-69-96244395
Application Engineer Moerfelder Landstr. 55
(zentropy:partners)60598 Frankfurt, Germany


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




Using Struts with Websphere 4

2002-03-26 Thread Nicolas De Loof

Hi

is there any known problem for using Struts 1.0.2 on webshpere 4 ?

I'd like to use struts framework on a starting project, as the first use off
it in my company, and so I'd like to demonstrate to my project manager the
quality of opensource software and power off forum support.

bye


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




Convert from JSP to Struts.How?

2002-03-26 Thread @Basebeans.com

Subject: Convert from JSP to Struts.How?
From: Espen Lysvik [EMAIL PROTECTED]
 ===
Hi!
I have a JSP that I would like to work with Struts. I have problems with the
HTML:LINK FORWARD, and I know I am doing somethimg wrong, but I don't know
what.
Here's the code:
%@ page language=java %
%@ taglib uri=WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=WEB-INF/struts-logic.tld prefix=logic %
%@ page import=java.util.* %
%@ page import=com.capgemini.no.heh.beans.* %
%@ page contentType=TEXT/HTML %
% try { %
jsp:useBean id=konsBean scope=page
class=com.capgemini.no.heh.beans.KonsulenterBean/

%  Vector v = null;
 v = (Vector)request.getAttribute(allekons); %
html
head
 titleAlle registrerte konsulenter/title
 LINK REL=Stylesheet TYPE=text/css MEDIA=screen
HREF=include/main_stylesheet.css
 LINK REL=Stylesheet TYPE=text/css MEDIA=print
HREF=include/main_stylesheet.css
/head

body style=OVERFLOW: auto onload= marginwidth=0 ; marginheight  =0
leftmargin=0 rightmargin=0 topmargin=0
TABLE cellSpacing=0 cellPadding=0 width=100% border=0

  TR
  TD vAlign=top height=64

  TABLE cellSpacing=0 cellPadding=0 width=100% border=0
TR
  TD bgColor=black height=40
   FONT color=White size=+2Hvor er konsulenten?/FONT/TD
  TD bgColor=black height=40IMG height=29
src=images/cgey.gif width=148/TD/TR
 TR
  TD width=100% height=40IMG height=5
src=images/1ptrans.gifBRIMG src=images/1ptrans.gif
width=7/TD/TR
  /TABLE/TD/TR

/TABLE

 table
  TR
   td width=15% /td
TD vAlign=top

TABLE bgcolor=black border=0
   font face=Arial
size=+1Alle registrerte konsulenter/font

   tr bgcolor=#99
td bgcolor=#ccAnsattnr/td
td bgcolor=#ccFornavn/td
td bgcolor=#ccEtternavn/td
td bgcolor=#ccTittel/td
td bgcolor=#ccKortnr/td
td bgcolor=#ccMail/td
td bgcolor=#cc/td
td bgcolor=#cc/td
   /tr

   % int i = 0;

while(i  v.size())
   { %

   tr bgcolor=#99
% konsBean = (KonsulenterBean)v.elementAt(i);
i++; %
td
 %= konsBean.getAnsattnr() %
   /td
td
%= konsBean.getFornavn() %
   /td
   td
%= konsBean.getEtternavn() %
   /td
td
%= konsBean.getTittel() %
   /td
td
%= konsBean.getKortnr() %
   /td
td
%= konsBean.getCapMail() %
   /td
td
 html:link forward=updKonsulent paramName=konsBean
paramProperty=ansattnrString paramId=ansnr 
  IMG alt= src=images/endre.gif border=0/html:link/td
td
 A href=/delKonsulent.doIMG alt= src=images/slett.gif
border=0/A/td
   /TR
   %}
   }catch(Exception e){
e.printStackTrace();
 } %

   /tablebrbrbr

   html:link forward=mainMenubean:message
key=goto.mainMenu//HTML:LINK

  /TD/TR
 /TABLE

TR
  TD

  /TD
/TR
TR
  TD colspan=2

  /TD
/TR/TABLE
 p
 HTML:IMG alt=Powered by Struts
page=/images/struts-power.gif//HTML:IMG/p
/body
/html



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




Svar: Convert from JSP to Struts.How?

2002-03-26 Thread Mikael Eriksson

Hi!

 I'm guessing a bit here since you did not tell what problem
you had but one thing to check is that the forward strings
in the html:link is declared as global forwards.

(When I first did this I mistakenly thought that the string
in forward would refer to an action declaration, which
it did not :-))

 Regards
 Mikael


 html:link forward=updKonsulent paramName=konsBean
paramProperty=ansattnrString paramId=ansnr 
  IMG alt= src=images/endre.gif border=0/html:link/td


   html:link forward=mainMenubean:message
key=goto.mainMenu//HTML:LINK

  /TD/TR
 /TABLE



===
Skickat genom Swedish Connection WebMail
===



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




Re: Struts plugin for Dreamweaver 4.0

2002-03-26 Thread Jon Ferguson

Andi,
Check out the Ultradev taglib under Jarkarta/taglibs.

Macromedia.. did not write it.. an illustrious Open-Sourcerer did!
I've tested it with simple tags with good results.

Cheers,
Jon

Andi S. Giri wrote


 Hello

 We are implementing Struts on a project, and would like to use the Struts
 plugin for Dreamweaver 4.0. I could not locate this on macromedia.com
 Please let me know where I can download this.

 Andi S. Giri
 Softsquare

   
   Name: winmail.dat
winmail.datType: application/ms-tnef
   Encoding: base64

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



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


Off Topic how to download mirror of web site

2002-03-26 Thread @Basebeans.com

Subject: Off Topic how to download mirror of web site
From: David Bolsover [EMAIL PROTECTED]
 ===
Hi

Sorry - off topic - but I'm sure some at least someone in the group may have
a solution.

A client has asked me to produce an 'off-line' copy of his static web site -
lnks go down at least 6 levels.

If it were possible I would just get ftp access and download the lot - but
time and the effort of liaison with 5 subsidiary company webmasters
prevents.

Does anyone have - or know of a utility that will allow me to retrieve the
contents of a site and organise the data in a sensible fashion?

I'm sure I could write the code myself - parse the pages, follow the links
etc - but I'm lazy - can anyone help.

Promise - struts related QA next :-).

David Bolsover
[EMAIL PROTECTED]



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




How to use one image as submit button?

2002-03-26 Thread Laker,Nan
Hi all,
i want to use one image as submit button.
in jsp file,i code the following:

html:submit property="save" 
img page="/image/ok.gif"/
   /html:submit


but while executing,generated the following source code:

input type="submit" name="save" value="img page="/image/ok.gif"/"


so,it cannot display normally.

how to solve the problem?


Thanks in advance


Laker


RE: How to use one image as submit button?

2002-03-26 Thread M?ris Orbid?ns

You can create image submit buttons like this

script language="JavaScript"
function change()
{

document.Lemums1.action.value="change";
document.Lemums1.submit();
}
/script


html:hidden property="action" /

a tabindex=-1 href="javascript:change()"img src="images/labot_g.gif" width="76" 
height="18" border="0"/a



Maris


 -Original Message-
 From: Laker,Nan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 26, 2002 1:44 PM
 To: Struts Users Mailing List
 Subject: How to use one image as submit button?
 
 
 Hi all,
 i want to use one image as submit button.
 in jsp file,i code the following:
 
 html:submit property="save" 
 img page="/image/ok.gif"/
/html:submit
 
 
 but while executing,generated the following source code:
 
 input type="submit" name="save" value="img page="/image/ok.gif"/"
 
 
 so,it cannot display normally.
 
 how to solve the problem?
 
 
 Thanks in advance
 
 
 Laker
 

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


RE: Tiles question: Is it possible to insert a ComponentDefinition into a Tile context dynamically?

2002-03-26 Thread Chris Cool

Hello, Cedric:

Thank you for responding to my question. 

As you stated, I can add/overload an attribute in the current context.
Specifically, I am adding a new item to an existing list. However, each item
in the list is the key to a Tile definition. Most of the definitions are in
the XML file, but I want to add a new Tile definition dynamically so that
the new item in the list is a reference to the new Tile definition. Is this
possible?

Thanks again,

Chris 

-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 10:29 AM
To: Struts Users Mailing List
Subject: Re: Tiles question: Is it possible to insert a
ComponentDefinition into a Tile context dynamically?



  Hello,

  If you are in a tile controller, you don't have to create a new
ComponentDefinition, you can set the attributes of the current tiles
(because you
are in the controller).
  To add / overload an attribute in the context, do something like :
  String attribute = (String)context.getAttribute(attributeName);
  attribute = new value;
  context.setAttribute(attributeName, attribute);

  To add a list, create the list, add elements, and add the list to context.
  You can overload a previously defined list. Do not modify content of an
existing list, because it is shared between inherited instances. :

   List list = new java.util.ArrayList();
  list.add( a value );
  list.add( another value);
  context.setAttribute(listAttributeName, list);

  Hope this help,

Cedric

P.S. :
The DefinitionsUtil.setActionDefinition( aDefinition ); is to be used when
you
are inside a Struts action called by Struts mechanism.
  It has not effect when used inside a tile controller
Chris Cool wrote:

 Hi,

 I have a tile that reads items from a PutList list and then inserts each
 item into the current page.

struts_logic:iterate id=item name=itemList scope=page
 type=String
tiles:insert name='%=item%' flush=true/
/struts_logic:iterate

 When the items in the list are tiles defined in my tileDefinitions.xml
file,
 the tiles are inserted into my JSP correctly. However, I want to
dynamically
 create a tile definition and insert it into the page context.

 I am generating the ComponentDefinition in my tile controller and
accessing
 the itemList where I add the name of the dynamically generated
definition:

   /* get the item list and insert new tile def into it */
   ArrayList itemList = (ArrayList)context.getAttribute(itemList);
   if (itemList != null) {

 HashMap map = new HashMap();
 map.put(name, newtarget);
 map.put(link, newtarget.do);

 ComponentDefinition newItem =
 new ComponentDefinition(new.item,
   /mytiles/simpleItem.jsp,
 map);

 DefinitionsUtil.setActionDefinition( request, breadCrumbItem );
 itemList.add(new.item);
   }

 In my tile, the itemList contains the new.item entry, but it does not
 appear to find the ComponentDefinition I created.

 Thanks for you help.

 Chris

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


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

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




RES: Struts/Tomcat problem

2002-03-26 Thread Kelly Prudente Pereira

Most often for me this was because i had forgotten to put struts.jar in the
lib directory.


Kelly Prudente Pereira
Analista de Sistemas - NDS
[EMAIL PROTECTED] 
Fóton® Informática e Serviços

-Mensagem original-
De: Lawlor, Frank [mailto:[EMAIL PROTECTED]] 
Enviada em: segunda-feira, 25 de março de 2002 18:56
Para: 'Struts Users Mailing List'
Assunto: RE: Struts/Tomcat problem

 
 message Servlet ActionServlet is currently unavailable
 
 description The requested service (Servlet ActionServlet is currently
 unavailable) is not currently available
 
 Does anyone have any clues to why this happens?

Most often for me this is because there was a problem
during the initialization of struts.  Check the console
log for errors.  Usually a struts-config.xml problem
(or occasionally a missing class file).

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.


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

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




Re: How to use one image as submit button?

2002-03-26 Thread Ted Husted

You'd want to use the image tag for this. 

See also my Struts Tip #1 on the MVC Programmers newsgroup. 

news://news.basebeans.com

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

Laker,Nan wrote:
 
 Hi all,
 i want to use one image as submit button.
 in jsp file,i code the following:
 
 html:submit property=save 
 img page=/image/ok.gif/
/html:submit
 
 but while executing,generated the following source code:
 
 input type=submit name=save value=img page=/image/ok.gif/
 
 so,it cannot display normally.
 
 how to solve the problem?
 
 Thanks in advance
 
 Laker

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




Re: RES: Error processing message properties file.

2002-03-26 Thread Ted Husted

It usually means that the ApplicationResources.properties file is not on
the container's class path. The simplest thing is to put it directly
under the classes folder. 

The message and error tags are designed to work with the resource file,
and become upset when they cannot find it.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Gilson Nascimento D Elrei wrote:
 
 What the message meaning ? The properties file or key doesn't found ?
 javax.servlet.jsp.JspException: Cannot find message resources under key
 org.apache.struts.action.MESSAGE
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: RES: Newbie Question - Please Helpme (Cannot find ActionMapping or...)

2002-03-26 Thread Ted Husted

You might want to temporarily shift development to Tomcat or Resin, to
help isolate the problem. Once you have something working there, take
another run at JRun. 

I'd also consider contacting JRun support if you continue to have
problems, since Struts compatability is something most vendors pursue
these days.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

Gilson Nascimento D Elrei wrote:
 
Thanks for your suggestions.
I don't use data-sources/data-sources on my struts-config.xml cos
 my aplicattion doesn't acess a database (is it obligatory ?). Also tried
 Otavio's suggestion, about put all jars in WEB-INF/LIB directory but i
 didn't get successfully.
The worse thing is that I can't  continue my development cos I didn't
 get execut it. :-(
Any Ideas ?
Thanks in advance.
 
 
  - Mensagem original -
  De:   Anant Sagar [SMTP:[EMAIL PROTECTED]]
  Enviada em:   terça-feira, 5 de março de 2002 10:41
  Para: Struts Users Mailing List
  Assunto:  Re: Newbie Question - Please Helpme (Cannot find
  ActionMapping or...)
 
  This usually happens due to improper setting of  Data Source Configuration
  (data-sources  /data-sources) in struts-config.xml file.
  Check whether driverClass ,url,user,password entered are correctly .
  Hope that may help you.
 
  Sagar
 
 
  - Original Message -
  From: Otavio C. Decio [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, March 22, 2002 6:56 PM
  Subject: Re: Newbie Question - Please Helpme (Cannot find ActionMapping
  or...)
 
 
   Just a suggestion, put all the jars that come with struts under your
   web-inf\lib directory, including the commons*.
  
   Abracos
  
   Otavio
  
   - Original Message -
   From: Gilson Nascimento D Elrei [EMAIL PROTECTED]
   To: 'Struts Users Mailing List' [EMAIL PROTECTED]
   Sent: Friday, March 22, 2002 8:16 AM
   Subject: Newbie Question - Please Helpme (Cannot find ActionMapping
  or...)
  
  
  I'm receiving this error when I try to execute my
 application (http://localhost:8100/helpdev/jsp/LoginView.jsp) on JRUN.
   javax.servlet.jsp.JspException: Cannot
 find ActionMappings or ActionFormBeans collection
 I have verified my WEB.XML  and STRUTS-CONFIG.XML
 files and I didn't find error.
 I think that STRUTS doesn't get to find the path for
 STRUTS-CONFIG.XML.  LoginAction.java  LoginView.jsp
 Below is my structure directory configuration.
 HelpDev is my WEBAPP container for my application.
 HELPDEV
  |
  +-JSP
  |  |
  |  .-- LoginView.JSP
 --  Main Program
  |  .-- MainMenu.JSP
  |
  +-WEB-INF:.
 |
 +---LIB
 | |
 |
 .--structs.jar
 |
 .--xerces.jar
 |
 .--jaxp.jar
 |
 .--parse.jar
 |
 +---CLASSES
 | |
 |
 +---TEST
 |
 |
 |
 +--STRUTS
 |
 . LoginAction.class
 |
 . LoginBean.class
 |
 . LoginForm.class
 |
 . MessageResources.properties
 
 .-- All Structs TLD Files
 (*.TLD)
 .-- structs-config.xml
 .-- web.xml
 
 Below is content from WEB.XML and STRUTS-CONFIG.XML
 !-- WEB.XML Start HERE ---
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
   SYSTEM
   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 web-app
   !-- Action Servlet Configuration --
   servlet
 servlet-nameaction/servlet-name
 
 

Re: PropertyUtils and NoClassDefFoundError WLS6.1, struts 1.0

2002-03-26 Thread Ted Husted

It's possible that you may have to unpack the JAR with WebLogic. Be sure
to consult the installation notes on the Web site, and whatever you can
find in the archives. 

http://jakarta.apache.org/struts/doc-1.0.2/installation.html

http://www.mail-archive.com/struts-user%40jakarta.apache.org/

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Jouanny wrote:
 
 Hello
 
 I'm working on Weblogic 6.1 using Struts 1.0.
 
 I'm making use of the method getPropertyDescriptor(Object object, String
 name_of_Field) of  the org/apache/struts/util/PropertyUtils class in order
 to get a java.beans.PropertyDescriptor.
 
 This PropertyDescriptor is used in a class which implements Interface
 java.util.Comparator in order to sort a  java.util.ArrayList with
 Collections.sort(List aList, Comparator aComparator);
 
 I get what is folowing :
 
 Servlet failed with Exception
 java.lang.NoClassDefFoundError: org/apache/struts/util/PropertyUtils
 
 struts.jar, which contains the org/apache/struts/util/PropertyUtils class,
 is in Web-inf/lib.
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: Where are the commons-*.jar files?

2002-03-26 Thread Ted Husted

The latest Jakarta JARs can always be found here 

http://gump.covalent.net/jars/latest/

This is also linked at the foot of the Binary Download page from the top
of Jakarta. 

If you believe there is something amiss with the way the nightly build
is handled, please enter a support ticket into bugzilla. 

http://jakarta.apache.org/site/bugs.html

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services



Lawlor, Frank wrote:
 
 The nightly builds used to have the commons-*.jar files
 but the currently availble ones don't seem to have them.
 The readme says they are in the lib dir of the distribution
 but I can't find them in any of the distributions.
 
 Where can I find the latest ones?
 
 Frank Lawlor
 Athens Group, Inc.
 (512) 345-0600 x151
 Athens Group, an employee-owned consulting firm integrating technology
 strategy and software solutions.
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: HTML:select multiple=true

2002-03-26 Thread Ted Husted

It's difficult to tell what the exact problem is without seeing at least
the interface code for the bean you are trying to expose. The tags
access the beans, so the beans are an essential part of the equation.

http://www.tuxedo.org/~esr/faqs/smart-questions.html

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


johnseitz wrote:
 
 I have an object called AreaCode which contains a property called
 areaId.
 
 I have an object called AreaDislayBean which contains a property
 called areas.  This property is an array property which returns
 AreaCode[] array.
 
 My html:select tag looks like this:
 html:select name=Constants.ADB property=areas.areaId 
   options tags are here
 /html
 
 Now maybe I'm stupid (which is very possible), but I though that
 struts tags could handle this property propagation.  But it
 consisteny returns an error.
 
 So what I did is make the AreaDisplayBean contain a property called
 areaIds which is an array property of Long.  After making the change
 to the html:select tag to use the property name areaIds, the
 select tag renders correctly.
 
 It just seems odd that I would have to rip apart my AreaCode object
 to get to its areaId property. Am I using the tag correctly?  Can
 someone throw me a bone in the right direction?
 
 Thanks
 
 John
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Get properties from the struts-config.xml with Struts 1.1 Beta

2002-03-26 Thread Falkmar Bodo Hinueber

Hi,
I've a problem with Struts 1.1 Beta, to read properties, which are set 
in the struts-config.xml
This code works with an old version from Struts but not with Struts 1.1 
Beta.
Can anybody help me?

Here are the sources:

The web.xml :

...
 servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class

init-param
  param-namemapping/param-name
  param-valuetest.myMapping/param-value
/init-param
...
/servlet
...


The struts-config.xml:


...
   
actionpath=/test
   name=testForm
   type=testAction
   scope=request
   validate=false
   input=/index.jsp
   set-property property=myProperty value=This is property 
:) /   
   forward name=success  path=/start.do/   

   forward name=failure  path=/index.jsp/   

/action
...



The myMapping.java:

package test.myMapping;
import org.apache.struts.action.ActionMapping;

public class myMapping extends ActionMapping {

protected String myProperty;

public void setMyProperty(String myProperty) {
this.myProperty = myProperty;
}

public String getMyProperty() {
return myProperty;
}
}


The testAction.java:


public final class testAction extends Action {

   public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException {
String myProperty=null;


if (mapping instanceof myMapping)   // this doesn't work with struts 
1.1   what is the cause ?
{
//cast the mapping class into our custom
//mapping class
myMapping mp = (myMapping) mapping;

myProperty=mp.getMyProperty();

}

...


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




RE: PropertyUtils and NoClassDefFoundError WLS6.1, struts 1.0

2002-03-26 Thread Arnaud Heritier

I know that there's a bug in WLS6.1 SP2 (don't know if it applies to WLS 
6.1) with jar containing several dots in there name.
For example : commons-beanutils-1.2.jar

let's see :
http://dev2dev.bea.com/resourcelibrary/bugfixesdetail.jsp?highlight=bugf  
ixesf=components%2Fdev2dev%2Fresourcelibrary%2Fbugfixes%2Fbugfix.htm

you should contact the BEA support to obtain the patch

Arnaud H

 -Message d'origine-
 De:   Ted Husted [SMTP:[EMAIL PROTECTED]]
 Date: mardi 26 mars 2002 14:04
 A:Struts Users Mailing List
 Objet:Re: PropertyUtils and NoClassDefFoundError WLS6.1, struts 1.0

 It's possible that you may have to unpack the JAR with WebLogic. Be sure
 to consult the installation notes on the Web site, and whatever you can
 find in the archives.

 http://jakarta.apache.org/struts/doc-1.0.2/installation.html

 http://www.mail-archive.com/struts-user%40jakarta.apache.org/

 -- Ted Husted, Husted dot Com, Fairport NY US
 -- Developing Java Web Applications with Struts
 -- Tel: +1 585 737-3463
 -- Web: http://husted.com/about/services


 Jouanny wrote:
 
  Hello
 
  I'm working on Weblogic 6.1 using Struts 1.0.
 
  I'm making use of the method getPropertyDescriptor(Object object, 
String
  name_of_Field) of  the org/apache/struts/util/PropertyUtils class in 
order
  to get a java.beans.PropertyDescriptor.
 
  This PropertyDescriptor is used in a class which implements Interface
  java.util.Comparator in order to sort a  java.util.ArrayList with
  Collections.sort(List aList, Comparator aComparator);
 
  I get what is folowing :
 
  Servlet failed with Exception
  java.lang.NoClassDefFoundError: 
org/apache/struts/util/PropertyUtils
 
  struts.jar, which contains the org/apache/struts/util/PropertyUtils 
class,
  is in Web-inf/lib.
 
  --
  To unsubscribe, e-mail: 
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]  
ache.org

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


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




Re: message keys

2002-03-26 Thread Ted Husted

The bean message tag is tied to the application resources. For this to
work there must be an entry named url. There is not enough information
here to determine what you are trying to do. It's possible that you may
mean to use bean:write to access an url property on a bean that has been
passed to the page. 

http://www.tuxedo.org/~esr/faqs/smart-questions.html

For what you *may* be trying to do, html:rewrite/ may work. This would
let you define something like 

 forward 
name=url  
path=/assets/images// 

in the struts-config, and the use it on a page at runtime.

IMG src='html:rewrite name=url//home10-08-00/img/b_cvfut.gif'
width='93' height='56' border='0'

This is also a good way to cope with paths to stylesheets, Javascripts,
and other HTML assets.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Juan Alvarado (Struts List) wrote:
 
 I am trying to ouput the following:
 
 a href=http://some.website.com;img src=bean:message
 key=url//home10-08-00/img/b_cvfut.gif width=93 height=56
 border=0/a
 
 The problem is that the call to bean:message... returns nothing but plain
 text. I have even tried it with single quotes and no luck.
 
 If anybody knows a work around for this, please let me know.
 
 Thanks
 
 **
 Juan Alvarado
 Internet Developer -- Manduca Management
 (786)552-0504
 [EMAIL PROTECTED]
 AOL Instant Messenger: [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




I18N question

2002-03-26 Thread liquid

Hi!

In my application I have an enumeration called priority containg values
low, normal and high. At one point of the application the user can
enter the priority using a selection list. Localizing here works fine like
this:

html:select property=priorityhtml:option value=low 
key=priority.low/html:option value=normal 
key=priority.normal/html:option value=high 
key=priority.high//html:select/td

using a property file looking like this:

priority.low=Niedrig
priority.normal=Mittel
priority.high=Hoch

Like I said, this works perfectly well. But at another point of the application
the choosen priority should be displayed.
A simple
bean:write name=bean property=priority/ 
would display the not localized values low, normal or high, but ofcourse
I would like to have the localized strings Niedrig, Mittel, or Hoch to
be shown...

Any clues ?

thanks,

Gernot.



-
Kabelsignal AGWebmail
http://www.kabelsignal.at



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




Re: Struts Validator: Use of anchor tag

2002-03-26 Thread Ted Husted

You probably need to escape the quote character, either by using '' or
maybe \'

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

Struts Newsgroup (@Basebeans.com) wrote:
 
 Subject: Struts Validator: Use of anchor tag
 From: Arthur Frankel [EMAIL PROTECTED]
  ===
 Due to lots of fields on a form, I am trying to offer links within the error
 messages (using Struts Validator).   I would assume that I can do something
 like this,
 
 errors.date=A HREF='#{0}'{0}/A is not a date and must be in the format
 of {1}.
 
 but this just dumps out the A HREF as text on the page.
 
 Any ideas?
 
 Arthur.
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: FW: URL Probleme II

2002-03-26 Thread Ted Husted

What I do is have it redirect to a status page that can recall the
information from the model using a simple URL that I can pass with the
redirect. So the cashaction send the double to the database, stores, it
and the redirect goes to a page that displays the updated status
(including the double that you just sent). 

You might also be able to use tokens to be sure a duplicate request is
not submitted. 

http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/action/Action.html

Alternatively, you can use a session bean or cookie to persist the
information between requests. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


[EMAIL PROTECTED] wrote:
 hello everybody i have the followinfg problem and i have no idea to solve it
 I have an action called cashaction
 In my JSP i enter a double in a form then i submit it to the cashaction
 It called cashaction.do then forwarde to the home
 But in my browser the url is not home.jsp but cashaction.do so when i refresh
 the home it called an other time
 cashaction
 I try to set the redirect attribute to true it works but it made a sendredirect
 et so create a new request
 I so lost all the bean set in attribute of my request
 
 Can anyone help me ?
 
 Thanks for your help
 Best Regards
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: [STRUTS]: MAPPING configuration error for request URI

2002-03-26 Thread Ted Husted

The best thing might be to register it with bugzilla, and include a copy
of the configuration elements that might be generating the event. 

http://jakarta.apache.org/site/bugs.html

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Th Templ wrote:
 
 Hi,
 
 With struts 1.0.2 ( with jboss 2.2.4  tomcat 4.0.1), I have the following
 exception in the log of the server, but the action class work correctly (
 the datas are correctly shown! ). I don't see any errors in my struts-config
 file ( according to user guide and examples in distribution ).
 Has anyone already had this problem?
 Thanks for your help
 
 Extract of the server log:
 
 [18:12:55,261,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING
 configuration error for request URI
 [18:12:55,271,EmbeddedCatalinaServiceSX] HttpProcessor[80][3] process.invoke
 java.lang.NullPointerException
 at
 org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:280)
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:180)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
 at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
 at java.lang.Thread.run(Thread.java:484)
 
 _
 MSN Photos is the easiest way to share and print your photos:
 http://photos.msn.com/support/worldwide.aspx
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: The reset() and validate() in the form.

2002-03-26 Thread Ted Husted

http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_view.html

http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/action/ActionForm.html

http://jakarta.apache.org/struts/resources.html#tutorials

http://jakarta.apache.org/struts/resources.html#articles


-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Struts Newsgroup (@Basebeans.com) wrote:
 
 Subject: The reset() and validate() in the form.
 From: liudsm [EMAIL PROTECTED]
  ===
 hi ,i donn't know how the reset() and validate() method worked in the form .
 
 could you help me ?
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: Is there any problem using Struts in Cluster Environment

2002-03-26 Thread Ted Husted

The best people to consult regarding this would be Weblogic support. 

Most vendors consider Struts compatability a priority. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Boyalla, Raveendra wrote:
 
 Hi All,
 
 I am going to use my WAR file in Weblogic Cluster Environment.
 Is there any problem with Struts in Cluster.
 
 Thank you
 Raveendra Boyalla
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 26, 2002 3:22 PM
 To: [EMAIL PROTECTED]
 Subject: Re: How can I get rid of the port on redirects.
 
 This message uses a character set that is not supported by the Internet
 Service.  To view the original message content,  open the attached message.
 If the text doesn't display correctly, save the attachment to disk, and then
 open it using a viewer that can display the original character set.
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: html:link and additional parameters

2002-03-26 Thread Ted Husted

The best place to bring up whether a feature would be added would be the
DEV list or by registering an enhancement request on Bugzilla. 

Though, reliance on the order of parameters in a query string runs
counter to the HTML spec, where there is no guarantee in what order a
browser will submit the elements. 

There was a interesting post the other day regarding using a helper
servlet to transform exta path type query strings into conventional
query strings. The idea is a non-intrusive extension that would be
backwardly compatible.

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg26530.html

But, AFAIK, someone has to actually write it yet =:o)

If someone did write it, I'd be happy to make it available to the
community, either in the Struts distribution or in the Scaffold package
under Contrib.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services



Pedone, Tim wrote:
 
 I've got an app that uses the feature of the html:link tag to append
 additional parameters to the url.  Because we are not sure how different
 systems (browsers or proxy servers) will handle long query strings, we want
 to put the least significant parameter at the end of the query string so if
 a browser, or proxy server truncates the string, we will only lose that
 data.
 
 In order to do this I used a TreeMap to hold my key/value pairs.  The
 problem is that RequestUtils.computeParameters() uses the copy constructor
 HashMap(Map) so my sorted Map gets copied into an unsorted Map.  I was
 thinking about changing that method to use clone() instead so that the class
 of Map that is passed in is preserved.
 
 I don't want to use a custom version of Struts however so I wanted to know
 if a change like this would have any chance at getting into the 1.1 release.
 
 Thanks,
 
 Tim Pedone
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: Programmed Actions With Struts Applications

2002-03-26 Thread Andy Noble

I don't think there is a simple Struts mechanism for this. You will probably 
need to invoke a separate thread that monitors the time, and when you hit 
2:00am, you could invoke an action programmatically... having said that, I'm 
not sure why you would need the action to be a struts action, as there would 
not be a client involved.

Andy


From: Jose Carlos Rubia Raya [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Programmed Actions With Struts Applications
Date: Thu, 21 Mar 2002 16:48:00 +0100 (CET)

I'm developing an application with Struts and I need
that my application every night at 2:00AM executes an
action. That action consists in a query to the DB
and before it executes a serie of intruccions
depending of the data of the DB.
How can I made it?
I have no idea how to made it.

___
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

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



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




Beans Tutorial

2002-03-26 Thread Tarek M. Nabil

Hi everyone,

I'm new to Struts, and the first thing I learned was that Struts uses a lot of Java 
beans :)

I've done some server side Java development before, but I usually went for the 
spaghetti code method and when I needed to encapsualte any functionality outside of 
the JSP, I usually used normal Java classes. Now, that I want to improve my methods, 
and think Struts is a very good way to do it, I need to learn about Java beans. I 
checked the Java tutorial, but it seems that it is very much focused on beans as gui 
components. I'm not interested in this and I need a beans tutorial that is more 
inclined towards server side development. Can anyone guide me to such a tutorial?

Thanks in advance for your help :)

Tarek M. Nabil
Software Engineer
ITWorx
[EMAIL PROTECTED]
Free Zone, Area 7 (B),
Block (J), Nasr City,
Cairo, Egypt
TEL.: 20-2-2766226
http://www.itworx.com
 

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




RE: RES: Newbie Question - Please Helpme (Cannot find ActionMapping or...)

2002-03-26 Thread Javier Campoamor

Could be that you are having a compatibility problem. We had a similar
problem using Struts with Xalan in ServletExec. The problem was the version
of ServletExec that we used came with some xml tools (crimson.jar, jaxp.jar,
...) that conflicted with the xml tools used by Xalan (xerces.jar,
xml-apis.jar)
Due to this problem, the struts-config.xml wasn't parsed, and no mapping
could be found.

I'll suggest to be sure that your application is ok (use Tomcat) and then,
try it in JRun without xerces and jaxp.

Regards

Javier




 -Mensaje original-
 De: Ted Husted [mailto:[EMAIL PROTECTED]]
 Enviado el: martes 26 de marzo de 2002 14:02
 Para: Struts Users Mailing List
 Asunto: Re: RES: Newbie Question - Please Helpme (Cannot find
 ActionMapping or...)


 You might want to temporarily shift development to Tomcat or Resin, to
 help isolate the problem. Once you have something working there, take
 another run at JRun.

 I'd also consider contacting JRun support if you continue to have
 problems, since Struts compatability is something most vendors pursue
 these days.

 -- Ted Husted, Husted dot Com, Fairport NY US
 -- Developing Java Web Applications with Struts
 -- Tel: +1 585 737-3463
 -- Web: http://husted.com/about/services

 Gilson Nascimento D Elrei wrote:
 
 Thanks for your suggestions.
 I don't use data-sources/data-sources on my
 struts-config.xml cos
  my aplicattion doesn't acess a database (is it obligatory ?). Also tried
  Otavio's suggestion, about put all jars in WEB-INF/LIB directory but i
  didn't get successfully.
 The worse thing is that I can't  continue my development
 cos I didn't
  get execut it. :-(
 Any Ideas ?
 Thanks in advance.
 
 
   - Mensagem original -
   De:   Anant Sagar [SMTP:[EMAIL PROTECTED]]
   Enviada em:   terça-feira, 5 de março de 2002 10:41
   Para: Struts Users Mailing List
   Assunto:  Re: Newbie Question - Please Helpme (Cannot find
   ActionMapping or...)
  
   This usually happens due to improper setting of  Data Source
 Configuration
   (data-sources  /data-sources) in struts-config.xml file.
   Check whether driverClass ,url,user,password entered are correctly .
   Hope that may help you.
  
   Sagar
  
  
   - Original Message -
   From: Otavio C. Decio [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Friday, March 22, 2002 6:56 PM
   Subject: Re: Newbie Question - Please Helpme (Cannot find
 ActionMapping
   or...)
  
  
Just a suggestion, put all the jars that come with struts under your
web-inf\lib directory, including the commons*.
   
Abracos
   
Otavio
   
- Original Message -
From: Gilson Nascimento D Elrei [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 22, 2002 8:16 AM
Subject: Newbie Question - Please Helpme (Cannot find ActionMapping
   or...)
   
   
   I'm receiving this error when I try to
 execute my
  application (http://localhost:8100/helpdev/jsp/LoginView.jsp) on JRUN.
javax.servlet.jsp.JspException: Cannot
  find ActionMappings or ActionFormBeans collection
  I have verified my WEB.XML  and
 STRUTS-CONFIG.XML
  files and I didn't find error.
  I think that STRUTS doesn't get to find
 the path for
  STRUTS-CONFIG.XML.  LoginAction.java  LoginView.jsp
  Below is my structure directory configuration.
  HelpDev is my WEBAPP container for my
 application.
  HELPDEV
   |
   +-JSP
   |  |
   |  .-- LoginView.JSP
  --  Main Program
   |  .-- MainMenu.JSP
   |
   +-WEB-INF:.
  |
  +---LIB
  | |
  |
  .--structs.jar
  |
  .--xerces.jar
  |
  .--jaxp.jar
  |
  .--parse.jar
  |
  +---CLASSES
  | |
  |
  +---TEST
  |
  |
  |
  +--STRUTS
  |
  . LoginAction.class
  |
  . LoginBean.class

How to iterate in this case??

2002-03-26 Thread Konstantina Stamopoulou

Hello,
I need to implement the following and I have reached a dead end. Can you help me?
I have the some data in my .xml described below:
 
node name=dir1 
child name=file1 link=/dir1/file1/
child name=file2 link=/dir1/file2/
node name=dir2
child name=file3 link=/dir1/dir2/file3/
child name=file4 link=/dir1/dir2/file4/
 node name=dir3/
 /node
 node name=dir4
child name=file5 link=/dir1/dir4/file5/
 /node
   
/node

which represents the  information:

  RootDir
 |___dir1
|__file1
|__file2
|__dir2
||__file3
||__file4
||__dir3
|__dir4
|__file5


I have a bean that holds the directories under root dir and the set of directories 
under each dir. My question is:
How should I use the logic:iterate or nested:iterate  tag in order to construct 
the tree that I have just described?
Any ideas? Should I change the way I have constructed my .xml file?


Thank you,
Konstantina



Protecting Actions in Strut 1.1 - Authorization of Actions

2002-03-26 Thread Ronald Hulen

Looking at the javadoc of the ActionConfig.java class, I see a roleNames
array property.  It appears that the RequestProcessor.processRoles()
looks at this list of roleNames to see if a user's role is contained in
this list.  

But I don't see in the struts-config_1_1.dtd any way of adding roles to
actions.  How is this accomplished.  Do I need to protect these
resources in the web.xml as specified in the Servlet 2.2 API?


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




Re: I18N question

2002-03-26 Thread liquid

Ok, sorry for posting before having thought hard enough ;-)

At least i found a solution:

logic:equal name=bean property=priority value=lowbean:message 
key=priority.low//logic:equal
logic:equal name=bean property=priority value=normalbean:message 
key=priority.normal//logic:equal
logic:equal name=bean property=priority value=highbean:message 
key=priority.high//logic:equal

but still, there might be a more elegant way...

 Hi!
 
 In my application I have an enumeration called priority containg values
 low, normal and high. At one point of the application the user can
 enter the priority using a selection list. Localizing here works fine like
 this:
 
 html:select property=priorityhtml:option value=low 
 key=priority.low/html:option value=normal 
 key=priority.normal/html:option value=high 
 key=priority.high//html:select/td
 
 using a property file looking like this:
 
 priority.low=Niedrig
 priority.normal=Mittel
 priority.high=Hoch
 
 Like I said, this works perfectly well. But at another point of the 
application
 the choosen priority should be displayed.
 A simple
 bean:write name=bean property=priority/ 
 would display the not localized values low, normal or high, but ofcourse
 I would like to have the localized strings Niedrig, Mittel, or Hoch to
 be shown...
 
 Any clues ?
 
 thanks,
 
 Gernot.
 
 
 
 -
 Kabelsignal AGWebmail
 http://www.kabelsignal.at
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


-
Kabelsignal AGWebmail
http://www.kabelsignal.at



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




Re: Tiles question: Is it possible to insert a ComponentDefinition into a Tile context dynamically?

2002-03-26 Thread Cedric Dumoulin


  Yes and no ;-)
  No, this is not a feature directly supported by Tiles
  Yes, as you have sources, and you know which definition factory you use, you
can add directly a definition to the factory.
   How : create definition, retrieve the factory from context, cast it to its
real implementation, use available methods to add definition.
  This added definition will be available from all your application. Be care to
not overwrite an existing definition !

Cedric

Chris Cool wrote:

 Hello, Cedric:

 Thank you for responding to my question.

 As you stated, I can add/overload an attribute in the current context.
 Specifically, I am adding a new item to an existing list. However, each item
 in the list is the key to a Tile definition. Most of the definitions are in
 the XML file, but I want to add a new Tile definition dynamically so that
 the new item in the list is a reference to the new Tile definition. Is this
 possible?

 Thanks again,

 Chris

 -Original Message-
 From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 25, 2002 10:29 AM
 To: Struts Users Mailing List
 Subject: Re: Tiles question: Is it possible to insert a
 ComponentDefinition into a Tile context dynamically?

   Hello,

   If you are in a tile controller, you don't have to create a new
 ComponentDefinition, you can set the attributes of the current tiles
 (because you
 are in the controller).
   To add / overload an attribute in the context, do something like :
   String attribute = (String)context.getAttribute(attributeName);
   attribute = new value;
   context.setAttribute(attributeName, attribute);

   To add a list, create the list, add elements, and add the list to context.
   You can overload a previously defined list. Do not modify content of an
 existing list, because it is shared between inherited instances. :

List list = new java.util.ArrayList();
   list.add( a value );
   list.add( another value);
   context.setAttribute(listAttributeName, list);

   Hope this help,

 Cedric

 P.S. :
 The DefinitionsUtil.setActionDefinition( aDefinition ); is to be used when
 you
 are inside a Struts action called by Struts mechanism.
   It has not effect when used inside a tile controller
 Chris Cool wrote:

  Hi,
 
  I have a tile that reads items from a PutList list and then inserts each
  item into the current page.
 
 struts_logic:iterate id=item name=itemList scope=page
  type=String
 tiles:insert name='%=item%' flush=true/
 /struts_logic:iterate
 
  When the items in the list are tiles defined in my tileDefinitions.xml
 file,
  the tiles are inserted into my JSP correctly. However, I want to
 dynamically
  create a tile definition and insert it into the page context.
 
  I am generating the ComponentDefinition in my tile controller and
 accessing
  the itemList where I add the name of the dynamically generated
 definition:
 
/* get the item list and insert new tile def into it */
ArrayList itemList = (ArrayList)context.getAttribute(itemList);
if (itemList != null) {
 
  HashMap map = new HashMap();
  map.put(name, newtarget);
  map.put(link, newtarget.do);
 
  ComponentDefinition newItem =
  new ComponentDefinition(new.item,
/mytiles/simpleItem.jsp,
  map);
 
  DefinitionsUtil.setActionDefinition( request, breadCrumbItem );
  itemList.add(new.item);
}
 
  In my tile, the itemList contains the new.item entry, but it does not
  appear to find the ComponentDefinition I created.
 
  Thanks for you help.
 
  Chris
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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

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


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




RE: Help with: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null

2002-03-26 Thread mike . witt

Problem fixed!  

Dave,

Your suggestion that I send the jsp file was enough for me to look it over
in a different light and realize that even though I was using html:form
for one of my forms, the other form I was still using form ...

Amazing what the threat of public exposure will do isn't it?

Thanks, Mike

-Original Message-
From: Dave J Dandeneau [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 10:00 AM
To: Struts Users Mailing List
Subject: RE: Help with: Cannot find bean
org.apache.struts.taglib.html.BEAN in scope null


What does the jsp look like?

dave

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 9:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Help with: Cannot find bean
org.apache.struts.taglib.html.BEAN in scope null


Annie,

The struts.jar is already in \WEB-INF\lib.  I have other actions which
proceed this one that work just fine.  I even have other html tags in this
jsp which seem to work ok.  For example, I have a html:form which is
accepted.  But as soon as I put in the html:text with the property
attribute to refer to one of my form bean attributes, it gets the error.

Thanks,

Mike

-Original Message-
From: Annie Chang [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:18 AM
To: Struts Users Mailing List
Subject: Re: Help with: Cannot find bean
org.apache.struts.taglib.html.BEAN in scope null


Please make sure Struts lib(all the jar file) are in your application's
classpath.
Simply, you can copy all jar files of Struts to your application's
\WEB-INF\lib .
It should be OK.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 24, 2002 8:35 PM
Subject: Help with: Cannot find bean org.apache.struts.taglib.html.BEAN in
scope null


 I'm getting an error (Cannot find bean org.apache.struts.taglib.html.BEAN
in
 scope null) when I attempt to use one of my ActionForm properties in the
JSP
 file.  I've looked the struts-config.xml over 100 times and I can't figure
 out what I'm doing wrong.  Here are the pertinent portions of my
 struts-config.xml.  If anyone sees my problem, I would appreciate some
help.
 Form bean:
 form-bean name=pharmacyPeriodSelectForm
 type=com.omnicare.purchasing.araging.webapp.PharmacyPeriodSelectForm /
 Action path:
 !-- Enter the region name --
 action path=/regionEntry
 name=pharmacyPeriodSelectForm

 type=com.omnicare.purchasing.araging.webapp.PharmacyPeriodSelectAction
 scope=request
 validate=false
 input=/pages/AR_pharmacy_period.jsp
 parameter=regionEntry
   forward name=success path=/pages/AR_pharmacy_period.jsp /
 /action
 The PharmacyPeriodSelectAction executes fine.  When I return the success
 forward, I get the error.
 Thanks for your help, Mike Witt
 The full error message is:
 javax.servlet.ServletException: Cannot find bean
 org.apache.struts.taglib.html.BEAN in scope null
 at

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
 l.java:459)
 at

pages._0002fpages_0002fAR_0005fpharmacy_0005fperiod_0002ejspAR_0005fpharmacy

_0005fperiod_jsp_29._jspService(_0002fpages_0002fAR_0005fpharmacy_0005fperio
 d_0002ejspAR_0005fpharmacy_0005fperiod_jsp_29.java:167)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
 va:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:282)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at

org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
 pl.java:222)
 at

org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
 .java:162)
 at

org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
 va:1758)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
 at
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
 2)
 at
 

Problems with optionsCollection tag and Weblogic 6.1

2002-03-26 Thread Marcelo Vanzin


Hello there,

I've started to use Struts 1.1, and one of the things I was testing was 
the html:optionsCollection tag, to replace one we coded here (based on 
html:options) that did the same thing.

Everything worked fine when testing in Tomcat, but when running our JSPs 
in Weblogic (6.1 sp1) something realy strange happens.

The first time the tag is called, it works fine. But if you call it a 
second time in the same page, it fails with an exception:

javax.servlet.jsp.JspException: Cannot find bean null in scope null
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:692)
at 
org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:217)

I have a page with 4 calls to this tag, and it always fails in the second 
call. If I comment the 1st one, then it will fail on the 3rd (and the 
one that previously caused the exception will render fine).

I've taken a look at the tag code, and it does not seem to have anything 
unusual, so I think this is an issue with Weblogic.

Has anyone seen this behaviour, and has some idea of a workaround?

(We're struggling to install sp2 now, maybe when we manage to install it 
this bug may be fixed, who knows...)

-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
Life is too short to drink cheap beer


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




Is anyone else having trouble with Tomcat 4?

2002-03-26 Thread mike . witt

Everytime I try to switch a webapp to Tomcat 4, I get exceptions.  Since it
works on Tomcat 3 I usually just switch back and don't investigate too much.
So, I'm just wondering if anyone else has these problems, and if so
...what's the problem?

The most common exception I see is:

2002-03-24 00:52:09 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:1
59)
at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:166)
at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:158)
at
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205)
at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:176)
at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFacto
ryImpl.java:198)
at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.j
ava:193)
at org.apache.jsp.welcome$jsp._jspService(welcome$jsp.java:149)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)

Thanks, Mike Witt

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




RE: Using Struts with Websphere 4

2002-03-26 Thread Dave J Dandeneau

Make sure that you have the latest efixes from IBM. We ran into a performance problem 
with taglibs that was fixed in an efix. It wasn't a struts bug, but more of a 
websphere bug. Also, beware that there is a problem with null values and the string 
buffer in the JDK that websphere 4 uses. Some taglibs will actually spits out 'null' 
when no value is present. This bug has been fixed in the nightly build, but I don't 
think that there is a 1.0.x version that contains the fix. 

thanks,
dave

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 3:35 AM
To: Struts Users Mailing List
Subject: Using Struts with Websphere 4


Hi

is there any known problem for using Struts 1.0.2 on webshpere 4 ?

I'd like to use struts framework on a starting project, as the first use off
it in my company, and so I'd like to demonstrate to my project manager the
quality of opensource software and power off forum support.

bye


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


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




struts get and set methods in formbeans

2002-03-26 Thread Jose Casas

Hello,

I got a question about the get and set methods in the form beans.  Does the
get or set method need to have the name of the member variable in it?
For example, if I have a member variable named userPassword do I have to
have a get/set method called getuserPassword/setuserPassword or can I put
getPassword/setPassword.  I guess what I'm asking is does the variable have
to appear exactly the same in the get/set method.

Thank you.



**
This email and any files transmitted with it are confidential
and intended solely for the individual or entity to 
whom they are addressed.  If you have received this email
in error destroy it immediately.
**


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




RE: Problems with optionsCollection tag and Weblogic 6.1

2002-03-26 Thread Arnaud Heritier

I didn't watch the code but the difference between tomcat and weblogic is that 
weblogic reuse the taglibraries in the same page.
Tomcat create a new TagClass for each tag instance while Weblogic reuse the first 
instance and call the release method.

This method should reinit all default values in the release method.
I'm using struts 1.0.2 with WLS 6.1 SP2 and i don't have any problem.
But I know that there's a lot of bug in WLS 6.1.

arnaud

 -Message d'origine-
 De:   Marcelo Vanzin [SMTP:[EMAIL PROTECTED]]
 Date: mardi 26 mars 2002 15:32
 A:Struts Users
 Objet:Problems with optionsCollection tag and Weblogic 6.1
 
 
   Hello there,
 
   I've started to use Struts 1.1, and one of the things I was testing was 
 the html:optionsCollection tag, to replace one we coded here (based on 
 html:options) that did the same thing.
 
   Everything worked fine when testing in Tomcat, but when running our JSPs 
 in Weblogic (6.1 sp1) something realy strange happens.
 
   The first time the tag is called, it works fine. But if you call it a 
 second time in the same page, it fails with an exception:
 
 javax.servlet.jsp.JspException: Cannot find bean null in scope null
 at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:692)
 at 
 
org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:217)
 
   I have a page with 4 calls to this tag, and it always fails in the second 
 call. If I comment the 1st one, then it will fail on the 3rd (and the 
 one that previously caused the exception will render fine).
 
   I've taken a look at the tag code, and it does not seem to have anything 
 unusual, so I think this is an issue with Weblogic.
 
   Has anyone seen this behaviour, and has some idea of a workaround?
 
   (We're struggling to install sp2 now, maybe when we manage to install it 
 this bug may be fixed, who knows...)
 
 -- 
 []'s
 Marcelo Vanzin
 Touch Tecnologia
 [EMAIL PROTECTED]
 Life is too short to drink cheap beer
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




RE: How to use one image as submit button?

2002-03-26 Thread Leonardo Maciel
html:img page="/image/ok.gif" name="save" /

-Original Message-
From: Laker,Nan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 6:44 AM
To: Struts Users Mailing List
Subject: How to use one image as submit button?


Hi all,
i want to use one image as submit button.
in jsp file,i code the following:

html:submit property="save" 
img page="/image/ok.gif"/
   /html:submit


but while executing,generated the following source code:

input type="submit" name="save" value="img page="/image/ok.gif"/"


so,it cannot display normally.

how to solve the problem?


Thanks in advance


Laker

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


AW: struts get and set methods in formbeans

2002-03-26 Thread Oliver Reflé

Yes it has to be the same, if you have test you have to implement
getTest() and setTest()

-Ursprüngliche Nachricht-
Von: Jose Casas [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. März 2002 15:42
An: 'Struts Users Mailing List'
Betreff: struts get and set methods in formbeans


Hello,

I got a question about the get and set methods in the form beans.  Does the
get or set method need to have the name of the member variable in it?
For example, if I have a member variable named userPassword do I have to
have a get/set method called getuserPassword/setuserPassword or can I put
getPassword/setPassword.  I guess what I'm asking is does the variable have
to appear exactly the same in the get/set method.

Thank you.



**
This email and any files transmitted with it are confidential
and intended solely for the individual or entity to
whom they are addressed.  If you have received this email
in error destroy it immediately.
**


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


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




Re: Off Topic how to download mirror of web site

2002-03-26 Thread Slimane Zouggari

Hi,

if I understood right, what you're looking for is an offline browser...
Among a lot of them, one of the most famous (under window$) is Teleport Pro 
(http://www.tenmax.com/teleport/home.htm)

You can find a lot of other offline browser on tucows (eg.: 
http://tucows.skynet.be/offline95.html)

Friendly Regards,
Slimane

At 03:10 26/03/2002 -0800, you wrote:
Subject: Off Topic how to download mirror of web site
From: David Bolsover [EMAIL PROTECTED]
  ===
Hi

Sorry - off topic - but I'm sure some at least someone in the group may have
a solution.

A client has asked me to produce an 'off-line' copy of his static web site -
lnks go down at least 6 levels.

If it were possible I would just get ftp access and download the lot - but
time and the effort of liaison with 5 subsidiary company webmasters
prevents.

Does anyone have - or know of a utility that will allow me to retrieve the
contents of a site and organise the data in a sensible fashion?

I'm sure I could write the code myself - parse the pages, follow the links
etc - but I'm lazy - can anyone help.

Promise - struts related QA next :-).

David Bolsover
[EMAIL PROTECTED]



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


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




RE: Problems with optionsCollection tag and Weblogic 6.1

2002-03-26 Thread Arnaud Heritier

I don't know if it is the source of the problem but in struts 1.1 B1 the code of 
OptionsCollectionTag is initialized with :

protected String label = label;
protected String name = Constants.BEAN_KEY;
protected String property = null;
private String style = null;
private String styleClass = null;
protected String value = value;

but the release method defines :

label = null;
name = null;
property = null;
style = null;
styleClass = null;
value = null;

so label, name and value don't have their default values.

it can produce the error.


Do you used the name and value attributes in the tag 


Arnaud 

 -Message d'origine-
 De:   Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
 Date: mardi 26 mars 2002 15:42
 A:'Struts Users Mailing List'
 Objet:RE: Problems with optionsCollection tag and Weblogic 6.1
 
 I didn't watch the code but the difference between tomcat and weblogic is that 
weblogic reuse the taglibraries in the same page.
 Tomcat create a new TagClass for each tag instance while Weblogic reuse the first 
instance and call the release method.
 
 This method should reinit all default values in the release method.
 I'm using struts 1.0.2 with WLS 6.1 SP2 and i don't have any problem.
 But I know that there's a lot of bug in WLS 6.1.
 
 arnaud
 
  -Message d'origine-
  De: Marcelo Vanzin [SMTP:[EMAIL PROTECTED]]
  Date:   mardi 26 mars 2002 15:32
  A:  Struts Users
  Objet:  Problems with optionsCollection tag and Weblogic 6.1
  
  
  Hello there,
  
  I've started to use Struts 1.1, and one of the things I was testing was 
  the html:optionsCollection tag, to replace one we coded here (based on 
  html:options) that did the same thing.
  
  Everything worked fine when testing in Tomcat, but when running our JSPs 
  in Weblogic (6.1 sp1) something realy strange happens.
  
  The first time the tag is called, it works fine. But if you call it a 
  second time in the same page, it fails with an exception:
  
  javax.servlet.jsp.JspException: Cannot find bean null in scope null
  at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:692)
  at 
  
org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:217)
  
  I have a page with 4 calls to this tag, and it always fails in the second 
  call. If I comment the 1st one, then it will fail on the 3rd (and the 
  one that previously caused the exception will render fine).
  
  I've taken a look at the tag code, and it does not seem to have anything 
  unusual, so I think this is an issue with Weblogic.
  
  Has anyone seen this behaviour, and has some idea of a workaround?
  
  (We're struggling to install sp2 now, maybe when we manage to install it 
  this bug may be fixed, who knows...)
  
  -- 
  []'s
  Marcelo Vanzin
  Touch Tecnologia
  [EMAIL PROTECTED]
  Life is too short to drink cheap beer
  
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




Javascript problem referencing nested form fields

2002-03-26 Thread Frederico Schuh

I'm using nested beans inside my ActionForms, and thus
I have to reference those bean properties with dots
(like address.number) in the JSP file. So, the
generated HTML would be something like this:

form name=myForm action=/something.do
   input type=text name=address.number
/form

The problem is that I can't find a way to reference
those form fields if I want to do some javascript
validation. If I do something like
document.forms[0].address.number it doesn't work.
How do I do it?


=

Frederico Ferro Schuh
[EMAIL PROTECTED]
ICQ: 20486081

___
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos 
e tenha acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/

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




Re: Problems with optionsCollection tag and Weblogic 6.1

2002-03-26 Thread Marcelo Vanzin

Arnaud Heritier wrote:
 but the release method defines :
 
 label = null;
 name = null;
 property = null;
 style = null;
 styleClass = null;
 value = null;

Hmmm, I guess this is something that needs to be fixed. :-) I think I 
missed this in the code...

 Do you used the name and value attributes in the tag 

I use property but not name, so when the name is set to null I am 
screwed... thanks for the help!!!

Have you warned the taglib developers about it? (I'll be building Struts 
1.1b with this fix for internal use.)

-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
Life is too short to drink cheap beer


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




Re: Struts Validator: Use of anchor tag

2002-03-26 Thread @Basebeans.com

Subject: Re: Struts Validator: Use of anchor tag
From: Arthur Frankel [EMAIL PROTECTED]
 ===
Got it:

Use filter=false in the bean:write of the error


Arthur Frankel [EMAIL PROTECTED] wrote in message
news:a7d0l7$4ci$[EMAIL PROTECTED]...
 Due to lots of fields on a form, I am trying to offer links within the
error
 messages (using Struts Validator).   I would assume that I can do
something
 like this,

 errors.date=A HREF='#{0}'{0}/A is not a date and must be in the format
 of {1}.


 but this just dumps out the A HREF as text on the page.

 Any ideas?

 Arthur.





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




Re: AW: struts get and set methods in formbeans

2002-03-26 Thread Jim Crossley

I don't think that's correct.  As long as you refer to the password
property in your JSP, you may use getPassword/setPassword, regardless
of the name of the data member they encapsulate.

In other words, it's not the name of the private data member that
determines the names of your public accessors.  It's the name used in
your JSP's.

-- Jim

Oliver Reflé [EMAIL PROTECTED] writes:

 Yes it has to be the same, if you have test you have to implement
 getTest() and setTest()
 
 -Ursprüngliche Nachricht-
 Von: Jose Casas [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 26. März 2002 15:42
 An: 'Struts Users Mailing List'
 Betreff: struts get and set methods in formbeans
 
 
 Hello,
 
 I got a question about the get and set methods in the form beans.  Does the
 get or set method need to have the name of the member variable in it?
 For example, if I have a member variable named userPassword do I have to
 have a get/set method called getuserPassword/setuserPassword or can I put
 getPassword/setPassword.  I guess what I'm asking is does the variable have
 to appear exactly the same in the get/set method.
 
 Thank you.
 
 
 
 **
 This email and any files transmitted with it are confidential
 and intended solely for the individual or entity to
 whom they are addressed.  If you have received this email
 in error destroy it immediately.
 **
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




returning the selected value from an html:select

2002-03-26 Thread josef richberg

I have the following code snippet: 
bean:define id=vendornames name=ProdAddForm
property=vname
type=java.util.Collection/

then below 
html:select property=vname
html:options collection=vendornames
property=value  labelProperty=label/
/html:select

I have a getter method in my Action form: 
 public Collection getVname(){
return new DBAccess().getVendorNames();
 }

The problem is if I try to set the result of the
selection via this method in the action form: 
 public void setVname(String value){
   xx
 }

it errors with: No getter method for property vname of
bean ProdAddForm 
How do I retrieve the lone value of the select? 
--josef


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: Problems with optionsCollection tag and Weblogic 6.1

2002-03-26 Thread Arnaud Heritier

It's done Marcelo

===

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7485.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7485

Bad release of tag html:optionsCollection

   Summary: Bad release of tag html:optionsCollection
   Product: Struts
   Version: 1.1 Beta 1
  Platform: All
   URL: http://www.mail-archive.com/struts-
user%40jakarta.apache.org/msg26926.html
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Custom Tags
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The use of the optionsCollection tag with Weblogic produces errors.
The problem should be in the release method.

OptionsCollectionTag is initialized with :

protected String label = label;
protected String name = Constants.BEAN_KEY;
protected String property = null;
private String style = null;
private String styleClass = null;
protected String value = value;

but the release method defines :

label = null;
name = null;
property = null;
style = null;
styleClass = null;
value = null;

so label, name and value don't have their default values.



 -Message d'origine-
 De:   Marcelo Vanzin [SMTP:[EMAIL PROTECTED]]
 Date: mardi 26 mars 2002 16:05
 A:Struts Users Mailing List
 Objet:Re: Problems with optionsCollection tag and Weblogic 6.1
 
 Arnaud Heritier wrote:
  but the release method defines :
  
  label = null;
  name = null;
  property = null;
  style = null;
  styleClass = null;
  value = null;
 
   Hmmm, I guess this is something that needs to be fixed. :-) I think I 
 missed this in the code...
 
  Do you used the name and value attributes in the tag 
 
   I use property but not name, so when the name is set to null I am 
 screwed... thanks for the help!!!
 
   Have you warned the taglib developers about it? (I'll be building Struts 
 1.1b with this fix for internal use.)
 
 -- 
 []'s
 Marcelo Vanzin
 Touch Tecnologia
 [EMAIL PROTECTED]
 Life is too short to drink cheap beer
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




Installation on OS-390 and Websphere 3.5.3: 503 Error

2002-03-26 Thread Steven Banks

I am having problem running a Struts Application on the OS/390.  The web application 
starts up correctly, but when I load any URL for the Web App, the message 503 Error 
Application is currently unavailable for service is displayed.

I am following the directions as per configuring Struts for WAS 3.5 on OS/390.  
Currently we are not using the struts jar, but have been compiling the code and then 
restarting the web application with many additional System.out.println messages.  We 
found some problems with the classpath and picking up the wrong SAX parser, but it is 
now correct.

I noticed in the installation notes for struts on WAS on windows 2000 mentions that if 
you get this message, you should restart the web application and tried to do that, but 
was told you cannot restart an individual web application on the mainframe version of 
WAS.

We have changed all permissions in the web site to 777 and have double checked that 
the myapp.webapp file is stored in EBCDIC.


Any help would be appreciated.



Steven Banks
902-368-0566


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




Re: Javascript problem referencing nested form fields

2002-03-26 Thread Arron Bates

This one is scheduled for a tips page someplace. I'm adding it to my 
site, but Struts home page should have one... anyways, onto the real 
topic

As you already know, the dot notation is getting in the way and messing 
up JavaScript document object model.

For the field you want, use...

document.forms[0][address.number]

...so to alert it's value...

document.forms[0][address.number].value

...to pull focus...

document.forms[0][address.number].focus()

You get the idea. All it needs is a string. So the following is the same 
and makes things handy...

var myVar = addrss.number
document.forms[0][myVar]

And naturally you can access and field in this way to make your scripts 
run on a standard.

Implications: none. it's cross browser. So go play :)


Arron.


Frederico Schuh wrote:

I'm using nested beans inside my ActionForms, and thus
I have to reference those bean properties with dots
(like address.number) in the JSP file. So, the
generated HTML would be something like this:

form name=myForm action=/something.do
   input type=text name=address.number
/form

The problem is that I can't find a way to reference
those form fields if I want to do some javascript
validation. If I do something like
document.forms[0].address.number it doesn't work.
How do I do it?


=

Frederico Ferro Schuh
[EMAIL PROTECTED]
ICQ: 20486081

___
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos 
e tenha acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/

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





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




Re: returning the selected value from an html:select

2002-03-26 Thread Jim Crossley

In your formbean, you need to distinguish between the value selected
and the values able to be selected.  You've accounted for the latter.
You need another method to account for the former.  The property
referred to in your bean:define (returning a Collection) should not be
the same property referred to in your html:select that returns a
String.

-- Jim

josef richberg [EMAIL PROTECTED] writes:

 I have the following code snippet: 
 bean:define id=vendornames name=ProdAddForm
 property=vname
 type=java.util.Collection/
 
 then below 
 html:select property=vname
 html:options collection=vendornames
 property=value  labelProperty=label/
 /html:select
 
 I have a getter method in my Action form: 
  public Collection getVname(){
 return new DBAccess().getVendorNames();
  }
 
 The problem is if I try to set the result of the
 selection via this method in the action form: 
  public void setVname(String value){
xx
  }
 
 it errors with: No getter method for property vname of
 bean ProdAddForm 
 How do I retrieve the lone value of the select? 
 --josef
 
 
 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards®
 http://movies.yahoo.com/
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: returning the selected value from an html:select

2002-03-26 Thread josef richberg

That I understand.  What I don't understand is how to
do that.  How can I reference the value chosen in the
select?  The id is tied to the bean.  

--josef
--- Jim Crossley [EMAIL PROTECTED] wrote:
 In your formbean, you need to distinguish between
 the value selected
 and the values able to be selected.  You've
 accounted for the latter.
 You need another method to account for the former. 
 The property
 referred to in your bean:define (returning a
 Collection) should not be
 the same property referred to in your html:select
 that returns a
 String.
 
 -- Jim
 
 josef richberg [EMAIL PROTECTED] writes:
 
  I have the following code snippet: 
  bean:define id=vendornames name=ProdAddForm
  property=vname
  type=java.util.Collection/
  
  then below 
  html:select property=vname
  html:options collection=vendornames
  property=value  labelProperty=label/
  /html:select
  
  I have a getter method in my Action form: 
   public Collection getVname(){
  return new DBAccess().getVendorNames();
   }
  
  The problem is if I try to set the result of the
  selection via this method in the action form: 
   public void setVname(String value){
 xx
   }
  
  it errors with: No getter method for property
 vname of
  bean ProdAddForm 
  How do I retrieve the lone value of the select? 
  --josef
  
  
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards®
  http://movies.yahoo.com/
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




Re: Javascript problem referencing nested form fields

2002-03-26 Thread SUPRIYA MISRA

I had the similar problem fixed by using
script
document.Form.elements[address.number].value=0.0;
/script


From: Arron Bates [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Javascript problem referencing nested form fields
Date: Wed, 27 Mar 2002 02:20:10 +1100

This one is scheduled for a tips page someplace. I'm adding it to my
site, but Struts home page should have one... anyways, onto the real
topic

As you already know, the dot notation is getting in the way and messing
up JavaScript document object model.

For the field you want, use...

document.forms[0][address.number]

...so to alert it's value...

document.forms[0][address.number].value

...to pull focus...

document.forms[0][address.number].focus()

You get the idea. All it needs is a string. So the following is the same
and makes things handy...

var myVar = addrss.number
document.forms[0][myVar]

And naturally you can access and field in this way to make your scripts
run on a standard.

Implications: none. it's cross browser. So go play :)


Arron.


Frederico Schuh wrote:

I'm using nested beans inside my ActionForms, and thus
I have to reference those bean properties with dots
(like address.number) in the JSP file. So, the
generated HTML would be something like this:

form name=myForm action=/something.do
   input type=text name=address.number
/form

The problem is that I can't find a way to reference
those form fields if I want to do some javascript
validation. If I do something like
document.forms[0].address.number it doesn't work.
How do I do it?


=

Frederico Ferro Schuh
[EMAIL PROTECTED]
ICQ: 20486081

___
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no 
Yahoo! Empregos e tenha acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/

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





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





_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re-Selecting a combo box entry???

2002-03-26 Thread jeffhaenn

What Im doing:
Validating a form with a combobox.

Problem:
If there was an error, I need to re-select the values 
that the user selected, when I display the page again.

Question:
What is the syntax for this?  I looked through the 
source code for the SelectTag and they have a method 
called isMatched(String), that appears to do this, but 
it never seems to be called.  By the way, for now, I am 
using the same strings for 'labels' and 'values'.

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




Re: Struts Validator: Use of anchor tag

2002-03-26 Thread David Winterfeldt

I think there is an issue with using single quotes
inside error messages and variables in JavaScript.  Or
it might have been just variables.  You should
definitely be able to escape a double quote though if
you have any problems with the single quote.
-
David

--- Ted Husted [EMAIL PROTECTED] wrote:
 You probably need to escape the quote character,
 either by using '' or
 maybe \'
 
 -- Ted Husted, Husted dot Com, Fairport NY US
 -- Developing Java Web Applications with Struts
 -- Tel: +1 585 737-3463
 -- Web: http://husted.com/about/services
 
 Struts Newsgroup (@Basebeans.com) wrote:
  
  Subject: Struts Validator: Use of anchor tag
  From: Arthur Frankel [EMAIL PROTECTED]
   ===
  Due to lots of fields on a form, I am trying to
 offer links within the error
  messages (using Struts Validator).   I would
 assume that I can do something
  like this,
  
  errors.date=A HREF='#{0}'{0}/A is not a date
 and must be in the format
  of {1}.
  
  but this just dumps out the A HREF as text on
 the page.
  
  Any ideas?
  
  Arthur.
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: returning the selected value from an html:select

2002-03-26 Thread Chris Cool

Hi, Josef:

The way I handle it is to have three properties in my action form:

1. priority is the value that will be set in action form when the html for
is submitted.
2. priorityIds is the list of possible values that will be submitted for the
priority.
3. priorityLabels is the list of Strings that appear in the select.

  struts_html:select name=JobForm property=priority
struts_html:options name=JobForm
 property=priorityIds
 labelName=JobForm
 labelProperty=priorityLabels/
  /struts_html:select

Hope this helps.

Chris



-Original Message-
From: josef richberg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 10:34 AM
To: Struts Users Mailing List
Subject: Re: returning the selected value from an html:select


That I understand.  What I don't understand is how to
do that.  How can I reference the value chosen in the
select?  The id is tied to the bean.  

--josef
--- Jim Crossley [EMAIL PROTECTED] wrote:
 In your formbean, you need to distinguish between
 the value selected
 and the values able to be selected.  You've
 accounted for the latter.
 You need another method to account for the former. 
 The property
 referred to in your bean:define (returning a
 Collection) should not be
 the same property referred to in your html:select
 that returns a
 String.
 
 -- Jim
 
 josef richberg [EMAIL PROTECTED] writes:
 
  I have the following code snippet: 
  bean:define id=vendornames name=ProdAddForm
  property=vname
  type=java.util.Collection/
  
  then below 
  html:select property=vname
  html:options collection=vendornames
  property=value  labelProperty=label/
  /html:select
  
  I have a getter method in my Action form: 
   public Collection getVname(){
  return new DBAccess().getVendorNames();
   }
  
  The problem is if I try to set the result of the
  selection via this method in the action form: 
   public void setVname(String value){
 xx
   }
  
  it errors with: No getter method for property
 vname of
  bean ProdAddForm 
  How do I retrieve the lone value of the select? 
  --josef
  
  
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards(r)
  http://movies.yahoo.com/
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards(r)
http://movies.yahoo.com/

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

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




Re: Struts Validator: Use of anchor tag

2002-03-26 Thread David Winterfeldt

My last e-mail about the issue with single quotes was
referring to the JavaScript part of the Struts
Validator.  The filter=false is the way to go
rendering the html.

David

--- Struts Newsgroup [EMAIL PROTECTED] wrote:
 Subject: Re: Struts Validator: Use of anchor tag
 From: Arthur Frankel [EMAIL PROTECTED]
  ===
 Got it:
 
 Use filter=false in the bean:write of the error
 
 
 Arthur Frankel [EMAIL PROTECTED] wrote in
 message
 news:a7d0l7$4ci$[EMAIL PROTECTED]...
  Due to lots of fields on a form, I am trying to
 offer links within the
 error
  messages (using Struts Validator).   I would
 assume that I can do
 something
  like this,
 
  errors.date=A HREF='#{0}'{0}/A is not a date
 and must be in the format
  of {1}.
 
 
  but this just dumps out the A HREF as text on
 the page.
 
  Any ideas?
 
  Arthur.
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




Re: returning the selected value from an html:select

2002-03-26 Thread Jim Crossley

Here's how I would do it.  Change the name of the existing method that
returns a collection and add a method to get the vname:

public Collection getVnameList(){
  return new DBAccess().getVendorNames();
}
public void setVname(String value){
  xx
}
public String getVname(){
  xx
}

Then change your bean:define property to vnameList.  That should
do the trick.

-- Jim

josef richberg [EMAIL PROTECTED] writes:

 That I understand.  What I don't understand is how to
 do that.  How can I reference the value chosen in the
 select?  The id is tied to the bean.  
 
 --josef
 --- Jim Crossley [EMAIL PROTECTED] wrote:
  In your formbean, you need to distinguish between
  the value selected
  and the values able to be selected.  You've
  accounted for the latter.
  You need another method to account for the former. 
  The property
  referred to in your bean:define (returning a
  Collection) should not be
  the same property referred to in your html:select
  that returns a
  String.
  
  -- Jim
  
  josef richberg [EMAIL PROTECTED] writes:
  
   I have the following code snippet: 
   bean:define id=vendornames name=ProdAddForm
   property=vname
   type=java.util.Collection/
   
   then below 
   html:select property=vname
   html:options collection=vendornames
   property=value  labelProperty=label/
   /html:select
   
   I have a getter method in my Action form: 
public Collection getVname(){
   return new DBAccess().getVendorNames();
}
   
   The problem is if I try to set the result of the
   selection via this method in the action form: 
public void setVname(String value){
  xx
}
   
   it errors with: No getter method for property
  vname of
   bean ProdAddForm 
   How do I retrieve the lone value of the select? 
   --josef
   
   
   __
   Do You Yahoo!?
   Yahoo! Movies - coverage of the 74th Academy
  Awards®
   http://movies.yahoo.com/
   
   --
   To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  --
  To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards®
 http://movies.yahoo.com/
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: 1 tile - 1 controller

2002-03-26 Thread Jon Ferguson

Hi Cedric,

I'm trying to fit this in the context of struts' MVClike framework...  Say I
wanted to re-write the Invoice example such that I not only associated the
billing/shipping address information with a tile but also wanted to separate out
the logic so that my 'addressController' would have the responsibility of
populating the appropriate address in InvoiceForm rather than pushing that
responsibility into the editInvoice Action.  Is that feasible?

Then Struts updates the InvoiceForm Action Form from editInvoice.jsp... but
editInvoice would effectively ignore populating addresses choosing rather to allow
the address controller to do that work...  I'm not totally sure if this would
result in a clean implementation but am working on the assumption that it would be
useful to be able to drop tiles in where desired or even swap out tiles with ones
that display the data differently.. and do the same with their respective
controllers.

So as a rather poor example: if my invoice has several addresses and the concept
of a current address I could drop in the single editor for a app that prefers to
show only the current address, or drop in a table-based editor for an app that
wants the ability to edit a set of addresses-- the specific controllers would know
how to get the data into and out of the appropriate parts of the invoice form and
underlying database.

Does this make sense??

Cheers,
Jon

Cedric Dumoulin wrote:

   Hello,

   Tiles support controller for each individual Tile.
   This controller's role is to prepare data to be rendered by the tile.
   Syntax is as follow :

  definition name=examples.rssChannel.offline.body
 path=/examples/tiles/rssChannels.jsp
  controllerUrl=/examples/controller/rssChannel.do 
   ..
   or

  definition name=examples.rssChannel.offline.body
 path=/examples/tiles/rssChannels.jsp
  controllerClass=a.class.Name 

   You can find an example of use in tiles-doc.war or struts-tiles.war :

*   /examples/rssChannels.jsp
*   / test/testController.jsp

   More documentation is needed ;-(

   Cedric

 Jon Ferguson wrote:

  Hey guys,
 
  I read in the tiles doc that you can associate a controller with each tile.
  However, I cannot find an example of how this is done.
 
  Any pointers?
 
  Thanks in advance,
  Jon
 

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

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



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


Form processing work flow

2002-03-26 Thread Roger Nell

What is the pattern for processing a form? 

Given:
  MyForm extends ActionForm
  MyFomAction extends Action
  MyForm.jsp displays the form
  using Struts 1.1 beta


1. Prior to calling MyFormAction.execute(), a MyForm() object is
created by struts. In 1.0.x I would create the form object here.  The
struts example app was modified to accomodate this change.

2. In MyFormAction.execute() I call the form's set methods to setup
the form's properties.

3. I save the form in the request attributes

4. The form is displayed by MyForm.jsp

5. The user hits submit button.

6. MyForm.reset() is called on a newly created MyForm().

7. MyForm set methods are called on the form in step #6

8. I see the MyForm saved to the request attributes in step #3.

9. Struts calls MyForm.execute() with the form created in step #6

The problem is that struts is not giving me back the Form object
saved in the request attributes in step #3 after the submit. Instead
I get a new form obbject that was created in step #6. I want the one
saved in the request attributes because it contains information
needed to save the form back to the database or for a multipage form.


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: AW: struts get and set methods in formbeans

2002-03-26 Thread Jose Casas

Thanks for the replies.  Does anybody else have an opinion as to which is
right?

Thanks.

Jose Casas

E-Commerce Applications
(501) 277-3112
[EMAIL PROTECTED]



 -Original Message-
 From: Jim Crossley [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, March 26, 2002 9:10 AM
 To:   Struts Users Mailing List; [EMAIL PROTECTED]
 Subject:  Re: AW: struts get and set methods in formbeans
 
 I don't think that's correct.  As long as you refer to the password
 property in your JSP, you may use getPassword/setPassword, regardless
 of the name of the data member they encapsulate.
 
 In other words, it's not the name of the private data member that
 determines the names of your public accessors.  It's the name used in
 your JSP's.
 
 -- Jim
 
 Oliver Reflé [EMAIL PROTECTED] writes:
 
  Yes it has to be the same, if you have test you have to implement
  getTest() and setTest()
  
  -Ursprüngliche Nachricht-
  Von: Jose Casas [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 26. März 2002 15:42
  An: 'Struts Users Mailing List'
  Betreff: struts get and set methods in formbeans
  
  
  Hello,
  
  I got a question about the get and set methods in the form beans.  Does
 the
  get or set method need to have the name of the member variable in it?
  For example, if I have a member variable named userPassword do I have to
  have a get/set method called getuserPassword/setuserPassword or can I
 put
  getPassword/setPassword.  I guess what I'm asking is does the variable
 have
  to appear exactly the same in the get/set method.
  
  Thank you.
  
  
  
  **
  This email and any files transmitted with it are confidential
  and intended solely for the individual or entity to
  whom they are addressed.  If you have received this email
  in error destroy it immediately.
  **
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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




Re: Form processing work flow

2002-03-26 Thread Nicolas De Loof

Object saved to request scope are destroyed when the request is completed
(when the JSP has produced the HTML response). So you cannot get your
saved Form after that.
You have to put it in the session scope so that you can get it back for
future requests.


 The problem is that struts is not giving me back the Form object
 saved in the request attributes in step #3 after the submit. Instead
 I get a new form obbject that was created in step #6. I want the one
 saved in the request attributes because it contains information
 needed to save the form back to the database or for a multipage form.


 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards®
 http://movies.yahoo.com/

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


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




Re: AW: struts get and set methods in formbeans

2002-03-26 Thread Nicolas De Loof

Struts builds getter methods call with the property name by adding get and
upperCased first char. So you can call a getPassword method from a
password property declaration (in JSP), even if the underlying attribute
is
private String this_is_not_password_but_anything_else;

so that's ok, you can call your property the way you want, but for the logic
of your presentation layer, you WOULD use the same name for property in JSP
tags and its associated attribute.

If you want to disconnect your bean from presentation datas, it would be
better to consider using a thin wrapper object whith getPasword and
setpassword, maintaining the userPassword attribute of your data bean.


Thanks for the replies.  Does anybody else have an opinion as to which is
right?

Thanks.

Jose Casas

E-Commerce Applications
(501) 277-3112
[EMAIL PROTECTED]



 -Original Message-
 From: Jim Crossley [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, March 26, 2002 9:10 AM
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: Re: AW: struts get and set methods in formbeans

 I don't think that's correct.  As long as you refer to the password
 property in your JSP, you may use getPassword/setPassword, regardless
 of the name of the data member they encapsulate.

 In other words, it's not the name of the private data member that
 determines the names of your public accessors.  It's the name used in
 your JSP's.

 -- Jim

 Oliver Reflé [EMAIL PROTECTED] writes:

  Yes it has to be the same, if you have test you have to implement
  getTest() and setTest()
 
  -Ursprüngliche Nachricht-
  Von: Jose Casas [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 26. März 2002 15:42
  An: 'Struts Users Mailing List'
  Betreff: struts get and set methods in formbeans
 
 
  Hello,
 
  I got a question about the get and set methods in the form beans.  Does
 the
  get or set method need to have the name of the member variable in it?
  For example, if I have a member variable named userPassword do I have to
  have a get/set method called getuserPassword/setuserPassword or can I
 put
  getPassword/setPassword.  I guess what I'm asking is does the variable
 have
  to appear exactly the same in the get/set method.
 
  Thank you.
 
 
 
  **
  This email and any files transmitted with it are confidential
  and intended solely for the individual or entity to
  whom they are addressed.  If you have received this email
  in error destroy it immediately.
  **
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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

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


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




RE: AW: struts get and set methods in formbeans

2002-03-26 Thread Robert Nocera

Jose,

Jim is correct, your getters and setters correspond to what is in your
JSP according to the Java Bean specification.  The private variable name
can be whatever you want, but generally to make things maintainable and
easy to understand the variable names and getter/setter names are
related.

One implementation that I've seen is something like a private variable
called _test and getTest, setTest as getter/setter names, and it works
fine.

Robert Nocera
New England Open Solutions
www.neosllc.com
You supply the Vision.  We will do the rest.
  


-Original Message-
From: Jose Casas [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 26, 2002 11:16 AM
To: 'Struts Users Mailing List'
Subject: RE: AW: struts get and set methods in formbeans

Thanks for the replies.  Does anybody else have an opinion as to which
is
right?

Thanks.

Jose Casas

E-Commerce Applications
(501) 277-3112
[EMAIL PROTECTED]



 -Original Message-
 From: Jim Crossley [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, March 26, 2002 9:10 AM
 To:   Struts Users Mailing List; [EMAIL PROTECTED]
 Subject:  Re: AW: struts get and set methods in formbeans
 
 I don't think that's correct.  As long as you refer to the password
 property in your JSP, you may use getPassword/setPassword, regardless
 of the name of the data member they encapsulate.
 
 In other words, it's not the name of the private data member that
 determines the names of your public accessors.  It's the name used in
 your JSP's.
 
 -- Jim
 
 Oliver Reflé [EMAIL PROTECTED] writes:
 
  Yes it has to be the same, if you have test you have to implement
  getTest() and setTest()
  
  -Ursprüngliche Nachricht-
  Von: Jose Casas [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 26. März 2002 15:42
  An: 'Struts Users Mailing List'
  Betreff: struts get and set methods in formbeans
  
  
  Hello,
  
  I got a question about the get and set methods in the form beans.
Does
 the
  get or set method need to have the name of the member variable in
it?
  For example, if I have a member variable named userPassword do I
have to
  have a get/set method called getuserPassword/setuserPassword or can
I
 put
  getPassword/setPassword.  I guess what I'm asking is does the
variable
 have
  to appear exactly the same in the get/set method.
  
  Thank you.
  
  
  
 
**
  This email and any files transmitted with it are confidential
  and intended solely for the individual or entity to
  whom they are addressed.  If you have received this email
  in error destroy it immediately.
 
**
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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


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




error null value not accept... helpme

2002-03-26 Thread Gilson Nascimento D Elrei

I'm receiving the error below when i try to execute a simple login
application

null
java.lang.NullPointerException
at test.struts.LoginBean.validate(LoginBean.java:30)
at test.struts.LoginAction.perform(LoginAction.java:20)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1787)

What occur is that my LoginAction Servlet instance a validate LoginBean and
execute its Validate method passing for it
the Request object (it's a normal process), depending
about  validated condition processed by  LoginBean  it can to return a null
ActionError object, like in that piece of code below, but
itsn't seems ok.


In the LoginAction class

 LoginBean lb = new LoginBean();
 request.setAttribute(LoginBean,lb);
 lb.setParameteres(request);

 ActionErrors ae = lb.validate();--  I got error here!
(null value not accept!?)
 request.setAttribute(Action.ERROR_KEY, ae);
 
 if (ae==null || ae.size() == 0 )
 {
   return mapping.findForward(valid);
}
else
{
  return mapping.findForward(invalid);
}
 
--- end code
any idea ?
Thanks in advance
  

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




RE: error null value not accept... helpme

2002-03-26 Thread Oliver Reflé

I think your null pointer occurs in the LoginBean method validate()
so can you show this code ?

-Original Message-
From: Gilson Nascimento D Elrei [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 5:31 PM
To: 'Struts Users Mailing List'
Subject: error null value not accept... helpme


I'm receiving the error below when i try to execute a simple login
application

null
java.lang.NullPointerException
at test.struts.LoginBean.validate(LoginBean.java:30)
at test.struts.LoginAction.perform(LoginAction.java:20)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1787)

What occur is that my LoginAction Servlet instance a validate LoginBean and
execute its Validate method passing for it
the Request object (it's a normal process), depending
about  validated condition processed by  LoginBean  it can to return a null
ActionError object, like in that piece of code below, but
itsn't seems ok.


In the LoginAction class

 LoginBean lb = new LoginBean();
 request.setAttribute(LoginBean,lb);
 lb.setParameteres(request);

 ActionErrors ae = lb.validate();--  I got error here!
(null value not accept!?)
 request.setAttribute(Action.ERROR_KEY, ae);

 if (ae==null || ae.size() == 0 )
 {
   return mapping.findForward(valid);
}
else
{
  return mapping.findForward(invalid);
}

--- end code
any idea ?
Thanks in advance


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


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




using condition in iterate tag

2002-03-26 Thread Peter Cnops

Hi,

How can I declare a value out of a collection and use it as a condition in
an iterate tag? I have to loop through a collection where one value is the
same for several lines. As long as this value is the same, I don't write the
line, else I do with the new value. I'm using Struts 1.0.2.

Thanks for any help.


Peter Cnops
Project Management - MediaTower



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




Re: Object Mapping w/ Struts?

2002-03-26 Thread @Basebeans.com

Subject: Re: Object Mapping w/ Struts?
From: Gary Fidler [EMAIL PROTECTED]
 ===
Try Castor at http://castor.exolab.org/

-gary

James A. Hillyerd wrote:
 I am looking for an object-mapping (to sql relational DB) solution for
 Struts.  
 
 I have a medium sized database application which I've developed in
 struts.  (around 25 tables in PostgreSQL)  I've been using a home-brew
 lightweight data-access bean system -- using perl scripts to generate
 beans that interact with the database.  The java source these scripts
 generate need a lot of manual editing, so making changes to the object
 model can be a nightmare. 
 
 I tried downloading Torque 2.1, but had problems, so then I tried Torque
 3.0b1.  It seems like Torque isn't going to integrate well with my
 already existing tables.  I use some postgres types such as TEXT and
 BOOLEAN, which I would expect to map to LONGVARCHAR and BIT
 respectively, but in the SQL that torque spit out they were bytea and
 .  I can't find mention of bytea in postgres docs, and obviously 
 isn't going to do much for me. =) 
 
 After reading the Torque docs, I really like what it offers but I'm not
 sure that it will work for me.  Are there any other solutions that
 people can recommend?  Or should I try modifying torque to fit my needs?
 I don't have any EJB experience but I've heard good things about JBoss. 
 I've also heard the going EJB can really slow an application down. I've
 also noticed some talk of Expresso on this list, would this be worth
 trying?
 
 Thanks for any advice! 
 
 -james 
 


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




Automatic form validation

2002-03-26 Thread jeffhaenn

During automatic form validation, when errors occur, 
does the framework pass an instance of the formbean to 
the target of the input attribute?  None of the fields 
are being repopulated when it goes back to the form.

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




Re: returning the selected value from an html:select

2002-03-26 Thread josef richberg

I did that, but it did not work.  It looks like it is
now looking to get the names to populate the select
list from the method getVname().  Maybe I was not
clear in my question.  I have a collection object that
is populated from a database with and id,descp.  Once
the choice is selected I need to collect the id that
was chosen.  I need to separate the population of the
select with the choice made.

--josef
--- Jim Crossley [EMAIL PROTECTED] wrote:
 Here's how I would do it.  Change the name of the
 existing method that
 returns a collection and add a method to get the
 vname:
 
 public Collection getVnameList(){
   return new DBAccess().getVendorNames();
 }
 public void setVname(String value){
   xx
 }
 public String getVname(){
   xx
 }
 
 Then change your bean:define property to
 vnameList.  That should
 do the trick.
 
 -- Jim
 
 josef richberg [EMAIL PROTECTED] writes:
 
  That I understand.  What I don't understand is how
 to
  do that.  How can I reference the value chosen in
 the
  select?  The id is tied to the bean.  
  
  --josef
  --- Jim Crossley [EMAIL PROTECTED] wrote:
   In your formbean, you need to distinguish
 between
   the value selected
   and the values able to be selected.  You've
   accounted for the latter.
   You need another method to account for the
 former. 
   The property
   referred to in your bean:define (returning a
   Collection) should not be
   the same property referred to in your
 html:select
   that returns a
   String.
   
   -- Jim
   
   josef richberg [EMAIL PROTECTED] writes:
   
I have the following code snippet: 
bean:define id=vendornames
 name=ProdAddForm
property=vname
type=java.util.Collection/

then below 
html:select property=vname
html:options collection=vendornames
property=value  labelProperty=label/
/html:select

I have a getter method in my Action form: 
 public Collection getVname(){
return new
 DBAccess().getVendorNames();
 }

The problem is if I try to set the result of
 the
selection via this method in the action form: 
 public void setVname(String value){
   xx
 }

it errors with: No getter method for property
   vname of
bean ProdAddForm 
How do I retrieve the lone value of the
 select? 
--josef


   
 __
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy
   Awards®
http://movies.yahoo.com/

--
To unsubscribe, e-mail:  
  
 mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
   
   --
   To unsubscribe, e-mail:  
  
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
   
  
  
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards®
  http://movies.yahoo.com/
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: AW: struts get and set methods in formbeans

2002-03-26 Thread Enrique Rodriguez

 De: Nicolas De Loof
 Struts builds getter methods call with the property name by
 adding get and
 upperCased first char.

I've an example with one property that start with only one lower case
character, something like this pProperty and I always get the same error, 
can't fing get method for property pProperty .

Some time later, i noticed that in JSP a have to write porperty PProperty
instead pProperty .

Is this a bug or it's ok

Regards, Enrique.

PS: I attach an example of it.

_
Enrique Rodriguez Lasterra







So you can call a getPassword method from a
 password property declaration (in JSP), even if the underlying attribute
 is
 private String this_is_not_password_but_anything_else;

 so that's ok, you can call your property the way you want, but
 for the logic
 of your presentation layer, you WOULD use the same name for
 property in JSP
 tags and its associated attribute.

 If you want to disconnect your bean from presentation datas, it would be
 better to consider using a thin wrapper object whith getPasword and
 setpassword, maintaining the userPassword attribute of your data bean.


 Thanks for the replies.  Does anybody else have an opinion as to which is
 right?

 Thanks.

 Jose Casas

 E-Commerce Applications
 (501) 277-3112
 [EMAIL PROTECTED]



  -Original Message-
  From: Jim Crossley [SMTP:[EMAIL PROTECTED]]
  Sent: Tuesday, March 26, 2002 9:10 AM
  To: Struts Users Mailing List; [EMAIL PROTECTED]
  Subject: Re: AW: struts get and set methods in formbeans
 
  I don't think that's correct.  As long as you refer to the password
  property in your JSP, you may use getPassword/setPassword, regardless
  of the name of the data member they encapsulate.
 
  In other words, it's not the name of the private data member that
  determines the names of your public accessors.  It's the name used in
  your JSP's.
 
  -- Jim
 
  Oliver Reflé [EMAIL PROTECTED] writes:
 
   Yes it has to be the same, if you have test you have to implement
   getTest() and setTest()
  
   -Ursprüngliche Nachricht-
   Von: Jose Casas [mailto:[EMAIL PROTECTED]]
   Gesendet: Dienstag, 26. März 2002 15:42
   An: 'Struts Users Mailing List'
   Betreff: struts get and set methods in formbeans
  
  
   Hello,
  
   I got a question about the get and set methods in the form
 beans.  Does
  the
   get or set method need to have the name of the member variable in it?
   For example, if I have a member variable named userPassword
 do I have to
   have a get/set method called getuserPassword/setuserPassword or can I
  put
   getPassword/setPassword.  I guess what I'm asking is does the variable
  have
   to appear exactly the same in the get/set method.
  
   Thank you.
  
  
  
   **
   This email and any files transmitted with it are confidential
   and intended solely for the individual or entity to
   whom they are addressed.  If you have received this email
   in error destroy it immediately.
   **
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]

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


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


%@page contentType=text/html%
%@ taglib uri=/WEB-INF/struts-html.tld
prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld
prefix=bean %

html:html
head
title
   bean:write name=Bean property=PProperty/
/title


/head

h1bean:write name=Bean property=PProperty//H1

html:errors/
/html:html


Bean.java
Description: Binary data


ExamplePropertyAction.java
Description: Binary data

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


Struts connection pooling example?

2002-03-26 Thread @Basebeans.com

Subject: Struts connection pooling example?
From: Preston Crawford [EMAIL PROTECTED]
 ===
Can anyone point me in the direction of a Struts connection pooling example?
I'm trying to use Struts' built in connection pooling and can't find the
correct documentation for this right now.

Preston



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




Retrofitting struts

2002-03-26 Thread Dan Cancro

Hi all,

I was just wondering who's done the biggest retrofit of struts to a
non-struts application.  I think our code base is a couple million lines, so
using metrics like that, could any of you who have done it describe what it
took, and whether you'd put yourself through it again?

Thanks,
Dan

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




RE: Get properties from the struts-config.xml with Struts 1.1 Beta

2002-03-26 Thread Ditlinger, Steve


Under Struts 1.1, you now specify the mapping as an attribute of the
action-mappings element in the struts-config.xml file as seen here in this
snippet from the DTD:

--
!-- The action-mappings element configures the mappings from submitted
 request paths to the corresponding Action classes that should be
 used to process these requests.  The following attributes are
 defined:

 type   Fully qualified Java class name of the ActionMapping
implementation class to be used.

 WARNING:  For Struts 1.0, this value is ignored.  You
 can set the default implementation class name with the
 mapping initialization parameter to the Struts
 controller servlet.
--
!ELEMENT action-mappings (action*)
!ATTLIST action-mappings id ID  #IMPLIED
!ATTLIST action-mappings type   %ClassName; #IMPLIED

-

hth,
Steve


-Original Message-
From: Falkmar Bodo Hinueber [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 5:16 AM
To: [EMAIL PROTECTED]
Subject: Get properties from the struts-config.xml with Struts 1.1 Beta


Hi,
I've a problem with Struts 1.1 Beta, to read properties, which are set 
in the struts-config.xml
This code works with an old version from Struts but not with Struts 1.1 
Beta.
Can anybody help me?

Here are the sources:

The web.xml :

...
 servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class

init-param
  param-namemapping/param-name
  param-valuetest.myMapping/param-value
/init-param
...
/servlet
...


The struts-config.xml:


...
   
actionpath=/test
   name=testForm
   type=testAction
   scope=request
   validate=false
   input=/index.jsp
   set-property property=myProperty value=This is property 
:) /   
   forward name=success  path=/start.do/   

   forward name=failure  path=/index.jsp/   

/action
...



The myMapping.java:

package test.myMapping;
import org.apache.struts.action.ActionMapping;

public class myMapping extends ActionMapping {

protected String myProperty;

public void setMyProperty(String myProperty) {
this.myProperty = myProperty;
}

public String getMyProperty() {
return myProperty;
}
}


The testAction.java:


public final class testAction extends Action {

   public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException {
String myProperty=null;


if (mapping instanceof myMapping)   // this doesn't work with struts 
1.1   what is the cause ?
{
//cast the mapping class into our custom
//mapping class
myMapping mp = (myMapping) mapping;

myProperty=mp.getMyProperty();

}

...


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




Upgrade

2002-03-26 Thread Honman Lee

Hi All,

I had a site working with Struts 1.01 but I have recently upgraded the struts 
libraries to 1.1 beta.  In doing so, I got disconnected somewhere and I was hoping to 
obtain some assistance.  The error message I am getting seems to be caused by a 
ExceptionInInitializerError.  Thanks in advance for all your help.  The error message 
I am getting is as follows:

500 Internal Server Error
javax.servlet.jsp.JspException: Can't get definitions factory from context.

s1.struts.taglib.component.InsertTag$TagHandler 
s1.struts.taglib.component.InsertTag.processDefinitionName(java.lang.String)

s1.struts.taglib.component.InsertTag$TagHandler 
s1.struts.taglib.component.InsertTag.createTagHandler()

int s1.struts.taglib.component.InsertTag.doStartTag()

void _site._index._jspService(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)

[/site/index.jsp]

void com.orionserver[Oracle9iAS (2.0.0.0) Containers for 
J2EE].http.OrionHttpJspPage.service(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)

void 
oracle.jsp.runtimev2.JspPageTable.compileAndServe(oracle.jsp.runtimev2.JspPageInfo, 
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

void 
oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse, java.lang.String)

void 
oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)

void 
oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)

void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)

void com.evermind[Oracle9iAS (2.0.0.0) Containers for 
J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse)

void com.evermind[Oracle9iAS (2.0.0.0) Containers for 
J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest,
 javax.servlet.http.HttpServletResponse)

boolean com.evermind[Oracle9iAS (2.0.0.0) Containers for 
J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (2.0.0.0) 
Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (2.0.0.0) 
Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS 
(2.0.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, 
java.io.InputStream, java.io.OutputStream, boolean)

void com.evermind[Oracle9iAS (2.0.0.0) Containers for 
J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)

void com.evermind[Oracle9iAS (2.0.0.0) Containers for 
J2EE].util.ThreadPoolThread.run()



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




DynaValidatorActionForm

2002-03-26 Thread See Yam Lim

The key passed into the validator is the action element's 'path' attribute
from the struts-config.xml which should match the form element's name
attribute in the validation.xml.

Validator validator = StrutsValidatorUtil.initValidator(mapping.getPath(),
this,
application,
request,
errors,
page);

i found the above javadoc and code that in DynaValidatorActionForm which i
think it should be the action element's 'name' attribute from the
struts-config.xml to form element's name attribute in the validation.xml.
Can anyone confirm me on that or tell me why otherwise?

Thanks so much!



See-Yam Lim




Re: Installation on OS-390 and Websphere 3.5.3: 503 Error

2002-03-26 Thread Steven Banks

Found part of the problem.  Websphere defaults the value 
appserver.compliance.mode=false.  This means is you do not set this value to true, you 
get webspheres compatibilty mode by default.  

Now I am getting a message:  

javax.servlet.UnavailableException:  
Missing configuration resource for path /WEB-INF/struts-config.xml

struts-config.xml is in the directory:

/u/vacweb/dev/train/WEB-INF/classes/WEB-INF

I have listed other WAS.CONF properties below.  Are there any other ones I should have?

appserver.version=3.50
appserver.usesystemclasspath=false
appserver.libpath=
appserver.classpath=/u/ws11/as01/properties:/u/vacweb/dev/lib
appserver.name=ws11
appserver.jvmpropertiesfile=
appserver.loglevel=WARNING
appserver.logdirectory=
appserver.compliance.mode=true
appserver.configviewer=
appserver.jspbasehrefadd=true
objectleveltrace.enabled=false
...



Steven Banks
902-368-0566

 Steven Banks [EMAIL PROTECTED] 03/26/02 11:20AM 
I am having problem running a Struts Application on the OS/390.  The web application 
starts up correctly, but when I load any URL for the Web App, the message 503 Error 
Application is currently unavailable for service is displayed.

I am following the directions as per configuring Struts for WAS 3.5 on OS/390.  
Currently we are not using the struts jar, but have been compiling the code and then 
restarting the web application with many additional System.out.println messages.  We 
found some problems with the classpath and picking up the wrong SAX parser, but it is 
now correct.

I noticed in the installation notes for struts on WAS on windows 2000 mentions that if 
you get this message, you should restart the web application and tried to do that, but 
was told you cannot restart an individual web application on the mainframe version of 
WAS.

We have changed all permissions in the web site to 777 and have double checked that 
the myapp.webapp file is stored in EBCDIC.


Any help would be appreciated.



Steven Banks
902-368-0566


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



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




PageContext -ApplicationScope lost?

2002-03-26 Thread Sunder

Hi,
I have the following code in my jsp, 

html:select property=securityOptions multiple=false
  bean:define id=securityOptions name=personalForm
property=securityOptions type=java.util.Collection/
  html:options collection=securityOptions property=value
labelProperty=label/
/html:select
__
This is parsed into the following, 

_jspx_th_bean_define_0.setPageContext(pageContext);
 
_jspx_th_bean_define_0.setParent(_jspx_th_html_select_0);
_jspx_th_bean_define_0.setId(securityOptions);
_jspx_th_bean_define_0.setName(personalForm);
 
_jspx_th_bean_define_0.setProperty(securityOptions);
 
_jspx_th_bean_define_0.setType(java.util.Collection);
try {
int _jspx_eval_bean_define_0 =
_jspx_th_bean_define_0.doStartTag();
if (_jspx_eval_bean_define_0 !=
javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
try {
  if (_jspx_eval_bean_define_0 !=
javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
  out = pageContext.pushBody();
 
_jspx_th_bean_define_0.setBodyContent((javax.servlet.jsp.tagext.BodyCont
ent) out);
  _jspx_th_bean_define_0.doInitBody();
  }
  do {
  // end
  // begin
[file=/personal.jsp;from=(73,3);to=(73,113)]
  } while (_jspx_th_bean_define_0.doAfterBody()
== javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AG
AIN);
  } finally {
  if (_jspx_eval_bean_define_0 !=
javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
  out = pageContext.popBody();
  }
  }
  if (_jspx_th_bean_define_0.doEndTag() ==
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
  return;
  } finally {
  _jspx_th_bean_define_0.release();
  }
  java.util.Collection securityOptions = null;
  securityOptions = (java.util.Collection)
pageContext.findAttribute(securityOptions);

__

I get a ClassCastException on the above line ,
pageContext.findAttribute(securityOptions);

Thanks,
Sunder  


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




RE: I18N question

2002-03-26 Thread Alex Paransky

Well, the value you store in the actual field would have to be
priority.low, priority.normal, or priority.hi instead of normal,
high, or low.  Then you can simply use the bean:message instead of
bean:write.  The bean:message tag will treat the property= as the key in
to the resource bundle.  Alternatively you can prepend priority. to the
value of your data and then pass that to the message tag, as in:

bean:define id=priority name=bean property=priority/
bean:message name=%=priority. + priority/

For example...

-
-AP_
See my profile at
http://www.myprofiles.com/member/view.do?profileId=128


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 26, 2002 5:21 AM
To: [EMAIL PROTECTED]
Subject: I18N question


Hi!

In my application I have an enumeration called priority containg values
low, normal and high. At one point of the application the user can
enter the priority using a selection list. Localizing here works fine like
this:

html:select property=priorityhtml:option value=low
key=priority.low/html:option value=normal
key=priority.normal/html:option value=high
key=priority.high//html:select/td

using a property file looking like this:

priority.low=Niedrig
priority.normal=Mittel
priority.high=Hoch

Like I said, this works perfectly well. But at another point of the
application
the choosen priority should be displayed.
A simple
bean:write name=bean property=priority/
would display the not localized values low, normal or high, but
ofcourse
I would like to have the localized strings Niedrig, Mittel, or Hoch to
be shown...

Any clues ?

thanks,

Gernot.



-
Kabelsignal AGWebmail
http://www.kabelsignal.at



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


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




html:img and servlet context - doesn't get it

2002-03-26 Thread @Basebeans.com

Subject: html:img and servlet context - doesn't get it
From: Matt Raible [EMAIL PROTECTED]
 ===
I am having a problem in my webapp.

I setup the mapping to my images directory in my struts-config.xml as
follows:

forward name=images path=/images/

This works great, as I then write my images as follows:

img src=html:rewrite forward='images'//logoOnpoint.gif
class=logo/

The html:rewrite adds {context}/images to the src attribute.

However, when I hit my welcome page for the first time, the src is resolved
as:

/onpoint/images;jsessionid=1514B06821426587237517B89374C181/logoOnpoint.gif

I attempted to fix this by using the html:img tag

html:img src=/images/logoOnpoint.gif thinking that this would resolve to
the proper src with the context pre-pended.  No Dice.

Any ideas?

I took out the html:base tag since it was resolving to my tiles template,
rather than the actual request URL.

Thanks,

Matt






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




Re: DynaValidatorActionForm

2002-03-26 Thread David Winterfeldt

I don't see anything wrong, but I wrote the javadoc so
I might be missing something.

DynaValidatorForm - uses the name of your form bean
(registrationForm) to retrieve the set of validation
rules

DynaValidatorActionForm - uses the name of your action
(/registration) to retrieve the set of validation
rules

These just give you a choice how you want to handle
storing/retrieving your validation rules.

The form element's name attribute in the
validation.xml is just a key used to store and
retrieve a set of validation rules.

David

--- See Yam Lim [EMAIL PROTECTED] wrote:
 The key passed into the validator is the action
 element's 'path' attribute
 from the struts-config.xml which should match the
 form element's name
 attribute in the validation.xml.
 
 Validator validator =
 StrutsValidatorUtil.initValidator(mapping.getPath(),
  
 this,
  
 application,
 request,
  
 errors,
 page);
 
 i found the above javadoc and code that in
 DynaValidatorActionForm which i
 think it should be the action element's 'name'
 attribute from the
 struts-config.xml to form element's name attribute
 in the validation.xml.
 Can anyone confirm me on that or tell me why
 otherwise?
 
 Thanks so much!
 
 
 
 See-Yam Lim
 
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




Re: Automatic form validation

2002-03-26 Thread David Winterfeldt

You should have access to the bean if automatic
validation fails.  Are you seeing any error messages
even?  I would double check your struts-config.xml and
your html:form tags reference to the action.

David

--- [EMAIL PROTECTED] wrote:
 During automatic form validation, when errors occur,
 
 does the framework pass an instance of the formbean
 to 
 the target of the input attribute?  None of the
 fields 
 are being repopulated when it goes back to the form.
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




dynamic select box

2002-03-26 Thread Jose Casas

Does anybody have sample code that shows how to build a select box
dynamically?  I need to create the select box with values that come from a
database.  

Thank you.

Jose Casas

E-Commerce Applications
(501) 277-3112
[EMAIL PROTECTED]




**
This email and any files transmitted with it are confidential
and intended solely for the individual or entity to 
whom they are addressed.  If you have received this email
in error destroy it immediately.
**


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




RE: html:img and servlet context - doesn't get it

2002-03-26 Thread Witbeck, Shane

how about a regular HTML image tag like this:

img src=%= request.getContextPath()%/images/yourImage.gif

Sincerely,

Shane Witbeck
__
Developer, Bank of America
email: [EMAIL PROTECTED]
phone: 904.987.1688

-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 2:10 PM
To: [EMAIL PROTECTED]
Subject: html:img and servlet context - doesn't get it


Subject: html:img and servlet context - doesn't get it
From: Matt Raible [EMAIL PROTECTED]
 ===
I am having a problem in my webapp.

I setup the mapping to my images directory in my struts-config.xml as
follows:

forward name=images path=/images/

This works great, as I then write my images as follows:

img src=html:rewrite forward='images'//logoOnpoint.gif
class=logo/

The html:rewrite adds {context}/images to the src attribute.

However, when I hit my welcome page for the first time, the src is resolved
as:

/onpoint/images;jsessionid=1514B06821426587237517B89374C181/logoOnpoint.gif

I attempted to fix this by using the html:img tag

html:img src=/images/logoOnpoint.gif thinking that this would resolve to
the proper src with the context pre-pended.  No Dice.

Any ideas?

I took out the html:base tag since it was resolving to my tiles template,
rather than the actual request URL.

Thanks,

Matt






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

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




Re: Installation on OS-390 and Websphere 3.5.3: Was 503 Error- Now What struts.jar should I use.

2002-03-26 Thread Steven Banks

I tracked the error message to the ActionServlets initMapping() routine.  Specifically


...
// Acquire an input stream to our configuration resource
InputStream input = getServletContext().getResourceAsStream(config);
if (input == null)
throw new UnavailableException
(internal.getMessage(configMissing, config));

...

I am currrenly using the struts-war.jar.  Is there a specific version that should be 
used on os/390?  Would anyone be willing to e-mail me the jar they are using?  Thanks 
in advance.




Steven Banks
902-368-0566

 Steven Banks [EMAIL PROTECTED] 03/26/02 03:04PM 
Found part of the problem.  Websphere defaults the value 
appserver.compliance.mode=false.  This means is you do not set this value to true, you 
get webspheres compatibilty mode by default.  

Now I am getting a message:  

javax.servlet.UnavailableException:  
Missing configuration resource for path /WEB-INF/struts-config.xml

struts-config.xml is in the directory:

/u/vacweb/dev/train/WEB-INF/classes/WEB-INF

I have listed other WAS.CONF properties below.  Are there any other ones I should have?

appserver.version=3.50
appserver.usesystemclasspath=false
appserver.libpath=
appserver.classpath=/u/ws11/as01/properties:/u/vacweb/dev/lib
appserver.name=ws11
appserver.jvmpropertiesfile=
appserver.loglevel=WARNING
appserver.logdirectory=
appserver.compliance.mode=true
appserver.configviewer=
appserver.jspbasehrefadd=true
objectleveltrace.enabled=false
...



Steven Banks
902-368-0566

 Steven Banks [EMAIL PROTECTED] 03/26/02 11:20AM 
I am having problem running a Struts Application on the OS/390.  The web application 
starts up correctly, but when I load any URL for the Web App, the message 503 Error 
Application is currently unavailable for service is displayed.

I am following the directions as per configuring Struts for WAS 3.5 on OS/390.  
Currently we are not using the struts jar, but have been compiling the code and then 
restarting the web application with many additional System.out.println messages.  We 
found some problems with the classpath and picking up the wrong SAX parser, but it is 
now correct.

I noticed in the installation notes for struts on WAS on windows 2000 mentions that if 
you get this message, you should restart the web application and tried to do that, but 
was told you cannot restart an individual web application on the mainframe version of 
WAS.

We have changed all permissions in the web site to 777 and have double checked that 
the myapp.webapp file is stored in EBCDIC.


Any help would be appreciated.



Steven Banks
902-368-0566


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



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



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




Re: html:img and servlet context - doesn't get it

2002-03-26 Thread Max Cooper

Use the page attribute instead of src to have the context path prepended:

html:img page=/images/logoOnpoint.gif

-Max

- Original Message -
From: Struts Newsgroup @[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 26, 2002 11:10 AM
Subject: html:img and servlet context - doesn't get it


 Subject: html:img and servlet context - doesn't get it
 From: Matt Raible [EMAIL PROTECTED]
  ===
 I am having a problem in my webapp.

 I setup the mapping to my images directory in my struts-config.xml as
 follows:

 forward name=images path=/images/

 This works great, as I then write my images as follows:

 img src=html:rewrite forward='images'//logoOnpoint.gif
 class=logo/

 The html:rewrite adds {context}/images to the src attribute.

 However, when I hit my welcome page for the first time, the src is
resolved
 as:


/onpoint/images;jsessionid=1514B06821426587237517B89374C181/logoOnpoint.gif

 I attempted to fix this by using the html:img tag

 html:img src=/images/logoOnpoint.gif thinking that this would resolve
to
 the proper src with the context pre-pended.  No Dice.

 Any ideas?

 I took out the html:base tag since it was resolving to my tiles template,
 rather than the actual request URL.

 Thanks,

 Matt






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




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




RE: DynaValidatorActionForm

2002-03-26 Thread See Yam Lim

Thanks David. That's great! I got it now.

-Original Message-
From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 2:14 PM
To: Struts Users Mailing List
Subject: Re: DynaValidatorActionForm


I don't see anything wrong, but I wrote the javadoc so
I might be missing something.

DynaValidatorForm - uses the name of your form bean
(registrationForm) to retrieve the set of validation
rules

DynaValidatorActionForm - uses the name of your action
(/registration) to retrieve the set of validation
rules

These just give you a choice how you want to handle
storing/retrieving your validation rules.

The form element's name attribute in the
validation.xml is just a key used to store and
retrieve a set of validation rules.

David

--- See Yam Lim [EMAIL PROTECTED] wrote:
 The key passed into the validator is the action
 element's 'path' attribute
 from the struts-config.xml which should match the
 form element's name
 attribute in the validation.xml.
 
 Validator validator =
 StrutsValidatorUtil.initValidator(mapping.getPath(),
  
 this,
  
 application,
 request,
  
 errors,
 page);
 
 i found the above javadoc and code that in
 DynaValidatorActionForm which i
 think it should be the action element's 'name'
 attribute from the
 struts-config.xml to form element's name attribute
 in the validation.xml.
 Can anyone confirm me on that or tell me why
 otherwise?
 
 Thanks so much!
 
 
 
 See-Yam Lim
 
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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



Re: html:img and servlet context - doesn't get it

2002-03-26 Thread @Basebeans.com

Subject: Re: html:img and servlet context - doesn't get it
From: Matt Raible [EMAIL PROTECTED]
 ===
Worked like a charm - thanks Max!

Max Cooper [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Use the page attribute instead of src to have the context path prepended:

 html:img page=/images/logoOnpoint.gif

 -Max

 - Original Message -
 From: Struts Newsgroup @[EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 26, 2002 11:10 AM
 Subject: html:img and servlet context - doesn't get it


  Subject: html:img and servlet context - doesn't get it
  From: Matt Raible [EMAIL PROTECTED]
   ===
  I am having a problem in my webapp.
 
  I setup the mapping to my images directory in my struts-config.xml as
  follows:
 
  forward name=images path=/images/
 
  This works great, as I then write my images as follows:
 
  img src=html:rewrite forward='images'//logoOnpoint.gif
  class=logo/
 
  The html:rewrite adds {context}/images to the src attribute.
 
  However, when I hit my welcome page for the first time, the src is
 resolved
  as:
 
 

/onpoint/images;jsessionid=1514B06821426587237517B89374C181/logoOnpoint.gif
 
  I attempted to fix this by using the html:img tag
 
  html:img src=/images/logoOnpoint.gif thinking that this would
resolve
 to
  the proper src with the context pre-pended.  No Dice.
 
  Any ideas?
 
  I took out the html:base tag since it was resolving to my tiles
template,
  rather than the actual request URL.
 
  Thanks,
 
  Matt
 
 
 
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 


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




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




Returning the selected value from an html:select

2002-03-26 Thread josef richberg

Just wanted to say..this worked.

thanks jim.

(It didn't work the first time because I had a DB
error)..



Here's how I would do it.  Change the name of the
existing method that
returns a collection and add a method to get the
vname:

public Collection getVnameList(){
  return new DBAccess().getVendorNames();
}
public void setVname(String value){
  xx
}
public String getVname(){
  xx
}

Then change your bean:define property to
vnameList.  That should
do the trick.

-- Jim

josef richberg [EMAIL PROTECTED] writes:

 That I understand.  What I don't understand is how
to
 do that.  How can I reference the value chosen in
the
 select?  The id is tied to the bean.  
 
 --josef
 --- Jim Crossley [EMAIL PROTECTED] wrote:
  In your formbean, you need to distinguish between
  the value selected
  and the values able to be selected.  You've
  accounted for the latter.
  You need another method to account for the former.

  The property
  referred to in your bean:define (returning a
  Collection) should not be
  the same property referred to in your html:select
  that returns a
  String.
  
  -- Jim
  
  josef richberg [EMAIL PROTECTED] writes:
  
   I have the following code snippet: 
   bean:define id=vendornames name=ProdAddForm
   property=vname
   type=java.util.Collection/
   
   then below 
   html:select property=vname
   html:options collection=vendornames
   property=value  labelProperty=label/
   /html:select
   
   I have a getter method in my Action form: 
public Collection getVname(){
   return new DBAccess().getVendorNames();
}
   
   The problem is if I try to set the result of the
   selection via this method in the action form: 
public void setVname(String value){
  xx
}
   
   it errors with: No getter method for property
  vname of
   bean ProdAddForm 
   How do I retrieve the lone value of the select? 
   --josef
   
   
  
__
   Do You Yahoo!?
   Yahoo! Movies - coverage of the 74th Academy
  Awards®
   http://movies.yahoo.com/
   
   --
   To unsubscribe, e-mail:  
 
mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  --
  To unsubscribe, e-mail:  
 
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards®
 http://movies.yahoo.com/
 
 --
 To unsubscribe, e-mail:  
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




Templates and iPlanet

2002-03-26 Thread Juan Alvarado \(Struts List\)

I am trying to use the struts template mechanism in iPlanet Web Server 6.0,
and whenever I come to a page in the form of:

%@ taglib uri=/WEB-INF/struts-template.tld prefix=template %
template:insert  template='/commonElements/ceElUniversalTemplate.jsp'
template:put name='title'  content='Buscador - El Universal' 
direct='true'
/
template:put name='header' content='/commonElements/ceTopBar.jsp' 
/
template:put name='sidebar'
content='/commonElements/ceLeftBar.jsp' /
template:put name='content'content='/article.jsp' /
template:put name='rightBar'   
content='/commonElements/ceRightAdBar.jsp'
/
/template:insert

iPlanet does not display the page and the error log contains the following
message:

 root cause: javax.servlet.jsp.JspException:
D:\iplanet\eudcontent\commonElements\ceTopBar.jsp(41,78) Bad file argument
to include
at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
at _jsps._viewarticle_jsp._jspService(_viewarticle_jsp.java:260)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:247)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.j
ava:237)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:520)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl
etRunner.java:897)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1
065)
at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunne
r.java:959)
at com.iplanet.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
at
com.iplanet.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatc
her.java:48)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl
etRunner.java:897)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1
065)
at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSS


On tomcat I don't have any problems with templates.

If anyone has experienced this problem or a similar one, please let me know
what solution if any worked for you.

Sincerely,

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


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




Accessing form properties in Javascript

2002-03-26 Thread Bhaskar Gopalan

Hi,
how do i get and set form properties inside a javascript function? Do I have
to use
any ref to the Form Bean?

Thnx,
GB

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




Re: Accessing form properties in Javascript

2002-03-26 Thread theron . kousek


Perhaps someone else can correct me.I don't believe you can access this
within JavaScript since JavaScript is client side and forms are
server-side...

You could preload hidden properties from a form selection and then access
them thru JavaScript

I had to set a form's propery thru JavaScript and I had to have the
javascript method invoke a JSP page which included the form bean in order
to get this done.

I'm curious if there's a better way.

thanks,
Theron



   
  
Bhaskar Gopalan
  
bgopalan@adaptTo: [EMAIL PROTECTED]  
  
intel.com cc: 
  
   Subject: Accessing form properties in 
Javascript  
03/26/02 01:24 
  
PM 
  
Please respond 
  
to Struts Users
  
Mailing List   
  
   
  
   
  



Hi,
how do i get and set form properties inside a javascript function? Do I
have
to use
any ref to the Form Bean?

Thnx,
GB

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




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




Getting a value from the request object for variable for a custom tag?

2002-03-26 Thread @Basebeans.com

Subject: Getting a value from the request object for variable for a custom tag?
From: Preston Crawford [EMAIL PROTECTED]
 ===
I'm writing a custom pager for a resultset my company needs to page through.
I don't return every record, just the amount and set indicated by page size
and page number in the query. But I also want to return the total number
found.

So what I do, is in my action I make two calls..

request.setAttribute(ARRAYLIST_OF_STUFF, myCollection);
request.setAttribute(NUMBER_FOUND, intFound);

Now in the JSP page I forward to I retrieve ARRAYLIST_OF_STUFF to iterate
using the logic:iterate tag. However, here is the tricky part. I want to use
the number found as part of the pager tag. The reason being that the pager
tag needs to know how many records were found in order to produce the
following

1-10  |  11-20 |  21-30. etc...

So how do I get the value in my custom tag?

I've tried the following...

pager:pager currentPage=2 pageSize=10 totalResults=%=(Integer)
request.getAttribute(NUMBER_FOUND)% url=participantSearch.do

..but that doesn't work. What works? Or am I approaching this entirely
wrong?

Preston



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




RE: Accessing form properties in Javascript

2002-03-26 Thread Bhaskar Gopalan

Without struts,it's simple.

Inside javascript function:
document.formName.property.

How to do it when using struts?

Thnx,
GB

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 4:39 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: Accessing form properties in Javascript



Perhaps someone else can correct me.I don't believe you can access this
within JavaScript since JavaScript is client side and forms are
server-side...

You could preload hidden properties from a form selection and then access
them thru JavaScript

I had to set a form's propery thru JavaScript and I had to have the
javascript method invoke a JSP page which included the form bean in order
to get this done.

I'm curious if there's a better way.

thanks,
Theron



 

Bhaskar Gopalan

bgopalan@adaptTo:
[EMAIL PROTECTED]
intel.com cc:

   Subject: Accessing form
properties in Javascript  
03/26/02 01:24

PM

Please respond

to Struts Users

Mailing List

 

 




Hi,
how do i get and set form properties inside a javascript function? Do I
have
to use
any ref to the Form Bean?

Thnx,
GB

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




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

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




Multiple Selects in a JSP

2002-03-26 Thread @Basebeans.com

Subject: Multiple Selects in a JSP
From: Ken Holzer [EMAIL PROTECTED]
 ===
I have two selects in my JSP and I want to be able to dynamically change the
options of the 2nd select based on the choice selected from the 1st select.

Is there a way to do that using the Struts tags?

Thanks,

Ken



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




Opening a new window in Javascript

2002-03-26 Thread Bhaskar Gopalan

Hi,
how do I open a new window from a Javascript function?

window.open(url) does not work. Is there any other way to be followed
in struts?

Thnx,
Bhaskar

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




RE: Opening a new window in Javascript

2002-03-26 Thread Tero P Paananen

 how do I open a new window from a Javascript function?
 
 window.open(url) does not work. Is there any other way to be followed
 in struts?

The JavaScript FAQ usually helps in these type
of questions:

http://www.google.com/search?hl=enq=JavaScript+FAQ

-TPP

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




RE: Opening a new window in Javascript

2002-03-26 Thread Bhaskar Gopalan

Thanks. But I couldn't find my answer here as I am looking
out for a struts solution.

-gb

-Original Message-
From: Tero P Paananen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 5:40 PM
To: Struts Users Mailing List
Subject: RE: Opening a new window in Javascript


 how do I open a new window from a Javascript function?
 
 window.open(url) does not work. Is there any other way to be followed
 in struts?

The JavaScript FAQ usually helps in these type
of questions:

http://www.google.com/search?hl=enq=JavaScript+FAQ

-TPP

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

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




Re: Multiple Selects in a JSP

2002-03-26 Thread Richard Yee

The selection takes place on the browser. Therefore, you need to use 
JavaScript to do it. This is unless you have a large amount of different 
options in select #1 and need to go to the server to get the options for 
select #2. You'd then need to do an onchange in select #1. That would be 
pretty annoying for the user.

-Richard

At 02:25 PM 3/26/2002 -0800, you wrote:
Subject: Multiple Selects in a JSP
From: Ken Holzer [EMAIL PROTECTED]
  ===
I have two selects in my JSP and I want to be able to dynamically change the
options of the 2nd select based on the choice selected from the 1st select.

Is there a way to do that using the Struts tags?

Thanks,

Ken



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



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




  1   2   >