never mind RE: an often seen one

2001-07-20 Thread matt . m . cooper


Decided to live on the bleeding edge, installed jdk1.4,  installed 
tomcat4.
Copied struts *.war files into tomcat4 webapp dir and off it goes.

So far things look pretty cool I'll have to look into this more this 
weekend.

thank you jakarta team.

> 
> did I miss a step? 
> 




accessing user-defined classes from html:select and html:options tags

2001-07-20 Thread Philip Tucker

I'm using Struts 1.0 with Tomcat 3.2.2 and JBoss 2.2.2.  I'm using an
 containing an  tag in a JSP, with the property
attributes referring to form and bean fields.  It works fine when the Java
class of the 2 bean properties is String, but when I try to use class I
created I get an error.  I've verified my .class file is in the deployment
WAR file.

Do I have to do something special to use my own class?  Do I need an import
statement in the JSP?

Thanks,
Philip



Re: Web app init

2001-07-20 Thread Gregor Rayman

"Fabien Le Floc'h" <[EMAIL PROTECTED]> wrote:


> Hi,
> 
> I would like to know if it is possible to have some 
> code called at the web application initialization 
> (something like the init() method of the first servlet 
> called by the web app - which here is ActionServlet).
> 
> Should I just extend ActionServlet?

You could wriet your own servlet, which would do all the
important stuff in init().

--
gR




Web app init

2001-07-20 Thread Fabien Le Floc'h

Hi,

I would like to know if it is possible to have some code called at the web application 
initialization (something like the init() method of the first servlet called by the 
web app - which here is ActionServlet).

Should I just extend ActionServlet?


regards,

Fabien




RE: web application initialization

2001-07-20 Thread Abraham Kang

Hi Fabien,

   I typically do this in a StartupServlet in my web.xml.

   Here is an example of how I initialize Log4j:



  
weblogic.jsp.keepgenerated
true
  

  
log4j

com.infogain.DOG.logging.servlet.Log4jServlet

  debug
  2


  wlpi_log4j_conf
  /WEB-INF/wlpi_log4j_conf.properties


  base_category
  com.infogain.DOG


  base_priority
  info

  1
  

...

   The init() method of Log4jServlet handles stuff that needs to run before
