Re: New To Struts

2001-08-09 Thread Pham Thanh Quan

I think the directory WEB-INF is in every context (directory) in the
directory applications, and there is always a default context (maybe
\application\defaultwebapp_serverName\WEB-INF in weblogic)

Quan

- Original Message -
From: Nitu Singh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 8:37 AM
Subject: Re: New To Struts


 Thanks a lot,
 And I did visit the home page for struts(and that's where the problem
 started).
 Let me explain u the doubts which I had going thru the page:
 1) All the downloads had 2-3 versions (for example, ANT, it had binary
 release, source realease and some RPM),
 which one I have to download, do I have to download all the 3?
 btw, if u can explain me the difference between source release and binary
 release, as I see them in almost all the downloads.
 2) Do I really have to download the Servlet API ?If yes, why? as weblogic
 supports servlets and why again to have one more servlet API?
 3) In many installations it says, I need to put some *distribution files*
or
 some *jar files*  in WEB-INF directory. I don't find any such directory
 in weblogic5.1. So what to do?
 These are only few of the things. The more I read, the more I get
confused?
 If you could clear my above queries, I can go ahead and then may be I will
 come up more questions?

 Thanks a lot,
 Nitu.
 - Original Message -
 From: Martin Cooper [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 3:29 PM
 Subject: Re: New To Struts


  You must not have visited the Struts home page, which should have been
 your
  *first* resort. :-)
 
  http://jakarta.apache.org/struts/
 
  There you will find:
 
  * A link to the Struts User Guide
 
  * A 'Resources' link, which will take you to a page listing several
  tutorials and articles on Struts.
 
  * An 'Installation' link, which will take you to a page detailing
specific
  installation instructions for over a dozen different containers,
including
  WebLogic 5.1.
 
  --
  Martin Cooper
 
 
  - Original Message -
  From: Nitu Singh [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, August 08, 2001 5:18 PM
  Subject: New To Struts
 
 
   Hi,
   I am new to struts and for past one week I am trying to find tutorials
 and
   materials regarding struts.
   The only thing I got is some tutorial in jspinsider.com.
   I understood the model of struts, but when putting it in to code, I am
   facing problem at very basic step.
   All I see in tutorials is they have explained how to use struts in
 tomcat
   server. But  I am using weblogic5.1 server.
   I have did all the settings as per directed for tomcat.
   I understand there must some different way of deploying struts in
 weblogic
   server.
   Can anyone please guide me through as what I should do to run my basic
   application?
   What all installations do I need and where should be they placed?
  
   I am really vexed up looking for these things on net. This mailing
list
 is
   my LAST REOSRT.
  
   Thanks and Regards,
   Nitu.
  
  
  
 
 






Re: New To Struts

2001-08-09 Thread Martin Cooper

Comments below.

- Original Message -
From: Nitu Singh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, August 08, 2001 6:37 PM
Subject: Re: New To Struts


 Thanks a lot,
 And I did visit the home page for struts(and that's where the problem
 started).
 Let me explain u the doubts which I had going thru the page:
 1) All the downloads had 2-3 versions (for example, ANT, it had binary
 release, source realease and some RPM),
 which one I have to download, do I have to download all the 3?
 btw, if u can explain me the difference between source release and binary
 release, as I see them in almost all the downloads.

The only download you need is the Struts binary distribution. If you read
something that stated that you needed more than this, please let us know
where you saw that, so that we can fix it. You don't need to download Ant at
all unless you want to rebuild Struts, or the example apps that come with
it.

The binary distribution contains everything you need, already compiled and
provided as one or more jar files, ready for you to include in your own
application.See
http://jakarta.apache.org/struts/installation.html#Installing for more
information on using a binary distribution.

The source distribution includes, ah, the source code and everything you
would need to rebuild your own version of Struts. See
http://jakarta.apache.org/struts/installation.html#Building if you want to
do that.

 2) Do I really have to download the Servlet API ?If yes, why? as weblogic
 supports servlets and why again to have one more servlet API?

You need to have some Servlet API implementation available if you're going
to compile your own code that relies on those interfaces. If WebLogic
includes that (as I would assume that it does, but I'm not familiar with
it), then you don't need to download another one.

 3) In many installations it says, I need to put some *distribution files*
or
 some *jar files*  in WEB-INF directory. I don't find any such directory
 in weblogic5.1. So what to do?

I suggest you follow the instructions for WebLogic 5.1. See
http://jakarta.apache.org/struts/installation-wls.html for more information.

 These are only few of the things. The more I read, the more I get
confused?
 If you could clear my above queries, I can go ahead and then may be I will
 come up more questions?

The best suggestion I can come up with is to follow the links that are
available to you, and search the mailing list archives. You are by no means
the first person to travel the path you are on.

--
Martin Cooper



 Thanks a lot,
 Nitu.
 - Original Message -
 From: Martin Cooper [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 3:29 PM
 Subject: Re: New To Struts


  You must not have visited the Struts home page, which should have been
 your
  *first* resort. :-)
 
  http://jakarta.apache.org/struts/
 
  There you will find:
 
  * A link to the Struts User Guide
 
  * A 'Resources' link, which will take you to a page listing several
  tutorials and articles on Struts.
 
  * An 'Installation' link, which will take you to a page detailing
specific
  installation instructions for over a dozen different containers,