Struts (struts's  is 2).

--Abraham

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Fabien Le Floc'h
> Sent: Wednesday, July 18, 2001 10:58 PM
> To: [EMAIL PROTECTED]
> Subject: web application initialization
>
>
> Hi,
>
> I would like to know if it is possible to have some code called
> at the web application initialization (something like the init()
> method of the first servlet called by the web app - which here is
> ActionServlet).
>
> Should I just extend ActionServlet?
>
>
> regards,
>
> Fabien
>
>




RE: Struts with IIS and WebLogic

2001-07-20 Thread Jason Te Whau

Doh! Thanks for the suggestion Abraham, I hadn't actually tried proxying by
path yet but that seems to have done the trick.
Thanks for your help and have a great weekend!


-Original Message-
From: Abraham Kang [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 4:34 PM
To: [EMAIL PROTECTED]
Subject: RE: Struts with IIS and WebLogic


Hi Jason,

   How do you have proxying set up on IIS is it my path or extension?  What
does the URL look like the first time through?

   By the way, I could never get failover to work with the IIS proxy
plug-in.

--Abraham

> -Original Message-
> From: Jason Te Whau [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 20, 2001 4:03 PM
> To: [EMAIL PROTECTED]
> Subject: Struts with IIS and WebLogic
>
>
> Hi
>
> We recently put the plug-in in for IIS and WebLogic and are
> encountering the
> problem where IIS is giving page not found errors because of the sessionid
> that the struts tags put on the URL for the first request to our
> application. We know its the sessionid causing the problem because all
> subsequent requests, which do not have the sessionid on the URL,
> work fine.
>
> Has anyone encountered this problem and knows of a solution?
>
> TIA
>
> BTW: Versions are IIS 5.0, WebLogic 6.0 sp1 on Win2K
>
>
>



an often seen one

2001-07-20 Thread matt . m . cooper


I looked at the archives and saw several mentions of do not put 
struts.jar in anything but the webapp\WEB-INF\lib area.  I did not put 
it in tomcats lib directory and dont believe its in my classpath.  

Tomcat starts on up but I get errors when its setting up the struts 
example program.


set JAVA_HOME=d:\jdk1.3
D:\jakarta-tomcat-3.2.1\bin>startup.bat
Including all jars in ..\lib in your CLASSPATH.
Using CLASSPATH: 
..\classes;..\lib\ant.jar;..\lib\crimson.jar;..\lib\jasper.jar;
..\lib\jaxp.jar;..\lib\jdbc2_0-stdext.jar;..\lib\parser.jar;..\lib\servl
et.jar;.
.\lib\webserver.jar;..\lib\xalan.jar;d:\jdk1.3\lib\tools.jar

New org.apache.struts.webapp.example.User
Begin event threw exception
java.lang.ClassNotFoundException: org.apache.struts.webapp.example.User
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)

 more stuff

cannot load servlet name: database

 some register messages and resolve of *.dtd's

New org.apache.struts.action.ActionFormBean
Begin event threw exception
java.lang.ClassNotFoundException: 
org.apache.struts.action.ActionFormBean
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)



The Basic steps I took to install where
download and extract tomcat3.2
download jaxp1.1 extract
download struts and extract 
copy jaxp's \*.jar into the tomcat3.2\lib directory
copy struts \lib\jdbc2_0-stdext.jar on over to tomcat3.2\lib
copy the struts\webapps\struts-example.war over to the 
tomcat3.2\webapps\ directory

did I miss a step? 




web application initialization

2001-07-20 Thread Fabien Le Floc'h

Hi,

I would like to know if it is possible to have some code called at the web application 
initialization (something like the init() method of the first servlet called by the 
web app - which here is ActionServlet).

Should I just extend ActionServlet?


regards,

Fabien




Re: Getting large resultset pagewise

2001-07-20 Thread Matt Raible

Check out Pager Tag Library. It should work fine on Tomcat 3.2.2

http://jsptags.com/tags/navigation/pager/


--- [EMAIL PROTECTED] wrote:
> 
> Hi,
>  Need some help to get large result set from the database and show
> pagewise ( say 10 per page ). I would like to cache previous/next pages too
> (to some extent). I am using Struts 1.0 and Tomcat3.2.2.
> I think the iterate tag will be the only one (beside traditional JSP) to
> use for looping.
> Any example will be appreciated.
> Thanks,
> -Raj
> 


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



RE: Struts with IIS and WebLogic

2001-07-20 Thread Abraham Kang

Hi Jason,

   How do you have proxying set up on IIS is it my path or extension?  What
does the URL look like the first time through?

   By the way, I could never get failover to work with the IIS proxy
plug-in.

--Abraham

> -Original Message-
> From: Jason Te Whau [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 20, 2001 4:03 PM
> To: [EMAIL PROTECTED]
> Subject: Struts with IIS and WebLogic
>
>
> Hi
>
> We recently put the plug-in in for IIS and WebLogic and are
> encountering the
> problem where IIS is giving page not found errors because of the sessionid
> that the struts tags put on the URL for the first request to our
> application. We know its the sessionid causing the problem because all
> subsequent requests, which do not have the sessionid on the URL,
> work fine.
>
> Has anyone encountered this problem and knows of a solution?
>
> TIA
>
> BTW: Versions are IIS 5.0, WebLogic 6.0 sp1 on Win2K
>
>
>




Struts with IIS and WebLogic

2001-07-20 Thread Jason Te Whau

Hi

We recently put the plug-in in for IIS and WebLogic and are encountering the
problem where IIS is giving page not found errors because of the sessionid
that the struts tags put on the URL for the first request to our
application. We know its the sessionid causing the problem because all
subsequent requests, which do not have the sessionid on the URL, work fine.

Has anyone encountered this problem and knows of a solution?

TIA

BTW: Versions are IIS 5.0, WebLogic 6.0 sp1 on Win2K





Re: html:select

2001-07-20 Thread Rama Krishna

yes, i do have setxyz, getxyz.


- Original Message -
From: "Prashanth_Thm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 3:46 PM
Subject: RE: html:select


> I presume you will be having these in your Form class ;
> getxyz() and
> setxyz() for the property "xyz"
>
> call setxyz(defaultvalue) when you set the values in the Form class.
> Hope this helps !
>
>
> > -Original Message-
> > From: Rama Krishna [SMTP:[EMAIL PROTECTED]]
> > Sent: Friday, July 20, 2001 3:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: html:select
> >
> > hi,
> >
> > in my select list i want an item to be selected default. for this i did
> > as:
> >
> >
> > 
> >
> >   
> >
> >   
> >
> > 
> >
> >   
> >
> >
> > but this is not working. am i missing something??? but when i hardcode a
> > value, it works fine.
> >
> > thanks,
> > rama.
> >
> >
> >
>



RE: html:select

2001-07-20 Thread Prashanth_Thm

I presume you will be having these in your Form class ;
getxyz() and 
setxyz() for the property "xyz"

call setxyz(defaultvalue) when you set the values in the Form class.
Hope this helps !


> -Original Message-
> From: Rama Krishna [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, July 20, 2001 3:42 PM
> To:   [EMAIL PROTECTED]
> Subject:  html:select
> 
> hi,
>  
> in my select list i want an item to be selected default. for this i did
> as: 
>  
>  
>  
> 
>   
> 
>   
> 
> 
> 
>   
>  
>  
> but this is not working. am i missing something??? but when i hardcode a
> value, it works fine.
>  
> thanks,
> rama.
>  
>  
>  



Re: Strus 1.1

2001-07-20 Thread Ted Husted

There will be a 1.01 maintenance release at the end of the month. 

My guess would be that a 1.1 release would not happen any time soon. A
lot depends on how much help the development team gets over on the DEV
list, including the workflow feature. The work on this particular
feature is still in the hand-waving stage.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/


"Gangadharappa, Kiran" wrote:
> 
> hi,
> I am interested in the workflow feature coming with Struts 1.1 (It is
> already there in the todo list).
> Any idea when Struts 1.1 gonna be released?
> Regards
> Kiran



Strus 1.1

2001-07-20 Thread Gangadharappa, Kiran

hi,
I am interested in the workflow feature coming with Struts 1.1 (It is
already there in the todo list).
Any idea when Struts 1.1 gonna be released?
Regards
Kiran



html:select

2001-07-20 Thread Rama Krishna



hi,
 
in my select list i want an item to be selected 
default. for this i did as: 
 
 
 
  

  
value="server">
    

  

 
 
but this is not working. am i missing 
something??? but when i hardcode a value, it works fine.
 
thanks,
rama.
 
 
 


Re: Action class question

2001-07-20 Thread troy hart

This would be entirely up to you... Depending upon the nature of the two
actions one choice may be preferable to the other.

If you wanted to have one action class you would need to check the request
to see which button was pressed. There would be a number of ways to do this
but the most straight forward would probably be to give the two buttons
distinct names. Then, if the "New" button was pressed there will be a
request parameter with it's name...

If you wanted to try the two action class approach you would probably need
to use javascript to toggle the value form's action between the two.

I would probably choose the first option in most cases.

Hope this helps,

Troy


- Original Message -
From: "Alberto Corona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 3:19 PM
Subject: Action class question


> Is an Action class responsbile for performing all
> possible actions submitted by a form?
>
> For example, if a Form includes two submit buttons: "New" and "Edit"
> Do I create one Action class that handles both actions?
> If so how do I check which submit button was pressed? Do I just check on
the
> HttpRequest?
>
> Thanks
>
> Alberto Corona
> ObjectWave Corp.
> 312.269.0111
> [EMAIL PROTECTED]
>
>




Getting large resultset pagewise

2001-07-20 Thread Rajarshi . Gangopadhyay


Hi,
 Need some help to get large result set from the database and show
pagewise ( say 10 per page ). I would like to cache previous/next pages too
(to some extent). I am using Struts 1.0 and Tomcat3.2.2.
I think the iterate tag will be the only one (beside traditional JSP) to
use for looping.
Any example will be appreciated.
Thanks,
-Raj




RE: Struts Bug? My Bug? Help!! Please!

2001-07-20 Thread Becky Moyer

Thank you!
I forgot about that.  Thanks for jogging my memory.  I know I've read about 
that in the mailing list somewhere before, but I couldn't find it.  I 
appreciate your quick response.

Becky

Original Message Follows
From: "Abraham Kang" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: RE: Struts Bug?  My Bug? Help!! Please!
Date: Fri, 20 Jul 2001 14:07:44 -0700

Hi Becky,

Did you override the reset () method of ActionForm?  If you didn't you
need to set the Attribute of your ActionForm object that represents the
multibox to null.

Like:

 public void reset(ActionMapping mapping, HttpServletRequest request) {

 this.action = "Create";
 this.autoConnect = false;
 this.yourMultiboxNames = null;

 }

--Abraham

 > -Original Message-
 > From: Becky Moyer [mailto:[EMAIL PROTECTED]]
 > Sent: Friday, July 20, 2001 1:20 PM
 > To: [EMAIL PROTECTED]
 > Subject: Struts Bug? My Bug? Help!! Please!
 >
 >
 >I've got a multibox/iterate combination form.  My webapp works
 > when there
 > is something to submit.  When I check at least one value checked in my
 > multiboxes, I get the expected result.  When there is nothing
 > checked in my
 > multiboxes, my form object is the same as it was before I changed the
 > checkboxes.  For example, I'll have 4 checkboxes displayed,
 > representing 4
 > strings, String1, String2, String3, String4.  I will check String2, press
 > submit, and I receive the correct form in my ActionClass.  After updating
 > the form object and returning to my multibox page, if I uncheck
 > String2 and
 > submit, the form I receive contains String2 as being checked.
 >
 > My form contains 3 String arrays, one of which contains links,
 > one contains
 > the string names, and the other contains the string names which
 > are checked.
 >
 > I have done as much testing as I can, gone through my code, and
 > cannot find
 > a bug.  Is this a bug (or perhaps it is a "feature" ;-) ) of Struts?
 >
 > If this isn't enough info, I can send code.  What is going on?
 >
 > Thanks so much!
 > Becky
 >
 >
 > _
 > Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp
 >
 >



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: Handling multiple forms...in a JSP

2001-07-20 Thread Michael Skariah

Thanks to all.
I got it working.
-Mike.

-Original Message-
From: Michael Skariah [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 1:21 PM
To: [EMAIL PROTECTED]
Subject: Handling multiple forms...in a JSP


Hello all,
I am not sure whether if this is a HTML question of a Struts question.
Anyways, I am trying my luck here.

I have a JSP with multiple forms. When the submit of form 1 is clicked, I
would like to read the value from the "source" of form 2 and set it in the
"action" property of form 1.
How can read the value of a different form.

Thanks a lot,
Michael.


---











---





ActionMappings class

2001-07-20 Thread Alberto Corona

Why would I want to extend the ActionMapping class?

Thanks

Alberto Corona
ObjectWave Corp.
312.269.0111
[EMAIL PROTECTED] 



Action class question

2001-07-20 Thread Alberto Corona

Is an Action class responsbile for performing all
possible actions submitted by a form?

For example, if a Form includes two submit buttons: "New" and "Edit"
Do I create one Action class that handles both actions?
If so how do I check which submit button was pressed? Do I just check on the
HttpRequest?

Thanks

Alberto Corona
ObjectWave Corp.
312.269.0111
[EMAIL PROTECTED]




RE: Struts Bug? My Bug? Help!! Please!

2001-07-20 Thread Abraham Kang

Hi Becky,

   Did you override the reset () method of ActionForm?  If you didn't you
need to set the Attribute of your ActionForm object that represents the
multibox to null.

Like:

public void reset(ActionMapping mapping, HttpServletRequest request) {

this.action = "Create";
this.autoConnect = false;
this.yourMultiboxNames = null;

}

--Abraham

> -Original Message-
> From: Becky Moyer [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 20, 2001 1:20 PM
> To: [EMAIL PROTECTED]
> Subject: Struts Bug? My Bug? Help!! Please!
>
>
>I've got a multibox/iterate combination form.  My webapp works
> when there
> is something to submit.  When I check at least one value checked in my
> multiboxes, I get the expected result.  When there is nothing
> checked in my
> multiboxes, my form object is the same as it was before I changed the
> checkboxes.  For example, I'll have 4 checkboxes displayed,
> representing 4
> strings, String1, String2, String3, String4.  I will check String2, press
> submit, and I receive the correct form in my ActionClass.  After updating
> the form object and returning to my multibox page, if I uncheck
> String2 and
> submit, the form I receive contains String2 as being checked.
>
> My form contains 3 String arrays, one of which contains links,
> one contains
> the string names, and the other contains the string names which
> are checked.
>
> I have done as much testing as I can, gone through my code, and
> cannot find
> a bug.  Is this a bug (or perhaps it is a "feature" ;-) ) of Struts?
>
> If this isn't enough info, I can send code.  What is going on?
>
> Thanks so much!
> Becky
>
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>




Re: not finding property on a form bean

2001-07-20 Thread Paul Holser

thanks for your reply.   actually, my actions were configured ok.
when i browse the URL:

http://localhost:8080/commissions/genTklsDailyForm.do 

it should invoke the action /genTklsDailyForm, which will place
a form bean named tklsDailyForm into request scope, and forward to
/jsp/tklsDailyForm.jsp.  this JSP is to display a select list of date ranges.
the action tklsDaily.do is what should be invoked when the form is
submitted.  i fiddled around with the action class a bit, and finally
ended up getting the error:

cant remove attribute from request scope

when org.apache.struts.taglib.html.FormTag.doEndTag() was called.
searching the archives, i discovered this is a problem with the version
of jasper used by the WebSphere test environment in my IDE
(VAJ 3.5.3), but that a possible workaround is to patch FormTag.
after patching FormTag, my page rendered the way i expected.

great list, i appreciate the response!

cheers,
p


>>> [EMAIL PROTECTED] 07/20/01 03:12PM >>>
If you really want to invoke the action associated with
"genTklsDailyForm.do" then the action of your form must not be
action="tklsDaily.do", but rather action="/genTklsDailyForm.do" (take note
of the slash).


Then your action-mapping should be:



  


...




This may not be exactly what you want, but it should work... I would
recomend taking a closer look at how to specify an action in your
struts-config.xml fileyou may want to specify the scope...

Hope this helps,

Troy

- Original Message -
From: "Paul Holser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 12:11 PM
Subject: not finding property on a form bean


new to struts, bear with me...8^)

i'm having difficulty making a particular form bean's properties available
to a JSP.

scenario:

...requesting genTklsDailyForm.do
...the TicketlessDailyReportFormAction puts a
com.blah.TicketlessDailyReportForm
bean into request scope
...then forwards to /jsp/tklsDailyForm.jsp
...error is: No getter method available for property selectedDateRange for
bean
under name org.apache.struts.taglib.html.BEAN

any hints?

my JSP:

<%@ 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" %>


Commissions: Ticketless Daily Report Form



  

  




TicketlessDailyReportForm has these methods:

public String getSelectedDateRange()
public void setSelectedDateRange(String selectedDateRange)
public String[] getDateRanges()

relevant synopsis of my struts-config.xml:


  ...
  

  
  

  


  

  








RE: Struts Bug? My Bug? Help!! Please!

2001-07-20 Thread Becky Moyer

Here is a simplified overview of what you need to do.  If you still would 
like code, I can still supply you with it, but I think this will be easier 
to understand.

ActionForm:

2 fields with associated getter and setters:

String[] CheckboxNames

String[] CheckboxValues

You must populate this form before you hit the JSP to display it (if you 
want to preset the values).  So, figure out all the possible values, and 
then figure out what you want checked.  So, for example...

checkboxNames[0] = "String1";
checkboxNames[1] = "String2";
checkboxNames[2] = "String3";
checkboxNames[3] = "String4";

and

checkboxValues[0] = "String2";
checkboxValues[1] = "String4";

Then say

MyForm form = new MyForm();
form.setCheckboxNames(checkboxNames);
form.setCheckboxValues(checkboxValues);

And put the form in the session.

When you get to your jsp, retreive the form from the session, and place it 
into the page context:

pageContext.setAttribute("MyForm", myform , PageContext.PAGE_SCOPE);

Then, where you want the multiple checkboxes on your jsp, do the following:




  

  


  

  





   



THen when you press submit and go to your actionClass, you can compare 
CheckboxNames to CHeckboxValues to see what was checked.

Did that explain it enough?

Hope it helps,
Becky



Original Message Follows
From: Prashanth_Thm <[EMAIL PROTECTED]>
To: Becky Moyer <[EMAIL PROTECTED]>
Subject: RE: Struts Bug?  My Bug? Help!! Please!
Date: Fri, 20 Jul 2001 16:23:53 -0400

Hi,
can you send me the code?
Actually i want to get the checked strings in my Action class which
i am not
able toyour code would be helpful to me.
and let me try to help you also if possible.

Prashanth.


 > -Original Message-
 > From:Becky Moyer [SMTP:[EMAIL PROTECTED]]
 > Sent:Friday, July 20, 2001 1:20 PM
 > To:  [EMAIL PROTECTED]
 > Subject: Struts Bug?  My Bug? Help!! Please!
 >
 >I've got a multibox/iterate combination form.  My webapp works when
 > there
 > is something to submit.  When I check at least one value checked in my
 > multiboxes, I get the expected result.  When there is nothing checked in
 > my
 > multiboxes, my form object is the same as it was before I changed the
 > checkboxes.  For example, I'll have 4 checkboxes displayed, representing 
4
 >
 > strings, String1, String2, String3, String4.  I will check String2, press
 > submit, and I receive the correct form in my ActionClass.  After updating
 > the form object and returning to my multibox page, if I uncheck String2
 > and
 > submit, the form I receive contains String2 as being checked.
 >
 > My form contains 3 String arrays, one of which contains links, one
 > contains
 > the string names, and the other contains the string names which are
 > checked.
 >
 > I have done as much testing as I can, gone through my code, and cannot
 > find
 > a bug.  Is this a bug (or perhaps it is a "feature" ;-) ) of Struts?
 >
 > If this isn't enough info, I can send code.  What is going on?
 >
 > Thanks so much!
 > Becky
 >
 >
 > _
 > Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Where did it go?!

2001-07-20 Thread dhay



Hi everyone.

I have something strange happening.  I have a 2 frame frameset, with buttons in
the top fram to let a user view a logfile in the lower frame, or download it.
If the chose to download the file, I get the ServletOutputStream from the
response in my action, and write to it.  I then close it and return null.

All that works fine - the user is prompted to download the file etc. - but I
then hit my strange problem.  If I click on the view button in the top frame,
nothing appears in the bottom frame, although I see in the tomcat window that
everything is geting processed like before.  It is as if it is writing it into
thin air!

Would really appreciate any help to find it!!

Cheers,

Dave






Handling multiple forms...in a JSP

2001-07-20 Thread Michael Skariah

Hello all,
I am not sure whether if this is a HTML question of a Struts question.
Anyways, I am trying my luck here.

I have a JSP with multiple forms. When the submit of form 1 is clicked, I
would like to read the value from the "source" of form 2 and set it in the
"action" property of form 1.
How can read the value of a different form.

Thanks a lot,
Michael.


---











---




Struts Bug? My Bug? Help!! Please!

2001-07-20 Thread Becky Moyer

   I've got a multibox/iterate combination form.  My webapp works when there 
is something to submit.  When I check at least one value checked in my 
multiboxes, I get the expected result.  When there is nothing checked in my 
multiboxes, my form object is the same as it was before I changed the 
checkboxes.  For example, I'll have 4 checkboxes displayed, representing 4 
strings, String1, String2, String3, String4.  I will check String2, press 
submit, and I receive the correct form in my ActionClass.  After updating 
the form object and returning to my multibox page, if I uncheck String2 and 
submit, the form I receive contains String2 as being checked.

My form contains 3 String arrays, one of which contains links, one contains 
the string names, and the other contains the string names which are checked.

I have done as much testing as I can, gone through my code, and cannot find 
a bug.  Is this a bug (or perhaps it is a "feature" ;-) ) of Struts?

If this isn't enough info, I can send code.  What is going on?

Thanks so much!
Becky


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Trouble using Struts...

2001-07-20 Thread Palmer, Nick

I have been trying to setup a multi-page form using Struts and Tomcat. I am
having some trouble though, and am in need of help.

I have set up a form bean that has all of the fields required across all
pages of the form. I have setup a single action that handles the input of
the form at each step. The problem that I am having is that the form bean
does not seem to get stored in the session across the pages of the form. I
have set the scope to session in my struts-config.xml file and in the
various jsp pages of the form, and am using the same name value  ("sufs") in
all places.

The form is being submitted properly to the Action, but then when the next
page is submitted I see a "Looking for ActionForm bean under attribute
'sufs'" in the servlet.log file. followed by a "Recycling existing
ActionForm instance of class...". When I log the form again in the Action
all of the previously created values are no longer there. Any suggestions on
what I am doing wrong?

Thanks for any help,
-Nick 



Re: not finding property on a form bean

2001-07-20 Thread troy hart

actually, my reply was a little hasty...on a closer look I'm little confused
at what you want...but here's my best guess.

If you really want to invoke the action associated with
"genTklsDailyForm.do" then the action of your form must not be
action="tklsDaily.do", but rather action="/genTklsDailyForm.do" (take note
of the slash).

Then your action-mapping should be:



  


...




This may not be exactly what you want, but it should work... I would
recomend taking a closer look at how to specify an action in your
struts-config.xml fileyou may want to specify the scope...

Hope this helps,

Troy

- Original Message -
From: "Paul Holser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 12:11 PM
Subject: not finding property on a form bean


new to struts, bear with me...8^)

i'm having difficulty making a particular form bean's properties available
to a JSP.

scenario:

...requesting genTklsDailyForm.do
...the TicketlessDailyReportFormAction puts a
com.blah.TicketlessDailyReportForm
bean into request scope
...then forwards to /jsp/tklsDailyForm.jsp
...error is: No getter method available for property selectedDateRange for
bean
under name org.apache.struts.taglib.html.BEAN

any hints?

my JSP:

<%@ 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" %>


Commissions: Ticketless Daily Report Form



  

  




TicketlessDailyReportForm has these methods:

public String getSelectedDateRange()
public void setSelectedDateRange(String selectedDateRange)
public String[] getDateRanges()

relevant synopsis of my struts-config.xml:


  ...
  

  
  

  


  

  







Re: not finding property on a form bean

2001-07-20 Thread troy hart

You seem to have action element a little messed up... try the following
(notice the change to "path" and the addition of "name"):



  

...



- Original Message -
From: "Paul Holser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 12:11 PM
Subject: not finding property on a form bean


new to struts, bear with me...8^)

i'm having difficulty making a particular form bean's properties available
to a JSP.

scenario:

...requesting genTklsDailyForm.do
...the TicketlessDailyReportFormAction puts a
com.blah.TicketlessDailyReportForm
bean into request scope
...then forwards to /jsp/tklsDailyForm.jsp
...error is: No getter method available for property selectedDateRange for
bean
under name org.apache.struts.taglib.html.BEAN

any hints?

my JSP:

<%@ 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" %>


Commissions: Ticketless Daily Report Form



  

  




TicketlessDailyReportForm has these methods:

public String getSelectedDateRange()
public void setSelectedDateRange(String selectedDateRange)
public String[] getDateRanges()

relevant synopsis of my struts-config.xml:


  ...
  

  
  

  


  

  







Oracle 9i and Struts

2001-07-20 Thread ARGEXT-LOPEZ, MARTIN

I don't now if someone ask this. I'm new in the list, sorry.

Oracle 9i run whit Struts?



Re: Bug in Struts when using base class for forms?

2001-07-20 Thread Levi Cook

FYI, this is a known, non-struts, issue- Bascically, properties, getters and
setters can't be static per the bean spec... Therfore, struts cannot use
normal bean introspection to populate your form.

Definitely search the archive for more info if you need it, its there.

Regards,
Levi

- Original Message -
From: "Holger Wiechert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 5:48 AM
Subject: Bug in Struts when using base class for forms?


Hi,

I'm in some kind of a hurry, so I didn't check the bug list or the archive.
In case, that this is a known issue, just forget about it.

So here's the apparent bug:

I'm using a base form class with some static fields and the
getters and setters:


MyBaseForm extends ActionForm implements java.io.Serializable
{

private static List someLabels = new ArrayList();
private static List someValues = new ArrayList();
private static String value = null;

public static final void setSomeLabels(List someLabels_param)
{
someLabels = someLabels_param;
}

public static final List getSomeLabels()
{
return someLabels;
}

public static final void setSomeValues(List someValues_param)
{
someValues = someValues_param;
}

public static final List getSomeValues()
{
return someValues ;
}

public static final void setValue(String value_param)
{
value= value_param;
}

public static final String getValue()
{
return value;
}


}

Then I have another form class
MyNewFormClass extends MyBaseForm implements java.io.Serializable
{
 //...
}

When I use MyNewFormClass within an JSP with the select/options tag
(






I get the following error message:

Root cause:

javax.servlet.jsp.JspException: No getter method available for property
someValues for bean under name null
at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:360)