including
  WebLogic 5.1.
 
  --
  Martin Cooper
 
 
  - Original Message -
  From: Nitu Singh [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, August 08, 2001 5:18 PM
  Subject: New To Struts
 
 
   Hi,
   I am new to struts and for past one week I am trying to find tutorials
 and
   materials regarding struts.
   The only thing I got is some tutorial in jspinsider.com.
   I understood the model of struts, but when putting it in to code, I am
   facing problem at very basic step.
   All I see in tutorials is they have explained how to use struts in
 tomcat
   server. But  I am using weblogic5.1 server.
   I have did all the settings as per directed for tomcat.
   I understand there must some different way of deploying struts in
 weblogic
   server.
   Can anyone please guide me through as what I should do to run my basic
   application?
   What all installations do I need and where should be they placed?
  
   I am really vexed up looking for these things on net. This mailing
list
 is
   my LAST REOSRT.
  
   Thanks and Regards,
   Nitu.
  
  
  
 
 







setter no called

2001-08-09 Thread Stefan Faist

Hello all,
I have my own tag that generates a link to save a field in the database. But
when I click the link the setter methods from the fields were not called.
How can I do this?

This is the generated link:
a href=/zeiterfassung-struts/editErfassung.do?id=saveArbeitstagimg
src=images/save.gif width=15 height=15 border=0
alt=Speichern//a

Can someone help?

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




what's about org.apache.struts.taglib.html.MessagesTag ?

2001-08-09 Thread Metehan Selvi



Hi,
what's about the MessagesTag -class 
(org.apache.struts.taglib.html.MessagesTag)
, which is documented in the javadocs, but is not placed in the framework ?
Is it deprecated and 'deleted' or have the 
developer forgotten to put it to the place where it should be ?

cheers
mete


please unsubscribe me

2001-08-09 Thread debu




please unsubscribe me


Kick start to Struts

2001-08-09 Thread Rodney Smith

Hi all,


Which comes first the chicken or the egg?
I need to know when creating a struts web application which comes first,
creating the java component first, then build the html and convert to jsp?
that is the question I need to get started into my own web application
through struts. I would really like as much feed back as possible in the best
professional approach to this. As I have so much enthusiasm, but not enough
knowledge in this area.
This sort of information that I request is second nature to web designs and
programmers I gather, but I am new to the game.

Thanks to all those listeners and most importantly thanks to the perfect
responses from Ted and Craig.

Kind Regards
Rodney Smith

-- 
Sent through GMX FreeMail - http://www.gmx.net




RE: what's about org.apache.struts.taglib.html.MessagesTag ?

2001-08-09 Thread Marcel Andres

Hi Mete
 
As much as I know, 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.
 
Marcel
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 8:05 AM
To: [EMAIL PROTECTED]
Subject: what's about org.apache.struts.taglib.html.MessagesTag ?


Hi,
what's about the MessagesTag -class (org.apache.struts.taglib.html.MessagesTag)
, which is documented in the javadocs, but is not placed in the framework ?
Is it deprecated and 'deleted' or have the developer forgotten to put it to the place 
where it should be ?
 
cheers
mete



html:error and frames

2001-08-09 Thread Stefan Faist

Hallo all,
I have a frameset with an menue a footer for system messages and tha main
frame. When in the main frame an error happend, the error messages should be
diblaed in the footer. Where must I set the html:error/ and what
parameters should I set in the tag?

When I set the html:error/ simply in the footer nothing happend when a
error happend. No error messages were displayed.

Can someone help me?
Best regards,
STEFAN




can`t submit form when using ie 5.0

2001-08-09 Thread Jan Fredrik Øveraasen

Hi
I have a form like this:

  html:form action=jsp/usermanagement_updateuser.do

html:text property=firstname size=15 /

   html:radio property=sex property=sex value=female /
   html:radio property=sex property=sex value=male/

td class=texth3bwhitea href=#
onClick=document.forms[0].submit()Send skjema/a/td

   /html:form

In ie 5.0 this form is not submitted. 

Can anyone tell me if there is something I can do different or is this a bug
in ie 5.0. 




___ Jan Fredrik Øveraasen | Senior Systems Developer 
___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo,
Norway
___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88
   ___ http://www.cellnetwork.com/ |
mailto:[EMAIL PROTECTED]




RE: can`t submit form when using ie 5.0

2001-08-09 Thread markus . colombo

Try a href=javascript:document.forms[0].submit()Send skjema/a

Hope this helps (I have no time to test at the moment)
(This is a bug in 5.0)

-Original Message-
From: Jan Fredrik Øveraasen
[mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 9. August 2001 11:54
To: '[EMAIL PROTECTED]'
Subject: can`t submit form when using ie 5.0


Hi
I have a form like this:

  html:form action=jsp/usermanagement_updateuser.do

html:text property=firstname size=15 /

   html:radio property=sex property=sex value=female /
   html:radio property=sex property=sex value=male/

td class=texth3bwhitea href=#
onClick=document.forms[0].submit()Send skjema/a/td

   /html:form

In ie 5.0 this form is not submitted.

Can anyone tell me if there is something I can do different or is this a bug
in ie 5.0.




___ Jan Fredrik Øveraasen | Senior Systems Developer
___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo,
Norway
___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88
   ___ http://www.cellnetwork.com/ |
mailto:[EMAIL PROTECTED]




RE: RE: dynamically setting the html:select property

2001-08-09 Thread JRender

thanks arnaud,

still having problems with the property attribute of the select tag.

I tried
html:select property=%= lookup# +idx % / 

but it seems to need to be pointing at an attribute of a bean otherwise it
complains;

Attribute lookup# has no value

It appears as though the property has to match an attribute on an object
somewhere..

so I set an attribute on my form to sequence and then try to access that
in an
expression. If I do

html:select property=sequence /
it just prints the name of the select as sequence, it doesn't evaluate
it.

If I try
html:select property=%= coverDetailsForm.getSequence() % / 
it complains

Undefined variable or class name: coverDetailsForm

how do I get the property to be set to a value from the form, not just the
name?

thanks..

James


---


Date: Wed, 8 Aug 2001 15:11:03 +0200
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
From: =?us-ascii?Q?Heritier_Arnaud?= [EMAIL PROTECTED]
Subject: RE: dynamically setting the html:select property
Message-Id: [EMAIL PROTECTED]

When you use a parameter of a tag, it should be a text or a regexp.
if you write html:select property=lookup#%= idx %  the tag
interpretor will see the string lookup# and suppose that the parameter
shouldn't be evaluated.
To do this you should write this : html:select
property=%=\lookup#+idx\% 

arnaud

-Message d'origine-
De:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date: mercredi 8 aout 2001 14:31
A:   [EMAIL PROTECTED]
Objet:dynamically setting the html:select property

Hi there,

inside an iterate tag I'm creating multiple textboxes and selects.

to unqiuely identify each item I am appending the index from the iteration
(idx) to the name; e.g.

input type=text name=rate#bean:write name=idx/ maxlength=10
value=bean:write name=limitBean property=rate /

I also need to do this for drop down selections. However I'm having some
problems with naming the selects dynamically.

html:select property=lookup#%= idx % 

didn't work, the result was select name=lookup#%= idx % 

I also tried setting an attribute on my form

jsp:setProperty name=coverDetailsForm property=lookupIdx value=%=
idx % /
html:select property=coverDetailsForm.lookupIdx value=
%= limitBean.getLimit().getLookupDataId().toString() % 
 html:options name=limitBean property=values
labelName=limitBean labelProperty=labels/
   /html:select

the result was select name=coverDetailsForm.lookupIdx 

I've had to resort to scriptlets, please help..

thanks James




recognizing a button

2001-08-09 Thread Bernhard J. Hirschmann

Hello!

How can I recognize in the ActionServlet, which button was pressed?
I have this two buttons:

html:submit value=Load property=load/
html:submit value=Submit property=submit/

How can I get the value of the attribute property inside of the
Action.perform method? I just can't figure out, which method to use.

Thanks in advance,
Bernhard




the complete picture

2001-08-09 Thread kaka wika

I am on a project where we are using struts. We have almost finished a proof 
of concept implementation, however, are struggling completing the flow.

We have created an action class and a data bean, which is a private object 
within an action form. Do we then create a new action form, set the bean and 
add it (action form) to the request, and invoke the findForward() method on 
the ActionMapping object? Will this make the ActionForm object available to 
the jsp?

Appreciate any help.

Also, has anyone had any experience with running struts on Weblogic proxied 
via IIS on win2k?

Thanks in advance!

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




Re: Kick start to Struts

2001-08-09 Thread William Jaynes

Don't be too hard on yourself. I'm not sure how much of programming has ever
become second nature to me. No matter how experienced one gets, there's always
too much new stuff to learn.

There is no right answer. You have to work out what is best for yourself. Some
advocate an approach that starts with the html, kind of a story boarding
approach. (see Ted's http://husted.com/about/struts/strutByStrut.htm) Other's
would say get the model right first, develop those objects, test them outside
any specific application (perhaps using JUnit). Of course, the usual method is
somewhere in between. (mmm... I guess this isn't much help.)

Will

- Original Message -
From: Rodney Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 3:54 AM
Subject: Kick start to Struts


Hi all,


Which comes first the chicken or the egg?
I need to know when creating a struts web application which comes first,
creating the java component first, then build the html and convert to jsp?
that is the question I need to get started into my own web application
through struts. I would really like as much feed back as possible in the best
professional approach to this. As I have so much enthusiasm, but not enough
knowledge in this area.
This sort of information that I request is second nature to web designs and
programmers I gather, but I am new to the game.

Thanks to all those listeners and most importantly thanks to the perfect
responses from Ted and Craig.

Kind Regards
Rodney Smith

--
Sent through GMX FreeMail - http://www.gmx.net





Re: recognizing a button

2001-08-09 Thread William Jaynes

String loadButton = (String)request.getParameter(load);
String submitButton = (String)request.getParameter(submit);

- Original Message - 
From: Bernhard J. Hirschmann [EMAIL PROTECTED]
To: Struts-User [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 6:26 AM
Subject: recognizing a button


Hello!

How can I recognize in the ActionServlet, which button was pressed?
I have this two buttons:

html:submit value=Load property=load/
html:submit value=Submit property=submit/

How can I get the value of the attribute property inside of the
Action.perform method? I just can't figure out, which method to use.

Thanks in advance,
Bernhard





ResponseUtils.filter

2001-08-09 Thread Beuck, Torsten

Hi.
The html:options tag handler (and other html tag handlers) uses
ResponseUtils.filter to replace the characters '', '', '' and '='. This
filter method changes the string 'Auml;ndern' to 'amp;Auml;ndern'. For
english text this may be a nice feature, but it prevents developers to use
text in languages with special characters (like german).
Is there a workaround or can anyone rewrite the filter method so that it
only replaces single '' characters and ignores character entities?

Torsten Beuck
OTTO Versand
Abteilung IT-EW-WQ
Wandsbeker Str. 3 - 7
22172 Hamburg

Tel.:  +49 40 6461 5351
Fax:   +49 40 6464 5351
eMail: [EMAIL PROTECTED]




Exception: Cannot find message resources under key org.apache.struts.action.MESSAGE

2001-08-09 Thread Thomas Quas


Allright, I guess this has been discussed before, but google.com didn't
give me any concrete results. Neither did I find something browsing the
mailing list archive.

I'm using Tomcat 4.0b6 and struts 1.0final on a Linux box.
When trying to go to http://localhost:8080/struts-example/index.jsp I
get the following exception:

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:452)
at
org.apache.jsp._0002findex_jsp._jspService(_0002findex_jsp.java:454)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
[snip] 


Has anybody solved this problem, probably with the same setup?


Thanks, tom


BTW: is there a FAQ available?
-- 
thomas quas| Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]
   |-- Allen Ginsberg --



AW: recognizing a button

2001-08-09 Thread Stefan Faist

Hallo Bernhard,
with String property = request.getParameter(load) you save Load in the
String property

Stefan

 -Ursprüngliche Nachricht-
 Von: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 9. August 2001 12:26
 An: Struts-User
 Betreff: recognizing a button


 Hello!

 How can I recognize in the ActionServlet, which button was pressed?
 I have this two buttons:

 html:submit value=Load property=load/
 html:submit value=Submit property=submit/

 How can I get the value of the attribute property inside of the
 Action.perform method? I just can't figure out, which method to use.

 Thanks in advance,
 Bernhard






Re: the complete picture

2001-08-09 Thread William Jaynes

I can't really understand what you are saying, but if you haven't yet worked
through the struts-example, I think you should do that.

Will

- Original Message -
From: kaka wika [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 6:36 AM
Subject: the complete picture


I am on a project where we are using struts. We have almost finished a proof
of concept implementation, however, are struggling completing the flow.

We have created an action class and a data bean, which is a private object
within an action form. Do we then create a new action form, set the bean and
add it (action form) to the request, and invoke the findForward() method on
the ActionMapping object? Will this make the ActionForm object available to
the jsp?

Appreciate any help.

Also, has anyone had any experience with running struts on Weblogic proxied
via IIS on win2k?

Thanks in advance!

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





Re: recognizing a button

2001-08-09 Thread Terence Jacyno

Hi.

If you want to figure out which button was pressed directly within your
ActionForm, try this.

Within the ActionForm that you associated with your HTML form, place the
following:

  public void MyActionForm extends ActionForm {
  protected boolean m_loadPressed = false;
  protected boolean m_submitPressed = false;

  ...

  public void setLoad(String load) {
  m_loadPressed = true;
  }
  public boolean isLoadPressed() {
  return m_loadPressed;
  }

  public void setSubmit(String submit) {
  m_submitPressed = true;
  }
  public boolean isSubmitPressed() {
  return m_submitPressed;
  }

  ...

 }

Now you can access which button was pressed by consulting the
corresponding methods within the ActionForm passed to the Action.perform
method.

Don't forget to reset the boolean values when you redisplay the form!

Terence


William Jaynes wrote:

 String loadButton = (String)request.getParameter(load);
 String submitButton = (String)request.getParameter(submit);

 - Original Message -
 From: Bernhard J. Hirschmann [EMAIL PROTECTED]
 To: Struts-User [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 6:26 AM
 Subject: recognizing a button

 Hello!

 How can I recognize in the ActionServlet, which button was pressed?
 I have this two buttons:

 html:submit value=Load property=load/
 html:submit value=Submit property=submit/

 How can I get the value of the attribute property inside of the
 Action.perform method? I just can't figure out, which method to use.

 Thanks in advance,
 Bernhard




Struts with weblogic

2001-08-09 Thread baris.guzelordu

Hi all,
I want to struggle with Struts with Weblogic 5.01...Does anyone have any
experience with Visual Age 3.5

-Original Message-
From: Terence Jacyno [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 2:11 PM
To: [EMAIL PROTECTED]
Subject: Re: recognizing a button


Hi.

If you want to figure out which button was pressed directly within your
ActionForm, try this.

Within the ActionForm that you associated with your HTML form, place the
following:

  public void MyActionForm extends ActionForm {
  protected boolean m_loadPressed = false;
  protected boolean m_submitPressed = false;

  ...

  public void setLoad(String load) {
  m_loadPressed = true;
  }
  public boolean isLoadPressed() {
  return m_loadPressed;
  }

  public void setSubmit(String submit) {
  m_submitPressed = true;
  }
  public boolean isSubmitPressed() {
  return m_submitPressed;
  }

  ...

 }

Now you can access which button was pressed by consulting the
corresponding methods within the ActionForm passed to the Action.perform
method.

Don't forget to reset the boolean values when you redisplay the form!

Terence


William Jaynes wrote:

 String loadButton = (String)request.getParameter("load");
 String submitButton = (String)request.getParameter("submit");

 - Original Message -
 From: "Bernhard J. Hirschmann" [EMAIL PROTECTED]
 To: "Struts-User" [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 6:26 AM
 Subject: recognizing a button

 Hello!

 How can I recognize in the ActionServlet, which button was pressed?
 I have this two buttons:

 html:submit value="Load" property="load"/
 html:submit value="Submit" property="submit"/

 How can I get the value of the attribute "property" inside of the
 Action.perform method? I just can't figure out, which method to use.

 Thanks in advance,
 Bernhard


***

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient you are hereby notified that any
dissemination, forwarding, copying or use of any of the information is
prohibited.

The opinions expressed in this message belong to sender alone. There is no
implied endorsement by TURKCELL.

This e-mail has been scanned for all known computer viruses.

***



Beans In Form Tags

2001-08-09 Thread Calvin Lau

For some reason I get the following error when I try
to access a bean from within a form tag:  
Attribute entry has no value...

When I use the regular HTML textbox instead of the
Struts Form tag for a textbox, it works.  Anyone know
why?  Thanks.

This works:
logic:iterate id=entry name=clientSingleForm
property=clientSingleQueryList
...
input type=text property=clientLogin size=10
value=bean:write name=entry property=clientLogin
/

This does NOT work:
logic:iterate id=entry name=clientSingleForm
property=clientSingleQueryList
...
form:text property=clientLogin size=10
value=bean:write name=entry property=clientLogin //form:text

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



select tag and indexed properties

2001-08-09 Thread Beuck, Torsten

Hi.

i have an ActionForm:

public class MyForm extends ActionForm {
  ...
  public Collection getOptions(int index) { ... }
  public Collection getLabels(int index) { ... }
  public String[] getSelection(int index) { ... }
  public void setSelection(int index, String[] value) { ... }
  ...
}

and the following JSP code:

html:form action=testForm.do
logic:iterate name=test property=list id=current indexId=ix
  ...
  html:select multiple=true name=form property='%= selection[+ix+]
%' size=3
html:options name=form property='%= options[+ix+] %'

  labelName=form labelProperty='%= labels[+ix+] %'/
  /html:select
  ...
/logic.iterate
/html:form

('test' is a bean that the list to iterate over; 'form' is the name of the
MyForm instance)

Everthing works fine but the setSelection(...) method. When i submit the
form i get:

java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.struts.util.PropertyUtils.setIndexedProperty(PropertyUtils.java:8
33)
at
org.apache.struts.util.PropertyUtils.setIndexedProperty(PropertyUtils.java:7
85)
at
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:90
2)
at
org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:772)
at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
61)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)

I have to define a method

  public void setSelection(int index, String value) { ... }

to get it working, but then i only get the first selected entry in the list
and not all. Is this a bug or did i something wrong?

Torsten Beuck
OTTO Versand
Abteilung IT-EW-WQ
Wandsbeker Str. 3 - 7
22172 Hamburg

Tel.:  +49 40 6461 5351
Fax:   +49 40 6464 5351
eMail: [EMAIL PROTECTED]




Re: Kick start to Struts

2001-08-09 Thread Ted Husted

As Will says, there's more than one approach, but here's what works for
me:

1. Write a specification, even if it's for yourself and just a paragraph
long. I started a sample outline for one th example at 
http://husted.com/about/struts/example-spec.html , but never finished
it. 

2. Storyboard the application workflow. Here I just whip up some HTML
screens with a visual editor like Dreamweaver or Frontpage. For testing
forms, you can put another storyboard page in as the action target, and
sample results on the other side. 

3. Now that I know what I'm writing ;-), I design the model (database
tables and queries). 

This is generally the first third of a project. 

4. As Will says, identify, build, and test any reusable objects first,
say for CRUD operations. Also try to layer your code so things like SQL
commands and statements can be used and tested seperately.

5. Plan a path through your storyboard, and start building the JSP pages
and the support code to hook them up to the objects and the model. Look
for the simplest, useful workflow, and implement that first.

This is generally the second third of a project. The last third is
testing the application and making changes, including bug fixes. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/


William Jaynes wrote:
 
 Don't be too hard on yourself. I'm not sure how much of programming has ever
 become second nature to me. No matter how experienced one gets, there's always
 too much new stuff to learn.
 
 There is no right answer. You have to work out what is best for yourself. Some
 advocate an approach that starts with the html, kind of a story boarding
 approach. (see Ted's http://husted.com/about/struts/strutByStrut.htm) Other's
 would say get the model right first, develop those objects, test them outside
 any specific application (perhaps using JUnit). Of course, the usual method is
 somewhere in between. (mmm... I guess this isn't much help.)
 
 Will
 
 - Original Message -
 From: Rodney Smith [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 3:54 AM
 Subject: Kick start to Struts
 
 Hi all,
 
 Which comes first the chicken or the egg?
 I need to know when creating a struts web application which comes first,
 creating the java component first, then build the html and convert to jsp?
 that is the question I need to get started into my own web application
 through struts. I would really like as much feed back as possible in the best
 professional approach to this. As I have so much enthusiasm, but not enough
 knowledge in this area.
 This sort of information that I request is second nature to web designs and
 programmers I gather, but I am new to the game.
 
 Thanks to all those listeners and most importantly thanks to the perfect
 responses from Ted and Craig.
 
 Kind Regards
 Rodney Smith
 
 --
 Sent through GMX FreeMail - http://www.gmx.net



Re: Kick start to Struts

2001-08-09 Thread Ted Husted

Ted Husted wrote:
 [Upfront planning] is generally the first third of a project.

At least if you're smart ;-), otherwise you end up doing the planning
during the construction phase, which leads to a lot of reconstruction
(built the wrong thing, so now we need to build it again), and the
infamous fourth third most projects need before they can ship ;-(

-Ted.



Re: Exception: Cannot find message resources under key org.apache.struts.action.MESSAGE

2001-08-09 Thread William Jaynes

I believe this problem relates to some changes in tomcat4 and xml parsing.
Here's the relevant portion of the Release Notes:

--
Tomcat 4.0 and XML Parsers:
--

Previous versions of Tomcat 4.0 exposed the XML parser used by Jasper (the
JAXP/1.1 reference implementation) to web applications.  This is no longer
the case, because Jasper loads its parser with a new class loader instead.
Keep the following points in mind when considering how to use XML parsers
in Tomcat 4.0 and your web applications:

* If you wish to make the JAXP/1.1 RI XML parser available to all web
  applications, simply move the jaxp.jar and crimson.jar files from
  the $TOMCAT_HOME/jasper directory to the $TOMCAT_HOME/lib directory.


- Original Message -
From: Thomas Quas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 7:08 AM
Subject: Exception: Cannot find message resources under key
org.apache.struts.action.MESSAGE



Allright, I guess this has been discussed before, but google.com didn't
give me any concrete results. Neither did I find something browsing the
mailing list archive.

I'm using Tomcat 4.0b6 and struts 1.0final on a Linux box.
When trying to go to http://localhost:8080/struts-example/index.jsp I
get the following exception:

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.ja
va:452)
at
org.apache.jsp._0002findex_jsp._jspService(_0002findex_jsp.java:454)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
[snip]


Has anybody solved this problem, probably with the same setup?


Thanks, tom


BTW: is there a FAQ available?
--
thomas quas| Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]
   |-- Allen Ginsberg --




GenericDataSource Exception when starting tomcat

2001-08-09 Thread Nimphy, Thomas

Hi all,
whenever I have a data-sources definition included in my
struts-config.xml, when starting tomcat I get this exception:

...
New org.apache.struts.util.GenericDataSource
Set org.apache.struts.util.GenericDataSource properties
Begin event threw exception
java.lang.ClassCastException
java.lang.Throwable()
java.lang.Exception()
java.lang.RuntimeException()
java.lang.ClassCastException()
void
org.apache.struts.action.AddDataSourceRule.begin(org.xml.sax.AttributeList)
void
org.apache.struts.action.AddDataSourceRule.begin(org.xml.sax.AttributeList)
void
org.apache.struts.digester.Digester.startElement(java.lang.String,
org.xml.sax.AttributeList)
void
org.xml.sax.helpers.XMLReaderAdapter.startElement(java.lang.String,
java.lang.String, java.lang.String, org.xml.sax.Attributes)
void
org.apache.xerces.parsers.SAXParser.startElement(org.apache.xerces.utils.QNa
me, org.apache.xerces.framework.XMLAttrList, int)
void
org.apache.xerces.validators.common.XMLValidator.callStartElement(org.apache
.xerces.utils.QName)
boolean
org.apache.xerces.framework.XMLDocumentScanner.scanElement(org.apache.xerces
.utils.QName)
boolean
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(bo
olean)
boolean
org.apache.xerces.framework.XMLDocumentScanner.parseSome(boolean)
void
org.apache.xerces.framework.XMLParser.parse(org.xml.sax.InputSource)
void
org.xml.sax.helpers.XMLReaderAdapter.parse(org.xml.sax.InputSource)
void javax.xml.parsers.SAXParser.parse(org.xml.sax.InputSource,
org.xml.sax.HandlerBase)
void javax.xml.parsers.SAXParser.parse(java.io.InputStream,
org.xml.sax.HandlerBase)
java.lang.Object
org.apache.struts.digester.Digester.parse(java.io.InputStream)
void org.apache.struts.action.ActionServlet.initMapping()
void org.apache.struts.action.ActionServlet.init()
void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void org.apache.tomcat.core.ServletWrapper.doInit()
void org.apache.tomcat.core.Handler.init()
void org.apache.tomcat.core.ServletWrapper.init()
void
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(org.apache.to
mcat.core.Context)
void
org.apache.tomcat.core.ContextManager.initContext(org.apache.tomcat.core.Con
text)
void org.apache.tomcat.core.ContextManager.init()
void org.apache.tomcat.startup.Tomcat.execute(java.lang.String [])
void org.apache.tomcat.startup.Tomcat.main(java.lang.String [])
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object,
java.lang.Object [])
void com.ibm.ivj.tomcat.TomcatRunner.startTomcat(java.lang.String)
void
com.ibm.ivj.tomcat.TomcatRunner.actionPerformed(java.awt.event.ActionEvent)
void java.awt.Button.processActionEvent(java.awt.event.ActionEvent)
void java.awt.Button.processEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()

I'm using the tomcat3.2.1 AddIn to VisualAge 3.5.3.

Any hints?

Regards ... Zottel

Thomas Nimphy, Norddeutsche Informations-Systeme GmbH 
NIS GmbH| Voice : +49 4307/815-204
Lise-Meitner-Str. 25-29 | FAX   : +49 4307/815-111
D-24223 Raisdorf| eMail : [EMAIL PROTECTED]






Re: Beans In Form Tags

2001-08-09 Thread William Jaynes

I believe this should be:

logic:iterate id=entry name=clientSingleForm
property=clientSingleQueryList
...
form:text name=entry property=clientLogin size=10 /


- Original Message - 
From: Calvin Lau [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 7:24 AM
Subject: Beans In Form Tags


For some reason I get the following error when I try
to access a bean from within a form tag:  
Attribute entry has no value...

When I use the regular HTML textbox instead of the
Struts Form tag for a textbox, it works.  Anyone know
why?  Thanks.

This works:
logic:iterate id=entry name=clientSingleForm
property=clientSingleQueryList
...
input type=text property=clientLogin size=10
value=bean:write name=entry property=clientLogin
/

This does NOT work:
logic:iterate id=entry name=clientSingleForm
property=clientSingleQueryList
...
form:text property=clientLogin size=10
value=bean:write name=entry property=clientLogin //form:text

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/




Re: Exception: Cannot find message resources under key org.apache.struts.action.MESSAGE

2001-08-09 Thread Thomas Quas


William,

thanks for your response. However, I don't see how XML can have an
impact in the context of this particalur problem. The resource file is
java.util.ResourceBundle-compliant, and it does not facilitate XML at
all. Do I miss something?


tom


William Jaynes wrote:
 
 I believe this problem relates to some changes in tomcat4 and xml parsing.
 Here's the relevant portion of the Release Notes:
 
 --
 Tomcat 4.0 and XML Parsers:
 --
 
 Previous versions of Tomcat 4.0 exposed the XML parser used by Jasper (the
 JAXP/1.1 reference implementation) to web applications.  This is no longer
 the case, because Jasper loads its parser with a new class loader instead.
 Keep the following points in mind when considering how to use XML parsers
 in Tomcat 4.0 and your web applications:
 
 * If you wish to make the JAXP/1.1 RI XML parser available to all web
   applications, simply move the jaxp.jar and crimson.jar files from
   the $TOMCAT_HOME/jasper directory to the $TOMCAT_HOME/lib directory.
 
 - Original Message -
 From: Thomas Quas [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 7:08 AM
 Subject: Exception: Cannot find message resources under key
 org.apache.struts.action.MESSAGE
 
 Allright, I guess this has been discussed before, but google.com didn't
 give me any concrete results. Neither did I find something browsing the
 mailing list archive.
 
 I'm using Tomcat 4.0b6 and struts 1.0final on a Linux box.
 When trying to go to http://localhost:8080/struts-example/index.jsp I
 get the following exception:
 
 javax.servlet.ServletException: Cannot find message resources under key
 org.apache.struts.action.MESSAGE
 at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.ja
 va:452)
 at
 org.apache.jsp._0002findex_jsp._jspService(_0002findex_jsp.java:454)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 [snip]
 
 Has anybody solved this problem, probably with the same setup?
 
 Thanks, tom
 
 BTW: is there a FAQ available?
 --
 thomas quas| Art lies in the consciousness of doing the thing,
 [EMAIL PROTECTED]  |  in the attention of the happening[...]
|-- Allen Ginsberg --

-- 
thomas quas| Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]
   |-- Allen Ginsberg --



AW: recognizing a button

2001-08-09 Thread Bernhard J. Hirschmann

Hello Terence,

thanks for that, that's great.

 Don't forget to reset the boolean values when you redisplay the form!

How do I do this the best way? Simply calling
form.reset(mapping, request)
in my action class doesn't work. I shouldn't call the setters directly,
right?

Best regards,
Bernhard


 -Ursprungliche Nachricht-
 Von: Terence Jacyno [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 9. August 2001 13:11
 An: [EMAIL PROTECTED]
 Betreff: Re: recognizing a button


 Hi.

 If you want to figure out which button was pressed directly within your
 ActionForm, try this.

 Within the ActionForm that you associated with your HTML form, place the
 following:

   public void MyActionForm extends ActionForm {
   protected boolean m_loadPressed = false;
   protected boolean m_submitPressed = false;

   ...

   public void setLoad(String load) {
   m_loadPressed = true;
   }
   public boolean isLoadPressed() {
   return m_loadPressed;
   }

   public void setSubmit(String submit) {
   m_submitPressed = true;
   }
   public boolean isSubmitPressed() {
   return m_submitPressed;
   }

   ...

  }

 Now you can access which button was pressed by consulting the
 corresponding methods within the ActionForm passed to the Action.perform
 method.

 Don't forget to reset the boolean values when you redisplay the form!

 Terence


 William Jaynes wrote:

  String loadButton = (String)request.getParameter(load);
  String submitButton = (String)request.getParameter(submit);
 
  - Original Message -
  From: Bernhard J. Hirschmann [EMAIL PROTECTED]
  To: Struts-User [EMAIL PROTECTED]
  Sent: Thursday, August 09, 2001 6:26 AM
  Subject: recognizing a button
 
  Hello!
 
  How can I recognize in the ActionServlet, which button was pressed?
  I have this two buttons:
 
  html:submit value=Load property=load/
  html:submit value=Submit property=submit/
 
  How can I get the value of the attribute property inside of the
  Action.perform method? I just can't figure out, which method to use.
 
  Thanks in advance,
  Bernhard






weblogic and struts

2001-08-09 Thread baris.guzelordu

I thin k the problem is xerces.jar while using struts with weblogic.
Whichxerces.jar can I use? any idea acceptable...

-Original Message-
From: Ben Gill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 6:50 PM
To: BARIS GUZELORDU (TC-IT)
Subject: RE: weblogic and struts 


the error is complaining about a DTD file... you should locate this file
(find in files the text BeanName) and correct it..

Thanks

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 8:07 AM
To: [EMAIL PROTECTED]
Subject: weblogic and struts 
Importance: High


Hello Ben,
I need help about using Struts in weblogic. I hope you can answer my
quesiton...
I am using Struts version 1.0 and trying to run from source. I imported
all needed pacakages into Visual Age (Xerses, Weblogic projects, Struts
version 1.0 source)

I am trying to run the first Struts application which is amber-jackI
am using VAGE 3.5 Enterprise Edition. I have downloaded weblogic kit for
Visual age 3.5 Enterprise and installed alse I setup the service pack 9
for Weblogic kit.

It gives me an error when I attemp to start the application. I write
this error to you. Also when I try to reach
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd' address, I
fail. I get an error message which is "The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and
then click the Refresh javascript:location.reload() button, or try
again later. 

Cannot have a DTD declaration outside of a DTD. Line 26, Position 12 
!ENTITY % BeanName "CDATA"
---^
"

If you help me, I will be very glad.. Thank you in advance for your
help...

Pzt Au 06 14:26:31 GMT+03:00 2001:I
WebAppServletContext-amberjack-struts Pre-Loading servlet action
Pzt Au 06 14:26:32 GMT+03:00 2001:I
WebAppServletContext-amberjack-struts action: init
Pzt Au 06 14:26:32 GMT+03:00 2001:I
WebAppServletContext-amberjack-struts action: null
Pzt Au 06 14:26:32 GMT+03:00 2001:I
WebAppServletContext-amberjack-struts action: null
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
 Not registered, use system identifier
javax.servlet.UnavailableException
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String)
javax.servlet.UnavailableException(java.lang.String)
void org.apache.struts.action.ActionServlet.init()
void
javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
javax.servlet.Servlet
weblogic.servlet.internal.ServletStubImpl.createServlet()
void weblogic.servlet.internal.ServletStubImpl.createInstances()
void
weblogic.servlet.internal.ServletStubImpl.prepareServlet(weblogic.servle
t.internal.ServletRequestImpl,
weblogic.servlet.internal.ServletResponseImpl)
void weblogic.servlet.internal.ServletStubImpl.prepareServlet()
void
weblogic.servlet.internal.ServletContextImpl.preloadServlet(java.lang.St
ring)
void
weblogic.servlet.internal.ServletContextImpl.preloadServlets()
void weblogic.t3.srvr.HttpServer.initServletContexts()
void weblogic.t3.srvr.HttpServer.start()
void weblogic.t3.srvr.T3Srvr.start()
void weblogic.t3.srvr.T3Srvr.main(java.lang.String [],
java.lang.String, java.lang.String)
void weblogic.Server.startServerStatically(java.lang.String [],
java.lang.String, java.lang.String)
void weblogic.Server.main(java.lang.String [], java.lang.String,
java.lang.String)
void weblogic.Server.main(java.lang.String [])
void
weblogic.integration.visualage.server.Server.main(java.lang.String [])

Pzt Au 06 14:27:19 GMT+03:00 2001:I HTTP Log rotation is size based
Pzt Au 06 14:27:19 GMT+03:00 2001:I ZAC ZAC ACLs initialized
Pzt Au 06 14:27:19 GMT+03:00 2001:I ZAC ZAC packages stored in
local directory exports
Pzt Au 06 14:27:19 GMT+03:00 2001:I ListenThread Listening on port:
7001
Pzt Au 06 14:27:20 GMT+03:00 2001:I WebLogicServer WebLogic Server
started


Regards.

Baris Gzelordu
IT-Customer Services
* +90 212 449 23 35
* +90 532 210 19 57
* [EMAIL PROTECTED]



Iyi alismalar

Baris Gzelordu
IT-Customer Services
* +90 212 449 23 35
* +90 532 210 19 57
* [EMAIL PROTECTED]




***

This e-mail and any files transmitted with it are confidential and
intended
solely for the use of the individual or entity to whom they are
addressed.
If you are not the intended recipient you are hereby notified that any
dissemination, forwarding, copying or use of any of the information is
prohibited.

The opinions expressed in this message belong to sender alone. There is
no
implied endorsement by TURKCELL.

This e-mail has been scanned for all known computer viruses.


Re: Exception: Cannot find message resources under key org.apache.struts.action.MESSAGE

2001-08-09 Thread Will Jaynes

I don't understand the details, but it fixed the same problem for me.

- Original Message -
From: Thomas Quas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 8:11 AM
Subject: Re: Exception: Cannot find message resources under key
org.apache.struts.action.MESSAGE



William,

thanks for your response. However, I don't see how XML can have an
impact in the context of this particalur problem. The resource file is
java.util.ResourceBundle-compliant, and it does not facilitate XML at
all. Do I miss something?


tom


William Jaynes wrote:

 I believe this problem relates to some changes in tomcat4 and xml parsing.
 Here's the relevant portion of the Release Notes:

 --
 Tomcat 4.0 and XML Parsers:
 --

 Previous versions of Tomcat 4.0 exposed the XML parser used by Jasper (the
 JAXP/1.1 reference implementation) to web applications.  This is no longer
 the case, because Jasper loads its parser with a new class loader instead.
 Keep the following points in mind when considering how to use XML parsers
 in Tomcat 4.0 and your web applications:

 * If you wish to make the JAXP/1.1 RI XML parser available to all web
   applications, simply move the jaxp.jar and crimson.jar files from
   the $TOMCAT_HOME/jasper directory to the $TOMCAT_HOME/lib directory.

 - Original Message -
 From: Thomas Quas [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 7:08 AM
 Subject: Exception: Cannot find message resources under key
 org.apache.struts.action.MESSAGE

 Allright, I guess this has been discussed before, but google.com didn't
 give me any concrete results. Neither did I find something browsing the
 mailing list archive.

 I'm using Tomcat 4.0b6 and struts 1.0final on a Linux box.
 When trying to go to http://localhost:8080/struts-example/index.jsp I
 get the following exception:

 javax.servlet.ServletException: Cannot find message resources under key
 org.apache.struts.action.MESSAGE
 at

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.ja
 va:452)
 at
 org.apache.jsp._0002findex_jsp._jspService(_0002findex_jsp.java:454)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 [snip]

 Has anybody solved this problem, probably with the same setup?

 Thanks, tom

 BTW: is there a FAQ available?
 --
 thomas quas| Art lies in the consciousness of doing the thing,
 [EMAIL PROTECTED]  |  in the attention of the happening[...]
|-- Allen Ginsberg --

--
thomas quas| Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]
   |-- Allen Ginsberg --




Re: Struts Tomcat 4.0

2001-08-09 Thread Nicky Eshkenazi

Ajay,

I have tried to use Struts with Tomcat 4.0 beta 6 and still have some
configuration problems. I guess the stuff needs to be configured differently
under Catalina. If you have success with it please let me know.

thanks,
Nicky

Ajay Chitre wrote:

 Hello,

 I have been playing with struts for the past couple of months and I have
 had fun playing with it.  Time has come now to stop playing and get serious.

 I have been asked to develop a web app with Struts  Tomcat.  I have been
 using Weblogic for the past couple of years, but this is my first experience
 with Tomcat, so I need some help to take some decisions.  (I realize that
 this email should really be sent to the Tomcat mailing list, but I believe
 there's enough expertise in this mailing list to get these questions
 answered!)

 After reading thru the Struts mailing list I have concluded the following.
 Can someone please tell me if I am on the right track?

 1)  From one of Craig's emails it sounds like I should be using Tomcat 4.0,
 not 3.2.  Is that right?  But Tomcat 4.0 is a beta release.  Is it reliable?

 2)  Doesn't look like Tomcat 4.0 supports EJB.  Does it?

 3)  If EJB is not available I can use JDBC - no problem - but doesn't look
 like I can create database connection pool in Tomcat.

 4)  From one of Ted's emails I think I should use Poolman to create database
 connection pool in Tomcat 4.0.  Right?

 5)  What's equivalent of Weblogic Time APIs?  Tomcat workers, right?

 6)  Can I set up Tomcat to send emails using Java Mail APIs?  In Weblogic
 one has to make sure that mail.jar  activation.jar is in Weblogic
 Classpath.  Is there any special requirement such as this in Tomcat?

 7)  Does Tomcat support JMS?

 8)  Which one is better - Log4J or LogKit (which is part of Avalon project
 from Jakarta)?

 9)  What's the difference between 'Struts'  'Turbine' (which is another
 Jakarta project)?  Pros  Cons?

 I apologize for the length of this email.  Thanks in advance for your time.

 - Ajay




Re: AW: recognizing a button

2001-08-09 Thread Terence Jacyno

Hi Bernhard.

Personally, I use two additional methods within the ActionForm:

   public void setLoadPressed(boolean loadPressed) {
   m_loadPressed = loadPressed;
   }

   public void setSubmitPressed(boolean submitPressed) {
   m_submitPressed = submitPressed;
   }

which I call from the Action.perform method after having finished my
processing.

Terence


Bernhard J. Hirschmann wrote:

 Hello Terence,

 thanks for that, that's great.

  Don't forget to reset the boolean values when you redisplay the form!

 How do I do this the best way? Simply calling
 form.reset(mapping, request)
 in my action class doesn't work. I shouldn't call the setters directly,
 right?

 Best regards,
 Bernhard

  -Ursprungliche Nachricht-
  Von: Terence Jacyno [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 9. August 2001 13:11
  An: [EMAIL PROTECTED]
  Betreff: Re: recognizing a button
 
 
  Hi.
 
  If you want to figure out which button was pressed directly within your
  ActionForm, try this.
 
  Within the ActionForm that you associated with your HTML form, place the
  following:
 
public void MyActionForm extends ActionForm {
protected boolean m_loadPressed = false;
protected boolean m_submitPressed = false;
 
...
 
public void setLoad(String load) {
m_loadPressed = true;
}
public boolean isLoadPressed() {
return m_loadPressed;
}
 
public void setSubmit(String submit) {
m_submitPressed = true;
}
public boolean isSubmitPressed() {
return m_submitPressed;
}
 
...
 
   }
 
  Now you can access which button was pressed by consulting the
  corresponding methods within the ActionForm passed to the Action.perform
  method.
 
  Don't forget to reset the boolean values when you redisplay the form!
 
  Terence
 
 
  William Jaynes wrote:
 
   String loadButton = (String)request.getParameter(load);
   String submitButton = (String)request.getParameter(submit);
  
   - Original Message -
   From: Bernhard J. Hirschmann [EMAIL PROTECTED]
   To: Struts-User [EMAIL PROTECTED]
   Sent: Thursday, August 09, 2001 6:26 AM
   Subject: recognizing a button
  
   Hello!
  
   How can I recognize in the ActionServlet, which button was pressed?
   I have this two buttons:
  
   html:submit value=Load property=load/
   html:submit value=Submit property=submit/
  
   How can I get the value of the attribute property inside of the
   Action.perform method? I just can't figure out, which method to use.
  
   Thanks in advance,
   Bernhard
 
 




RE: New Release

2001-08-09 Thread Assenza, Chris

Just to confirm what Craig said, back-porting them to 1.0 appears to be 100%
problem-free. Once I saw those tags and was informed they were in the
nightly build, I grabbed them (along with TLD stuff, etc.) and dropped them
in our existing struts.jar (1.0); the tags work flawlessly and are quite
useful. :-) 

Chris

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 9:09 PM
To: Struts-User (E-mail)
Subject: Re: New Release




On Wed, 8 Aug 2001, MacKellar, Kimberly wrote:

 When is the new release of struts coming out (I really would like to use
the
 logic:notEmpty tag)?

If you're planning on waiting for a 1.1 release, we haven't really talked
about it yet.  I know there's quite a bit of stuff yet to integrate - in
the mean time, you could either use a 1.1 nightly build, or back-port
logic:empty and logic:notEmpty) into 1.0 (there should not be a problem
doing this).

  What happened to PropertyUtils in the nightly builds?
 

This class (and the digester stuff) now uses the packages from
jakarta-commons for this.  They have the same functionality but different
package names.  (The classes are in the commons-*.jar files).

 Kimberly MacKellar
 Thomson Financial Publishing
 [EMAIL PROTECTED]
 

Craig



java.util.Date properties

2001-08-09 Thread Nathan Coast

Hi,

We've got a number of forms in which it would be useful to have
java.util.Date properties. Is there any plan to have conversions for data
types other than the standard java.lang basic type wrappers?

from Convert Utils

if (clazz == stringClass) {
if (value == null)
return ((String) null);
else
return (value);
} else if (clazz == Integer.TYPE) {
return (convertInteger(value, defaultInteger));
} else if (clazz == Boolean.TYPE) {
return (convertBoolean(value, defaultBoolean));
} else if (clazz == Long.TYPE) {
return (convertLong(value, defaultLong));
} else if (clazz == Double.TYPE) {
return (convertDouble(value, defaultDouble));  

.
what about adding
}
else if (clazz = java.util.Date)
{
return DateFormat.parse(value);
}

any thoughts?

Cheers
Nathan


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: ComboBox

2001-08-09 Thread Gus Delgado

create a collection an set it in the session:

session.setAttribute(myCollection, myCollection)

html:select name=myForm property=myProperty
html:options collection=myCollection property=value
labelProperty=label/
/html:select

-Original Message-
From: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 7:53 AM
To: Struts-User
Subject: ComboBox



My html:select only displays a list of options, but how can I get
something like a ComboBox instead of this list?

Greetings




Re: Struts Tomcat 4.0

2001-08-09 Thread Ted Husted

Ajay Chitre wrote:
 1)  From one of Craig's emails it sounds like I should be using Tomcat 4.0,
 not 3.2.  Is that right?  But Tomcat 4.0 is a beta release.  Is it reliable?

The only not is DO NOT USE TOMCAT 3.1 with Struts. Verson 3.2.3 is
fine. Jakarta betas tend to more reliable that some others since they
are based on the nightly builds, and are tested continually. I would use
TC4 for development, and then deploy using TC32, or Resin, et cetera.
This helps ensure that you are both compliant and portable. 
 
 2)  Doesn't look like Tomcat 4.0 supports EJB.  Does it?

I don't believe so. But JBoss does, and that's a good project too.

 3)  If EJB is not available I can use JDBC - no problem - but doesn't look
 like I can create database connection pool in Tomcat.

Not in Tomcat per se. The Struts pool works with Tomcat, but doesn't
layer well if you are using the latest architectures.

 4)  From one of Ted's emails I think I should use Poolman to create database
 connection pool in Tomcat 4.0.  Right?

Poolman's a solid, portable solution.

 5)  What's equivalent of Weblogic Time APIs?  Tomcat workers, right?
 
 6)  Can I set up Tomcat to send emails using Java Mail APIs?  In Weblogic
 one has to make sure that mail.jar  activation.jar is in Weblogic
 Classpath.  Is there any special requirement such as this in Tomcat?

I don't believe mail is part of the specification, so mail.jar and
activation.jar may actually be the usual requirements. 

 7)  Does Tomcat support JMS?
 
 8)  Which one is better - Log4J or LogKit (which is part of Avalon project
 from Jakarta)?

Log4j is Jakarta too, and quite popular. 

 9)  What's the difference between 'Struts'  'Turbine' (which is another
 Jakarta project)?  Pros  Cons?

See the mail archives for this one, and 
http://husted.com/about/struts/kickstart.html#turbine .

-Ted.



RE: WebLogic related question- javax.servlet.jsp.JspException: No get ter method for property...

2001-08-09 Thread rhayden



No, but this is not the problem.  I discovered last night that the setter
and getter must match precisely- not only the name must correspond with the
property (obviously) but the object type of the property must be the same as
well. i.e.:

String getProperty()
setProperty( String str )

can't be like this:
String getProperty()
setProperty( Timestamp t )

This seems a little odd to me. Does anyone know if this is mandated by the
Servlet spec, or has WL just done something funky in their implementation?

Thanks,
Bob



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 5:11 PM
To: [EMAIL PROTECTED]
Subject: RE: Weblogic related question- javax.servlet.jsp.JspException:
No get ter method for property...



You're Bean class does not extend ActionForm..




 

[EMAIL PROTECTED]

elheim.comTo:
[EMAIL PROTECTED]
  cc:

08/08/2001 03:56 PM   Subject: RE:
Weblogic related question-   
Please respond to
javax.servlet.jsp.JspException: No get ter method for property... 
struts-user

 

 






The Bean class does have a matching get method for the specified property.
This is why I don't understand why I am receiving this error...




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 4:45 PM
To: [EMAIL PROTECTED]
Subject: Re: Weblogic related question- javax.servlet.jsp.JspException:
No get ter method for property...



RequestUtils is using introspection on your form bean class to match the
name you placed in your html:text tag with a bean method name.  So, if you
had:

html:text property=requestDate

Your form bean should have:  String getRequestDate()
   andvoid   setRequestDate(String)

Brian






[EMAIL PROTECTED]

elheim.comTo:
[EMAIL PROTECTED]
  cc:

08/08/2001 03:22 PM   Subject: Weblogic
related question- javax.servlet.jsp.JspException:
Please respond to No get ter method for
property...
struts-user










I am moving a Struts-based application from WebLogic 5.1 to 6.1 and I am
encountering some strange errors. Has anyone else seen this behavior
before,
or know what might be causing it?  I have a Collection of beans I am trying
to iterate through using the Struts iterate tag (works fine with WL5.1) but
now I am getting an error that there is no getter method. I have verified
with the debugger that at runtime the Collection exists and it is populated
with the expected objects. I am not really sure what is going on... The
only
thing I can think of is that this method does not exactly conform to the
JavaBean spec- it does not set/get the same type of object. When doing a
set, you pass it a TimeStamp but for the get it returns a formatted String
(see below). However, the naming conventions are followed correctly. Is
this
a problem?


 WL Exception #
note: the bean called theFermentation is a FermSummaryBean (see below)

javax.servlet.jsp.JspException: No getter method for property requestDate
of
bean theFermentation
at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517)
at
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
at jsp_servlet._mainmenu._jspService(_mainmenu.java:385)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java


:263)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java


:302)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java


:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp


l.java:190)
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.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java


:263)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java


:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp


l.java:190)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja


va:1758)
at

Re: Struts Tomcat 4.0

2001-08-09 Thread Thomas Quas

Ted Husted wrote:
 
 Ajay Chitre wrote:
  1)  From one of Craig's emails it sounds like I should be using Tomcat 4.0,
  not 3.2.  Is that right?  But Tomcat 4.0 is a beta release.  Is it reliable?
 
 The only not is DO NOT USE TOMCAT 3.1 with Struts. Verson 3.2.3 is
 fine. Jakarta betas tend to more reliable that some others since they
 are based on the nightly builds, and are tested continually. I would use
 TC4 for development, and then deploy using TC32, or Resin, et cetera.
 This helps ensure that you are both compliant and portable.

I disagree. In a commercial project, you don't want to develop on one
version while deploying on another. Decide which one to use and go with
the decision until all stakeholders agree with an update. This prevents
you from spending a few nichts in the office shortly before product
rollout.


Just my $0.02, tom
-- 
thomas quas| Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]
   |-- Allen Ginsberg --



AW: ComboBox

2001-08-09 Thread Bernhard J. Hirschmann


This wasn't the solution of my problem, thanks anyway. I found it
accidently: switching from a list to a comboBox is done by setting the
attribute size of the html:select tag to 1


 -Ursprüngliche Nachricht-
 Von: Gus Delgado [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 9. August 2001 15:07
 An: [EMAIL PROTECTED]
 Betreff: RE: ComboBox


 create a collection an set it in the session:

 session.setAttribute(myCollection, myCollection)

 html:select name=myForm property=myProperty
 html:options collection=myCollection property=value
 labelProperty=label/
 /html:select

 -Original Message-
 From: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 09, 2001 7:53 AM
 To: Struts-User
 Subject: ComboBox



 My html:select only displays a list of options, but how can I get
 something like a ComboBox instead of this list?

 Greetings






show errors on a new page then back bat fields empty

2001-08-09 Thread Stefan Faist

Hi all,
I have a logon page and when a error happend , then I load a new page with
the error messages and a ok button. When I click on this button I forward
back to the logon page. But the fields are empty and the user must fill out
the fields repeatly.

And another problem, how can I load another page with the errors in the the
xxForm?

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




Re: Struts Tomcat 4.0

2001-08-09 Thread Ted Husted

Sorry, Tom. I should have said, I now develop under Tomcat 4 on my own
station, and then beta test the deployment on the remote server, which
is usually either TC3 or Resin. This ensures that I am in compliance
with the latest reference specifications, and not relying on legacy or
proprietary behaviors.

I share and reuse my core work, so compliance is important to me. Where
I have gotten burned is designing around behaviour in one container,
only to find it did not work that way elsewhere. 

Thomas Quas wrote:
 
 Ted Husted wrote:
 
  Ajay Chitre wrote:
   1)  From one of Craig's emails it sounds like I should be using Tomcat 4.0,
   not 3.2.  Is that right?  But Tomcat 4.0 is a beta release.  Is it reliable?
 
  The only not is DO NOT USE TOMCAT 3.1 with Struts. Verson 3.2.3 is
  fine. Jakarta betas tend to more reliable that some others since they
  are based on the nightly builds, and are tested continually. I would use
  TC4 for development, and then deploy using TC32, or Resin, et cetera.
  This helps ensure that you are both compliant and portable.
 
 I disagree. In a commercial project, you don't want to develop on one
 version while deploying on another. Decide which one to use and go with
 the decision until all stakeholders agree with an update. This prevents
 you from spending a few nichts in the office shortly before product
 rollout.
 
 Just my $0.02, tom



Cannot retrieve mapping for action

2001-08-09 Thread Brian K. Buckley

Hi,  I'm a brand new Struts user.  I installed the struts 1.0 binary and I'm
attempting to work through a struts trailmap tutorial (the one at
bluestone.com).

I am getting a Servlet Exception with the message Cannot retrieve mapping
for action /custom when I call a simple input.jsp.  My input.jsp, my
struts-config.xml and a piece of my web.xml are shown below.

Can someone suggest what is causing this errror?

Thanks,

-Brian

* input.jsp**
form:form action=custom.do
form:submit value=Display Group /
/form:form

* struts-config.xml**
!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration 1.0//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;

struts-config
form-beans
form-bean name=customForm
   type=custom.CustomForm/
/form-beans
action-mappings
  action path=/custom actionClass=custom.GroupAction
name=customForm
set-property property=group
 value=Struts User/
forward name=view path=/display.jsp /
  /action
/action-mappings
/struts-config

* piece of web.xml***
 servlet
 servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
   param-namemapping/param-name
   param-valuecustom.CustomMapping/param-value
  /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
  /init-param
 init-param
  param-namevalidate/param-name
  param-valuefalse/param-value
 /init-param
 init-param
  param-nameapplication/param-name
  param-valuehelloworld.HelloWorldResources/param-value
  /init-param
 load-on-startup2/load-on-startup
 /servlet





RE: RE: RE: dynamically setting the html:select property

2001-08-09 Thread JRender

thanks again arnaud.. still no joy

property=%= coverDetailsForm.getSequence() %

picks up the dynamic value I set on the form, but it checks for the
evaluated value
on the form and complains that it can't find it..

e.g. (just using the scriptlet here for ease of use)

% String dynamicValue = lookup#+idx;
 coverDetailsForm.setSequence(dynamicValue);
%
html:select property=%= coverDetailsForm.getSequence() % /

results in a

No getter method available for property lookup#3 for bean under name
coverDetailsForm


have a good holiday!
anyone else help??

James



--

Date: Thu, 9 Aug 2001 14:28:42 +0200
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
From: =?us-ascii?Q?Heritier_Arnaud?= [EMAIL PROTECTED]
Subject: RE: RE: dynamically setting the html:select property
Message-Id: [EMAIL PROTECTED]

Hello !

  1st problem :

You shouln't write :
html:select property=%= lookup# +idx % / 
but
html:select property=%= \lookup#\ +idx % / 
because the Tag interpretor shouldn't see double quotes on both sides of
the lookup# String.

Another solution that I didn't test is to use simple quotes like this.
html:select property='%= lookup# +idx %' / 

2nd problem :

  The attribute property oh the html:select tag represents the name
of the request parameter that will be included with this submission.
  So this value is used as a name of parameter of the request sent to
the server.

 If you want to dynamically generate the name of this parameter from
the value of your Form Bean you should write something like that:

 jsp:useBean name=coverDetailsForm scope=request
  html:form ...

 html:select property=%=coverDetailsForm.getSequence()% /

 /html:form
 /jsp:useBean

In 1H30 I'm on holiday, so I wish it will help you.

good luck

  arnaud

-Message d'origine-
De:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date: jeudi 9 aout 2001 12:26
A:   [EMAIL PROTECTED]
Objet:RE: RE: dynamically setting the html:select property

thanks arnaud,

still having problems with the property attribute of the select tag.

I tried
html:select property=%= lookup# +idx % / 

but it seems to need to be pointing at an attribute of a bean otherwise it
complains;

Attribute lookup# has no value

It appears as though the property has to match an attribute on an object
somewhere..

so I set an attribute on my form to sequence and then try to access that
in an
expression. If I do

html:select property=sequence /
it just prints the name of the select as sequence, it doesn't evaluate
it.

If I try
html:select property=%= coverDetailsForm.getSequence() % / 
it complains

Undefined variable or class name: coverDetailsForm

how do I get the property to be set to a value from the form, not just the
name?

thanks..

James


---

Date: Wed, 8 Aug 2001 15:11:03 +0200
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
From: =?us-ascii?Q?Heritier_Arnaud?= [EMAIL PROTECTED]
Subject: RE: dynamically setting the html:select property
Message-Id: [EMAIL PROTECTED]

When you use a parameter of a tag, it should be a text or a regexp.
if you write html:select property=lookup#%= idx %  the tag
interpretor will see the string lookup# and suppose that the parameter
shouldn't be evaluated.
To do this you should write this : html:select
property=%=\lookup#+idx\% 

arnaud

-Message d'origine-
De:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date: mercredi 8 aout 2001 14:31
A:   [EMAIL PROTECTED]
Objet:dynamically setting the html:select property

Hi there,

inside an iterate tag I'm creating multiple textboxes and selects.

to unqiuely identify each item I am appending the index from the iteration
(idx) to the name; e.g.

input type=text name=rate#bean:write name=idx/ maxlength=10
value=bean:write name=limitBean property=rate /

I also need to do this for drop down selections. However I'm having some
problems with naming the selects dynamically.

html:select property=lookup#%= idx % 

didn't work, the result was select name=lookup#%= idx % 

I also tried setting an attribute on my form

jsp:setProperty name=coverDetailsForm property=lookupIdx value=%=
idx % /
html:select property=coverDetailsForm.lookupIdx value=
%= limitBean.getLimit().getLookupDataId().toString() % 
 html:options name=limitBean property=values
labelName=limitBean labelProperty=labels/
   /html:select

the result was select name=coverDetailsForm.lookupIdx 

I've had to resort to scriptlets, please help..

thanks James




Tomcat/Apache/mod_jk

2001-08-09 Thread Mills, Theo

I'm running: 

Win2k
Tomcat 3.2.2
Apache using mod_jk

The instructions for setting up Struts on Tomcat using Apache state that you
need to add

AddHandler jserv-servlet .do 

to your tomcat-apache.conf. However, this doesn't seem to apply to mod_jk,
and I don't know how to add the .do directive.

Anyone know? Thanks.

-Theo



RE: Scalability

2001-08-09 Thread devon . bowen

 but I'm getting feedback from other developers that don't
 feel that Struts is a very scaleable framework.

What exactly are they saying? I don't have any personal
experience in this area but it seems to me that Struts is a
rather thin layer on top of normal Java Servlets. All
it really changes is that two pages (Model and View) are
called instead of the usual one. The other features don't
seem like the kind of things that would affect scaleability.
So any criticism of Struts should probably be generalizable
(if that's a word ;-) to Servlets if it's got any validity.
Please send more details.

Devon




jbuilder5

2001-08-09 Thread Karmalita, Nicole

ive got problems with jbuilder5 and struts! 

javax.servlet.ServletException: Exception creating bean of class
de.bnext.portal.ch.AcknowledgementForm: java.lang.ClassNotFoundException:
de.bnext.portal.ch.AcknowledgementForm
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:992)
 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:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
 Root cause: javax.servlet.jsp.JspException: Exception creating bean of
class de.bnext.portal.ch.AcknowledgementForm:
java.lang.ClassNotFoundException: de.bnext.portal.ch.AcknowledgementForm
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:122)
 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:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

this class exists!!! this application runs on the normal tomcat but not in
the jbuider5 environment!!!


Mit freundlichen Gruessen
With best Regards/

Nicole Karmalita
Junior Software Engineer
b-next AG
Consulting  Engineering
Stockholmer Allee 30c, D-44269 Dortmund Zentrale:   Hansastr. 35,
D-32049 Herford
Fon +49 231 56 55 72-0  Fon +49 5221 99 28-00
Fax +49 231 56 55 72-72 Fax +49 5221 84 68-0
http://www.b-next.de
mailto:[EMAIL PROTECTED]



-
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese 
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den 
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren 
sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in 
error) please notify the sender immediately and destroy this e-mail. 
Any unauthorised copying, disclosure or distribution of the material 
in this e-mail is strictly forbidden.




data beans and ActionForm

2001-08-09 Thread Mike D

if I have a separate data bean, which is a property in the ActionForm, how 
do I initialise that bean? I.e.:

ActionForm someActFrm {

  private SomeBean someBean = null;

  public SomeBean getSomeBean () {
...
  }
  public void setSomeBean (SomeBean someBean) {
this.someBean = someBean;
  }
  public void setName(String someString) {
someBean.setName(someString);
  }
}

how and where do I create an instance of the bean, so that I have a bean in 
the form, rather than it being null all the time...

Will be greatful for any help!

Mike

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




RE: jbuilder5

2001-08-09 Thread Marcel Andres

Hallo Nicole

When you run your project with Start Tomcat..., did you check in the message viewer, 
if the classpath is set right?

Gruss und viel Glück / Cheers

Marcel
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 4:52 PM
To: [EMAIL PROTECTED]
Subject: jbuilder5


ive got problems with jbuilder5 and struts! 

javax.servlet.ServletException: Exception creating bean of class
de.bnext.portal.ch.AcknowledgementForm: java.lang.ClassNotFoundException:
de.bnext.portal.ch.AcknowledgementForm
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:992)
 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:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
 Root cause: javax.servlet.jsp.JspException: Exception creating bean of
class de.bnext.portal.ch.AcknowledgementForm:
java.lang.ClassNotFoundException: de.bnext.portal.ch.AcknowledgementForm
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:122)
 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:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

this class exists!!! this application runs on the normal tomcat but not in
the jbuider5 environment!!!


Mit freundlichen Gruessen
With best Regards/

Nicole Karmalita
Junior Software Engineer
b-next AG
Consulting  Engineering
Stockholmer Allee 30c, D-44269 Dortmund Zentrale:   Hansastr. 35,
D-32049 Herford
Fon +49 231 56 55 72-0  Fon +49 5221 99 28-00
Fax +49 231 56 55 72-72 Fax +49 5221 84 68-0
http://www.b-next.de
mailto:[EMAIL PROTECTED]



-
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese 
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den 
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren 
sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in 
error) please notify the sender immediately and destroy this e-mail. 
Any unauthorised copying, disclosure or distribution of the material 
in this e-mail is strictly forbidden.



Re: Struts Tomcat 4.0

2001-08-09 Thread Thomas Quas


I guess you're working on the struts framework itself. In this case I
totally agree with you.

For developers using struts for their applications, however, it's a
completely different story, especially since the specification changed
between Tomcat version 3 and 4; for them I'd still recommend what I said
before.

Anyway, did I mention that I just started using struts this afternoon? I
like the concept. Good stuff.


tom


Ted Husted wrote:
 
 Sorry, Tom. I should have said, I now develop under Tomcat 4 on my own
 station, and then beta test the deployment on the remote server, which
 is usually either TC3 or Resin. This ensures that I am in compliance
 with the latest reference specifications, and not relying on legacy or
 proprietary behaviors.
 
 I share and reuse my core work, so compliance is important to me. Where
 I have gotten burned is designing around behaviour in one container,
 only to find it did not work that way elsewhere.
 
 Thomas Quas wrote:
 
  Ted Husted wrote:
  
   Ajay Chitre wrote:
1)  From one of Craig's emails it sounds like I should be using Tomcat 4.0,
not 3.2.  Is that right?  But Tomcat 4.0 is a beta release.  Is it reliable?
  
   The only not is DO NOT USE TOMCAT 3.1 with Struts. Verson 3.2.3 is
   fine. Jakarta betas tend to more reliable that some others since they
   are based on the nightly builds, and are tested continually. I would use
   TC4 for development, and then deploy using TC32, or Resin, et cetera.
   This helps ensure that you are both compliant and portable.
 
  I disagree. In a commercial project, you don't want to develop on one
  version while deploying on another. Decide which one to use and go with
  the decision until all stakeholders agree with an update. This prevents
  you from spending a few nichts in the office shortly before product
  rollout.
 
  Just my $0.02, tom

-- 
thomas quas| Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]
   |-- Allen Ginsberg --



RE: data beans and ActionForm

2001-08-09 Thread Jan Fredrik Overaasen

Hi Mike
To initialize attributes in your formbean you implement the reset method.
See below:

ActionForm someActFrm {

  public void reset(ActionMapping mapping, HttpServletRequest request){
this.someBean = new SomeBean();
}

  private SomeBean someBean = null;

  public SomeBean getSomeBean () {
...
  }
  public void setSomeBean (SomeBean someBean) {
this.someBean = someBean;
  }
  public void setName(String someString) {
someBean.setName(someString);
  }
}

___ Jan Fredrik Overaasen | Senior Systems Developer 
___ Cell Network ASA | Pb. 5313, Sorkedalsv. 10A, N-0304 Oslo,
Norway
___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88
   ___ http://www.cellnetwork.com/ |
mailto:[EMAIL PROTECTED]

 


-Original Message-
From: Mike D [mailto:[EMAIL PROTECTED]]
Sent: 9. august 2001 17:07
To: [EMAIL PROTECTED]
Subject: data beans and ActionForm


if I have a separate data bean, which is a property in the ActionForm, how 
do I initialise that bean? I.e.:

ActionForm someActFrm {

  private SomeBean someBean = null;

  public SomeBean getSomeBean () {
...
  }
  public void setSomeBean (SomeBean someBean) {
this.someBean = someBean;
  }
  public void setName(String someString) {
someBean.setName(someString);
  }
}

how and where do I create an instance of the bean, so that I have a bean in 
the form, rather than it being null all the time...

Will be greatful for any help!

Mike

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



Re: Struts Tomcat 4.0

2001-08-09 Thread Ted Husted

Actually, I work on things like this:

 http://data.wxxi.org/hop 

;-)

-Ted.

Thomas Quas wrote:
 I guess you're working on the struts framework itself. In this case I
 totally agree with you.



RE: Scalability

2001-08-09 Thread Kevin McLain

The only thing I would add to your argument is the fact that Struts relies
fairly heavily on Reflection to set attributes on beans. Since Reflection
incurs a much higher overhead than a straight method call (although I have
heard that JDK 1.4 improves this performance considerably) - I did a rough
test and found that this could be as much as three times as long - it could
become a scalability issue as well...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 7:46 AM
To: [EMAIL PROTECTED]
Subject: RE: Scalability


 but I'm getting feedback from other developers that don't
 feel that Struts is a very scaleable framework.

What exactly are they saying? I don't have any personal
experience in this area but it seems to me that Struts is a
rather thin layer on top of normal Java Servlets. All
it really changes is that two pages (Model and View) are
called instead of the usual one. The other features don't
seem like the kind of things that would affect scaleability.
So any criticism of Struts should probably be generalizable
(if that's a word ;-) to Servlets if it's got any validity.
Please send more details.

Devon




Re: Struts Tomcat 4.0

2001-08-09 Thread Nicky Eshkenazi

Ted,

What is the architecture behind the auction site? Is Struts a part of it?

~Nicky

Ted Husted wrote:

 Actually, I work on things like this:

  http://data.wxxi.org/hop 

 ;-)

 -Ted.

 Thomas Quas wrote:
  I guess you're working on the struts framework itself. In this case I
  totally agree with you.




Re: Struts Tomcat 4.0

2001-08-09 Thread Thomas Quas


ROTFL. Isn't the world beautiful when we have a chance to find out how
highly sopisticated technical solutions are being applied to satisfy all
kinds of, ahem, human needs?


Have a nice one, tom ;-)


Ted Husted wrote:
 
 Actually, I work on things like this:
 
  http://data.wxxi.org/hop 
 
 ;-)
 
 -Ted.
 
 Thomas Quas wrote:
  I guess you're working on the struts framework itself. In this case I
  totally agree with you.

-- 
thomas quas| Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]
   |-- Allen Ginsberg --



Radio-Button Tag

2001-08-09 Thread Metehan Selvi



Hi,
one question about Radio-Input Fields, which are 
implemented by the RadioTag-class:
How to set an 'element' as checked e.g. as a 
default value?
I haven't found a hint or an property for the 
radio-field, where i can set the property checked=true or something like 
that.

cheers
mete


RE: Scalability

2001-08-09 Thread Craig R. McClanahan



On Thu, 9 Aug 2001, Kevin McLain wrote:

 The only thing I would add to your argument is the fact that Struts relies
 fairly heavily on Reflection to set attributes on beans. Since Reflection
 incurs a much higher overhead than a straight method call (although I have
 heard that JDK 1.4 improves this performance considerably) - I did a rough
 test and found that this could be as much as three times as long - it could
 become a scalability issue as well...
 

Even if 3x is an accurate statistic (seems high based on my experience
with JDK 1.3.1, especially when making repeated calls on the same bean
class where the caching Struts does helps you out), the key question is,
does it matter?  If you run out of database access speed or network
bandwidth first, for example, reflection that cost 100x the CPU of a
direct call would still have zero effect on response time and the number
of users you can support.

Scalability requires knocking down (or working around) bottlenecks as you
run into them.  If this one happens to be the one you hit first, it's
feasible to throw some more CPU at it (and trade the hardware cost for the
developer cost of having to avoid the use of reflection).  In most cases
I've seen, though, CPU does not tend to be the gating resource.

Craig




RE: New Release

2001-08-09 Thread MacKellar, Kimberly

Well if I move the jar file to the correct directory, it all seems to
work... Amazing :

-Original Message-
From: MacKellar, Kimberly 
Sent: Thursday, August 09, 2001 10:39 AM
To: '[EMAIL PROTECTED]'
Subject: RE: New Release


Chris,
This isn't exactly struts related...  How did you add back-port the
tags?  I ran jar uf struts.jar org\apache\struts\taglib\logic\EmptyTag.class
and the same for NotEmpty.class.  I also copied over the struts-logic.tld to
my WEB-INF directory.  When I restart Tomcat and try to access a page that
uses the notEmpty tag I get Unable to load class
org.apache.struts.taglib.logic.NotEmptyTag.  Do I need to add the class
files to the manifest of my struts.jar or is it something else?

Kim

-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 7:55 AM
To: '[EMAIL PROTECTED]'
Subject: RE: New Release


Just to confirm what Craig said, back-porting them to 1.0 appears to be 100%
problem-free. Once I saw those tags and was informed they were in the
nightly build, I grabbed them (along with TLD stuff, etc.) and dropped them
in our existing struts.jar (1.0); the tags work flawlessly and are quite
useful. :-) 

Chris

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 9:09 PM
To: Struts-User (E-mail)
Subject: Re: New Release




On Wed, 8 Aug 2001, MacKellar, Kimberly wrote:

 When is the new release of struts coming out (I really would like to use
the
 logic:notEmpty tag)?

If you're planning on waiting for a 1.1 release, we haven't really talked
about it yet.  I know there's quite a bit of stuff yet to integrate - in
the mean time, you could either use a 1.1 nightly build, or back-port
logic:empty and logic:notEmpty) into 1.0 (there should not be a problem
doing this).

  What happened to PropertyUtils in the nightly builds?
 

This class (and the digester stuff) now uses the packages from
jakarta-commons for this.  They have the same functionality but different
package names.  (The classes are in the commons-*.jar files).

 Kimberly MacKellar
 Thomson Financial Publishing
 [EMAIL PROTECTED]
 

Craig



RE: newbie question

2001-08-09 Thread Rick Hightower

On your form make sure you have

html:form action=/login focus=name
...

Then define the following forward in your struts-config

forward name =login path=/login.do /
...

If this does not work, try including your form code so people can help you
better.

Rick Hightower
Director of Development
eBlox, Inc.

Check out our new website!
www.eblox.com

Contact Info:
eBlox Tucson
phone: 520-615-9345 x103
fax: 520-529-5774

Rick's stuff:
http://www.eblox.com/people_detail.php?id=52
http://www.geocities.com/rick_m_hightower/
http://www.brainbench.com/transcript.jsp?pid=2351036


-Original Message-
From: Debasish Ghosh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 7:08 PM
To: [EMAIL PROTECTED]
Subject: newbie question


Hi all -

I am facing a weird problem, which I could not solve
in the last couple of hours. I checked up the
mail-archive but could not locate any solution to
this.

The application has a login screen (login.jsp), which
validates a user. There is an ActionForm (LoginForm)
with appropriate get and set methods.

The struts-config.xml looks like :

  form-beans

!-- Logon form bean --
form-bean  name=loginForm
type=com.anshin.LoginForm/

  /form-beans

!-- Process a user logon --
actionpath=/login
   type=com.anshin.LoginAction
   name=loginForm
   validate=true
   input=login.jsp

 forward name=success
path=/login.jsp/
 /action

When I execute the application (invoke login.jsp), I
get a 404 error on the page login.do. I gave
debugging statements and I find that the get methods
of the ActionForm gets executed, but nothing else
happens. It does not even enter the LoginAction class.
But from the Tomcat startup messages, I find that the
mappings have been identified and loaded by Tomcat.

I have struts.jar in WEB-INF/lib. I am really banging
my head over this problem. The other applications like
struts-example etc. are running fine ..

Pls. help.

Regards.

- Debasish

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/




Re: WebLogic related question- javax.servlet.jsp.JspException:No get ter method for property...

2001-08-09 Thread Martin Cooper

This is a consequence of the JavaBeans introspection mechanism. The getter
and setter must be getting and setting the same type for them to be
recognized as property accessors. See the Introspection chapter of the
JavaBeans spec for more details.

--
Martin Cooper


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 6:25 AM
Subject: RE: WebLogic related question- javax.servlet.jsp.JspException: No
get ter method for property...




 No, but this is not the problem.  I discovered last night that the setter
 and getter must match precisely- not only the name must correspond with
the
 property (obviously) but the object type of the property must be the same
as
 well. i.e.:

 String getProperty()
 setProperty( String str )

 can't be like this:
 String getProperty()
 setProperty( Timestamp t )

 This seems a little odd to me. Does anyone know if this is mandated by the
 Servlet spec, or has WL just done something funky in their implementation?

 Thanks,
 Bob



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 5:11 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Weblogic related question- javax.servlet.jsp.JspException:
 No get ter method for property...



 You're Bean class does not extend ActionForm..






 [EMAIL PROTECTED]

 elheim.comTo:
 [EMAIL PROTECTED]
   cc:

 08/08/2001 03:56 PM   Subject: RE:
 Weblogic related question-
 Please respond to
 javax.servlet.jsp.JspException: No get ter method for property...
 struts-user










 The Bean class does have a matching get method for the specified property.
 This is why I don't understand why I am receiving this error...




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 4:45 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Weblogic related question- javax.servlet.jsp.JspException:
 No get ter method for property...



 RequestUtils is using introspection on your form bean class to match the
 name you placed in your html:text tag with a bean method name.  So, if
you
 had:

 html:text property=requestDate

 Your form bean should have:  String getRequestDate()
andvoid   setRequestDate(String)

 Brian






 [EMAIL PROTECTED]

 elheim.comTo:
 [EMAIL PROTECTED]
   cc:

 08/08/2001 03:22 PM   Subject:
Weblogic
 related question- javax.servlet.jsp.JspException:
 Please respond to No get ter method
for
 property...
 struts-user










 I am moving a Struts-based application from WebLogic 5.1 to 6.1 and I am
 encountering some strange errors. Has anyone else seen this behavior
 before,
 or know what might be causing it?  I have a Collection of beans I am
trying
 to iterate through using the Struts iterate tag (works fine with WL5.1)
but
 now I am getting an error that there is no getter method. I have verified
 with the debugger that at runtime the Collection exists and it is
populated
 with the expected objects. I am not really sure what is going on... The
 only
 thing I can think of is that this method does not exactly conform to the
 JavaBean spec- it does not set/get the same type of object. When doing a
 set, you pass it a TimeStamp but for the get it returns a formatted String
 (see below). However, the naming conventions are followed correctly. Is
 this
 a problem?


  WL Exception #
 note: the bean called theFermentation is a FermSummaryBean (see below)

 javax.servlet.jsp.JspException: No getter method for property requestDate
 of
 bean theFermentation
 at
 org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517)
 at
 org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
 at jsp_servlet._mainmenu._jspService(_mainmenu.java:385)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 at

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java


 :263)
 at

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java


 :302)
 at

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java


 :200)
 at

weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp


 l.java:190)
 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.doPost(ActionServlet.java:509)
 at 

RE: jbuilder5

2001-08-09 Thread Marcel Andres

I'm not sure if Mike means the Struts Support Addin from 
http://codecentral.borland.com/. But if your application is built as a WAR archive, 
this could help.

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 5:54 PM
To: [EMAIL PROTECTED]
Subject: Re: jbuilder5


I was having similar problems with JB5 until I installed two OpenTools that
I got
from Borlands CodeCentral...Now, everything works great.

For more on this, go to http://www.tamaracka.com/search.htm and search on
keywords:  struts jar ken chan

Good luck.  -- Mike

- Original Message -
From: Marcel Andres [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 8:08 AM
Subject: RE: jbuilder5


Hallo Nicole

When you run your project with Start Tomcat..., did you check in the
message viewer, if the classpath is set right?

Gruss und viel Glück / Cheers

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 4:52 PM
To: [EMAIL PROTECTED]
Subject: jbuilder5


ive got problems with jbuilder5 and struts!

javax.servlet.ServletException: Exception creating bean of class
de.bnext.portal.ch.AcknowledgementForm: java.lang.ClassNotFoundException:
de.bnext.portal.ch.AcknowledgementForm
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:992)
 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:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
 Root cause: javax.servlet.jsp.JspException: Exception creating bean of
class de.bnext.portal.ch.AcknowledgementForm:
java.lang.ClassNotFoundException: de.bnext.portal.ch.AcknowledgementForm
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:122)
 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:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

this class exists!!! this application runs on the normal tomcat but not in
the jbuider5 environment!!!


Mit freundlichen Gruessen
With best Regards/

Nicole Karmalita
Junior Software Engineer
b-next AG
Consulting  Engineering
Stockholmer Allee 30c, D-44269 Dortmund Zentrale: Hansastr. 35,
D-32049 Herford
Fon +49 231 56 55 72-0 Fon +49 5221 99 28-00
Fax +49 231 56 55 72-72 Fax +49 5221 84 68-0
http://www.b-next.de
mailto:[EMAIL PROTECTED]



-
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte 

RE: please unsubscribe me

2001-08-09 Thread Jacky Lam




please unsubscribe me

  -Original Message-From: debu 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 09, 
  2001 12:03 AMTo: [EMAIL PROTECTED]Subject: 
  please unsubscribe me
  
  please unsubscribe me


Re: Struts Tomcat 4.0

2001-08-09 Thread Craig R. McClanahan

Keeping in mind that my day job is building Tomcat 4, I will add a few
comments and answers below.

On Wed, 8 Aug 2001, Ajay Chitre wrote:

 Hello,
 
 I have been playing with struts for the past couple of months and I have
 had fun playing with it.  Time has come now to stop playing and get serious.
 
 I have been asked to develop a web app with Struts  Tomcat.  I have been
 using Weblogic for the past couple of years, but this is my first experience
 with Tomcat, so I need some help to take some decisions.  (I realize that
 this email should really be sent to the Tomcat mailing list, but I believe
 there's enough expertise in this mailing list to get these questions
 answered!)
 
 After reading thru the Struts mailing list I have concluded the following.
 Can someone please tell me if I am on the right track?
 
 1)  From one of Craig's emails it sounds like I should be using Tomcat 4.0,
 not 3.2.  Is that right?  But Tomcat 4.0 is a beta release.  Is it reliable?
 

Tomcat 4 is beta only because the specs are not yet final -- that is a
short term issue (all the J2EE specs will be going final together
soon).  The code itself is very solid for stand-alone use, which is the
typical mode for application developers.  The web connector code is less
mature, but getting there fast.

I use Struts + Tomcat 4 every day -- it's part of my unit test procedures
on Tomcat 4 development that it *must* run Struts apps flawlessly :-).

Note also that, while Tomcat 4 supports the new Servlet 2.3 and JSP 1.2
specs, it also runs Servlet 2.2 / JSP 1.1 based applications (which is the
minimum platform for Struts) just fine.  Backwards compatibility like this
is a requirement in the 2.3/1.2 specs.

 2)  Doesn't look like Tomcat 4.0 supports EJB.  Does it?
 

No, and it won't.  For developing web apps that use EJBs, you can use
something like the J2EE RI (version 1.3 includes Tomcat 4 as it's web
layer), JBoss (which integrates with Tomcat, although still 3.2 IIRC), or
other similar environments.

 3)  If EJB is not available I can use JDBC - no problem - but doesn't look
 like I can create database connection pool in Tomcat.
 

You've got three different ways to do connection pools in Tomcat 4:

* As application-provided resources (i.e. the data-source declaration
  in struts-config.xml, using the connection pool already
  included in Struts.  This works in Tomcat 4 just like it works in
  any other servlet container.

* Using a third party connection pool implementation like Poolman
  (again just like any servlet container).

* As JNDI-accessed resources (exactly as in the J2EE programming model).
  This is a little tricky to set up (due entirely to sketchy
  documentation) but is very useful when you plan to deploy on a J2EE
  environment (because they all support this feature).

 4)  From one of Ted's emails I think I should use Poolman to create database
 connection pool in Tomcat 4.0.  Right?
 

That's one option.  Or you can use the one built in to Struts.  Or you can
use the JNDI-based support built in to Tomcat 4.

 5)  What's equivalent of Weblogic Time APIs?  Tomcat workers, right?
 

I assume this is for background job scheduling and stuff?  You can deal
with this in a variety of ways:

* Add some code to Tomcat's internals (there are appropriate APIs
  and listeners to do this kind of thing)

* Add a servlet-based job scheduler and run it as a web app (something
  like this is much more likely to be portable to other servers too).

Nothing is provided for this out-of-the-box.

 6)  Can I set up Tomcat to send emails using Java Mail APIs?  In Weblogic
 one has to make sure that mail.jar  activation.jar is in Weblogic
 Classpath.  Is there any special requirement such as this in Tomcat?
 

The only requirement is that you make the necessary JARs available.  In
Tomcat there are (again) two options:

* Include activation.jar and mail.jar in /WEB-INF/lib of your
  application (portable to *any* container)

* Include these JAR files in $CATALINA_HOME/lib, which makes them
  available to all web applications.

 7)  Does Tomcat support JMS?
 

You can certainly write web apps that use the JMS client APIs, in the same
way that you can write mail clients that use JavaMail APIs.  Tomcat is not
a JMS server -- again, that is a J2EE app server level feature.

 8)  Which one is better - Log4J or LogKit (which is part of Avalon project
 from Jakarta)?
 

I'm not going to touch that one :-).

 9)  What's the difference between 'Struts'  'Turbine' (which is another
 Jakarta project)?  Pros  Cons?
 

Ted's pointer gives a pretty good summary.  There's also a fairly even
handed comparison on the Barracuda site at Lutris.

That being said, people who like JSP, and J2EE-ish APIs, will tend to
prefer Struts, while those who like Velocity/WebMacro, and don't
necessarliy care about J2EE-ish APIs, will tend to like Turbine.

 I apologize for the length of this email.  Thanks in advance for your time.
 
 - Ajay
 
 

Craig





RE: New Release

2001-08-09 Thread Assenza, Chris

Hehe, that's good because I didn't know what else to tell you. ^_^

Chris


-Original Message-
From: MacKellar, Kimberly [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 12:08 PM
To: '[EMAIL PROTECTED]'
Subject: RE: New Release


Well if I move the jar file to the correct directory, it all seems to
work... Amazing :

-Original Message-
From: MacKellar, Kimberly 
Sent: Thursday, August 09, 2001 10:39 AM
To: '[EMAIL PROTECTED]'
Subject: RE: New Release


Chris,
This isn't exactly struts related...  How did you add back-port the
tags?  I ran jar uf struts.jar org\apache\struts\taglib\logic\EmptyTag.class
and the same for NotEmpty.class.  I also copied over the struts-logic.tld to
my WEB-INF directory.  When I restart Tomcat and try to access a page that
uses the notEmpty tag I get Unable to load class
org.apache.struts.taglib.logic.NotEmptyTag.  Do I need to add the class
files to the manifest of my struts.jar or is it something else?

Kim

-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 7:55 AM
To: '[EMAIL PROTECTED]'
Subject: RE: New Release


Just to confirm what Craig said, back-porting them to 1.0 appears to be 100%
problem-free. Once I saw those tags and was informed they were in the
nightly build, I grabbed them (along with TLD stuff, etc.) and dropped them
in our existing struts.jar (1.0); the tags work flawlessly and are quite
useful. :-) 

Chris

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 9:09 PM
To: Struts-User (E-mail)
Subject: Re: New Release




On Wed, 8 Aug 2001, MacKellar, Kimberly wrote:

 When is the new release of struts coming out (I really would like to use
the
 logic:notEmpty tag)?

If you're planning on waiting for a 1.1 release, we haven't really talked
about it yet.  I know there's quite a bit of stuff yet to integrate - in
the mean time, you could either use a 1.1 nightly build, or back-port
logic:empty and logic:notEmpty) into 1.0 (there should not be a problem
doing this).

  What happened to PropertyUtils in the nightly builds?
 

This class (and the digester stuff) now uses the packages from
jakarta-commons for this.  They have the same functionality but different
package names.  (The classes are in the commons-*.jar files).

 Kimberly MacKellar
 Thomson Financial Publishing
 [EMAIL PROTECTED]
 

Craig



RE: error running struts examples.war

2001-08-09 Thread Mills, Theo

Are you running apache, or tomcat as a standalone server?

-Original Message-
From: Moses Lam [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 11:32 AM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: error running struts examples.war


hi,
i downloaded the following binaries:
jakarta-tomcat-3.2.3.zip
jakarta-struts-20010809.zip

i have no problems starting up tomcat, but when i copied the
struts-example.war
into my \webapps, tomcat would not start.

according to the INSTALL, i should not have to do anything else to run the
strut examples.  any ideas?

thanks in advance,

mo

ps: i also tried using an older release of struts, but same thing.



RE: please unsubscribe me

2001-08-09 Thread Fletcher, Ken

To remove your address from the list, send a message to:
   [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

-Original Message-
From: Jacky Lam [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 11:33 AM
To: '[EMAIL PROTECTED]'
Subject: RE: please unsubscribe me


please unsubscribe me

-Original Message-
From: debu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 12:03 AM
To: [EMAIL PROTECTED]
Subject: please unsubscribe me


please unsubscribe me




RE: TILES template with STRUTS problem

2001-08-09 Thread Craig R. McClanahan



On Thu, 9 Aug 2001, Jain, Shipra wrote:

 Can any one please let me know what Tiles is ? Is it related to Templates
 ? Is it another open source project ? Can you please send to URL for getting
 more information.
 

Tiles is the new name for Cedric Dumoulin's Components add-on that is
being integrated into Struts.  It's in the contrib directory of the 1.1
source tree at the moment.

 Also, Is Struts 1.1 beta out ? If yes, where can I can a copy of it.

No beta yet (we're still deeply in add functionality mode), but you can
always grab the latest nightly build:

  http://jakarta.apache.org/builds/jakarta-struts/nightly/

 
 Thanks
 Shipra Jain
 

Craig


 
 -Original Message-
 From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 06, 2001 4:17 PM
 To: [EMAIL PROTECTED]
 Subject: Re: TILES template with STRUTS problem
 
 
 
   Which xml parser do you use ?
   Tiles, like Struts1.1-dev use commons.Digester package, which requires
 Jaxp1.1 to run.
 
 Cedric
 
 BinhMinh Nguyen wrote:
 
  Hi,
 
  When copied the titles-doc.WAR into Tomcat 's webapps
  and run. The following error-message display.
  Can you spot out the error please.
 
  Binh Nguyen, a big fan of Component and Tiles
 
  er('-//Sun Microsystems, Inc.//DTD Web Application
  2.2//EN', 'jar:file:C:\jakarta-tomcat-3.2.3
 
 ps\tiles-doc\WEB-INF\lib\struts.jar!/org/apache/struts/resources/web-app_2_2
 .dtd'
  er('-//Sun Microsystems, Inc.//DTD Web Application
  2.3//EN', 'jar:file:C:\jakarta-tomcat-3.2.3
 
 ps\tiles-doc\WEB-INF\lib\struts.jar!/org/apache/struts/resources/web-app_2_3
 .dtd'
  er.getParser:
  xml.parsers.ParserConfigurationException: Namespace
  not supported by SAXParser
at
  com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60)
at
 
 com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.ja
 va:57)
at
  org.apache.commons.digester.Digester.getParser(Digester.java:407)
at
  org.apache.commons.digester.Digester.parse(Digester.java:1088)
at
 
 org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1272)
at
  org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
at
 
 org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j
 ava:56)
at
  javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
  org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at
  org.apache.tomcat.core.Handler.init(Handler.java:215)
at
  org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
 
 org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
 Interceptor.j
  0)
at
  org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at
  org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at
  org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at
  org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
  ion in thread main java.lang.NoSuchMethodError
at
  org.apache.commons.digester.Digester.parse(Digester.java:1088)
at
 
 org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1272)
at
  org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
at
 
 org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j
 ava:56)
at
  javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
  org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at
  org.apache.tomcat.core.Handler.init(Handler.java:215)
at
  org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
 
 org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
 Interceptor.j
  0)
at
  org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at
  org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at
  org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at
  org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
  arta-tomcat-3.2.3\bin
 
  __
  Do You Yahoo!?
  Make international calls for as low as $.04/minute with Yahoo! Messenger
  http://phonecard.yahoo.com/
 
 
 




Wizard Form Authoring..

2001-08-09 Thread Brian . Duchouquette


All,

What is the best design practice that you have found for creating Wizard
entry forms in the Struts framework?

Thanks,
Brian




Struts and Forte

2001-08-09 Thread Dan . C . Wieschhaus

Do any of you use Struts inside of FFJ 3.0 EE (EA)?  Since the
tomcat-apache.conf file gets created everytime you run FFJ's internal
Tomcat, is it impossible to register the Handler for the .do actions
coming from the client JSPs?

Dan





Re: Construct context-relative URL in Javascript?

2001-08-09 Thread Randall Parker

On Wed, 8 Aug 2001 17:47:22 -0500, [EMAIL PROTECTED] wrote:


Did you try html:base/?

How can that help? 

I don't want the result in an a href. I want to do a POST and I want to be able to set 
the 
TARGET attribute for the FORM before posting as well. I want to set the form's ACTION 
attribute to that value. But I have multiple values that the form's ACTION attribute 
might get 
set to and so I have to do it in Javascript based on which button the user clicked on.

The html:base looks like will calc the right absolute URL and I could create one for 
each 
button. But I'd have to make them invisible (since I don't want to the user clicking 
on them) 
and then have some way to get at their HREF attribute value.  In theory that may be 
possible using DOM calls from Javascript if I set ID values for each A HREF element. 
But 
that's limit what browser versions could be used.

So I'd rather have the values be placed in invisible controls by the server when it 
generates 
the page.







RE: jbuilder5

2001-08-09 Thread Anthony Martin

Here are my revised steps for starting a Struts Project in JBuilder5.  I'd
appreciate any comments.  If something is unclear or incorrect, I'm open to
any suggestions:

Go to http://www1.tramsasp.com/?section=dev then click on the
JBuilder5/Struts link.


Anthony

-Original Message-
From: MW Porter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 8:54 AM
To: [EMAIL PROTECTED]
Subject: Re: jbuilder5


I was having similar problems with JB5 until I installed two OpenTools that
I got
from Borlands CodeCentral...Now, everything works great.

For more on this, go to http://www.tamaracka.com/search.htm and search on
keywords:  struts jar ken chan

Good luck.  -- Mike

- Original Message -
From: Marcel Andres [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 8:08 AM
Subject: RE: jbuilder5


Hallo Nicole

When you run your project with Start Tomcat..., did you check in the
message viewer, if the classpath is set right?

Gruss und viel Glück / Cheers

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 4:52 PM
To: [EMAIL PROTECTED]
Subject: jbuilder5


ive got problems with jbuilder5 and struts!

javax.servlet.ServletException: Exception creating bean of class
de.bnext.portal.ch.AcknowledgementForm: java.lang.ClassNotFoundException:
de.bnext.portal.ch.AcknowledgementForm
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:992)
 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:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
 Root cause: javax.servlet.jsp.JspException: Exception creating bean of
class de.bnext.portal.ch.AcknowledgementForm:
java.lang.ClassNotFoundException: de.bnext.portal.ch.AcknowledgementForm
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:122)
 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:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

this class exists!!! this application runs on the normal tomcat but not in
the jbuider5 environment!!!


Mit freundlichen Gruessen
With best Regards/

Nicole Karmalita
Junior Software Engineer
b-next AG
Consulting  Engineering
Stockholmer Allee 30c, D-44269 Dortmund Zentrale: Hansastr. 35,
D-32049 Herford
Fon +49 231 56 55 72-0 Fon +49 5221 99 28-00
Fax +49 231 56 55 72-72 Fax +49 5221 84 68-0
http://www.b-next.de
mailto:[EMAIL PROTECTED]



-
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, 

Re: Struts Tomcat 4.0

2001-08-09 Thread Ted Husted

Nicky Eshkenazi wrote:
 
 Ted,
 
 What is the architecture behind the auction site? Is Struts a part of it?
 
 ~Nicky

The HOP site, and a larger auction site that ran before it, are powered
by Struts, MySQL, Resin, over Red Hat Linux on a single processor (p2
350), 128kb machine (did actually spring for a SCSI drive, though). In
the first auction, we took about 50,000 bids on 5,000 items, and
performance was never a problem, even when we had dozens of items
closing at once, with the out-bid emails flying ;-). My stress tests
handled hundreds of simulated users without issue, and I'm sure with
more resources, I could have pushed it much farther.

I'm actively refactoring most of the code behind the Gavel into
packages for general use, and will eventually release the entire
codebase as open source. It's just that I was under some time
constraints then, and, well, the code still contains some embarrassing
shortcuts (OK, outright hacks), and I don't want those nasties to be
confused with the good code ;-)

I do have some irons in the fire now that may help bring this along soon
...

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

 
 Ted Husted wrote:
  Actually, I work on things like this:
 
   http://data.wxxi.org/hop 
 
  ;-)
 
  -Ted.



Re: Struts Tomcat 4.0

2001-08-09 Thread Nicky Eshkenazi

Ted,

Thank you for all the details on the Hop project. Do you know where I could
take a look at Struts implementation of a sophisticated shopping card ( if any
is available to your knowledge )?

thanks,
Nicky

Ted Husted wrote:

 Nicky Eshkenazi wrote:
 
  Ted,
 
  What is the architecture behind the auction site? Is Struts a part of it?
 
  ~Nicky

 The HOP site, and a larger auction site that ran before it, are powered
 by Struts, MySQL, Resin, over Red Hat Linux on a single processor (p2
 350), 128kb machine (did actually spring for a SCSI drive, though). In
 the first auction, we took about 50,000 bids on 5,000 items, and
 performance was never a problem, even when we had dozens of items
 closing at once, with the out-bid emails flying ;-). My stress tests
 handled hundreds of simulated users without issue, and I'm sure with
 more resources, I could have pushed it much farther.

 I'm actively refactoring most of the code behind the Gavel into
 packages for general use, and will eventually release the entire
 codebase as open source. It's just that I was under some time
 constraints then, and, well, the code still contains some embarrassing
 shortcuts (OK, outright hacks), and I don't want those nasties to be
 confused with the good code ;-)

 I do have some irons in the fire now that may help bring this along soon
 ...

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

 
  Ted Husted wrote:
   Actually, I work on things like this:
  
http://data.wxxi.org/hop 
  
   ;-)
  
   -Ted.




Re: Struts with TOMCAT 3.3

2001-08-09 Thread Rajan Gupta

Tomcat 4.0 rocks, it is faster than 3.3  auto class loading feature is
great. Great work Craig!
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Sun, 5 Aug 2001, Rajan Gupta wrote:
 
  So then TOMCAT 4.0 it is, I hope u were serious :)
 
 
 Oh, yes ... Building Tomcat 4 is my day job at Sun, and I test these
 together all the time.
 
 The only thing you need to remember is that Tomcat 4 doesn't expose an
 XML
 parser to web apps by default.  See the release notes document for more
 details about how to do this.
 
 Craig
 
 
  --- Craig R. McClanahan [EMAIL PROTECTED] wrote:
   
   
   On Sun, 5 Aug 2001, Rajan Gupta wrote:
   
Has anybody successfully used Struts with Tomcat 3.3?

   
   Haven't ever done so myself.  I can vouch for Tomcat 4 though :-).
   
I was able to run my application with Struts on Tomcat 3.2 but has
 to
upgrade to Tomcat 3.3 because of a problem with using XALAN 
 Xerces.
   I am
using XPath from Xalan  that resulted in conflict with tomcat 3.2
libraries. My Xalan problem got resolved but Struts Template
 mechanism
stopped working.

Is Struts tied to a certain XML parser?

   
   Struts 1.0 requires a parser that implements the JAXP/1.0 (or
   later) APIs.  The next version of Struts will requie JAXP/1.1
 instead --
   which also includes a portable interface for XSLT engines like
 Xalan.
   
Thanks in advance,
Rajan

   
   Craig McClanahan
   
  
  
  __
  Do You Yahoo!?
  Make international calls for as low as $.04/minute with Yahoo!
 Messenger
  http://phonecard.yahoo.com/
  
 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Enabling/Disabling of form fields on page load

2001-08-09 Thread B Manikandan

Hi,
   I have a requirement where I need to enable/disable form fields on
page load up.The enabling/disabling depends on user access and I have
the access rights as on object in context.

   How do I use this object ? I do not want to resort to logic:equal
as my code will become big.

Mani





The Information contained and transmitted by this E-MAIL is proprietary to 
Wipro Limited and is intended for  use only by the individual or entity to which 
it is addressed, and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If this is a forwarded message, 
the content of this E-MAIL may not have been sent with the authority of the 
Company. If you are not the intended recipient, an agent of the intended 
recipient or a  person responsible for delivering the information to the named 
recipient,  you are notified that any use, distribution, transmission, printing, 
copying or dissemination of this information in any way or in any manner is 
strictly prohibited. If you have received this communication in error, please 
delete this mail  notify us immediately at [EMAIL PROTECTED] 


The Information contained and transmitted by this E-MAIL is proprietary to 
Wipro Limited and is intended for  use only by the individual or entity to which 
it is addressed, and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If this is a forwarded message, 
the content of this E-MAIL may not have been sent with the authority of the 
Company. If you are not the intended recipient, an agent of the intended 
recipient or a  person responsible for delivering the information to the named 
recipient,  you are notified that any use, distribution, transmission, printing, 
copying or dissemination of this information in any way or in any manner is 
strictly prohibited. If you have received this communication in error, please 
delete this mail  notify us immediately at [EMAIL PROTECTED] 




Re: Struts Tomcat 4.0

2001-08-09 Thread Ted Husted

Steve Wilkenson's shopping cart example from JSP Professional JSP 2
(Wrox) is available at 

 http://www.newparticles.com/struts/ 

He has also mentioned refactoring it for jBoss as an EJB example. 

There are some other projects listed here:

 http://husted.com/about/struts/resources.htm#projects 

including another shopping cart example.

-Ted.


Nicky Eshkenazi wrote:
 
 Ted,
 
 Thank you for all the details on the Hop project. Do you know where I could
 take a look at Struts implementation of a sophisticated shopping card ( if any
 is available to your knowledge )?
 
 thanks,
 Nicky



RE: jbuilder5

2001-08-09 Thread Rajan Gupta

Has anyone used JBUilder5 with Tomcat4.0?
--- Anthony Martin [EMAIL PROTECTED] wrote:
 Here are my revised steps for starting a Struts Project in JBuilder5. 
 I'd
 appreciate any comments.  If something is unclear or incorrect, I'm open
 to
 any suggestions:
 
 Go to http://www1.tramsasp.com/?section=dev then click on the
 JBuilder5/Struts link.
 
 
 Anthony
 
 -Original Message-
 From: MW Porter [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 09, 2001 8:54 AM
 To: [EMAIL PROTECTED]
 Subject: Re: jbuilder5
 
 
 I was having similar problems with JB5 until I installed two OpenTools
 that
 I got
 from Borlands CodeCentral...Now, everything works great.
 
 For more on this, go to http://www.tamaracka.com/search.htm and search
 on
 keywords:  struts jar ken chan
 
 Good luck.  -- Mike
 
 - Original Message -
 From: Marcel Andres [EMAIL PROTECTED]
 To: struts-user [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 8:08 AM
 Subject: RE: jbuilder5
 
 
 Hallo Nicole
 
 When you run your project with Start Tomcat..., did you check in the
 message viewer, if the classpath is set right?
 
 Gruss und viel Glück / Cheers
 
 Marcel
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 09, 2001 4:52 PM
 To: [EMAIL PROTECTED]
 Subject: jbuilder5
 
 
 ive got problems with jbuilder5 and struts!
 
 javax.servlet.ServletException: Exception creating bean of class
 de.bnext.portal.ch.AcknowledgementForm:
 java.lang.ClassNotFoundException:
 de.bnext.portal.ch.AcknowledgementForm
  at

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

jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
 (_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:992)
  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:177)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
 7)
  at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
  at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:210)
  at

org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
  at

org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
  at java.lang.Thread.run(Thread.java:484)
  Root cause: javax.servlet.jsp.JspException: Exception creating bean of
 class de.bnext.portal.ch.AcknowledgementForm:
 java.lang.ClassNotFoundException: de.bnext.portal.ch.AcknowledgementForm
  at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568)
  at

jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
 (_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:122)
  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:177)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
 7)
  at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
  at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:210)
  at

org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
  at

org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
  at java.lang.Thread.run(Thread.java:484)
 
 this class exists!!! this application runs on the normal tomcat but not
 in
 the jbuider5 environment!!!
 
 
 Mit freundlichen Gruessen
 With best Regards/
 
 Nicole Karmalita
 Junior Software Engineer
 b-next AG
 Consulting  Engineering
 Stockholmer Allee 30c, D-44269 Dortmund Zentrale: Hansastr. 35,
 D-32049 Herford
 Fon +49 231 56 55 72-0 Fon +49 5221 99 28-00
 Fax +49 231 56 55 72-72 Fax +49 5221 84 68-0
 http://www.b-next.de
 mailto:[EMAIL PROTECTED]
 
 
 


RE: JBuilder 5, Struts 1.0 WebLogic 6.0, a Tutorial

2001-08-09 Thread Bill G

Markus, Nice Work!

You should check out Ken Sipe's presentation of Struts at Borcon.  The
slides and all required resources are at
http://www.borland.com/conf2001/updates/  look for presentation 3148.

Bill Gfroehrer...


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 5:24 AM
To: [EMAIL PROTECTED]
Cc: Wymann, Roland
Subject: JBuilder 5, Struts 1.0  WebLogic 6.0, a Tutorial


A small Tutorial can be found at:
http://www.netstore.ch/mesi/strutsTutorial/

Even if it is weblogic specific, it might be interresting for everybody who
develops with JBuilder.

Thanks to Anthony, Bill and everybody else in this list for the tips !


Markus Colombo, ConsultantTel: +41-(0)61-377 77 17
THALES Information Systems AG Tel: +41-(0)61-377 77 77
Auf dem Wolf 17
CH 4052 Basel, SwitzerlandFax: +41-(0)61-377 77 99
[EMAIL PROTECTED]   http://www.thales-is.ch

THALES Information Systems AG ,vormals Syseca (Schweiz) AG:
 hat in der Schweiz an 6 Standorten über 240 IT Professionals.
 ist ein international operierendes Unternehmen mit 4'700 Mitarbeitern.
 ist eine Unternehmung der THALES Group, vormals Thomson-CSF.
Die THALES Group hat weltweit 65'000 Mitarbeitern.







Tabs on a Struts Page

2001-08-09 Thread Brian . Duchouquette


This is a follow-up to my Wizard question...

If I have three tabs that are included at the top of each of the three body
pages by a template, then what is the best way to make sure information is
stored between requests for the different pages?  Even though all three
pages use the same ActionForm bean and Action class, I am running into the
problem where the formbean is loosing its data (even though I check for
submit in the reset() method).  Is there a better approach than doing this?

BTW, sorry about the multiple posts of some of my messages cluttering the
newsgroup... our Lotus Notes server went nuts over here.

Thanks,
Brian






   
  
Brian.Duchouquette@tran
  
splace.com To: 
[EMAIL PROTECTED]
   cc: 
  
08/09/2001 12:22 PMSubject: Wizard Form 
Authoring..  
Please respond to  
  
struts-user
  
   
  
   
  





All,

What is the best design practice that you have found for creating Wizard
entry forms in the Struts framework?

Thanks,
Brian








RE: JBuilder 5, Struts 1.0 WebLogic 6.0, a Tutorial

2001-08-09 Thread Anthony Martin

Hehe, that's fine if you want to download 4megs.  It does come with a
project example, and instructions for JBuilder 4 and 5.

Ken's great, I met him at Borcon and I attended the session on Struts.  In
fact, besides Ken's session, three other sessions that I attended mentioned
Struts (more in favor than not).

He also hinted that someone should add a Struts item to the Object Gallery
(File | New | Web), which I think is a good idea.  Can it be added like with
OpenTools?


Anthony

-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 11:13 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: JBuilder 5, Struts 1.0  WebLogic 6.0, a Tutorial


Markus, Nice Work!

You should check out Ken Sipe's presentation of Struts at Borcon.  The
slides and all required resources are at
http://www.borland.com/conf2001/updates/  look for presentation 3148.

Bill Gfroehrer...


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 5:24 AM
To: [EMAIL PROTECTED]
Cc: Wymann, Roland
Subject: JBuilder 5, Struts 1.0  WebLogic 6.0, a Tutorial


A small Tutorial can be found at:
http://www.netstore.ch/mesi/strutsTutorial/

Even if it is weblogic specific, it might be interresting for everybody who
develops with JBuilder.

Thanks to Anthony, Bill and everybody else in this list for the tips !


Markus Colombo, ConsultantTel: +41-(0)61-377 77 17
THALES Information Systems AG Tel: +41-(0)61-377 77 77
Auf dem Wolf 17
CH 4052 Basel, SwitzerlandFax: +41-(0)61-377 77 99
[EMAIL PROTECTED]   http://www.thales-is.ch

THALES Information Systems AG ,vormals Syseca (Schweiz) AG:
 hat in der Schweiz an 6 Standorten über 240 IT Professionals.
 ist ein international operierendes Unternehmen mit 4'700 Mitarbeitern.
 ist eine Unternehmung der THALES Group, vormals Thomson-CSF.
Die THALES Group hat weltweit 65'000 Mitarbeitern.






RE: JBuilder 5, Struts 1.0 WebLogic 6.0, a Tutorial

2001-08-09 Thread Anthony Martin

By the way, another good session I sat in on can be found at
http://www.borland.com/conf2001/updates/, 3004, Building Extensible Web
Frameworks Using XML, XSL-T, and Java by Richard Vowles.

Trouble is, they put the wrong slide show into the archive.  The code
examples are correct and include Struts, Tapestry (Richard's favorite, I
think), and xsltaglibs.

Richard didn't seem to like Struts too much, but shows it anyway.  He took a
lot of time to show Tapestry.  It's a replacement for JSP and my impression
is that it uses Action Listeners better than any Servlet I've seen.  But
maybe I made that up because I was falling asleep during that part of the
session...ala Homer Simpson (Cult Member: There's nothing like that in the
movie.  Homer: Yeah, I know.  I just make stuff up when I get bored, OH A
BIRDIE!).


Anthony

-Original Message-
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 11:22 AM
To: '[EMAIL PROTECTED]'
Subject: RE: JBuilder 5, Struts 1.0  WebLogic 6.0, a Tutorial


Hehe, that's fine if you want to download 4megs.  It does come with a
project example, and instructions for JBuilder 4 and 5.

Ken's great, I met him at Borcon and I attended the session on Struts.  In
fact, besides Ken's session, three other sessions that I attended mentioned
Struts (more in favor than not).

He also hinted that someone should add a Struts item to the Object Gallery
(File | New | Web), which I think is a good idea.  Can it be added like with
OpenTools?


Anthony

-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 11:13 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: JBuilder 5, Struts 1.0  WebLogic 6.0, a Tutorial


Markus, Nice Work!

You should check out Ken Sipe's presentation of Struts at Borcon.  The
slides and all required resources are at
http://www.borland.com/conf2001/updates/  look for presentation 3148.

Bill Gfroehrer...


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 5:24 AM
To: [EMAIL PROTECTED]
Cc: Wymann, Roland
Subject: JBuilder 5, Struts 1.0  WebLogic 6.0, a Tutorial


A small Tutorial can be found at:
http://www.netstore.ch/mesi/strutsTutorial/

Even if it is weblogic specific, it might be interresting for everybody who
develops with JBuilder.

Thanks to Anthony, Bill and everybody else in this list for the tips !


Markus Colombo, ConsultantTel: +41-(0)61-377 77 17
THALES Information Systems AG Tel: +41-(0)61-377 77 77
Auf dem Wolf 17
CH 4052 Basel, SwitzerlandFax: +41-(0)61-377 77 99
[EMAIL PROTECTED]   http://www.thales-is.ch

THALES Information Systems AG ,vormals Syseca (Schweiz) AG:
 hat in der Schweiz an 6 Standorten über 240 IT Professionals.
 ist ein international operierendes Unternehmen mit 4'700 Mitarbeitern.
 ist eine Unternehmung der THALES Group, vormals Thomson-CSF.
Die THALES Group hat weltweit 65'000 Mitarbeitern.





RE: Retrieving property fields in Action Class

2001-08-09 Thread Jon Crater

i've never done this myself, but just from looking at the API docs, it looks 
like you can do something like the following from within your action class:

public class SomeAction extends Action
{
   ServletContext ctx = servlet.getServletContext();
   MessageResources msgResources =
 (MessageResources)ctx.getAttribute(MESSAGES_KEY);
   String someProperty = msgResources.getMessage(someKey);
   ...
}

MessageResources.getMessage() is overloaded about 10 or so times.  the 
method call above simply returns a message for the default locale.  like i 
said, i haven't tried this myself, but the docs suggest it will work this 
way

jon


Original Message Follows
From: Shawn Sohl [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED], 
[EMAIL PROTECTED]
Subject: RE: Retrieving property fields in Action Class
Date: Thu, 9 Aug 2001 11:23:00 -0700

Ted, thanks for the reply but I dont think that was quite what I was looking
for.
Basically what I'm talking about it the ApplicationResources.properties
file.  I know
you can retrieve these values through .jsp pages using bean:message
key=index.title/...

I would like to know if I can retrieve this same key value in an Action
class.  If I can, can
someone show me how to do this.

Thanks

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 1:04 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Retrieving property fields in Action Class


The best place to answer a question like this is the USER list, where
there are more people to help you. So I'll copy them in ;-)

But, yes, the ActionForm is passed to the perform() method of your
Action.

The Action also has access to a protected servlet property (or
getServlet() method), that gives it access to the public properties of
the ActionServlet, so there isn't aren't any resorucres that you can use
on JSP that you couldn't use in an Action.

Shawn Sohl wrote:
 
  I was wondering if there is a way to retrieve property field values in
  Action classes.  Are .jsp pages the only place you can retrieve these
  values.I looked in the ActionErrors class to see how it retrieved the
  values but couldn't find anything.
 
  Thanks for any input.


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




RE: Enabling/Disabling of form fields on page load

2001-08-09 Thread Bajaj, Simrandeep

i was doing the same thing.
I am doing this way.

I am adding attributes in formbean respective to fields which has boolean
values that it is read only or not.I am setting the values in the action
depending on user role.

Then i enable and disable the fields in jsp through javascript and getting
the values from form bean.


thanks

-Original Message-
From: B Manikandan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 2:10 PM
To: struts
Subject: Enabling/Disabling of form fields on page load


Hi,
   I have a requirement where I need to enable/disable form fields on
page load up.The enabling/disabling depends on user access and I have
the access rights as on object in context.

   How do I use this object ? I do not want to resort to logic:equal
as my code will become big.

Mani






RE: jbuilder5

2001-08-09 Thread Bill G

Thanks Anthony!!!

-Original Message-
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 10:50 AM
To: '[EMAIL PROTECTED]'
Subject: RE: jbuilder5


Here are my revised steps for starting a Struts Project in JBuilder5.  I'd
appreciate any comments.  If something is unclear or incorrect, I'm open to
any suggestions:

Go to http://www1.tramsasp.com/?section=dev then click on the
JBuilder5/Struts link.


Anthony

-Original Message-
From: MW Porter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 8:54 AM
To: [EMAIL PROTECTED]
Subject: Re: jbuilder5


I was having similar problems with JB5 until I installed two OpenTools that
I got
from Borlands CodeCentral...Now, everything works great.

For more on this, go to http://www.tamaracka.com/search.htm and search on
keywords:  struts jar ken chan

Good luck.  -- Mike

- Original Message -
From: Marcel Andres [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 8:08 AM
Subject: RE: jbuilder5


Hallo Nicole

When you run your project with Start Tomcat..., did you check in the
message viewer, if the classpath is set right?

Gruss und viel Glück / Cheers

Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 4:52 PM
To: [EMAIL PROTECTED]
Subject: jbuilder5


ive got problems with jbuilder5 and struts!

javax.servlet.ServletException: Exception creating bean of class
de.bnext.portal.ch.AcknowledgementForm: java.lang.ClassNotFoundException:
de.bnext.portal.ch.AcknowledgementForm
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:992)
 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:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
 Root cause: javax.servlet.jsp.JspException: Exception creating bean of
class de.bnext.portal.ch.AcknowledgementForm:
java.lang.ClassNotFoundException: de.bnext.portal.ch.AcknowledgementForm
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568)
 at
jsp._0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9._jspService
(_0002fjsp_0002fAcknowledgement_0002ejspAcknowledgement_jsp_9.java:122)
 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:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

this class exists!!! this application runs on the normal tomcat but not in
the jbuider5 environment!!!


Mit freundlichen Gruessen
With best Regards/

Nicole Karmalita
Junior Software Engineer
b-next AG
Consulting  Engineering
Stockholmer Allee 30c, D-44269 Dortmund Zentrale: Hansastr. 35,
D-32049 Herford
Fon +49 231 56 55 72-0 Fon +49 5221 99 28-00
Fax +49 231 56 55 72-72 Fax +49 5221 84 68-0
http://www.b-next.de
mailto:[EMAIL PROTECTED]




RE: newbie question

2001-08-09 Thread Debasish Ghosh

Hi -

I tried these and still no luck ... I am enclosing the
code for the Form.

package com.anshin;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class LoginForm extends ActionForm
{
private String password = null;
private String username = null;

public String getPassword()
{
System.out.println( In getPassword );
return (this.password);
}

public void setPassword(String password)
{
this.password = password;
}

public String getUsername()
{
System.out.println( In getUsername );
return (this.username);
}

public void setUsername(String username)
{
System.out.println( In setUsername );
this.username = username;
}

public void reset(ActionMapping mapping,
HttpServletRequest request)
{
System.out.println( In reset );
this.password = null;
this.username = null;
}

public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) 
{
System.out.println( In validate );
ActionErrors errors = new ActionErrors();

if ((username == null) || (username.length() 
1))
{
errors.add(username, new
ActionError(error.username.required));
}
if ((password == null) || (password.length() 
1))
{
errors.add(password, new
ActionError(error.password.required));
}
return errors;
}

}

I am only getting the debug prints for In
getUsername() and In getPassword(). Then the 404
error comes up. I have a print in the first line of
the action class, which is NOT getting printed.

Cheers.
- Debasish
--- Rick Hightower [EMAIL PROTECTED] wrote:
 On your form make sure you have
 
 html:form action=/login focus=name
 ...
 
 Then define the following forward in your
 struts-config
 
 forward name =login path=/login.do /
 ...
 
 If this does not work, try including your form code
 so people can help you
 better.
 
 Rick Hightower
 Director of Development
 eBlox, Inc.
 
 Check out our new website!
 www.eblox.com
 
 Contact Info:
 eBlox Tucson
 phone: 520-615-9345 x103
 fax: 520-529-5774
 
 Rick's stuff:
 http://www.eblox.com/people_detail.php?id=52
 http://www.geocities.com/rick_m_hightower/
 http://www.brainbench.com/transcript.jsp?pid=2351036
 
 
 -Original Message-
 From: Debasish Ghosh [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 7:08 PM
 To: [EMAIL PROTECTED]
 Subject: newbie question
 
 
 Hi all -
 
 I am facing a weird problem, which I could not solve
 in the last couple of hours. I checked up the
 mail-archive but could not locate any solution to
 this.
 
 The application has a login screen (login.jsp),
 which
 validates a user. There is an ActionForm (LoginForm)
 with appropriate get and set methods.
 
 The struts-config.xml looks like :
 
   form-beans
 
 !-- Logon form bean --
 form-bean  name=loginForm
 type=com.anshin.LoginForm/
 
   /form-beans
 
 !-- Process a user logon --
 actionpath=/login
type=com.anshin.LoginAction
name=loginForm
validate=true
input=login.jsp
 
  forward name=success
 path=/login.jsp/
  /action
 
 When I execute the application (invoke login.jsp), I
 get a 404 error on the page login.do. I gave
 debugging statements and I find that the get methods
 of the ActionForm gets executed, but nothing else
 happens. It does not even enter the LoginAction
 class.
 But from the Tomcat startup messages, I find that
 the
 mappings have been identified and loaded by Tomcat.
 
 I have struts.jar in WEB-INF/lib. I am really
 banging
 my head over this problem. The other applications
 like
 struts-example etc. are running fine ..
 
 Pls. help.
 
 Regards.
 
 - Debasish
 
 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute
 with Yahoo! Messenger
 http://phonecard.yahoo.com/
 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: Tabs on a Struts Page

2001-08-09 Thread Brian . Duchouquette


Nevermind... Framework was calling reset on my bean.  I'm such a newbie...




   
  
Brian.Duchouquette@tran
  
splace.com To: 
[EMAIL PROTECTED]
   cc: 
  
08/09/2001 01:28 PMSubject: Tabs on a Struts Page  
  
Please respond to  
  
struts-user
  
   
  
   
  





This is a follow-up to my Wizard question...

If I have three tabs that are included at the top of each of the three body
pages by a template, then what is the best way to make sure information is
stored between requests for the different pages?  Even though all three
pages use the same ActionForm bean and Action class, I am running into the
problem where the formbean is loosing its data (even though I check for
submit in the reset() method).  Is there a better approach than doing this?

BTW, sorry about the multiple posts of some of my messages cluttering the
newsgroup... our Lotus Notes server went nuts over here.

Thanks,
Brian







Brian.Duchouquette@tran

splace.com To:
[EMAIL PROTECTED]
   cc:

08/09/2001 12:22 PMSubject: Wizard Form
Authoring..
Please respond to

struts-user








All,

What is the best design practice that you have found for creating Wizard
entry forms in the Struts framework?

Thanks,
Brian












RE: newbie question

2001-08-09 Thread Martin Cooper

This is not related to the form. It looks like you may not have extension 
mapping set up for your application. My guess is that if you type this in 
your browser:

http://yourHost/pathToYourApp/login.do

you will also see a 404. That suggests that you need to add something like 
this:

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


to your web.xml file. You might want to take a look at the web.xml file in 
the struts-example app to make sure you've got everything else that you need.

--
Martin Cooper


At 12:07 PM 8/9/01, Debasish Ghosh wrote:
Hi -

I tried these and still no luck ... I am enclosing the
code for the Form.

package com.anshin;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class LoginForm extends ActionForm
{
 private String password = null;
 private String username = null;

 public String getPassword()
 {
 System.out.println( In getPassword );
 return (this.password);
 }

 public void setPassword(String password)
 {
 this.password = password;
 }

 public String getUsername()
 {
 System.out.println( In getUsername );
 return (this.username);
 }

 public void setUsername(String username)
 {
 System.out.println( In setUsername );
 this.username = username;
 }

 public void reset(ActionMapping mapping,
HttpServletRequest request)
 {
 System.out.println( In reset );
 this.password = null;
 this.username = null;
 }

 public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
 {
 System.out.println( In validate );
 ActionErrors errors = new ActionErrors();

 if ((username == null) || (username.length() 
1))
 {
 errors.add(username, new
ActionError(error.username.required));
 }
 if ((password == null) || (password.length() 
1))
 {
 errors.add(password, new
ActionError(error.password.required));
 }
 return errors;
 }

}

I am only getting the debug prints for In
getUsername() and In getPassword(). Then the 404
error comes up. I have a print in the first line of
the action class, which is NOT getting printed.

Cheers.
- Debasish
--- Rick Hightower [EMAIL PROTECTED] wrote:
  On your form make sure you have
 
  html:form action=/login focus=name
  ...
 
  Then define the following forward in your
  struts-config
 
  forward name =login path=/login.do /
  ...
 
  If this does not work, try including your form code
  so people can help you
  better.
 
  Rick Hightower
  Director of Development
  eBlox, Inc.
 
  Check out our new website!
  www.eblox.com
 
  Contact Info:
  eBlox Tucson
  phone: 520-615-9345 x103
  fax: 520-529-5774
 
  Rick's stuff:
  http://www.eblox.com/people_detail.php?id=52
  http://www.geocities.com/rick_m_hightower/
  http://www.brainbench.com/transcript.jsp?pid=2351036
 
 
  -Original Message-
  From: Debasish Ghosh [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 08, 2001 7:08 PM
  To: [EMAIL PROTECTED]
  Subject: newbie question
 
 
  Hi all -
 
  I am facing a weird problem, which I could not solve
  in the last couple of hours. I checked up the
  mail-archive but could not locate any solution to
  this.
 
  The application has a login screen (login.jsp),
  which
  validates a user. There is an ActionForm (LoginForm)
  with appropriate get and set methods.
 
  The struts-config.xml looks like :
 
form-beans
 
  !-- Logon form bean --
  form-bean  name=loginForm
  type=com.anshin.LoginForm/
 
/form-beans
 
  !-- Process a user logon --
  actionpath=/login
 type=com.anshin.LoginAction
 name=loginForm
 validate=true
 input=login.jsp
 
   forward name=success
  path=/login.jsp/
   /action
 
  When I execute the application (invoke login.jsp), I
  get a 404 error on the page login.do. I gave
  debugging statements and I find that the get methods
  of the ActionForm gets executed, but nothing else
  happens. It does not even enter the LoginAction
  class.
  But from the Tomcat startup messages, I find that
  the
  mappings have been identified and loaded by Tomcat.
 
  I have struts.jar in WEB-INF/lib. I am really
  banging
  my head over this problem. The other applications
  like
  struts-example etc. are running fine ..
 
  Pls. help.
 
  Regards.
 
  - 

docs in a single file for printing?

2001-08-09 Thread Peter Bismuti




Hi, where can I get the users guide and tags 
documentation that I can print out? I downloaded the source and found it 
for version 0.5, but cannot find the updated version. It is a nice day, I 
want to take my hardcopy out in the sun and read it, please 
help!


RE: newbie question

2001-08-09 Thread Debasish Ghosh

Actually I have the extension mapping set up as well.
The following is the web.xml file that I am using from
WEB-INF :

?xml version=1.0 encoding=ISO-8859-1?

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

web-app



  !-- Action Servlet Configuration --
  servlet
servlet-nameaction/servlet-name
   
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param
init-param
  param-nameconfig/param-name
 
param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
init-param
  param-namevalidate/param-name
  param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet


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


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

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

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

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

/web-app

--- Martin Cooper [EMAIL PROTECTED]
wrote:
 This is not related to the form. It looks like you
 may not have extension 
 mapping set up for your application. My guess is
 that if you type this in 
 your browser:
 
 http://yourHost/pathToYourApp/login.do
 
 you will also see a 404. That suggests that you need
 to add something like 
 this:
 
!-- Action Servlet Mapping --
servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern*.do/url-pattern
/servlet-mapping
 
 
 to your web.xml file. You might want to take a look
 at the web.xml file in 
 the struts-example app to make sure you've got
 everything else that you need.
 
 --
 Martin Cooper
 
 
 At 12:07 PM 8/9/01, Debasish Ghosh wrote:
 Hi -
 
 I tried these and still no luck ... I am enclosing
 the
 code for the Form.
 
 package com.anshin;
 
 import javax.servlet.http.HttpServletRequest;
 import org.apache.struts.action.ActionError;
 import org.apache.struts.action.ActionErrors;
 import org.apache.struts.action.ActionForm;
 import org.apache.struts.action.ActionMapping;
 
 public class LoginForm extends ActionForm
 {
  private String password = null;
  private String username = null;
 
  public String getPassword()
  {
  System.out.println( In
 getPassword );
  return (this.password);
  }
 
  public void setPassword(String password)
  {
  this.password = password;
  }
 
  public String getUsername()
  {
  System.out.println( In
 getUsername );
  return (this.username);
  }
 
  public void setUsername(String username)
  {
  System.out.println( In
 setUsername );
  this.username = username;
  }
 
  public void reset(ActionMapping mapping,
 HttpServletRequest request)
  {
  System.out.println( In reset );
  this.password = null;
  this.username = null;
  }
 
  public ActionErrors validate(ActionMapping
 mapping,
 HttpServletRequest request)
  {
  System.out.println( In validate
 );
  ActionErrors errors = new
 ActionErrors();
 
  if ((username == null) ||
 (username.length() 
 1))
  {
  errors.add(username, new
 ActionError(error.username.required));
  }
  if ((password == null) ||
 (password.length() 
 1))
  {
  errors.add(password, new
 ActionError(error.password.required));
  }
  return errors;
  }
 
 }
 
 I am only getting the debug prints for In
 getUsername() and In getPassword(). Then the 404
 error comes up. I have a print in the first line of
 the action class, which is NOT getting printed.
 
 Cheers.
 - Debasish
 --- Rick Hightower [EMAIL PROTECTED] wrote:
   On your form make sure you have
  
   html:form action=/login focus=name
   ...
  
   Then define the following forward in your
   struts-config
  
   forward name =login path=/login.do /
   ...
  
   If this does not work, try including your form
 code
   so people can help you
   better.
  
  

Re: newbie question

2001-08-09 Thread Rama Krishna



try this.

!-- The Welcome File List -- 
welcome-file-list 
welcome-filelogin.do/welcome-file 
/welcome-file-list


rama.
 
- Original Message - 
From: "Debasish Ghosh" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 1:09 
PM
Subject: RE: newbie question
 Actually I have the extension 
mapping set up as well. The following is the web.xml file that I am 
using from WEB-INF :  ?xml version="1.0" 
encoding="ISO-8859-1"?  !DOCTYPE web-app  
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" 
 "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"  web-app  
   !-- Action Servlet Configuration -- 
 servlet  
servlet-nameaction/servlet-name  
servlet-classorg.apache.struts.action.ActionServlet/servlet-class 
 init-param  
param-nameapplication/param-name 
 
param-valueApplicationResources/param-value 
 /init-param  
init-param  
param-nameconfig/param-name  
param-value/WEB-INF/struts-config.xml/param-value 
 /init-param  
init-param  
param-namedebug/param-name 
 param-value2/param-value 
 /init-param  
init-param  
param-namedetail/param-name 
 param-value2/param-value 
 /init-param  
init-param  
param-namevalidate/param-name 
 
param-valuetrue/param-value  
/init-param  
load-on-startup1/load-on-startup  
/servlet!-- Action Servlet Mapping 
--  servlet-mapping  
servlet-nameaction/servlet-name  
url-pattern*.do/url-pattern  
/servlet-mapping!-- The Welcome 
File List --  welcome-file-list 
 welcome-filelogin.jsp/welcome-file 
 /welcome-file-list   !-- Struts Tag 
Library Descriptors --  taglib 
 
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri  
taglib-location/WEB-INF/struts-bean.tld/taglib-location 
 /taglib   taglib 
 
taglib-uri/WEB-INF/struts-html.tld/taglib-uri  
taglib-location/WEB-INF/struts-html.tld/taglib-location 
 /taglib   taglib 
 
taglib-uri/WEB-INF/struts-logic.tld/taglib-uri  
taglib-location/WEB-INF/struts-logic.tld/taglib-location 
 /taglib  /web-app  --- 
Martin Cooper [EMAIL PROTECTED] wrote:  This is not related to the form. It 
looks like you  may not have extension  mapping set up 
for your application. My guess is  that if you type this in 
 your browser:   http://yourHost/pathToYourApp/login.do   you will also see a 404. That suggests that you 
need  to add something like  this:  
 !-- Action Servlet Mapping -- 
 servlet-mapping 
 
servlet-nameaction/servlet-name 
 
url-pattern*.do/url-pattern  
/servlet-mappingto your web.xml 
file. You might want to take a look  at the web.xml file in 
 the struts-example app to make sure you've got  everything else 
that you need.   --  Martin Cooper 
   At 12:07 PM 8/9/01, Debasish Ghosh wrote: 
 Hi -I tried these and still no luck 
... I am enclosing  the  code for the Form. 
   package com.anshin;
import javax.servlet.http.HttpServletRequest;  import 
org.apache.struts.action.ActionError;  import 
org.apache.struts.action.ActionErrors;  import 
org.apache.struts.action.ActionForm;  import 
org.apache.struts.action.ActionMapping;
public class LoginForm extends ActionForm  {  
 private String password = 
null;   private 
String username = null;
 public String 
getPassword()   
{  
 
System.out.println( "In  getPassword" );  
 
return (this.password);  
 }   
  public void 
setPassword(String password)  
 {  
 
this.password = password;  
 }   
  public String 
getUsername()   
{  
 
System.out.println( "In  getUsername" );  
 
return (this.username);  
 }   
  public void 
setUsername(String username)  
 {  
 
System.out.println( "In  setUsername" );  
 
this.username = username;  
 }   
  public void 
reset(ActionMapping mapping,  HttpServletRequest 
request)   
{  
 
System.out.println( "In reset" );  
 
this.password = null;  
 
this.username = null;  
 }   
  public ActionErrors 
validate(ActionMapping  mapping,  HttpServletRequest 
request)   
{  
 
System.out.println( "In validate"  );  
 
ActionErrors errors = new  ActionErrors();   
 
 if 
((username == null) ||  (username.length()   
1))  
 
{  
 
errors.add("username", new  
ActionError("error.username.required"));  
 
}  
 if 
((password == null) ||  (password.length()   
1))  
 
{  
 
errors.add("password", new  
ActionError("error.password.required"));  
 
}  
 
return errors;   
}}I am 
only getting the debug prints for "In  getUsername()" and "In 
getPassword()". Then the 404  error comes up. I have a print in 
the first line of  the action class, which is NOT getting 
printed.Cheers.  - 
Debasish  --- Rick Hightower [EMAIL PROTECTED] wrote: 
   On your form make sure you have   
html:form action="/login" 
focus="name"... 
  Then define the following forward in your
struts-config   forward name 
="login" path="/login.do" /...   
If this does not work, try including your 
form  codeso people can help you 
   better.   Rick 
HightowerDirector of Development
eBlox, Inc.   Check out our new 
website!www.eblox.com 
  Contact 

Re: newbie question

2001-08-09 Thread Debasish Ghosh

No ... doesn't work ..

--- Rama Krishna [EMAIL PROTECTED] wrote:
 try this.
 
 !-- The Welcome File List --
   welcome-file-list
 welcome-filelogin.do/welcome-file
   /welcome-file-list
 
 
 rama.
   
 - Original Message - 
 From: Debasish Ghosh [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 1:09 PM
 Subject: RE: newbie question
 
 
  Actually I have the extension mapping set up as
 well.
  The following is the web.xml file that I am using
 from
  WEB-INF :
  
  ?xml version=1.0 encoding=ISO-8859-1?
  
  !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web
  Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
  
  web-app
  
  
  
!-- Action Servlet Configuration --
servlet
  servlet-nameaction/servlet-name
  
 

servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
param-nameapplication/param-name
   
 param-valueApplicationResources/param-value
  /init-param
  init-param
param-nameconfig/param-name
  
 

param-value/WEB-INF/struts-config.xml/param-value
  /init-param
  init-param
param-namedebug/param-name
param-value2/param-value
  /init-param
  init-param
param-namedetail/param-name
param-value2/param-value
  /init-param
  init-param
param-namevalidate/param-name
param-valuetrue/param-value
  /init-param
  load-on-startup1/load-on-startup
/servlet
  
  
!-- Action Servlet Mapping --
servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern*.do/url-pattern
/servlet-mapping
  
  
!-- The Welcome File List --
welcome-file-list
  welcome-filelogin.jsp/welcome-file
/welcome-file-list
  
!-- Struts Tag Library Descriptors --
taglib
 
 taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
  
 

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

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

taglib-location/WEB-INF/struts-logic.tld/taglib-location
/taglib
  
  /web-app
  
  --- Martin Cooper [EMAIL PROTECTED]
  wrote:
   This is not related to the form. It looks like
 you
   may not have extension
   mapping set up for your application. My guess is
   that if you type this in
   your browser:
  
   http://yourHost/pathToYourApp/login.do
  
   you will also see a 404. That suggests that you
 need
   to add something like
   this:
  
  !-- Action Servlet Mapping --
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping
  
  
   to your web.xml file. You might want to take a
 look
   at the web.xml file in
   the struts-example app to make sure you've got
   everything else that you need.
  
   --
   Martin Cooper
  
  
   At 12:07 PM 8/9/01, Debasish Ghosh wrote:
   Hi -
   
   I tried these and still no luck ... I am
 enclosing
   the
   code for the Form.
   
   package com.anshin;
   
   import javax.servlet.http.HttpServletRequest;
   import org.apache.struts.action.ActionError;
   import org.apache.struts.action.ActionErrors;
   import org.apache.struts.action.ActionForm;
   import org.apache.struts.action.ActionMapping;
   
   public class LoginForm extends ActionForm
   {
private String password = null;
private String username = null;
   
public String getPassword()
{
System.out.println( In
   getPassword );
return (this.password);
}
   
public void setPassword(String
 password)
{
this.password = password;
}
   
public String getUsername()
{
System.out.println( In
   getUsername );
return (this.username);
}
   
public void setUsername(String
 username)
{
System.out.println( In
   setUsername );
this.username = username;
}
   
public void reset(ActionMapping
 mapping,
   HttpServletRequest request)
{
System.out.println( In reset
 );
this.password = null;
this.username = null;
}
   
public ActionErrors
 validate(ActionMapping
 
=== message truncated ===


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: newbie question

2001-08-09 Thread Bill Clinton

Debasish,
 Everyone seems to be focusing on your action or extension mappings, 
but most of my 404s are caused by missing JSP files.  What directory is 
your logon.jsp in?  I keep my JSPs in a /jsp directory in the main 
application directory, so my forward would be:

forward name=success path=/jsp/login.jsp/

I think that your forward would be incorrect unless you have your 
logon.jsp in the root application directory.

Bill




Debasish Ghosh wrote:

 Hi all -
 
 I am facing a weird problem, which I could not solve
 in the last couple of hours. I checked up the
 mail-archive but could not locate any solution to
 this.
 
 The application has a login screen (login.jsp), which
 validates a user. There is an ActionForm (LoginForm)
 with appropriate get and set methods.
 
 The struts-config.xml looks like :
 
   form-beans
 
 !-- Logon form bean --
 form-bean  name=loginForm
 type=com.anshin.LoginForm/
 
   /form-beans
 
 !-- Process a user logon --
 actionpath=/login
type=com.anshin.LoginAction
name=loginForm
validate=true
input=login.jsp
 
  forward name=success
 path=/login.jsp/
  /action
 
 When I execute the application (invoke login.jsp), I
 get a 404 error on the page login.do. I gave
 debugging statements and I find that the get methods
 of the ActionForm gets executed, but nothing else
 happens. It does not even enter the LoginAction class.
 But from the Tomcat startup messages, I find that the
 mappings have been identified and loaded by Tomcat. 
 
 I have struts.jar in WEB-INF/lib. I am really banging
 my head over this problem. The other applications like
 struts-example etc. are running fine ..
 
 Pls. help.
 
 Regards.
 
 - Debasish
 
 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute with Yahoo! Messenger
 http://phonecard.yahoo.com/




Re: Tomcat/Apache/mod_jk

2001-08-09 Thread Eduardo Fujii

Theo,

I think that tomcat-apache.conf is for jserv only. You don't want to use
that. I've included the following lines to my httpd.conf and it works for
me:

#
# The following include is generated automatically by Tomcat at every
startup
#
Include /usr1/opt/apache/tomcat/conf/mod_jk.conf-auto
#
# Assign *.do URLs to Tomcat (for Struts)
#
JkMount /*.do ajp12

Eduardo Fujii
Monterey Institute of International Studies
Monterey CA 93940
[EMAIL PROTECTED]


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 7:38 AM
Subject: Tomcat/Apache/mod_jk


 I'm running:

 Win2k
 Tomcat 3.2.2
 Apache using mod_jk

 The instructions for setting up Struts on Tomcat using Apache state that
 you
 need to add

 AddHandler jserv-servlet .do

 to your tomcat-apache.conf. However, this doesn't seem to apply to mod_jk,
 and I don't know how to add the .do directive.

 Anyone know? Thanks.

 -Theo






Re: newbie question

2001-08-09 Thread Debasish Ghosh

Dear All -

There was a problem in the deployment of the
application in the container. I re-deployed the
application by creating a war file, and it worked.
Thanks for all the help.
I am now getting the prompts that u are getting and
which should be the case.

Cheers.

- Debasish
--- Rama Krishna [EMAIL PROTECTED] wrote:
 you didnot send me ur source???
 
 In getUsername
 In getPassword
 In reset
 In setUsername
 In validate
 In action
 In getUsername
 In getPassword
 User = abc Password = abc
 
 this is what i got in my log file.
 
 is this what u r expecting or something else???
 
 i didnot get a 404 but this::
 so i guess it's working fine.
 
 500 Internal Server Error
 /dep/login.do:
 
 java.lang.IllegalArgumentException: URI is missing
 leading slash
 
 let me know.
 
 rama.
 
 
 - Original Message - 
 From: Debasish Ghosh [EMAIL PROTECTED]
 To: Rama Krishna [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 2:37 PM
 Subject: Re: newbie question
 
 
  Here's the WAR file ...
  
  --- Rama Krishna [EMAIL PROTECTED] wrote:
   can u zip u r code and  send me??
  
  
  
   - Original Message -
   From: Debasish Ghosh [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   Sent: Thursday, August 09, 2001 1:44 PM
   Subject: Re: newbie question
  
  
No ... doesn't work ..
   
--- Rama Krishna [EMAIL PROTECTED]
 wrote:
 try this.

 !-- The Welcome File List --
   welcome-file-list
 welcome-filelogin.do/welcome-file
   /welcome-file-list


 rama.

 - Original Message -
 From: Debasish Ghosh
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 1:09 PM
 Subject: RE: newbie question


  Actually I have the extension mapping set
 up
   as
 well.
  The following is the web.xml file that I
 am
   using
 from
  WEB-INF :
 
  ?xml version=1.0
 encoding=ISO-8859-1?
 
  !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD
 Web
  Application 2.2//EN
 
   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
  web-app
 
 
 
!-- Action Servlet Configuration --
servlet
  servlet-nameaction/servlet-name
 
 

   
  
 

servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
param-nameapplication/param-name
 

 param-valueApplicationResources/param-value
  /init-param
  init-param
param-nameconfig/param-name
 
 

   
  
 

param-value/WEB-INF/struts-config.xml/param-value
  /init-param
  init-param
param-namedebug/param-name
param-value2/param-value
  /init-param
  init-param
param-namedetail/param-name
param-value2/param-value
  /init-param
  init-param
param-namevalidate/param-name
param-valuetrue/param-value
  /init-param
  load-on-startup1/load-on-startup
/servlet
 
 
!-- Action Servlet Mapping --
servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern*.do/url-pattern
/servlet-mapping
 
 
!-- The Welcome File List --
welcome-file-list
  welcome-filelogin.jsp/welcome-file
/welcome-file-list
 
!-- Struts Tag Library Descriptors --
taglib
 

  
 taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
 
 

   
  
 

taglib-location/WEB-INF/struts-bean.tld/taglib-location
/taglib
 
taglib
 

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

   
  
 

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

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

   
  
 

taglib-location/WEB-INF/struts-logic.tld/taglib-location
/taglib
 
  /web-app
 
  --- Martin Cooper
   [EMAIL PROTECTED]
  wrote:
 
=== message truncated ===


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Iterate with offset=parameter

2001-08-09 Thread MacKellar, Kimberly

I am trying to iterate over a Vector using the logic:iterate tag.
Everything works fine until I try to set an offset. 
The offset for where I need to start iterating from is passed in as a
parameter to the page and I retrieve it using 
bean:parameter id=fromRecord name=FROMRECORD value=0/

when I try to use fromRecord in the iterate tag 
logic:iterate id=result name=search scope=session
indexId=resultsPrinted offset=fromRecord length=20  

I get the following on the page
javax.servlet.ServletException: java.lang.String

This makes sense since fromRecord is of type String and offset is expecting
an int or Integer.

So I then tried to make the offset a variable using
% int fromRec = Integer.parseInt(fromRecord); %   and
logic:iterate id=result name=search scope=session
indexId=resultsPrinted offset=fromRec length=20  

This doesn't throw an error but doesn't set the correct offset and is always
starting from 0.  

How can I retrieve the parameter and use it in the iterator?

Kimberly MacKellar
Thomson Financial Publishing
[EMAIL PROTECTED]




Re: Iterate with offset=parameter

2001-08-09 Thread Rama Krishna

probably, it should be like this,,

logic:iterate id=result name=search scope=session
indexId=resultsPrinted offset=%= fromRec% length=20

hope this helps,
rama.

- Original Message -
From: MacKellar, Kimberly [EMAIL PROTECTED]
To: Struts-User (E-mail) [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 12:43 PM
Subject: Iterate with offset=parameter


 I am trying to iterate over a Vector using the logic:iterate tag.
 Everything works fine until I try to set an offset.
 The offset for where I need to start iterating from is passed in as a
 parameter to the page and I retrieve it using
 bean:parameter id=fromRecord name=FROMRECORD value=0/

 when I try to use fromRecord in the iterate tag
 logic:iterate id=result name=search scope=session
 indexId=resultsPrinted offset=fromRecord length=20

 I get the following on the page
 javax.servlet.ServletException: java.lang.String

 This makes sense since fromRecord is of type String and offset is
expecting
 an int or Integer.

 So I then tried to make the offset a variable using
 % int fromRec = Integer.parseInt(fromRecord); %   and
 logic:iterate id=result name=search scope=session
 indexId=resultsPrinted offset=fromRec length=20

 This doesn't throw an error but doesn't set the correct offset and is
always
 starting from 0.

 How can I retrieve the parameter and use it in the iterator?

 Kimberly MacKellar
 Thomson Financial Publishing
 [EMAIL PROTECTED]





NullPointerException

2001-08-09 Thread Efrain Gutierrez

What it means..?? 
Struts v1.0 w/Apache-Tomcat 3.2.1

TIA

Error: 500
Location: /logon/logon.do
Internal Servlet Error:

java.lang.NullPointerException
at
org.apache.tomcat.facade.ServletContextFacade.getResourceAsStream(ServletContextFacade.java:143)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1314)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at
org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.core.Handler.service(Handler.java:254)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)




=
Ing. Jose Efrain Gutierrez C
Web Developer/Softtek Monterrey
ICQ:2293612
yahoo  hotmail:jefrainmx
tel. 01 8 1532000 x-2349

_
Do You Yahoo!?
Construye tu página personal en Yahoo! GeoCities. ¡Es fácil, 
rápido y gratis! http://geocities.yahoo.com.mx



Re: Kick start to Struts

2001-08-09 Thread Fiona Thorne

I'd like to second much of what Ted said. I've just completed my first
project using struts - I was building and learning at the same time.
I had a series of about 10 screens, with some  reasonably complicated
jumping backwards and forwards between screens.

This is how I ended up doing things:

1. Did a basic specification myself - it was to be a re-implementation
of a current system so I had some idea of overall functionality. I had a fair
idea of what was needed on each screen from the old system
so this took the place of the storyboard. Part of this specification was
the database design.

2. Developed the overall skeleton of page control and data entry, in
combination with some simple JSPs ie no flashy graphics, fancy
tables, etc just the fields and buttons I needed and some simple
descriptive text.

Then it got messy - we had the usual scope change and suddenly
I had one of our designers writing a detailed specification (including defining
what went on each screen and the validation), taking into account
a raft of new functionality, while I got on with fleshing out the
skeleton already constructed (as the deadline was tight and we couldn't wait).
This is where you work really closely together - I was showing her my screens
and the flow as I was going and we were discussing how we could best way
implement the new functionality. The good side of this was that
I could give her feedback on what would be easy to implement
and what would be harder, so she wrote the specification to suit
what would be easier (when possible).

I finished the bulk of the processing (excluding certain back end pieces
and particular chunks of functionality) to the point where our
html expert could work on the jsp files. There were hooks in
place for particular processing components I hadn't completed and
the values on the screens were returning 0 or other dummy values.
Funnily enough, this was about a week after the spec was finished grin.

3. Our html person took over making the pages look the way the
designers wanted - with the ads and the fancy layout and fonts, etc. The
stuff that would drive me crazy.

After that it was co-development - I was plugging in back end functionality
as it was completed and writing new bits and pieces in the webforms
to make life easier for our html person. As you build the jsps and show
them to people, you start finding out all the little requirements/difference
in concept that you have between people. So I was making bug fixes,
adding new tags, changing validation, and working on back end tasks
like data conversion from old systems, operational instructions, etc.

What would I do differently from what I did?

 4. As Will says, identify, build, and test any reusable objects first,
 say for CRUD operations. Also try to layer your code so things like SQL
 commands and statements can be used and tested seperately.

This is important - its not in my list above as I wasn't really doing it. Some
larger bits of the overall system had been identified as shared/reusable
components up front (like some of our database access code) and
other people in the team were working on them. So I was just writing
the hooks ready for the parts to be done, then plugging them
in when they became available.

I would have done more taglibs earlier - to make life easier for the html
person. He inherited too many bits of Java in the JSP pages or I had
to redo pages that were basically huge chunks of Java
before passing this on to him - this due to my shortage
of experience with JSP tags and taglibs when I started.

Locking down the overall functionality before I started coding would
have been nice, but then again so would a million dollars. Scope change
is just life in the computer industry.

While doing some of the back end work last meant that you had people
looking at a functioning system earlier and able to spot misunderstandings
in functionality. The downside is that you are trying to do front end
bug fixes while implementing other functionality, and time can tend
to get very tight fitting it all in. You need to have management who
really does believe you when you say no its not finished as the following
parts of the backend aren't finished/tested.

To summarise I guess I'd say neither JSP nor Java comes first. Planning does.
Work out your overall flow and functionality first, be it html
screens or on paper, get a detailed specification written asap, and
be prepared for lots and lots of iterations between the Java code
and the JSP pages.

And if the deadline is tight and you aren't a one man team, get ready
for lots of talking to your fellow team members - even down to
I'm going to be making the following changes to blah.jsp this morning
while I implement blah. Is that okay or do you need the file to work
on?

Fiona




Re: New To Struts

2001-08-09 Thread Nitu Singh

Hi,
I downloaded jakarta-struts-1.0.zip file and extracted the files in
c:\jakarta-struts-1.0. But I think lib/commons-*.jar file is missing in my
installation? Are those files important or can I do without them?
The installation process still says I should copy the jars in WEB-INF
directory. Where should I create this WEB-INF directory? (for reference: I
am using weblogic5.1)

Thanks and Regards,
Nitu.
- Original Message -
From: Martin Cooper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 4:39 PM
Subject: Re: New To Struts


 Comments below.

 - Original Message -
 From: Nitu Singh [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Wednesday, August 08, 2001 6:37 PM
 Subject: Re: New To Struts


  Thanks a lot,
  And I did visit the home page for struts(and that's where the problem
  started).
  Let me explain u the doubts which I had going thru the page:
  1) All the downloads had 2-3 versions (for example, ANT, it had binary
  release, source realease and some RPM),
  which one I have to download, do I have to download all the 3?
  btw, if u can explain me the difference between source release and
binary
  release, as I see them in almost all the downloads.

 The only download you need is the Struts binary distribution. If you read
 something that stated that you needed more than this, please let us know
 where you saw that, so that we can fix it. You don't need to download Ant
at
 all unless you want to rebuild Struts, or the example apps that come with
 it.

 The binary distribution contains everything you need, already compiled and
 provided as one or more jar files, ready for you to include in your own
 application.See
 http://jakarta.apache.org/struts/installation.html#Installing for more
 information on using a binary distribution.

 The source distribution includes, ah, the source code and everything you
 would need to rebuild your own version of Struts. See
 http://jakarta.apache.org/struts/installation.html#Building if you want to
 do that.

  2) Do I really have to download the Servlet API ?If yes, why? as
weblogic
  supports servlets and why again to have one more servlet API?

 You need to have some Servlet API implementation available if you're going
 to compile your own code that relies on those interfaces. If WebLogic
 includes that (as I would assume that it does, but I'm not familiar with
 it), then you don't need to download another one.

  3) In many installations it says, I need to put some *distribution
files*
 or
  some *jar files*  in WEB-INF directory. I don't find any such directory
  in weblogic5.1. So what to do?

 I suggest you follow the instructions for WebLogic 5.1. See
 http://jakarta.apache.org/struts/installation-wls.html for more
information.

  These are only few of the things. The more I read, the more I get
 confused?
  If you could clear my above queries, I can go ahead and then may be I
will
  come up more questions?

 The best suggestion I can come up with is to follow the links that are
 available to you, and search the mailing list archives. You are by no
means
 the first person to travel the path you are on.

 --
 Martin Cooper


 
  Thanks a lot,
  Nitu.
  - Original Message -
  From: Martin Cooper [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, August 09, 2001 3:29 PM
  Subject: Re: New To Struts
 
 
   You must not have visited the Struts home page, which should have been
  your
   *first* resort. :-)
  
   http://jakarta.apache.org/struts/
  
   There you will find:
  
   * A link to the Struts User Guide
  
   * A 'Resources' link, which will take you to a page listing several
   tutorials and articles on Struts.
  
   * An 'Installation' link, which will take you to a page detailing
 specific
   installation instructions for over a dozen different containers,
 including
   WebLogic 5.1.
  
   --
   Martin Cooper
  
  
   - Original Message -
   From: Nitu Singh [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, August 08, 2001 5:18 PM
   Subject: New To Struts
  
  
Hi,
I am new to struts and for past one week I am trying to find
tutorials
  and
materials regarding struts.
The only thing I got is some tutorial in jspinsider.com.
I understood the model of struts, but when putting it in to code, I
am
facing problem at very basic step.
All I see in tutorials is they have explained how to use struts in
  tomcat
server. But  I am using weblogic5.1 server.
I have did all the settings as per directed for tomcat.
I understand there must some different way of deploying struts in
  weblogic
server.
Can anyone please guide me through as what I should do to run my
basic
application?
What all installations do I need and where should be they placed?
   
I am really vexed up looking for these things on net. This mailing
 list
  is
my LAST REOSRT.
   
Thanks and Regards,
Nitu.
   
   
   
  
  
 
 

  1   2   >