However, this does not happen, when the getters are not static!

So, is this a bug? I guess, because it doesn't allow me an important feature
(static getters for static fields).
Well, I can make my way around by doubling the getters: once static and once
not static

Holger






Re: Looking for Statistics

2001-07-20 Thread Christine Eckstein

Wow, this mailing list is s active, I almost overlooked
your reply and sent it off into the digital wasteland.  I'm
sorry!

Thank you for your help.  I'll check it out and once I have
some numbers, I'll be glad to share. :)

-cme-


--- Ted Husted <[EMAIL PROTECTED]> wrote:
> I don't have a model 1 version, but I've put up a WAR
> with brief
> skeleton application at: 
> 
> < http://husted.com/about/struts/resources.htm#new >
> 
> along the lines of your requirements.



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



not finding property on a form bean

2001-07-20 Thread Paul Holser

new to struts, bear with me...8^)

i'm having difficulty making a particular form bean's properties available to a JSP.

scenario:

...requesting genTklsDailyForm.do
...the TicketlessDailyReportFormAction puts a com.blah.TicketlessDailyReportForm
bean into request scope
...then forwards to /jsp/tklsDailyForm.jsp
...error is: No getter method available for property selectedDateRange for bean
under name org.apache.struts.taglib.html.BEAN

any hints?

my JSP:

<%@ 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" %>


Commissions: Ticketless Daily Report Form



  

  




TicketlessDailyReportForm has these methods:

public String getSelectedDateRange()
public void setSelectedDateRange(String selectedDateRange)
public String[] getDateRanges()

relevant synopsis of my struts-config.xml:


  ...
  
  
  
  

  


  

  





RE: html:options value and label

2001-07-20 Thread Jason Te Whau

Hi, TGIF from me too :)

I guess you could try using an iterate tag because it seems that the values
you want are just a sequence, which you can expose using the indexId
attribute.

Otherwise you will need to specify both the property and labelProperty
attributes of the options tag, which lets you have labels that are different
to the values, like this:


   


But then your collection would have to store an object that has both a
getDayId() and getDayName() method.



-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 10:09 AM
To: [EMAIL PROTECTED]
Subject: html:options value and label


TGIF to all,

I have the following code that generates a :


   


HTML output:


Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday



The "dayNames" is a String array in a bean.

I would like my select's values to contain 1-7, rather than actual day
names. 
Is this possible without creating any new getters on my bean?

Desired HTML:


Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday



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



RE: Problem with tag?

2001-07-20 Thread Mark Schenk

> When I try to use
> 
> I get the message
> "According to TLD attribute key is mandatory for tag message"
>
> The message is incorrect, at least if I am to believe the documentation of
the BEAN TLD!
>
> Does anyone has any experience using "name" & "property" instead of "key"?

Are you sure you're not confusing  and  ? What
would
you expect as output from your above tag?





Mark Schenk |   Ceci n'est pas une signature
Blackboard Project Manager  |
Delft University of Technology  |E-mail: [EMAIL PROTECTED]
Dept.: DTO  |Phone:  +31 152785448 (85448)
Room: LB00.680  |Fax:+31 152786359





html:options value and label

2001-07-20 Thread Matt Raible

TGIF to all,

I have the following code that generates a :


   


HTML output:


Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday



The "dayNames" is a String array in a bean.

I would like my select's values to contain 1-7, rather than actual day names. 
Is this possible without creating any new getters on my bean?

Desired HTML:


Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday



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



Struts with Oracle 9i Application Server and Jdeveloper....

2001-07-20 Thread Jean-Francois Brassard



Hi,
 
I want to know if Struts works well with Oracle 9i 
Application Server and Jdeveloper!!!
 
Thanks you in advance


Re: Any Pointers regarding Action Classes

2001-07-20 Thread Calvin Yu


If you don't figure out why ApplicationMappings.java and
ActionForward.java isn't compiling, it isn't going to help you to
compile an Action class.  I imagine the problem that is causing the
compilation of those two classes is going cause the compilation failures
of many of your other classes.

The best thing you can do is start from scratch.  Move all your java
files somewhere else and start adding them back one by one, compiling
each file along the way. 

Calvin


On 20 Jul 2001 15:34:40 +0100, Chuck Amadi wrote:
> Hi , i require to create another Action Class contoller as the
> ApplicationMappings & ActionForward.java won't compile so i would like
> to create an Action.java and run ant to compile. Thus is there a n
> example of this class and is it a abstract class with no
> methods(uniplemented methods-empty bodies ) as my java is only at
> fundamental level.
> 
> I have checked the struts-example no joy
> albiet there is at 4.2 Action Classes   userGuide/building_controller 
> thus appears Abstract enough.
> 
> Cheers Chuck.
> -- 
> The views expressed by the sender of this message don't 
> necessarily represent those of Brecon Beacons National Park 
> Authority. This message is intended for the addressee(s) only 
> and is sent in confidence; if you receive it in error, please can you 
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn 
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. 
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion 
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn 
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i 
> ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.





Help Pls regarding Action Classes - Path

2001-07-20 Thread Chuck Amadi

Hi, is it feasiable to drop my .java file into classes dir instead of
the path 
bbnpa/WEB-INF/classes/org/apache/struts/action
bbnpa/WEB-INF/classes/org/apache/struts/custom
bbnpa/WEB-INF/classes/org/apache/struts/logon

Use bbnpa/WEB-INF/classes/action and so on.
As i have tried to create a interface class albiet Netbeans IDE isn't
happy with the 
package bbnpa/WEB-INF/classes/org/apache/struts/action

I have tried just using package action; out of WEB-INF .
Cheers Chuck


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



Problem with tag?

2001-07-20 Thread Guus Holshuijsen



I am using Struts 1.0 on Tomcat 
3.2.1.
 
When I try to use

I get the message
"According to TLD attribute key is 
mandatory for tag message"
 
The message is incorrect, at least 
if I am to believe the documentation of the BEAN TLD!
 
Does anyone has any experience 
using "name" & "property" instead of "key"?
 
Regards,
Guus
 
Guus Holshuijsen, VideturHorsten 
1, unit 1.185612 AX Eindhoven
The 
NetherlandsT:+31-40-2450214  F:+31-40-2939343  
M:+31-6-25077204


FW: Tree

2001-07-20 Thread O'Reilly John

sorry,  didn't mean to send the email below without comment

Well, mainmenu.xml is a static xml file representing a menu, menu.xsl is the
stylesheet that renders it (note the XSL  currently only handles one level
of nesting mainly due to my lack of knowledge of XSL!).  The
PortalAction.java class is a base class for all the action classes.  This is
very much a first attempt and some of this logic probably belongs in a
dedicated menu manager class.  A particular action calls LoadMenu with the
name of the menu it wants to load.  This checks for the id parameter (which
uniquely identifies each menu option) and uses this to add the selected and
expanded attributes to the appropriate menu options.

Note this is very much an early version and it already has a major bug -
keeping the id of the selected option between requests (if something other
than a menu option is responsible for generating the action) - I'm fixing
this at the moment.

I'm fairly new to struts ( and Cocoon) so if anyone knows a better way of
doing this please let me know.

> -Original Message-
> From: O'Reilly John 
> Sent: 20 July 2001 16:13
> To:   '[EMAIL PROTECTED]'
> Subject:  RE: Tree
> 
>  <>  <>  <> 
> 
> 
> -Original Message-
> From: Steven Leija [SMTP:[EMAIL PROTECTED]]
> Sent: 20 July 2001 15:50
> To:   '[EMAIL PROTECTED]'
> Subject:  RE: Tree
> 
> Do you have some code to show how you are doing this?
> 
> Steven
> 
> -Original Message-
> From: O'Reilly John [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, July 20, 2001 6:54 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Tree
> 
> 
> We are using Cocoon for our presentation (using XML/XSP/XSL).  What we
> have
> done is to store menus in static XML files.  In response to a request an
> action (making use of a menu manager) can load a specific menu.  If the
> action originated from selecting a menu option then that option is modifed
> by setting the "selected" attribute to true.  If the option has a sub menu
> then we set "expanded" to true.  The XSL can then interpret these
> attributes
> (i.e. not associating a href with an option if selected=true and showing
> the
> sub menu in expanded=true) to display the menu tree.
> 
> Has anyone else had experience of using menus with Struts/Cocoon.  Is
> there
> a better way of doing the above?
> 
> 
> -John
> 
> 
> 
> 
> > -Original Message-
> > From:   Matt Raible [SMTP:[EMAIL PROTECTED]]
> > Sent:   19 July 2001 19:56
> > To: [EMAIL PROTECTED]
> > Subject:Re: Tree
> > 
> > Have you seen the "struts-menu" application - it uses struts, 
> > javascript, and xml to build a DHTML tree.
> > 
> > Can be found at:
> > 
> > http://husted.com/about/struts/resources.htm#extensions
> > 
> > Matt
> > 
> > 
> > --- Levi Cook <[EMAIL PROTECTED]> wrote:
> > > I agree with Matts points, in addition here are a couple more 
> > > thoughts
> > on
> > > the challenge of tree navigation--
> > > 
> > > 1) From a mvc design perspective, a tree is just a view; assigning 
> > > responsibility of rendering a tree to "a lot of action classes" is
> > probably
> > > not optimal.
> > > 
> > > 2) Offhand, a key to building an effective tree view rests with 
> > > thinking about recursive associations-- ie. a container class that 
> > > may contain
> > itself
> > > (self containment)
> > > 
> > > Here's a common example:
> > > 
> > >  --
> > > |  Folder  |<>--  1
> > >  -- |
> > >  | *|
> > >  |  |
> > >   --
> > > 
> > > In this case, a Folder can have zero or more subfolders-- thus 
> > > yielding
> > a
> > > hierarchy, or tree :) Each folder can be contained by exactly one
> > folder.
> > > 
> > > With this model in mind, I believe you should consider creating a 
> > > custom
> > tag
> > > that expects this *type* of structure. Ideally, you're new "tree" 
> > > tag
> > would
> > > only need to rely on interfaces from the java collections framework.
> > > 
> > > 
> > > Regards,
> > > Levi
> > > 
> > > 
> > > - Original Message -
> > > From: "Gogineni, Pratima" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, July 19, 2001 10:09 AM
> > > Subject: Tree
> > > 
> > > 
> > > > Hi
> > > >
> > > > I have been thinking for a while about making a "tree" jsp 
> > > > component
> > using
> > > > struts. I like the idea of having a jsp based tree rather than 
> > > > using
> > the
> > > > javascript trees that are normally used.
> > > >
> > > > I know I will have to write a lot of action classes to support a
> > *Good*
> > > > generic tree. But does anyone know of any problems with using a 
> > > > jsp
> > based
> > > > tree rather than javascript based?
> > > >
> > > > Thanks
> > > > Pratima
> > > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, July 19, 2001 9:05 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: struts-layout
> > > >
> > > >
> > > > Hi there!
> > > >
> > > > 

RE: Tree

2001-07-20 Thread O'Reilly John

 <>  <>  <> 


> -Original Message-
> From: Steven Leija [SMTP:[EMAIL PROTECTED]]
> Sent: 20 July 2001 15:50
> To:   '[EMAIL PROTECTED]'
> Subject:  RE: Tree
> 
> Do you have some code to show how you are doing this?
> 
> Steven
> 
> -Original Message-
> From: O'Reilly John [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, July 20, 2001 6:54 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Tree
> 
> 
> We are using Cocoon for our presentation (using XML/XSP/XSL).  What we
> have
> done is to store menus in static XML files.  In response to a request an
> action (making use of a menu manager) can load a specific menu.  If the
> action originated from selecting a menu option then that option is modifed
> by setting the "selected" attribute to true.  If the option has a sub menu
> then we set "expanded" to true.  The XSL can then interpret these
> attributes
> (i.e. not associating a href with an option if selected=true and showing
> the
> sub menu in expanded=true) to display the menu tree.
> 
> Has anyone else had experience of using menus with Struts/Cocoon.  Is
> there
> a better way of doing the above?
> 
> 
> -John
> 
> 
> 
> 
> > -Original Message-
> > From:   Matt Raible [SMTP:[EMAIL PROTECTED]]
> > Sent:   19 July 2001 19:56
> > To: [EMAIL PROTECTED]
> > Subject:Re: Tree
> > 
> > Have you seen the "struts-menu" application - it uses struts, 
> > javascript, and xml to build a DHTML tree.
> > 
> > Can be found at:
> > 
> > http://husted.com/about/struts/resources.htm#extensions
> > 
> > Matt
> > 
> > 
> > --- Levi Cook <[EMAIL PROTECTED]> wrote:
> > > I agree with Matts points, in addition here are a couple more 
> > > thoughts
> > on
> > > the challenge of tree navigation--
> > > 
> > > 1) From a mvc design perspective, a tree is just a view; assigning 
> > > responsibility of rendering a tree to "a lot of action classes" is
> > probably
> > > not optimal.
> > > 
> > > 2) Offhand, a key to building an effective tree view rests with 
> > > thinking about recursive associations-- ie. a container class that 
> > > may contain
> > itself
> > > (self containment)
> > > 
> > > Here's a common example:
> > > 
> > >  --
> > > |  Folder  |<>--  1
> > >  -- |
> > >  | *|
> > >  |  |
> > >   --
> > > 
> > > In this case, a Folder can have zero or more subfolders-- thus 
> > > yielding
> > a
> > > hierarchy, or tree :) Each folder can be contained by exactly one
> > folder.
> > > 
> > > With this model in mind, I believe you should consider creating a 
> > > custom
> > tag
> > > that expects this *type* of structure. Ideally, you're new "tree" 
> > > tag
> > would
> > > only need to rely on interfaces from the java collections framework.
> > > 
> > > 
> > > Regards,
> > > Levi
> > > 
> > > 
> > > - Original Message -
> > > From: "Gogineni, Pratima" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, July 19, 2001 10:09 AM
> > > Subject: Tree
> > > 
> > > 
> > > > Hi
> > > >
> > > > I have been thinking for a while about making a "tree" jsp 
> > > > component
> > using
> > > > struts. I like the idea of having a jsp based tree rather than 
> > > > using
> > the
> > > > javascript trees that are normally used.
> > > >
> > > > I know I will have to write a lot of action classes to support a
> > *Good*
> > > > generic tree. But does anyone know of any problems with using a 
> > > > jsp
> > based
> > > > tree rather than javascript based?
> > > >
> > > > Thanks
> > > > Pratima
> > > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, July 19, 2001 9:05 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: struts-layout
> > > >
> > > >
> > > > Hi there!
> > > >
> > > > I am happy to inform you that the 0.3 version of struts-layout has
> > been
> > > > released on . struts-layout 
> > > > is
> > a
> > > tag
> > > > library for Struts that allows for fast and easy development of 
> > > > jsp
> > pages.
> > > 
> > > > With
> > > > struts-layout, pages are described with only a small set of 
> > > > special
> > tags.
> > > > HTML
> > > > tags are not any more needed (well, nearly), as struts-layout tags
> > > generates
> > > >
> > > > the layout. I kindly invite you to have a look on the site for 
> > > > more information.
> > > >
> > > > struts-layout is now used in my company's projects and in 
> > > > , a French site dedicated to
> > > information
> > > >
> > > > about application servers. French users can also find an 
> > > > introduction
> > to
> > > > Struts
> > > > and struts-layout on this site in the article section.
> > > >
> > > > Please feel free to send me feedbacks and bug reports.
> > > >
> > > > Cheers,
> > > >
> > > > Jean-Noel
> > > >
> > > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Get personalized email addr

Re: Form Tags documentation

2001-07-20 Thread Akram Jerbi

Thank you for the reply.

I got the original link from this website:
http://developer.bluestone.com/scripts/SaISAPI.dll/StrutsTrailMap.class/struts-trailmap/Trail5.htm


It is a tutorial by HP bluestone. It must be pretty old!

>The "form" tags were deprecated after the 0.5 milestone, and superceded
>by the "html" tags. For more about hte html tags, see
>
><
>http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#package_description

>>
>
>and
>
>< http://jakarta.apache.org/struts/struts-html.html >
>
>These are the links on the main Struts page. Where did you find the
>other link?
>
>Akram Jerbi wrote:
>> 
>> Does anybody know where to find documentation for Form Tags - which contain
tags
>> used to create struts input forms?
>> 
>> The link in the jakarta.apache website does not work!
>> http://jakarta.apache.org/struts/struts-form.html
>
>
__
Get Your FREE FlashMail Address now at http://www.flashmail.com
It's Free, Easy, & Fun !!!



Re: Form Tags documentation

2001-07-20 Thread Ted Husted

The "form" tags were deprecated after the 0.5 milestone, and superceded
by the "html" tags. For more about hte html tags, see

<
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#package_description
>

and

< http://jakarta.apache.org/struts/struts-html.html >

These are the links on the main Struts page. Where did you find the
other link?

Akram Jerbi wrote:
> 
> Does anybody know where to find documentation for Form Tags - which contain tags
> used to create struts input forms?
> 
> The link in the jakarta.apache website does not work!
> http://jakarta.apache.org/struts/struts-form.html



RE: Tree

2001-07-20 Thread Steven Leija

Do you have some code to show how you are doing this?

Steven

-Original Message-
From: O'Reilly John [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 20, 2001 6:54 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Tree


We are using Cocoon for our presentation (using XML/XSP/XSL).  What we have
done is to store menus in static XML files.  In response to a request an
action (making use of a menu manager) can load a specific menu.  If the
action originated from selecting a menu option then that option is modifed
by setting the "selected" attribute to true.  If the option has a sub menu
then we set "expanded" to true.  The XSL can then interpret these attributes
(i.e. not associating a href with an option if selected=true and showing the
sub menu in expanded=true) to display the menu tree.

Has anyone else had experience of using menus with Struts/Cocoon.  Is there
a better way of doing the above?


-John




> -Original Message-
> From: Matt Raible [SMTP:[EMAIL PROTECTED]]
> Sent: 19 July 2001 19:56
> To:   [EMAIL PROTECTED]
> Subject:  Re: Tree
> 
> Have you seen the "struts-menu" application - it uses struts, 
> javascript, and xml to build a DHTML tree.
> 
> Can be found at:
> 
> http://husted.com/about/struts/resources.htm#extensions
> 
> Matt
> 
> 
> --- Levi Cook <[EMAIL PROTECTED]> wrote:
> > I agree with Matts points, in addition here are a couple more 
> > thoughts
> on
> > the challenge of tree navigation--
> > 
> > 1) From a mvc design perspective, a tree is just a view; assigning 
> > responsibility of rendering a tree to "a lot of action classes" is
> probably
> > not optimal.
> > 
> > 2) Offhand, a key to building an effective tree view rests with 
> > thinking about recursive associations-- ie. a container class that 
> > may contain
> itself
> > (self containment)
> > 
> > Here's a common example:
> > 
> >  --
> > |  Folder  |<>--  1
> >  -- |
> >  | *|
> >  |  |
> >   --
> > 
> > In this case, a Folder can have zero or more subfolders-- thus 
> > yielding
> a
> > hierarchy, or tree :) Each folder can be contained by exactly one
> folder.
> > 
> > With this model in mind, I believe you should consider creating a 
> > custom
> tag
> > that expects this *type* of structure. Ideally, you're new "tree" 
> > tag
> would
> > only need to rely on interfaces from the java collections framework.
> > 
> > 
> > Regards,
> > Levi
> > 
> > 
> > - Original Message -
> > From: "Gogineni, Pratima" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 19, 2001 10:09 AM
> > Subject: Tree
> > 
> > 
> > > Hi
> > >
> > > I have been thinking for a while about making a "tree" jsp 
> > > component
> using
> > > struts. I like the idea of having a jsp based tree rather than 
> > > using
> the
> > > javascript trees that are normally used.
> > >
> > > I know I will have to write a lot of action classes to support a
> *Good*
> > > generic tree. But does anyone know of any problems with using a 
> > > jsp
> based
> > > tree rather than javascript based?
> > >
> > > Thanks
> > > Pratima
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, July 19, 2001 9:05 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: struts-layout
> > >
> > >
> > > Hi there!
> > >
> > > I am happy to inform you that the 0.3 version of struts-layout has
> been
> > > released on . struts-layout 
> > > is
> a
> > tag
> > > library for Struts that allows for fast and easy development of 
> > > jsp
> pages.
> > 
> > > With
> > > struts-layout, pages are described with only a small set of 
> > > special
> tags.
> > > HTML
> > > tags are not any more needed (well, nearly), as struts-layout tags
> > generates
> > >
> > > the layout. I kindly invite you to have a look on the site for 
> > > more information.
> > >
> > > struts-layout is now used in my company's projects and in 
> > > , a French site dedicated to
> > information
> > >
> > > about application servers. French users can also find an 
> > > introduction
> to
> > > Struts
> > > and struts-layout on this site in the article section.
> > >
> > > Please feel free to send me feedbacks and bug reports.
> > >
> > > Cheers,
> > >
> > > Jean-Noel
> > >
> > 
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail 
> http://personal.mail.yahoo.com/



Form Tags documentation

2001-07-20 Thread Akram Jerbi

Does anybody know where to find documentation for Form Tags - which contain tags
used to create struts input forms?

The link in the jakarta.apache website does not work!
http://jakarta.apache.org/struts/struts-form.html

Thank you 



__
Get Your FREE FlashMail Address now at http://www.flashmail.com
It's Free, Easy, & Fun !!!



Any Pointers regarding Action Classes

2001-07-20 Thread Chuck Amadi

Hi , i require to create another Action Class contoller as the
ApplicationMappings & ActionForward.java won't compile so i would like
to create an Action.java and run ant to compile. Thus is there a n
example of this class and is it a abstract class with no
methods(uniplemented methods-empty bodies ) as my java is only at
fundamental level.

I have checked the struts-example no joy
albiet there is at 4.2 Action Classes   userGuide/building_controller 
thus appears Abstract enough.

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



RE: NewB: Is Struts completely reliant on sessions

2001-07-20 Thread Brian . Duchouquette


Renzo, Felix,

If your front-end web server/load balancer (also known as Local Director or
Resonate, etc) is implemented to use IP stickiness, then this is a
non-issue since the Web user will be returned to the server which serviced
the original request.

Brian




   

"Renzo Toma"   

  

s4all.nl>cc:   

 Subject: RE: NewB: Is Struts completely 
reliant on sessions   
07/20/2001 

05:40 AM   

Please 

respond to 

struts-user

   

   






Hi

As long as you carry over all properties to the next request using form
elements (text, hidden, ...), you will only miss the LOCALE session
variable. But you set that by subclassing ActionServlet.

Actually when you stay away from wizard-like/multipage forms, you'll be
fine.


Renzo

-Original Message-
From: Felix Ulrich [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 20 juli 2001 11:29
To: [EMAIL PROTECTED]
Subject: NewB: Is Struts completely reliant on sessions


Hi

We have to build & deploy some web applications with
JSP/Servlets on an LVS cluster.  At the moment,
though, I don't think we can guarantee session
affinity (i.e. subsequent requests will end up on
different machines), and it seems that Struts uses
sessions quite heavily.

Am I right in thinking that sessions are a
pre-requisite of using the Struts framework?  Is there
any part of Struts I could still use without sessions
(e.g. some of the taglibs maybe)?

Thanks

Felix.


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie








Re: Server Side Validation not firing for Validator when Java Script is off

2001-07-20 Thread Scott Ryan

David,
Thanks for the great framework for validation.  I have found it
extremely useful and am glad to hear it is becoming
part of struts in the future.  I am working on some deployment and
maintenance issues and wondered if you had any 
suggestions based on your input below.

There are two issues:

1

First is keeping the xml files small and isolated for ease of
maintenance.  I was wondering about creating
a file called validators.xml that includes all the validators that I am
using in a project (Validator definitions and maybe the
javascript to go with it.)

I would then create a file for each form that I am validating that
contains the validation rules for each field.  

I could then create a validation.xml file that included all the above
files (Validator.xml and several formvalidation.xml files).  That would
allow us to work on validation rules for a set of forms independent of
the other forms.

Is this overkill?
How do you actually do an xml include?

2--
We have several non-struts applications and several separate isolated
struts applications.  We have one common javascript validation library
that is 
used for all projects.  If for example we had 2-nonstruts apps and 3
struts apps we would have to deploy 4 copies of the same javascript
code.  One for the 
non-struts apps and 3 for the struts apps since each struts app has a
validation.xml file containing the javascript as part of the file.

The scenario listed above would reduce the duplication to 2 since we
would now need one javascript library for the non-struts apps and one
validator.xml file for
the struts applications.

I sure would like to reduce that duplication to one.
It seems that the static and dynamic jsp references might do the trick
but I must admit I really don't understand it fully yet.  Also we don't
have jsp support for all
of the applications we deploy so it might present a packaging problem
as well.

I would appreciate anyone's input on this issue.  I am just trying to
reduce maint and support costs in the future as we deploy more and more
solutions that are struts based.

Thanks



Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 07/18/01 08:07PM >>>
If you look at the jsType.jsp, you will see that it is
referencing an external JavaScript file called
staticJavascript.jsp.  You could put other JavaScript
methods in that and call them from onclick, etc. 
Although I'm not sure if that is what you mean. 
Otherwise you could do an xml include.  I think the
JavaScript associated with a java method should be
with it in the xml file.

David

--- Scott Ryan <[EMAIL PROTECTED]> wrote:
> Yes the javascript is being generated.  I think the
> problem is that I
> used the validation.xml that comes with the latest
> release or your
> validator and some of it appears to not be
> compatible with Netscape
> version I am testing with.  Java script has the
> great benefit of failing
> but not indicating where the problem is.  
> 
> I stripped out all but the required and mask code
> and it works.  
> 
> I can now go through function by funtion and see
> which one is
> incompatible.
> 
> Is there any stratgy that would allow you to
> reference javascript that
> is in a library so that we could use some of the
> current javascript
> libraries we have today with out copying the code
> into the
> validation.xml.
> 
> My next challenge is to get the generated validation
> to work with the
> formatting javascript I currently have on the page. 
> This is currently
> causing some issues.
> 
> Thanks for the help.
> 
> Scott Ryan
> Developer
> First Bank Data Corporation
> Work: (303) 235-1485
> Cell:(303 263-3044
> 
> >>> [EMAIL PROTECTED] 07/18/01 03:49PM >>>
> Do you see any JavaScript being generated in the
> html?
> 
> David
> 
> --- Scott Ryan <[EMAIL PROTECTED]> wrote:
> > I have now converted to the latest version of the
> > Validator and that
> > caused the server side validation to start working
> > but not the javascript client side doesn't work. 
> It
> > goes straight to
> > the server validation.  I double checked
> everything
> > mentioned in the documentation and in the previous
> > messages in this
> > list and everything appears ok.  The only things
> > I think I need is the onsubmit addition and the
> > javascript validator
> > tag.  
> > 
> > Any more suggestions.
> > 
> > Scott
> > 
> > Scott Ryan
> > Developer
> > First Bank Data Corporation
> > Work: (303) 235-1485
> > Cell:(303 263-3044
> > 
> > >>> [EMAIL PROTECTED] 07/18/01 10:06AM >>>
> > The JavaScript part shouldn't have anything to do
> > with
> > the server side other than it uses the same object
> > in
> > application scope.  Does the name attribute of
> your
> > action (which matches the key the ActionForm is
> > stored
> > under) in the struts-config.xml the same as the
> form
> > element's name attribute?  
> > 
> >  >   
> >
>
type="com.w

Re: How to get the entire URL of referring page

2001-07-20 Thread Peter Alfors

You could use:  request.getHeader("Referer")

Which class has the getReferrer() method?

HTH,
Pete

Web Programmer wrote:

> Hi All!
>
> I am trying to capture of the entire URL of where the
> user has come from - i.e., the URL of the previous
> page.  I am getting null value when I invoke the
> getReferrer() method.
>
> Thanks.
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/




Bug in Struts when using base class for forms?

2001-07-20 Thread Holger Wiechert

Hi,

I'm in some kind of a hurry, so I didn't check the bug list or the archive.
In case, that this is a known issue, just forget about it.

So here's the apparent bug:

I'm using a base form class with some static fields and the
getters and setters:


MyBaseForm extends ActionForm implements java.io.Serializable
{

private static List someLabels = new ArrayList();
private static List someValues = new ArrayList();
private static String value = null;

public static final void setSomeLabels(List someLabels_param)
{
someLabels = someLabels_param;
}

public static final List getSomeLabels()
{
return someLabels;
}

public static final void setSomeValues(List someValues_param)
{
someValues = someValues_param;
}

public static final List getSomeValues()
{
return someValues ;
}

public static final void setValue(String value_param)
{
value= value_param;
}

public static final String getValue()
{
return value;
}


}

Then I have another form class 
MyNewFormClass extends MyBaseForm implements java.io.Serializable
{
 //...
}

When I use MyNewFormClass within an JSP with the select/options tag
(






I get the following error message:

Root cause: 

javax.servlet.jsp.JspException: No getter method available for property someValues for 
bean under name null
at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:360)


However, this does not happen, when the getters are not static!

So, is this a bug? I guess, because it doesn't allow me an important feature (static 
getters for static fields).
Well, I can make my way around by doubling the getters: once static and once not 
static

Holger




RE: HTTP requests in struts-config.xml

2001-07-20 Thread Noel Sebastien

What is that strange escape character "%26" as a parameter separator ??!!
Did you try the correct one which is "&" or perhaps better with the
equivalent HTML entity "&" ?
I didn't try myself but I won't understand if the following does not work :



> - Sébastien Noel - 
> 
> 
>   -Original Message-
>   From: Guus Holshuijsen [mailto:[EMAIL PROTECTED]]
>   Sent: vrijdag 20 juli 2001 12:48
>   To: [EMAIL PROTECTED]
>   Subject: HTTP requests in struts-config.xml
>   
>   
>   I would like to use the following request in a forward of an action
> in my web application's struts-config.xml file:
>   "/doorman.do?action=lfadm.list&ci=0"
>   
>   But when I put in:
>redirect="true"/>
>   I get XML parser errors when Tomcat starts up.
>
>   And when I put in:
>redirect="true"/>
>   I find that Struts does not interpret this as a parameter 'action'
> with value 'lfadm.list' and a parameter 'ci' with value '0' but as a
> parameter 'action' with value 'lfadm.list&ci=0' (note the change of %26
> into &).
>
>   The questions I have:
>   1. Is Struts designed to handle these kind of requests in a forward
> in struts-config.xml?
>   2. If the answer to 1 is yes: am I doing something wrong, or did I
> run into a Struts bug?
>   3. If the answer to 1 is no: What's another option?
>
>   Regards,
>   Guus
>
>   Guus Holshuijsen, Videtur
>   Horsten 1, unit 1.18
>   5612 AX Eindhoven
>   T:+31-40-2450214  F:+31-40-2939343  M:+31-6-25077204
>   
> 
> 
> 
> -
> 
> An electronic message is not binding on its sender. 
> Any message referring to a binding engagement must be confirmed in writing
> and duly signed.
> -
> 

-

Un courrier électronique n'engage pas son émetteur. Tout message susceptible de 
comporter un engagement doit être confirmé par un écrit dûment signé.

An electronic message is not binding on its sender. Any message referring to a binding 
engagement must be confirmed in writing and duly signed.

Ein elektronischer Brief bzw. eine elektronische Nachricht ist für den Absender nicht 
verbindlich. Jede Nachricht,  welche eine Verpflichtung beinhaltet, muß schriftlich 
bestätigt und ordnungsgemäß unterzeichnet werden.

-





How to get the entire URL of referring page

2001-07-20 Thread Web Programmer

Hi All!

I am trying to capture of the entire URL of where the
user has come from - i.e., the URL of the previous
page.  I am getting null value when I invoke the
getReferrer() method.

Thanks.

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



PLEASE UNSUBSCRIBE

2001-07-20 Thread Billy Talton

I tried via list server email address last week but apparently it does
not work!

-Original Message-
From: Renzo Toma [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 20, 2001 6:13 AM
To: [EMAIL PROTECTED]; suhas
Subject: RE: How do you load information into a bean that your form uses
before displaying it?


Not when you dont have a Form for your Action, which in my case ;)
Maybe I do not understand the question; you are referring to a normale
Form-Action-JSP model. Maybe Brett is too!?



-Original Message-
From: suhas [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 20 juli 2001 17:36
To: [EMAIL PROTECTED]
Subject: Re: How do you load information into a bean that your form uses
before displaying it?


no need to put the form Bean using the request.setAttribute("beanname",
bean) . It is done by struts framework .
rest is fine . Use  tag in Jsp .

Suhas

- Original Message -
From: Renzo Toma <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 11:46 AM
Subject: RE: How do you load information into a bean that your form uses
before displaying it?


>
> The pattern I use works as followed:
>
> - create a Action which reads data from a database
> - stuff all data in a bean and request.setAttribute("BeanName", bean);
> - forward to your "view" jsp and reference your data as  name="BeanName" property="field"/>
>
> NOTE:
>
> directly requesting the .jsp will give you an "cannot find bean
BeanName"
> exception. you may want to add a trap for that or simply moving the
.jsp
out
> of a public folder (to WEB-INF/ for example)
>
> -Original Message-
> From: Brett G. Palmer [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 20 juli 2001 4:18
> To: [EMAIL PROTECTED]
> Subject: How do you load information into a bean that your form uses
> before displaying it?
>
>
> I have a struts  which uses a struts Form bean.  I'd like
to
read
> data from a database and use that data as the default data for the
form.
>
> What is the best way to do this?
>
> Read the data and set the value parameter of the 

> and  tags?
>
> Load the data into a Form bean and use that bean for the form?
>
> I'm not sure how to do either of these options or if there is a third
better
> way to do it?
>
> Thanks,
> Brad
>
>
>






RE: Tree

2001-07-20 Thread O'Reilly John

We are using Cocoon for our presentation (using XML/XSP/XSL).  What we have
done is to store menus in static XML files.  In response to a request an
action (making use of a menu manager) can load a specific menu.  If the
action originated from selecting a menu option then that option is modifed
by setting the "selected" attribute to true.  If the option has a sub menu
then we set "expanded" to true.  The XSL can then interpret these attributes
(i.e. not associating a href with an option if selected=true and showing the
sub menu in expanded=true) to display the menu tree.

Has anyone else had experience of using menus with Struts/Cocoon.  Is there
a better way of doing the above?


-John




> -Original Message-
> From: Matt Raible [SMTP:[EMAIL PROTECTED]]
> Sent: 19 July 2001 19:56
> To:   [EMAIL PROTECTED]
> Subject:  Re: Tree
> 
> Have you seen the "struts-menu" application - it uses struts, javascript,
> and
> xml to build a DHTML tree.
> 
> Can be found at:
> 
> http://husted.com/about/struts/resources.htm#extensions
> 
> Matt
> 
> 
> --- Levi Cook <[EMAIL PROTECTED]> wrote:
> > I agree with Matts points, in addition here are a couple more thoughts
> on
> > the challenge of tree navigation--
> > 
> > 1) From a mvc design perspective, a tree is just a view; assigning
> > responsibility of rendering a tree to "a lot of action classes" is
> probably
> > not optimal.
> > 
> > 2) Offhand, a key to building an effective tree view rests with thinking
> > about recursive associations-- ie. a container class that may contain
> itself
> > (self containment)
> > 
> > Here's a common example:
> > 
> >  --
> > |  Folder  |<>--  1
> >  -- |
> >  | *|
> >  |  |
> >   --
> > 
> > In this case, a Folder can have zero or more subfolders-- thus yielding
> a
> > hierarchy, or tree :) Each folder can be contained by exactly one
> folder.
> > 
> > With this model in mind, I believe you should consider creating a custom
> tag
> > that expects this *type* of structure. Ideally, you're new "tree" tag
> would
> > only need to rely on interfaces from the java collections framework.
> > 
> > 
> > Regards,
> > Levi
> > 
> > 
> > - Original Message -
> > From: "Gogineni, Pratima" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 19, 2001 10:09 AM
> > Subject: Tree
> > 
> > 
> > > Hi
> > >
> > > I have been thinking for a while about making a "tree" jsp component
> using
> > > struts. I like the idea of having a jsp based tree rather than using
> the
> > > javascript trees that are normally used.
> > >
> > > I know I will have to write a lot of action classes to support a
> *Good*
> > > generic tree. But does anyone know of any problems with using a jsp
> based
> > > tree rather than javascript based?
> > >
> > > Thanks
> > > Pratima
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, July 19, 2001 9:05 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: struts-layout
> > >
> > >
> > > Hi there!
> > >
> > > I am happy to inform you that the 0.3 version of struts-layout has
> been
> > > released on . struts-layout is
> a
> > tag
> > > library for Struts that allows for fast and easy development of jsp
> pages.
> > 
> > > With
> > > struts-layout, pages are described with only a small set of special
> tags.
> > > HTML
> > > tags are not any more needed (well, nearly), as struts-layout tags
> > generates
> > >
> > > the layout. I kindly invite you to have a look on the site for more
> > > information.
> > >
> > > struts-layout is now used in my company's projects and in
> > > , a French site dedicated to
> > information
> > >
> > > about application servers. French users can also find an introduction
> to
> > > Struts
> > > and struts-layout on this site in the article section.
> > >
> > > Please feel free to send me feedbacks and bug reports.
> > >
> > > Cheers,
> > >
> > > Jean-Noel
> > >
> > 
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/



RE: How do you load information into a bean that your form uses before displaying it?

2001-07-20 Thread Renzo Toma


Not when you dont have a Form for your Action, which in my case ;)
Maybe I do not understand the question; you are referring to a normale
Form-Action-JSP model. Maybe Brett is too!?



-Original Message-
From: suhas [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 20 juli 2001 17:36
To: [EMAIL PROTECTED]
Subject: Re: How do you load information into a bean that your form uses
before displaying it?


no need to put the form Bean using the request.setAttribute("beanname",
bean) . It is done by struts framework .
rest is fine . Use  tag in Jsp .

Suhas

- Original Message -
From: Renzo Toma <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 11:46 AM
Subject: RE: How do you load information into a bean that your form uses
before displaying it?


>
> The pattern I use works as followed:
>
> - create a Action which reads data from a database
> - stuff all data in a bean and request.setAttribute("BeanName", bean);
> - forward to your "view" jsp and reference your data as  name="BeanName" property="field"/>
>
> NOTE:
>
> directly requesting the .jsp will give you an "cannot find bean BeanName"
> exception. you may want to add a trap for that or simply moving the .jsp
out
> of a public folder (to WEB-INF/ for example)
>
> -Original Message-
> From: Brett G. Palmer [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 20 juli 2001 4:18
> To: [EMAIL PROTECTED]
> Subject: How do you load information into a bean that your form uses
> before displaying it?
>
>
> I have a struts  which uses a struts Form bean.  I'd like to
read
> data from a database and use that data as the default data for the form.
>
> What is the best way to do this?
>
> Read the data and set the value parameter of the  
> and  tags?
>
> Load the data into a Form bean and use that bean for the form?
>
> I'm not sure how to do either of these options or if there is a third
better
> way to do it?
>
> Thanks,
> Brad
>
>
>





RE: HTTP requests in struts-config.xml

2001-07-20 Thread Renzo Toma



This 
falls in the category "I want to pass parameters along a redirecting 
forward, but I don't know how."
 
I have 
the same problem when:
 
- a user adds a new contact to a group in an 
hypothetical addressbook.
- on 
success a list of all contacts in that group is shown.
- to 
avoid double/triple-submissions due to reloads, I want to use a redirect, but 
then I cannot add/set a groupId=42.
- ugh.
 
The 
only solution I can think of - but havent tested it yet - is redirecting using 
response.sendRedirect() to a resolved forward url from the Action class.  
(The  tag contains code for the resolving 
logic.)
 
 
Does 
anyone know if redirecting from an Action class works?
 
 
Renzo

  -Original Message-From: Guus Holshuijsen 
  [mailto:[EMAIL PROTECTED]]Sent: vrijdag 20 juli 2001 
  12:48To: [EMAIL PROTECTED]Subject: HTTP 
  requests in struts-config.xml
  I would like to use the following 
  request in a forward of an action in my web application's struts-config.xml 
  file:"/doorman.do?action=lfadm.list&ci=0"
  But when I put in:
  
  I get XML parser errors when 
  Tomcat starts up.
   
  And when I put in:
  
  I find that Struts does not interpret this as a parameter 'action' with 
  value 'lfadm.list' and a parameter 'ci' with value '0' but as a parameter 
  'action' with value 'lfadm.list&ci=0' (note the change of %26 into 
  &).
   
  The questions I have:
  1. Is Struts designed to handle these kind of requests in a forward in 
  struts-config.xml?
  2. If the answer to 1 is yes: am I doing something wrong, or did I 
  run into a Struts bug?
  3. If the answer to 1 is no: What's another option?
   
  Regards,
  Guus
   
  Guus Holshuijsen, VideturHorsten 1, unit 1.185612 AX 
  EindhovenT:+31-40-2450214  F:+31-40-2939343  
  M:+31-6-25077204


Re: How do you load information into a bean that your form uses before displaying it?

2001-07-20 Thread suhas

no need to put the form Bean using the request.setAttribute("beanname",
bean) . It is done by struts framework .
rest is fine . Use  tag in Jsp .

Suhas

- Original Message -
From: Renzo Toma <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 11:46 AM
Subject: RE: How do you load information into a bean that your form uses
before displaying it?


>
> The pattern I use works as followed:
>
> - create a Action which reads data from a database
> - stuff all data in a bean and request.setAttribute("BeanName", bean);
> - forward to your "view" jsp and reference your data as  name="BeanName" property="field"/>
>
> NOTE:
>
> directly requesting the .jsp will give you an "cannot find bean BeanName"
> exception. you may want to add a trap for that or simply moving the .jsp
out
> of a public folder (to WEB-INF/ for example)
>
> -Original Message-
> From: Brett G. Palmer [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 20 juli 2001 4:18
> To: [EMAIL PROTECTED]
> Subject: How do you load information into a bean that your form uses
> before displaying it?
>
>
> I have a struts  which uses a struts Form bean.  I'd like to
read
> data from a database and use that data as the default data for the form.
>
> What is the best way to do this?
>
> Read the data and set the value parameter of the  
> and  tags?
>
> Load the data into a Form bean and use that bean for the form?
>
> I'm not sure how to do either of these options or if there is a third
better
> way to do it?
>
> Thanks,
> Brad
>
>
>




RE: How do you load information into a bean that your form uses before displaying it?

2001-07-20 Thread Renzo Toma


The pattern I use works as followed:

- create a Action which reads data from a database
- stuff all data in a bean and request.setAttribute("BeanName", bean);
- forward to your "view" jsp and reference your data as 

NOTE:

directly requesting the .jsp will give you an "cannot find bean BeanName"
exception. you may want to add a trap for that or simply moving the .jsp out
of a public folder (to WEB-INF/ for example)

-Original Message-
From: Brett G. Palmer [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 20 juli 2001 4:18
To: [EMAIL PROTECTED]
Subject: How do you load information into a bean that your form uses
before displaying it?


I have a struts  which uses a struts Form bean.  I'd like to read
data from a database and use that data as the default data for the form.

What is the best way to do this?

Read the data and set the value parameter of the  
and  tags?

Load the data into a Form bean and use that bean for the form?

I'm not sure how to do either of these options or if there is a third better
way to do it?

Thanks,
Brad







HTTP requests in struts-config.xml

2001-07-20 Thread Guus Holshuijsen



I would like to use the following 
request in a forward of an action in my web application's struts-config.xml 
file:"/doorman.do?action=lfadm.list&ci=0"
But when I put in:

I get XML parser errors when Tomcat 
starts up.
 
And when I put in:

I find that Struts does not interpret this as a parameter 'action' with 
value 'lfadm.list' and a parameter 'ci' with value '0' but as a parameter 
'action' with value 'lfadm.list&ci=0' (note the change of %26 into 
&).
 
The questions I have:
1. Is Struts designed to handle these kind of requests in a forward in 
struts-config.xml?
2. If the answer to 1 is yes: am I doing something wrong, or did I run 
into a Struts bug?
3. If the answer to 1 is no: What's another option?
 
Regards,
Guus
 
Guus Holshuijsen, VideturHorsten 1, unit 1.185612 AX 
EindhovenT:+31-40-2450214  F:+31-40-2939343  
M:+31-6-25077204


RE: NewB: Is Struts completely reliant on sessions

2001-07-20 Thread Renzo Toma


Hi

As long as you carry over all properties to the next request using form
elements (text, hidden, ...), you will only miss the LOCALE session
variable. But you set that by subclassing ActionServlet.

Actually when you stay away from wizard-like/multipage forms, you'll be
fine.


Renzo

-Original Message-
From: Felix Ulrich [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 20 juli 2001 11:29
To: [EMAIL PROTECTED]
Subject: NewB: Is Struts completely reliant on sessions


Hi

We have to build & deploy some web applications with
JSP/Servlets on an LVS cluster.  At the moment,
though, I don't think we can guarantee session
affinity (i.e. subsequent requests will end up on
different machines), and it seems that Struts uses
sessions quite heavily.

Am I right in thinking that sessions are a
pre-requisite of using the Struts framework?  Is there
any part of Struts I could still use without sessions
(e.g. some of the taglibs maybe)?

Thanks

Felix.


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie




NewB: Is Struts completely reliant on sessions

2001-07-20 Thread Felix Ulrich

Hi

We have to build & deploy some web applications with
JSP/Servlets on an LVS cluster.  At the moment,
though, I don't think we can guarantee session
affinity (i.e. subsequent requests will end up on
different machines), and it seems that Struts uses
sessions quite heavily.

Am I right in thinking that sessions are a
pre-requisite of using the Struts framework?  Is there
any part of Struts I could still use without sessions
(e.g. some of the taglibs maybe)?

Thanks

Felix.


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



RE: XML question

2001-07-20 Thread Aysen Bankeroglu

Hi Domingo:

I am not very sure if it is the same problem but i had a similar problem.

firstof all you do need the xerces.jar in the lib dir of your application.
also jboss-tomcat (v3.2) comes with a xerces.jar(v1_0_3) in dir
$tomcat_home/jakarta-tomcat-3.2-b8/lib, you have to overwrite this
xerces.jar file with a newer version.

i didnot change anything in the tomcat.sh

finally i do have jaxp.jar, xalan.jar, jasper.jar and parser.jsr in the same
dir.

cheers,
aysen

-Original Message-
From: Domingo Aguilera [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 1:43 AM
To: [EMAIL PROTECTED]
Subject: XML question


I am trying to run the struts-example that is included in nightly build ( 18
july )

Tomcat can't run because there's a problem when trying to run the digester
duties.

README file states that :

"Download and install an XML parser that is compatible with the Java
API"

I am trying Xerces 1.4.1.  Is this ok ?

Should I place the xerces.jar under
$TOMCAT_HOME/webapps/struts-example/WEB-INF/lib ?


or it has to be added to classpath in tomcat.sh ?

One more... is there anything else that I have to include besides xerces.jar
? ( I mean crimson.jar , jaxp.jar, etc. )


Domingo Aguilera
Chief Technical Officer
Sinergia Servicios,S.C.

www.sinergia.com.mx


DISCLAIMER: This e-mail contains Proprietary information some or all of
which may be legally privileged. It is for the intended recipient only.  If
an addressing or transmission error has misdirected this e-mail, please
notify the author by replying to this e-mail. If you are not the intended
recipient you must not disclose, distribute, copy, print or rely on this
e-mail. All information contained within this e-mail is subject to the Terms
& Conditions of Valtech Ltd. which are available upon request. 





Re: tag not found

2001-07-20 Thread Martin Cooper

The  and  tags were introduced for Struts 1.1,
so they are not available if you are using Struts 1.0.

The Struts web site generally documents what is available in the latest
nightly build. The documentation for any given build is available in the
struts-documentation.war file for that build, so you should refer to that
for the specifics of what is available in the build you are running.

--
Martin Cooper


- Original Message -
From: "Carlos Sham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 9:58 PM
Subject:  tag not found


>
> I'm trying to use the  tag. But it is not
> with the 1.0 or 1.0b03 distribution. However, it is still
> documented in the Logic tags library reference on the site.
>
> This is what I'm trying to do:
>
> 
> 
> 
>
> Any alternative to achieve this or pointer to get the
> 'notEmpty' tag would be very helpful.
>
> Thanks.
>
> --
> Carlos Sham
> [EMAIL PROTECTED]
>
>