RE: Urgent clarification reqd!

2002-06-27 Thread Vikram Goyal01

Short answer: No.
Long Answer: Read the javadoc documentation of the Struts tags and compare with the 
w3c recommendation.

Rgs
Vikram

-Original Message-
From: Sirisha Gaikwad [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 11:40 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: Urgent clarification reqd!


My Question is Are all features supported by tags( defined by W3C ) in
HTML 4.0 are also supported by Struts set of Specifications or not.

Hope u got it correctly this time
Regards,
Sirisha

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 27, 2002 10:19 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Urgent clarification reqd!


I think you are confusing the tag syntax with what is written to the
browser.

Download and run the struts-example. war and you will see what I mean.

Thanks for playing.
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://struts-atlanta.open-tools.org



-Original Message-
From: Sirisha Gaikwad [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 12:42 AM
To: [EMAIL PROTECTED]
Subject: Urgent clarification reqd!


Hi!
I need reply to this question

None of the struts form tags does support the standard HTML 4.0
attribute set. Some tags only miss id attribute, but in most cases their
are serious differences between the W3C specs and the attribute set
support from struts. How is this captured?


regards,
Sirisha


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


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




RE: Urgent clarification reqd!

2002-06-27 Thread James Mitchell

I don't know if Struts has implemented every single tag (and attribute) in
the 4.01 spec.

The best person to ask (aside from doing a LOT of research) is Craig.


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://struts-atlanta.open-tools.org

 -Original Message-
 From: Sirisha Gaikwad [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 27, 2002 2:10 AM
 To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
 Subject: RE: Urgent clarification reqd!


 My Question is Are all features supported by tags( defined by W3C ) in
 HTML 4.0 are also supported by Struts set of Specifications or not.

 Hope u got it correctly this time
 Regards,
 Sirisha

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 27, 2002 10:19 AM
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: RE: Urgent clarification reqd!


 I think you are confusing the tag syntax with what is written to the
 browser.

 Download and run the struts-example. war and you will see what I mean.

 Thanks for playing.
 James Mitchell
 Software Engineer\Struts Evangelist
 Struts-Atlanta, the Open Minded Developer Network
 http://struts-atlanta.open-tools.org



 -Original Message-
 From: Sirisha Gaikwad [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 27, 2002 12:42 AM
 To: [EMAIL PROTECTED]
 Subject: Urgent clarification reqd!


 Hi!
 I need reply to this question

 None of the struts form tags does support the standard HTML 4.0
 attribute set. Some tags only miss id attribute, but in most cases their
 are serious differences between the W3C specs and the attribute set
 support from struts. How is this captured?


 regards,
 Sirisha


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




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




Does form method=get behave uniformly in all containers

2002-06-27 Thread Sunil Mathew George

Hi,
I am doing an application using JSPs/ Struts as the presentation
layer(Tomcat server). I want to know the behaviour of the form method=GET
with other containers like Weblogic etc.


There is a possibility that, when I use URLs for session tracking and the
form method is set to GET, the session will probably be lost. This is
because some containers encode the session id as part of the query string.
In get-form's the browser will replace the query string completly with the
one built from the form fields.(in accordance to the HTML4) spec.

If any one has experienced problems with form method=GET in different web
servers, please inform me about the same. !

Regards,
Sunil.



**Disclaimer


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.


*



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


Re: multiple select boxes tag - dynamic selection

2002-06-27 Thread gnanaseelan

multiple select boxes tag - dynamic selectionHi Raj

 Just include the Value atttribute in the html mutibox tag and give the to highlighted

Gnan
  - Original Message - 
  From: Rajesh Pradhan 
  To: Struts Users Mailing List 
  Sent: Thursday, June 27, 2002 11:32 AM
  Subject: multiple select boxes tag - dynamic selection




  Hi,

  Here I have a group of select boxes and depending on the value selected 
previously I try to

  highlight only that label.

  I have set the values of selected option in the Action but when it comes to jsp, 
it takes only the first value that is set for

  the first select box and applies it to all the select boxes.

  it simply ignores the set values of other select box that are set in action.

  Here is the code.

  logic:iterate id=qcTransMaster 

 property=items 

 type=com.qccheck.master.QCTransMaster 

 collection=%=qcDataEntryForm.getSessArrayList3()%

  tr  

  td width=5% align=left 

  html:multibox property=selectedItems

  bean:write name=qcTransMaster property=msQCErrorId 
/

  /html:multibox

  /td

  td width=50% align=left nowrap

  bean:write name=qcTransMaster property=msQCErrorName /

  /td

  td width=5% align=right  

  html:text property=msDefectCnt size=3  
 

  bean:write  name=qcTransMaster property=msDefects /
  

  /html:text

  /td

  td width=30% align=center  

  html:text property=msComments size=35 

  bean:write  name=qcTransMaster property=msComments /   
   

  /html:text

  /td

  td width=10% align=left

   html:select  property=msRootCause

html:options collection=RootCauseData 

  property=value

  labelProperty=label  /

/html:select

   /td 

  /tr

  /logic:iterate

  Any help would be really great .

  Thanks  Regards,

  Rajesh Pradhan





RE: Urgent clarification reqd!

2002-06-27 Thread Martin Cooper

Other than the 'id' attribute, as Craig has explained, the intent is that
the Struts tags should support the HTML 4.01 attributes. If there are
serious differences, please file a bug here:
 
http://nagoya.apache.org/bugzilla/ http://nagoya.apache.org/bugzilla/ 
 
and list the specific cases where Struts fails to meet the spec. That way,
you'll ensure that the issue won't get lost, and we'll have a specific list
of items to fix.
 
Thanks!
 
--
Martin Cooper

-Original Message-
From: Sirisha Gaikwad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 26, 2002 9:42 PM
To: [EMAIL PROTECTED]
Subject: Urgent clarification reqd!


Hi!
I need reply to this question
 
None of the struts form tags does support the standard HTML 4.0 attribute
set. Some tags only miss id attribute, but in most cases their are serious
differences between the W3C specs and the attribute set support from struts.
How is this captured?
 
 
regards,
Sirisha




RE: multiple select boxes tag - dynamic selection

2002-06-27 Thread Rajesh Pradhan

Hi Gyan
I didn't get u. See first of all I am using select box which are nested.
But when I try to set the values .. only the value of the first select box
is set and this value is
Applied to all the select boxes present there. So what I see is the same
value selected in all the
Select boxes. I know for sure that there is something I am missing...


Thanks  Regards,
Rajesh Pradhan
Software Engineer
PATNI-GE Global Development Center
- June 27, 2002 12:50 PM 
   Patni Computer Systems Limited
  Electronic Sadan, No. III, TTC Industrial Estate,
  Mahape, Navi Mumbai 400 701.
  Phone +91-22-761 1090 EX 2211
  Fax  +91-22-761 9602
World-Wide Partnerships. World-Class Solutions.
  http://www.patni.com/ 



This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person
or entity to whom this message was  originally addressed. Any review,
e-transmission dissemination or other use of or
taking of any action in reliance upon this information by persons or
entities other than intended  recipient  is  prohibited.
If  you have received  this e-mail in error kindly delete this e-mail from
your records. If it appears that this mail has been
forwarded to you without proper authority,  please notify us immediately at
[EMAIL PROTECTED]  and  delete this mail.

 -Original Message-
From:   gnanaseelan [mailto:[EMAIL PROTECTED]]
Sent:   Saturday, March 02, 2002 12:20 PM
To: Struts Users Mailing List
Subject:Re: multiple select boxes tag - dynamic selection

multiple select boxes tag - dynamic selectionHi Raj

 Just include the Value atttribute in the html mutibox tag and give the to
highlighted

Gnan
  - Original Message -
  From: Rajesh Pradhan
  To: Struts Users Mailing List
  Sent: Thursday, June 27, 2002 11:32 AM
  Subject: multiple select boxes tag - dynamic selection




  Hi,

  Here I have a group of select boxes and depending on the value
selected previously I try to

  highlight only that label.

  I have set the values of selected option in the Action but when it
comes to jsp, it takes only the first value that is set for

  the first select box and applies it to all the select boxes.

  it simply ignores the set values of other select box that are set in
action.

  Here is the code.

  logic:iterate id=qcTransMaster

 property=items

 type=com.qccheck.master.QCTransMaster


collection=%=qcDataEntryForm.getSessArrayList3()%

  tr

  td width=5% align=left

  html:multibox property=selectedItems

  bean:write name=qcTransMaster
property=msQCErrorId /

  /html:multibox

  /td

  td width=50% align=left nowrap

  bean:write name=qcTransMaster
property=msQCErrorName /

  /td

  td width=5% align=right

  html:text property=msDefectCnt size=3

  bean:write  name=qcTransMaster property=msDefects
/

  /html:text

  /td

  td width=30% align=center

  html:text property=msComments size=35

  bean:write  name=qcTransMaster
property=msComments /

  /html:text

  /td

  td width=10% align=left

   html:select  property=msRootCause

html:options collection=RootCauseData

  property=value

  labelProperty=label  /

/html:select

   /td

  /tr

  /logic:iterate

  Any help would be really great .

  Thanks  Regards,

  Rajesh Pradhan




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




ActionServlet init() method vs ServletContextListener API

2002-06-27 Thread Heligon Sandra


Hi,

The Servlet 2.3 specification provides a mechanism to be notified
when
the application start-up: the ServletContextListener API.
What is the best solution for single initialisations ? Is it in our
own ServletContextListener class
or in the init() method of the ActionServlet subclass.
I am not sure, the ActionServlet init() method is called once, isn't
it ?

Thanks in advance.
Sandra  

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




FormFile temp file

2002-06-27 Thread Daniel J. D'Cotta

Craig,

I use tomcat 4.0.4-B1 and it makes 'strts56829.tmp' files in the
tomcat\work\localhost\[myAppName]\ each time a FormFile is used.

The problem is: this is filling up the harddisk, I cannot programatically
delete them as they are given a random name, thus I cannot identify which
files I no longer need.


Regards,
Daniel


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




RE: multiple select boxes tag - dynamic selection

2002-06-27 Thread Rajesh Pradhan

Very fine Gyan.
I got it by just putting the value in the value attribute of the select box.
Thank u very much.

Thanks  Regards,
Rajesh Pradhan


 -Original Message-
From:   gnanaseelan [mailto:[EMAIL PROTECTED]]
Sent:   Saturday, March 02, 2002 12:20 PM
To: Struts Users Mailing List
Subject:Re: multiple select boxes tag - dynamic selection

multiple select boxes tag - dynamic selectionHi Raj

 Just include the Value atttribute in the html mutibox tag and give the to
highlighted

Gnan
  - Original Message -
  From: Rajesh Pradhan
  To: Struts Users Mailing List
  Sent: Thursday, June 27, 2002 11:32 AM
  Subject: multiple select boxes tag - dynamic selection




  Hi,

  Here I have a group of select boxes and depending on the value
selected previously I try to

  highlight only that label.

  I have set the values of selected option in the Action but when it
comes to jsp, it takes only the first value that is set for

  the first select box and applies it to all the select boxes.

  it simply ignores the set values of other select box that are set in
action.

  Here is the code.

  logic:iterate id=qcTransMaster

 property=items

 type=com.qccheck.master.QCTransMaster


collection=%=qcDataEntryForm.getSessArrayList3()%

  tr

  td width=5% align=left

  html:multibox property=selectedItems

  bean:write name=qcTransMaster
property=msQCErrorId /

  /html:multibox

  /td

  td width=50% align=left nowrap

  bean:write name=qcTransMaster
property=msQCErrorName /

  /td

  td width=5% align=right

  html:text property=msDefectCnt size=3

  bean:write  name=qcTransMaster property=msDefects
/

  /html:text

  /td

  td width=30% align=center

  html:text property=msComments size=35

  bean:write  name=qcTransMaster
property=msComments /

  /html:text

  /td

  td width=10% align=left

   html:select  property=msRootCause

html:options collection=RootCauseData

  property=value

  labelProperty=label  /

/html:select

   /td

  /tr

  /logic:iterate

  Any help would be really great .

  Thanks  Regards,

  Rajesh Pradhan




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




ServletContextListener vs ActionServlet/RequestProcessor sub classing

2002-06-27 Thread Heligon Sandra


I would like to add comments on my previous message about
ServletContextListener and 
ActionServlet sub classing. I read that with Struts1.1 it is bad to
create ActionServlet subclass ,
because a new class RequestProcessor has been added.
So my new question is, single initialisations (as database
connection or ORB initialisation) 
must be done in ServletContextListener class
or RequestProcessor sub classing (in this case which method use ?, I
don't look any init() method).

I don't understand why the RequestProcessor has been created ? Do
this class implement new
features/methods in comparison with ActionServlet ?
Or do these two classes not work in the same context ? For example a
RequestProcessor  is 
associated to a single application whereas an ActionServlet instance
can be shared between several 
applications ?
In this case we can yet need to subclass the ActionServlet class. 
Has somebody an example ? I work on a little web application and I
don't understand well the
notion of sub-application or multiple applications and the
difference with multiple Action
instances. 

Thanks in advance.
Sandra





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




Re: Struts welcome-file-list problem

2002-06-27 Thread Kris Schneider

I'd try something like this:

index.jsp:
%@ page language=java %
%@ taglib uri=/tags/struts-logic prefix=logic %
logic:forward name=welcome/

web.xml
...
welcome-file-list
  welcome-fileindex.jsp/welcome-file
/welcome-file-list
...

struts-config.xml
...
global-forwards
  forward name=welcome path=/controllers/welcome/
  ...
/global-forwards

action-mappings
  action path=/welcome forward=/WEB-INF/welcome.jsp/
  ...
/action-mappings
...

So, I think /FedDebtWeb, /FedDebtWeb/index.jsp, or
/FedDebtWeb/controllers/welcome would all get you to your welcome page.

[EMAIL PROTECTED] wrote:
 
 We have all of our jsp's under Web-Inf.  Therefore, you must call the
 action class to get to a web page.  This all works great except for our
 welcome page called welcome.jsp that was built with Struts Tiles.  If we go
 to the browser and just type
 http://localhost:8080/FedDebtWeb/controllers/welcome; we can get to the
 welcome page.  If we type only http://localhost:8080/FedDebtWeb; it does
 not find the welcome.jsp page.  Any suggestions on how to make this work?
 Thanks, Pete Gabriel
 
 Here are the code snippets for the different files:
 
 web.xml
 !-- Action Servlet Mapping --
 servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern/controllers/*/url-pattern
 /servlet-mapping
 
 !-- The Welcome File List --
 
   welcome-file-list
 welcome-file/welcome/welcome-file
   /welcome-file-list
 
 struts.config.xml
 !-- == Global Forward Definitions
 == --
 global-forwards
 forward name=/welcomepath=/controllers/welcome
 /
   /global-forwards
 !-- == Action Mapping Definitions
 == --
 action-mappings
 
 action path=/welcome type=
 gov.treas.fms.feddebt.web.action.WelcomeAction
   scope=request
   validate=false
   forward name=page path=views.welcome/
 /action
 /action-mappings
 
 tiles.def.xml
 definition name=standardLayout path=
 /WEB-INF/views/layout/standardLayout.jsp
 put name=title value=FedDebt/
 put name=menu value=menu/
 put name=header value=header/
 put name=footer value=footer/
 /definition
 
 !-- ===  --
 !-- Welcome page definition  --
 !-- ===  --
 
 definition name=views.welcome extends=standardLayout
 put name=body value=/WEB-INF/views/body/welcome.jsp/
 /definition
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/


smime.p7s
Description: S/MIME Cryptographic Signature


Re: html:form action problem

2002-06-27 Thread Dave Keller

Okay, found it.  I wasn't using .do extentions for my url mappings so I 
removed the servlet mapping of *.do to the action servlet from my 
web.xml.  Apparently, Struts doesn't like this.  So, when I put the 
servlet mapping back into my web.xml I get:

html:form action=/createUser

translated to

form action=/createUser.do

And the form is now able to be processed.  Bitchin'.

I don't think Struts should dictate which extension you can use but I 
guess it really doesn't make any difference.  


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




string attached to cladd id?

2002-06-27 Thread Oren Gross

Hi All
While I am using  an Action which is associated with a Bean by a session
scope I am getting two different 'class' for the same instance, from two
different JSPs.
What I mean is:
I am accessing the same Bean (DbListForm) from two different JSP. Both are
accessing methods that printing this.toString()
com.mercury.topaz.admincenter.app.db.DbListForm@18c458Setting
mailto:com.mercury.topaz.admincenter.app.db.DbListForm@18c458Setting  ==
from JSP_1
com.mercury.topaz.admincenter.app.db.DbListForm@18c458Error
mailto:com.mercury.topaz.admincenter.app.db.DbListForm@18c458Error ==
from JSP_2
 
Note that they have the same id=18c458, but their is a string attached.
Any ideas?
Oren

-

Oren Gross Java(TM) Developer

Mercury Interactive APM TAC RD 

+972-3-5399407 [EMAIL PROTECTED]

 



get indexed property

2002-06-27 Thread fabrice dewasmes

Hi all !

i'm not sure if i have to post this on struts or commons list but anyway
here's my question :

I want to make a table of radio buttons with Struts 1.1 . Each line is
independant of the others. The lines ar contained in a collection so i use
the logic:iterate tag. I followed Larry Maturo's Struts whitepaper for doing
this so i used the indexed property of the html:radio tag. here's what it
gives :

logic:iterate id=loggerList name=loggingForm property=loggerList
  tr
tdbean:write name=loggerList property=name filter=true//td
tdhtml:radio name=loggerList property=level value=DEBUG
indexed=true//td
tdhtml:radio name=loggerList property=level value=INFO
indexed=true//td
tdhtml:radio name=loggerList property=level value=WARN
indexed=true//td
tdhtml:radio name=loggerList property=level value=ERROR
indexed=true//td
tdhtml:radio name=loggerList property=level value=FATAL
indexed=true//td
  /tr
/logic:iterate

and here's the form bean code :

  public void setLoggerList(java.util.ArrayList loggerList) {
this.loggerList = loggerList;
  }
  public java.util.ArrayList getLoggerList() {
return loggerList;
  }
  public LoggerBean getLoggerList(int index){
return (LoggerBean)this.loggerList.get(index);
  }
  public void setLoggerList(int index,LoggerBean bean){
loggerList.set(index,bean);
  }
  private java.util.ArrayList loggerList;

where loggerList is a collection of my form bean. The problem is : i'm able
to get the proper loggerList collection fulfilled in my action class only if
make the scope of the form bean be 'session'. If the scope is set to
'request' the collection comes out to be null. however making the scope
'session' gives the correctly filled collection (with the user input).

am I doing something wrong or is there something special to do in the form
bean ?

thanks

Fabrice DEWASMES


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




Re: Use Jakarta's ObjectRelationalBridge (OJB) for your Struts app'spersistence layer

2002-06-27 Thread Jim Downing

On Thu, Jun 20, 2002 at 03:29:25PM -0500, Joe Germuska wrote:
 Maybe that's all I really need.  I also tend to lean towards Jakarta 
 tools over others. For example, I was about to rework an app to use 
 Castor but now I'll probably use ObjectRealtionalBridge instead.
 
 It's not just about Jakarta...  from just a passing experience with 
 the two tools, I found the mapping syntax for OJB to be far, far more 
 comprehensible than that of Castor JDO.  Plus, have you ever looked 
 at the source code for Castor stuff?  yikes.
 
 I had heard somewhere that the Castor project was in hibernation, or 
 worse... is there any truth to that?  So far i've still had better 
 luck with Castor than Jakarta Commons Betwixt for Bean-XML Binding, 
 but I like Betwixt's approach better, and figure it's only a matter 
 of time until the tricks to get Betwixt working sink through my 
 skull...

Does anyone with experience of Torque and OJB? I'd be interested in a
comparison, especially on how well OJB supports inheritance.

jim

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




Re: html:form action problem

2002-06-27 Thread Virga

you don't have to use struts taglib, right?
if you want to use *.dude as extension for instance,
you can type directly
form action=theAction.dude 
or you can use jakarta-taglibs if you want.


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




Ignore: string attached to cladd id?

2002-06-27 Thread Oren Gross

It is a mistake. sorry!!!

-
Oren Gross Java(TM) Developer
Mercury Interactive APM TAC RD 
+972-3-5399407 [EMAIL PROTECTED]


-Original Message-
From: Oren Gross [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 1:43 PM
To: Struts User (E-mail)
Subject: string attached to cladd id?


Hi All
While I am using  an Action which is associated with a Bean by a session
scope I am getting two different 'class' for the same instance, from two
different JSPs.
What I mean is:
I am accessing the same Bean (DbListForm) from two different JSP. Both are
accessing methods that printing this.toString()
com.mercury.topaz.admincenter.app.db.DbListForm@18c458Setting
mailto:com.mercury.topaz.admincenter.app.db.DbListForm@18c458Setting  ==
from JSP_1
com.mercury.topaz.admincenter.app.db.DbListForm@18c458Error
mailto:com.mercury.topaz.admincenter.app.db.DbListForm@18c458Error ==
from JSP_2
 
Note that they have the same id=18c458, but their is a string attached.
Any ideas?
Oren

-

Oren Gross Java(TM) Developer

Mercury Interactive APM TAC RD 

+972-3-5399407 [EMAIL PROTECTED]

 

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




WSAD Struts ClassCastException:org.apache.struts.action.ActionMappings

2002-06-27 Thread Mark Chen

Hi All,

I tried to use the Struts in WSAD 4.0.3, I got the following error: Your help is 
appreciated!


6/27/02 7:19:11:687 EDT] 413d3927 WebGroup  X Servlet Error: 
org.apache.struts.action.ActionMappings: java.lang.ClassCastException: 
org.apache.struts.action.ActionMappings
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:800)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:509)
 at _loginpage_jsp_0._jspService(loginpage.jsp:9)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:300)
 at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
 at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
 at 
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)



Mark Chen



nested:define or bean:define and INTEGER value

2002-06-27 Thread Barbara Post

Why is only String supported ? this does not please me... since I have to
convert it :(

or else JspException...

Babs


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




RE: WSAD Struts ClassCastException: org.apache.struts.action.ActionMappings

2002-06-27 Thread Kamholz, Keith (corp-staff) USX

I think you would have to send some of your source code where the error is
ocurring if you want help.  Just the error message is kinda vague.  By the
way, I'm also using WSAD and have been having problems lately.  When I first
started using it, I could save a file and run the changed project on the
server.  Now I have to rebuild, and sometimes run a validation on the
project for it to register changes.  It's not a real big deal, just pretty
annoying.  Have you seen anything like this?

~ Keith


-Original Message-
From: Mark Chen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 7:24 AM
To: [EMAIL PROTECTED]
Subject: WSAD  Struts ClassCastException:
org.apache.struts.action.ActionMappings


Hi All,

I tried to use the Struts in WSAD 4.0.3, I got the following error: Your
help is appreciated!


6/27/02 7:19:11:687 EDT] 413d3927 WebGroup  X Servlet Error:
org.apache.struts.action.ActionMappings: java.lang.ClassCastException:
org.apache.struts.action.ActionMappings
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:800)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:509)
 at _loginpage_jsp_0._jspService(loginpage.jsp:9)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:300)
 at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)



Mark Chen

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




Re: Tiles And Struts

2002-06-27 Thread William W


Why not plugIn ?
What functionality is lost if using tiles' plugIn ?
Just out of curiosity.

William.



From: Vincent Stoessel [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Tiles And Struts
Date: Wed, 26 Jun 2002 11:42:50 -0400

Thanks. That's what I thought.
I was wondering why the original poster id not want to use it.



Cedric Dumoulin wrote:
   By using tiles ActionComponentServlet , no Struts functionalities are 
lost. You
gain one : the ability to use Tiles definitions names as Struts forward.
   Note that Struts1.1 also require the TilesRequestProcessor to enable 
Tiles.

  Cedric


Vincent Stoessel wrote:


Just out of curiosity, what functionality is lost
by using tiles' ActionComponentServlet ?
Thanks

Ricardo de Souza Moura wrote:

Can I use a plugIn to Tiles ?
I am not wanting to use the ActionComponentServlet, but I am wanting to
use the definitions-config param.

There are some way ?

Thanks

_
MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua
fotos: http://photos.msn.com.br


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

--
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com

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



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



--
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


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




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


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




Re: How do I handle (ignore) multiple submits from one client?

2002-06-27 Thread Developer

Hi Chris,

That's been discussed on this list many times, I have not paid much
attention to it but I know it can be found in the archives at
http://www.mail-archive.com/struts-user%40jakarta.apache.org/.

There you can do a search on miltiple submits.  Please post the thread
that was most helpful to you in solving your problem.

Thank you.



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




Re: URGENT: Weblogic Application.properties issue

2002-06-27 Thread @Basebeans.com

Subject: Re: URGENT: Weblogic Application.properties issue
From: Wayne [EMAIL PROTECTED]
 ===
I am fighting this same issue. I am using struts 1.1b1 with WL 5.1 SP12 with
an exploded WAR. (I tried a while in the WAR)

Here's the error message I receive... any ideas?

java.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFactory
at
weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java:372)
at
weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java:112)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:190)
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:169)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:557)
at
org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:137)
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:169)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:557)
at com.mslv.webapp.help.Searcher.clinit(Searcher.java:49)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:469)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:453)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:442)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:361)
at
weblogic.servlet.internal.ServletContextImpl.preloadServlet(ServletContextIm
pl.java:752)
at
weblogic.servlet.internal.ServletContextImpl.preloadServlets(ServletContextI
mpl.java:726)
at
weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:683)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:479)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1393)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:140)
at weblogic.Server.main(Server.java:97)
at weblogic.Server.main(Server.java:58)
[ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
java.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFactory
java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:558)
at
org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:137)
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:169)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:557)
at com.mslv.webapp.help.Searcher.clinit(Searcher.java:49)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:469)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:453)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:442)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:361)
at
weblogic.servlet.internal.ServletContextImpl.preloadServlet(ServletContextIm
pl.java:752)
at
weblogic.servlet.internal.ServletContextImpl.preloadServlets(ServletContextI
mpl.java:726)
at
weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:683)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:479)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1393)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:140)
at weblogic.Server.main(Server.java:97)
at weblogic.Server.main(Server.java:58)
[ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
java.lang.ExceptionInInitializerError
Thu Jun 27 07:36:09 CDT 2002:E WebAppServletContext-help Error
instantiating servlet: com.mslv.webapp.help.Searcher
java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:558)

Chen, Dean (Zhun) [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Hi,
 I have tried deploying the application as either WAR for exploded format.
I
 checked my WAR file and it has the ApplicationResources.properties in it,
 but WebLogic doesn't load that into the working directory and then
complains
 about 

RE: WSAD Struts ClassCastException: org.apache.struts.action.Ac tionMappings

2002-06-27 Thread Bhattad, Nilesh

I was facing similar kind of problem with WSAD. Not sure whether it'll help
u or not. I made a little change in WSAD settings. And it worked for me.

1. From your project properties, select Validation section.
2. Turn on the option of Run validation automatically ...

- Nilesh


-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 27, 2002 8:45 AM
To: 'Struts Users Mailing List'
Subject: RE: WSAD  Struts ClassCastException: org.apache.struts.action.Ac
tionMappings

I think you would have to send some of your source code where the error is
ocurring if you want help.  Just the error message is kinda vague.  By the
way, I'm also using WSAD and have been having problems lately.  When I first
started using it, I could save a file and run the changed project on the
server.  Now I have to rebuild, and sometimes run a validation on the
project for it to register changes.  It's not a real big deal, just pretty
annoying.  Have you seen anything like this?

~ Keith


-Original Message-
From: Mark Chen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 7:24 AM
To: [EMAIL PROTECTED]
Subject: WSAD  Struts ClassCastException:
org.apache.struts.action.ActionMappings


Hi All,

I tried to use the Struts in WSAD 4.0.3, I got the following error: Your
help is appreciated!


6/27/02 7:19:11:687 EDT] 413d3927 WebGroup  X Servlet Error:
org.apache.struts.action.ActionMappings: java.lang.ClassCastException:
org.apache.struts.action.ActionMappings
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:800)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:509)
 at _loginpage_jsp_0._jspService(loginpage.jsp:9)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:300)
 at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)



Mark Chen

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

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




bean:define with message keys

2002-06-27 Thread Developer

Has anyone a cleaner way to do the following:

bean:define id=confirmMessage value=return confirm(' /
%
org.apache.struts.util.MessageResources messages =
(org.apache.struts.util.MessageResources)request.getAttribute(org.apache.str
uts.action.Action.MESSAGES_KEY);
deleteConfirmMessage = deleteConfirmMessage
.concat(messages.getMessage(text.confirm.delete)).concat('););
%

onclick=%= confirmMessage %...

Final Output:
onclick=return confirm('Do you really want me removed')


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




Question- Reset method usage

2002-06-27 Thread Kamholz, Keith (corp-staff) USX

Hey everyone,
I have a couple little questions that I've been trying to figure out.  I
found some info online, but some of it didn't make sense.
One issue deals with using an html:checkbox in a form.  I know that you
have to set the boolean property to false in the reset method, but i thought
the reset method was called when you click the reset button.  I'm starting
to think that the ActionForm's reset method doesn't get called when a reset
button is clicked because when i click reset, it doesn't clear the form it
just gets rid of changes just made (since the last submit).  When does the
reset method get called by struts?  Am I just supposed to use it to reset my
boolean properties to false or what?  Any input would be appreciated.
Thanks!

Keith Kamholz
Moog 
East Aurora, NY
(716) 687-7282
[EMAIL PROTECTED]


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




Re: Tiles And Struts

2002-06-27 Thread Cedric Dumoulin


  There is no official Tiles' plugin today. I work on it. If someone has already
implemented it and would like to donate it ...
  When the plugin will be released, it will be the preferred way to initialize
Tiles.

  Cedric

William W wrote:

 Why not plugIn ?
 What functionality is lost if using tiles' plugIn ?
 Just out of curiosity.

 William.

 From: Vincent Stoessel [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Tiles And Struts
 Date: Wed, 26 Jun 2002 11:42:50 -0400
 
 Thanks. That's what I thought.
 I was wondering why the original poster id not want to use it.
 
 
 
 Cedric Dumoulin wrote:
By using tiles ActionComponentServlet , no Struts functionalities are
 lost. You
 gain one : the ability to use Tiles definitions names as Struts forward.
Note that Struts1.1 also require the TilesRequestProcessor to enable
 Tiles.
 
   Cedric
 
 
 Vincent Stoessel wrote:
 
 
 Just out of curiosity, what functionality is lost
 by using tiles' ActionComponentServlet ?
 Thanks
 
 Ricardo de Souza Moura wrote:
 
 Can I use a plugIn to Tiles ?
 I am not wanting to use the ActionComponentServlet, but I am wanting to
 use the definitions-config param.
 
 There are some way ?
 
 Thanks
 
 _
 MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua
 fotos: http://photos.msn.com.br
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 Vincent Stoessel
 Linux Systems Developer
 vincent xaymaca.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 Vincent Stoessel
 Linux Systems Developer
 vincent xaymaca.com
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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

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


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




Tomcat 4.0.x version + Struts

2002-06-27 Thread emmanuel.boudrant

Hi,

What is the best Tomcat 4.0.x version to use with
Struts 1.1 ?

Is the 4.0.4 is ok ?

-Emmanuel

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: Tomcat 4.0.x version + Struts

2002-06-27 Thread Barbara Post

4.0.3 and 4.1.3b do work :-)

Babs

- Original Message -
From: emmanuel.boudrant [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; Developer
[EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 3:04 PM
Subject: Tomcat 4.0.x version + Struts


 Hi,

 What is the best Tomcat 4.0.x version to use with
 Struts 1.1 ?

 Is the 4.0.4 is ok ?

 -Emmanuel

 ___
 Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
 Yahoo! Mail : http://fr.mail.yahoo.com

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



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




Re: tile definition as welcome file?

2002-06-27 Thread Cedric Dumoulin


  The welcome file should denote a valid URL. So I think you can put any struts action 
URL forwarding to a tile definition. Also, you can put a jsp page URL inserting the 
definition.
  What you can't do is to put a definition name as welcome file ;-) .

 Hope this help,

Cedric

Jerry Jalenak wrote:

 By using the welcome-file-list in web.xml, it is possible to have a
 different HTML or JSP page displayed when a user accesses a specific URL.
 Is it possible to specify a tiles definition? something like the following?

 welcome-file-list
 welcome-filemyFirstPage/welcome-file
 /welcome-file-list

 where myFirstPage is defined in struts-config.xml as

 global-forwards
 forward name=myFirstPage path=/myFirstPage.do /
 /global-forwards

 action-mappings
 action path=/myFirstPage type=com.util.ForwardToTiles 
 forward name=success path=myFirstPage_Tiles /
 /action
 /action-mappings

 and myFirstPage_Tiles is defined in my tiles-config.xml?  Is there a better
 way of doing this?

 Thanks!

 Jerry Jalenak
 Development Manager, Web Publishing
 LabOne, Inc.

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

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


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




RE: WSAD Struts ClassCastException: org.apache.struts.action.Ac tionMappings

2002-06-27 Thread Kamholz, Keith (corp-staff) USX

I'll try it out.
Thanks!

~ Keith


-Original Message-
From: Bhattad, Nilesh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 8:58 AM
To: 'Struts Users Mailing List'
Subject: RE: WSAD  Struts ClassCastException:
org.apache.struts.action.Ac tionMappings


I was facing similar kind of problem with WSAD. Not sure whether it'll help
u or not. I made a little change in WSAD settings. And it worked for me.

1. From your project properties, select Validation section.
2. Turn on the option of Run validation automatically ...

- Nilesh


-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 27, 2002 8:45 AM
To: 'Struts Users Mailing List'
Subject: RE: WSAD  Struts ClassCastException: org.apache.struts.action.Ac
tionMappings

I think you would have to send some of your source code where the error is
ocurring if you want help.  Just the error message is kinda vague.  By the
way, I'm also using WSAD and have been having problems lately.  When I first
started using it, I could save a file and run the changed project on the
server.  Now I have to rebuild, and sometimes run a validation on the
project for it to register changes.  It's not a real big deal, just pretty
annoying.  Have you seen anything like this?

~ Keith


-Original Message-
From: Mark Chen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 7:24 AM
To: [EMAIL PROTECTED]
Subject: WSAD  Struts ClassCastException:
org.apache.struts.action.ActionMappings


Hi All,

I tried to use the Struts in WSAD 4.0.3, I got the following error: Your
help is appreciated!


6/27/02 7:19:11:687 EDT] 413d3927 WebGroup  X Servlet Error:
org.apache.struts.action.ActionMappings: java.lang.ClassCastException:
org.apache.struts.action.ActionMappings
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:800)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:509)
 at _loginpage_jsp_0._jspService(loginpage.jsp:9)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:300)
 at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)



Mark Chen

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

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

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




Re: bean:define with message keys

2002-06-27 Thread Sandeep Takhar

it almost seems like you could use a tag library.

i'm sure there is a better way than that as well..

sandeep
--- Developer [EMAIL PROTECTED] wrote:
 Has anyone a cleaner way to do the following:
 
 bean:define id=confirmMessage value=return
 confirm(' /
 %
 org.apache.struts.util.MessageResources messages
 =

(org.apache.struts.util.MessageResources)request.getAttribute(org.apache.str
 uts.action.Action.MESSAGES_KEY);
 deleteConfirmMessage = deleteConfirmMessage

.concat(messages.getMessage(text.confirm.delete)).concat('););
 %
 
 onclick=%= confirmMessage %...
 
 Final Output:
 onclick=return confirm('Do you really want me
 removed')
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




ImgTag.class ?

2002-06-27 Thread Barbara Post

The documentation tells that nested:img is an extension of html:img but I
can find neither the .class nor the definition in struts-nested.tld.

so ? what do I do ?

strange.


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




Re: Tomcat 4.0.x version + Struts

2002-06-27 Thread mailinglist

 What is the best Tomcat 4.0.x version to use with
 Struts 1.1 ?

 Is the 4.0.4 is ok ?


Tomcat 4.0.4 seems much faster than 4.03 on my test PC and I didn't
encounter any problem with 1.1b but I updated Tomcat yesterday and have just
tested struts-example...


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




Re: Tomcat 4.0.x version + Struts

2002-06-27 Thread Barbara Post

thanks, will give a try too :-)

But since even 4.1 works let's play ;-)

Babs
- Original Message -
From: mailinglist [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 3:36 PM
Subject: Re: Tomcat 4.0.x version + Struts


 X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N

  What is the best Tomcat 4.0.x version to use with
  Struts 1.1 ?
 
  Is the 4.0.4 is ok ?


 Tomcat 4.0.4 seems much faster than 4.03 on my test PC and I didn't
 encounter any problem with 1.1b but I updated Tomcat yesterday and have
just
 tested struts-example...


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



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




problem with img and scriptlet variable

2002-06-27 Thread Barbara Post

nested:define property=nodePix id=imgName/

 html:img src=images/%=imgName% width=10 height=10 alt=/
 %=imgName%
html:img src=images/puce2.gif width=10 height=10 alt=/
...

so I get :
broken link, the right name of my pix, my pix shows blissfully.

On the resulting html page I see that %= imgName % is printed rather than
its value... :-(

Babs w/ Struts 1.1


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




RE: Upgrading from 1.0 to 1.1

2002-06-27 Thread Bill Milbratz

Thanks for the response Craig.

I realize 'doesn't work' sounded a bit alarmist... the specific problem:
this line threw an exception in struts 1.1 though it worked fine in 1.0: 

   bean:define id=returnUrl name=listDefinedProcessesForm
property=returnUrl/

the exception said you could specify a name or property but not both...

Unfortunately I don't have my log any more and 'rolled back' to 1.0 ..

bill milbratz







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




RE: problem with img and scriptlet variable

2002-06-27 Thread Robert Taylor

Try this:

nested:define property=nodePix id=imgName/
% String imgSrc = images/ + imgName %
  html:img src=%=imgSrc% width=10 height=10 alt=/
  %=imgName%
 html:img src=images/puce2.gif width=10 height=10 alt=/

The behavior you are seeing is the result of limitation in the current JSP
spec.

robert

 -Original Message-
 From: Barbara Post [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 27, 2002 9:42 AM
 To: [EMAIL PROTECTED]
 Subject: problem with img and scriptlet variable


 nested:define property=nodePix id=imgName/

  html:img src=images/%=imgName% width=10 height=10 alt=/
  %=imgName%
 html:img src=images/puce2.gif width=10 height=10 alt=/
 ...

 so I get :
 broken link, the right name of my pix, my pix shows blissfully.

 On the resulting html page I see that %= imgName % is printed
 rather than
 its value... :-(

 Babs w/ Struts 1.1


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



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




title and alt properties

2002-06-27 Thread Barbara Post

Hi again,

when I use html:password, html:text, html:img without setting title / alt to
an empty string struts looks in my ApplicationResources.properties and
doesn't find anything, but which key does it look for ?

example :

html:text property=userCompany ... /

instead of :

html:text property=userCompany title= alt= ... /

because I forget to put these then have garbage in the resulting html source
;-)

Thx a lot.


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




Re: problem with img and scriptlet variable

2002-06-27 Thread Barbara Post

Great Robert, this solved ! Thank you !

Babs
- Original Message -
From: Robert Taylor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 3:47 PM
Subject: RE: problem with img and scriptlet variable


 Try this:

 nested:define property=nodePix id=imgName/
   % String imgSrc = images/ + imgName; %
   html:img src=%=imgSrc% width=10 height=10 alt=/
   %=imgName%
  html:img src=images/puce2.gif width=10 height=10 alt=/

 The behavior you are seeing is the result of limitation in the current JSP
 spec.

 robert

  -Original Message-
  From: Barbara Post [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 27, 2002 9:42 AM
  To: [EMAIL PROTECTED]
  Subject: problem with img and scriptlet variable
 
 
  nested:define property=nodePix id=imgName/
 
   html:img src=images/%=imgName% width=10 height=10 alt=/
   %=imgName%
  html:img src=images/puce2.gif width=10 height=10 alt=/
  ...
 
  so I get :
  broken link, the right name of my pix, my pix shows blissfully.
 
  On the resulting html page I see that %= imgName % is printed
  rather than
  its value... :-(
 
  Babs w/ Struts 1.1
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


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



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




RE: How do I handle (ignore) multiple submits from one client?

2002-06-27 Thread Chris Means

Hi,

I did search the archive before I submitted my question.

I used your suggested search string (minus typo g), which did turn up two
threads I hadn't run across (thanks!), however, neither of them seemed to
fit my particular problem.

However, I have been able to get an approach to work (having a busy flag
on the session), I was confused about the fact that I was seeing Connection
reset by peer: socket write error exceptions in the Servlet console
window...but then I realized they would be expected under the circumstances.

Thanks for your help.

-Chris

 -Original Message-
 From: Developer [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 27, 2002 7:44 AM
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: Re: How do I handle (ignore) multiple submits from one client?


 Hi Chris,

 That's been discussed on this list many times, I have not paid much
 attention to it but I know it can be found in the archives at
 http://www.mail-archive.com/struts-user%40jakarta.apache.org/.

 There you can do a search on miltiple submits.  Please post the thread
 that was most helpful to you in solving your problem.

 Thank you.




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




Re: Upgrading from 1.0 to 1.1

2002-06-27 Thread Developer

try downloading the latest 1.1 build or use 1.1b1.  I use the same thing
everywhere in my app and it's working fine with tomcat 4.0.x

ciao.

- Original Message -
From: Bill Milbratz [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 9:43 AM
Subject: RE: Upgrading from 1.0 to 1.1


 Thanks for the response Craig.

 I realize 'doesn't work' sounded a bit alarmist... the specific problem:
 this line threw an exception in struts 1.1 though it worked fine in 1.0:

bean:define id=returnUrl name=listDefinedProcessesForm
 property=returnUrl/

 the exception said you could specify a name or property but not both...

 Unfortunately I don't have my log any more and 'rolled back' to 1.0 ..

 bill milbratz







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






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




form input in utf-8

2002-06-27 Thread @Basebeans.com

Subject: form input in utf-8
From: Torgeir Veimo [EMAIL PROTECTED]
 ===
What is the easiest way of telling struts that a form input is in utf-8 
format?

I clearly see that the input comes in as utf-8, but it is interpreted as 
isolatin-1.

-- 
-Torgeir


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




How can I access a global forward within a struts action?

2002-06-27 Thread Dirk Storck

How can I access a global forward within a struts action?
How do I find more about defining an controller for an action like it seem
to be possible in struts1.1?


Many thanks!


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




Re: form input in utf-8

2002-06-27 Thread Dariusz Wojtas

Thursday, June 27, 2002, 4:25:02 PM, you wrote:
SN Subject: form input in utf-8
SN From: Torgeir Veimo [EMAIL PROTECTED]
SN  ===
SN What is the easiest way of telling struts that a form input is in utf-8 
SN format?

SN I clearly see that the input comes in as utf-8, but it is interpreted as 
SN isolatin-1.

I have the same problem.
I need the input coming from the browser to be interpreted as
iso-8859-2 characters, but it is interpreted as isolatin-1.
Is there any good solution for that?

Darek


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




Old Topic..dynamic forwards.

2002-06-27 Thread Jeff_Mychasiw

Greetings:
  I know there is much discussion of dynamic forwarding on this list.
My searching has not produced a definitive answer though.

In our project, for various reasons, we will by using javascript to make a
few decisions before a submit happens.   The are several Action classes
that I would like to re-use.
I am new to struts, so I am trying to keep the action small and simple
because I would like to make use of some of the new exception handling
features.

On every page, one or more actions may be called depending on if there is
any unfinished saving to do.
ie: When they hit a side menu option, javascript may say would like to
save?.  If yes they would be directed to a save action, then on to the
destination page load action.

Anyway My approach is this:

Every page will call a small forward action (similar to the new forward
action) that will look at a request param called forwardTo_action.
The java script will either place custInfoLoad.do or saveSomeInfo.do.
So if it did go to saveSomeInfo.do, this action would need to know to
continue on the intended action custInfoLoad.do.
The saveSomeInfoAction.do would need to look for a parameter called
target_action.

Summary:
Every form will have to hidden fields called:
forwardTo_action
targetAction

Then certain re-usable action would look for these as needed and the client
Java script would set as needed.

I know this is a simple approach, but we used something similar on a non
struts project and though not elegant, the pattern seemed to stay intact.

Comments?


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




Re: Question- Reset method usage

2002-06-27 Thread Sandeep Takhar

before an action is called (on a request) the order
is:

reset
processPopulate
validate

if validate=false in the config, only the first two
are followed.

if it is a cancel button than I don't think any of
this is called.

In version 1.1 if you define a jsp with an html:form
which has a form which has not been created, than
these methods are called as well.

do a search for an exact answer.

sandeep
--- Kamholz, Keith   (corp-staff) USX
[EMAIL PROTECTED] wrote:
 Hey everyone,
 I have a couple little questions that I've been
 trying to figure out.  I
 found some info online, but some of it didn't make
 sense.
 One issue deals with using an html:checkbox in a
 form.  I know that you
 have to set the boolean property to false in the
 reset method, but i thought
 the reset method was called when you click the reset
 button.  I'm starting
 to think that the ActionForm's reset method doesn't
 get called when a reset
 button is clicked because when i click reset, it
 doesn't clear the form it
 just gets rid of changes just made (since the last
 submit).  When does the
 reset method get called by struts?  Am I just
 supposed to use it to reset my
 boolean properties to false or what?  Any input
 would be appreciated.
 Thanks!
 
 Keith Kamholz
 Moog 
 East Aurora, NY
 (716) 687-7282
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: ServletException: Multipart data doesn't start with boundary

2002-06-27 Thread Rob Leland

Try last nights struts build, the patch that I applied suppliaed by Hal 
and others may fix your problem.
Also when reporting a problem state the date/version of struts and 
conatiner TC 4.0.4 etc..



For an explination try searching the mail archives for

'Multipart data doesn't start with'

http://marc.theaimsgroup.com/?l=struts-userr=1w=4


Daniel J. D'Cotta wrote:

Hi,

I am using a form ... enctype=multipart/form-data method=post to
upload a file. After my latest 'modification' it broke again, now throwing
the following:

javax.servlet.ServletException: Multipart data doesn't start with boundary
   at
org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMulti
partRequestHandler.java:103)
   at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:908)
   at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:795)
   at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)

Could someone tell me what is the meaning of this exception?


Regards,
Daniel D'Cotta

Ext: 212


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




-- 
Robert Leland   [EMAIL PROTECTED]
804 N. Kenmore Street   +01-703-525-3580
Arlington VA 22201




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




RE: How can I access a global forward within a struts action?

2002-06-27 Thread Kamholz, Keith (corp-staff) USX

Accessing a global forward is easy.  Access it the same as you would a local
forward.
return mapping.findForward(globalForwardName);
Hope that helps.

~ Keith


-Original Message-
From: Dirk Storck [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 9:58 AM
To: 'Struts User (E-Mail)'
Subject: How can I access a global forward within a struts action?


How can I access a global forward within a struts action?
How do I find more about defining an controller for an action like it seem
to be possible in struts1.1?


Many thanks!


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

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




dynamic link parameters

2002-06-27 Thread Nina-Annick Stranzenbach

Hi,

I am trying to open a new window via javascript command that submits 
command to an action path. As this action path needs a request 
parameter, it's got to be submitted as well. When I tested the action, I 
did it like this:

html:link page=/details.do paramId= paramName=ticket 
paramProperty=id target=_blank /html:link

Now, I would like to open a popup-window with javascript, but I've 
encountered problems with getting the request parameters into the link:

html:link page= onclick=popup(340,300,'details','/details.do 
')

Where the white spaces are, I would like to find the contents of the 
property 'id' of a bean called 'ticket'.
Does anyone have any idea how this could be done?
I already tried to put a bean:write and a html:rewrite into it, but 
those did not seem to be any possible solutions to the problem.

Help will be greatly appreciated,
Thanks,

Nina.



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




RE: Question- Reset method usage

2002-06-27 Thread Kamholz, Keith (corp-staff) USX

Thanks for the input.  So should I just use the reset method to set my
boolean properties (checkboxes) to false?

~ Keith


-Original Message-
From: Sandeep Takhar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 10:33 AM
To: Struts Users Mailing List
Subject: Re: Question- Reset method usage


before an action is called (on a request) the order
is:

reset
processPopulate
validate

if validate=false in the config, only the first two
are followed.

if it is a cancel button than I don't think any of
this is called.

In version 1.1 if you define a jsp with an html:form
which has a form which has not been created, than
these methods are called as well.

do a search for an exact answer.

sandeep
--- Kamholz, Keith   (corp-staff) USX
[EMAIL PROTECTED] wrote:
 Hey everyone,
 I have a couple little questions that I've been
 trying to figure out.  I
 found some info online, but some of it didn't make
 sense.
 One issue deals with using an html:checkbox in a
 form.  I know that you
 have to set the boolean property to false in the
 reset method, but i thought
 the reset method was called when you click the reset
 button.  I'm starting
 to think that the ActionForm's reset method doesn't
 get called when a reset
 button is clicked because when i click reset, it
 doesn't clear the form it
 just gets rid of changes just made (since the last
 submit).  When does the
 reset method get called by struts?  Am I just
 supposed to use it to reset my
 boolean properties to false or what?  Any input
 would be appreciated.
 Thanks!
 
 Keith Kamholz
 Moog 
 East Aurora, NY
 (716) 687-7282
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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

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




Re: form input in utf-8

2002-06-27 Thread Joe Germuska

At 7:25 AM -0700 2002/06/27, Struts Newsgroup (@Basebeans.com) wrote:
Subject: form input in utf-8
From: Torgeir Veimo [EMAIL PROTECTED]
  ===
What is the easiest way of telling struts that a form input is in utf-8
format?

I clearly see that the input comes in as utf-8, but it is interpreted as
isolatin-1.

negotiating form encoding is a pretty horrible problem, and it's 
mostly outside of Struts' control.

There is an attribute to form in html 4.01, accept-charset, but 
4.x browsers (which most of us still have to support) seem to totally 
ignore that.  To be honest, I'm not sure that the 6.0 browers handle 
it correctly either.  In any case, the struts html:form tag does 
not have this as one of its attributes.

http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accept-charset

What has worked for us, mostly, is a combination of making sure that 
the encoding of the page containing the form is explicitly set, with 
a jsp directive or an HTML meta tag.  The counterpart, then, is a 
vendor-specific configuration that tells the application server what 
encoding to use.  For weblogic, it involves creating a 
/WEB-INF/weblogic.xml file with certain config parameters.

I'm pretty certain that Struts is bound to the web app container 
vendor's implementation of HttpServletRequest, which is responsible 
for converting the request bytes into strings 
(request.getParameter()).

By no means do I consider myself an expert on character encoding, 
despite having burned a lot of hours on problems (mostly with (c) and 
TM), so if anyone has more light to shed, it would be welcome...

Joe

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

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




Re: Does form method=get behave uniformly in all containers

2002-06-27 Thread Craig R. McClanahan



On Thu, 27 Jun 2002, Sunil Mathew George wrote:

 Date: Thu, 27 Jun 2002 12:06:16 +0530
 From: Sunil Mathew George [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Struts User [EMAIL PROTECTED]
 Subject: Does form method=get behave uniformly in all containers

 Hi,
   I am doing an application using JSPs/ Struts as the presentation
 layer(Tomcat server). I want to know the behaviour of the form method=GET
 with other containers like Weblogic etc.


 There is a possibility that, when I use URLs for session tracking and the
 form method is set to GET, the session will probably be lost. This is
 because some containers encode the session id as part of the query string.
 In get-form's the browser will replace the query string completly with the
 one built from the form fields.(in accordance to the HTML4) spec.

   If any one has experienced problems with form method=GET in different web
 servers, please inform me about the same. !


All containers that implement Servlet 2.2 or 2.3 are required to support
URL rewriting, which encodes the session identifier in the url as a path
parameter (not a query parameter).  However, it is up to your application
to make sure you call response.encodeURL() as you are creating such links.

The good news for Struts users is that tags like html:form and
html:link do this for you, so that if you create all your links with the
tags, you don't have to worry about URL rewriting yourself.

 Regards,
 Sunil.



Craig



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




AW: How can I access a global forward within a struts action?

2002-06-27 Thread Dirk Storck

Thanks !
and about that Controller?

-Ursprüngliche Nachricht-
Von: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 27. Juni 2002 16:44
An: 'Struts Users Mailing List'
Betreff: RE: How can I access a global forward within a struts action?


Accessing a global forward is easy.  Access it the same as you would a local
forward.
return mapping.findForward(globalForwardName);
Hope that helps.

~ Keith


-Original Message-
From: Dirk Storck [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 9:58 AM
To: 'Struts User (E-Mail)'
Subject: How can I access a global forward within a struts action?


How can I access a global forward within a struts action?
How do I find more about defining an controller for an action like it seem
to be possible in struts1.1?


Many thanks!


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

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

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




Re: ActionServlet init() method vs ServletContextListener API

2002-06-27 Thread Craig R. McClanahan



On Thu, 27 Jun 2002, Heligon Sandra wrote:

 Date: Thu, 27 Jun 2002 09:35:09 +0200
 From: Heligon Sandra [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: ActionServlet init() method vs ServletContextListener API


   Hi,

   The Servlet 2.3 specification provides a mechanism to be notified
 when
   the application start-up: the ServletContextListener API.
   What is the best solution for single initialisations ? Is it in our
 own ServletContextListener class
   or in the init() method of the ActionServlet subclass.
   I am not sure, the ActionServlet init() method is called once, isn't
 it ?

If you are on a Servlet 2.3 or later system, ServletContextListener should
be the preferred approach.

The reason for this is that the servlet spec does *not* guarantee that a
servlet will be loaded once and then left in memory the entire lifetime of
the app, although in principle most containers do that for heavily
requested servlets.  For example, it is entirely legal for a container to
throw out the Struts controller servlet, and then re-initialize it again,
as many times as it wants to, within the lifetime of a webapp.

The nice thing about ServletContextListener is that you're guaranteed that
contextInitialized() and contextDestroyed() are only called at the times
you need them (webapp startup and webapp shutdown), no matter what happens
with servlets and JSP pages in the middle.  But this only works on a 2.3
or later system, where this API was added.


   Thanks in advance.
   Sandra

Craig


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




Re: title and alt properties

2002-06-27 Thread Virga

i don't know which version you are using, but i have no problem even if i
don't put title and alt (i use struts 1.0.2)
this is a snapshot of my page :
img property=
bean:message key=prompt.login/ :html:text property=userName
maxlength=16 size=16/
bean:message key=prompt.password/ :html:password property=password
maxlength=25 size=10/
html:image property=validate src=images/enregistrer.gif border=0/

rendered as :

login : input type=text name=userName maxlength=16 size=16
password : input type=password name=password maxlength=25 size=10
input type=image name=validate src=images/validate.gif border=0


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




Re: ServletContextListener vs ActionServlet/RequestProcessor subclas sing

2002-06-27 Thread Craig R. McClanahan



On Thu, 27 Jun 2002, Heligon Sandra wrote:

 Date: Thu, 27 Jun 2002 11:09:47 +0200
 From: Heligon Sandra [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: ServletContextListener vs ActionServlet/RequestProcessor sub
 clas sing


   I would like to add comments on my previous message about
 ServletContextListener and
   ActionServlet sub classing. I read that with Struts1.1 it is bad to
 create ActionServlet subclass ,
   because a new class RequestProcessor has been added.
   So my new question is, single initialisations (as database
 connection or ORB initialisation)
   must be done in ServletContextListener class
   or RequestProcessor sub classing (in this case which method use ?, I
 don't look any init() method).


See previous response.

Note that the Struts PlugIn API in 1.1 is designed to replace the need to
subclass ActionServlet if the *only* thing you need to do is add some
extra initialization stuff.  It has the same advantages (runs under
Servlet 2.2 environments) and disadvantages (lifecycle is not guaranteed)
as overriding init() and destroy() on ActionServlet itself.

   I don't understand why the RequestProcessor has been created ? Do
 this class implement new
   features/methods in comparison with ActionServlet ?
   Or do these two classes not work in the same context ? For example a
 RequestProcessor  is
   associated to a single application whereas an ActionServlet instance
 can be shared between several
   applications ?
   In this case we can yet need to subclass the ActionServlet class.
   Has somebody an example ? I work on a little web application and I
 don't understand well the
   notion of sub-application or multiple applications and the
 difference with multiple Action
   instances.


It was created so that advanced users could have different request
processing lifecycles for different sub-applications if they need them.
For the vast majority of Struts developers, you can just forget that this
thing even exists.

Sub-applications are not well documented yet (that is being worked on),
but the basic idea is that you can have multiple independent
struts-config.xml files in the same webapp, sharing the same controller
servlet underneath.  Sub-applications are distinguished by a prefix, so
you might have context-relative requests like /catalog/showCategory.do
and /checkout/acceptCreditCard.do served by different subapps.

This will be explained better (with examples) in the final docs.

   Thanks in advance.
   Sandra


Craig


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




Re: Tomcat 4.0.x version + Struts

2002-06-27 Thread Craig R. McClanahan



On Thu, 27 Jun 2002, Barbara Post wrote:

 Date: Thu, 27 Jun 2002 15:40:07 +0200
 From: Barbara Post [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Tomcat 4.0.x version + Struts

 thanks, will give a try too :-)

 But since even 4.1 works let's play ;-)


If you want to see a relatively intricate Struts-based app, check out the
administration webapp in Tomcat 4.1.x -- it does a lot of nice things to
update the configuration of a running Tomct instance, and it's based on
Struts 1.0.2.

 Babs

Craig


 - Original Message -
 From: mailinglist [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, June 27, 2002 3:36 PM
 Subject: Re: Tomcat 4.0.x version + Struts


  X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N
 
   What is the best Tomcat 4.0.x version to use with
   Struts 1.1 ?
  
   Is the 4.0.4 is ok ?
 
 
  Tomcat 4.0.4 seems much faster than 4.03 on my test PC and I didn't
  encounter any problem with 1.1b but I updated Tomcat yesterday and have
 just
  tested struts-example...
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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




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




Re: AW: How can I access a global forward within a struts action?

2002-06-27 Thread Craig R. McClanahan



On Thu, 27 Jun 2002, Dirk Storck wrote:

 Date: Thu, 27 Jun 2002 17:06:30 +0200
 From: Dirk Storck [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: AW: How can I access a global forward within a struts action?

 Thanks !
 and about that Controller?


Do you mean the configuration information?  In 1.1 the ApplicationConfig
object for each sub-application is available as a servlet context
attribute (the default one being under Action.APPLICATION_KEY).  In
addition, the ApplicationConfig for the current request is stored under
the same key as a request attribute.

This object, and the properties it contains, hold essentially all of the
information that was loaded from a struts-config.xml file.

I don't know quite what you mean by defining a controller for an action.

Craig


 -Ursprüngliche Nachricht-
 Von: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 27. Juni 2002 16:44
 An: 'Struts Users Mailing List'
 Betreff: RE: How can I access a global forward within a struts action?


 Accessing a global forward is easy.  Access it the same as you would a local
 forward.
 return mapping.findForward(globalForwardName);
 Hope that helps.

 ~ Keith


 -Original Message-
 From: Dirk Storck [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 27, 2002 9:58 AM
 To: 'Struts User (E-Mail)'
 Subject: How can I access a global forward within a struts action?


 How can I access a global forward within a struts action?
 How do I find more about defining an controller for an action like it seem
 to be possible in struts1.1?


 Many thanks!


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

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

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




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




trouble by extending struts-html tag

2002-06-27 Thread emmanuel.boudrant

Hello,

I've got a big trouble, for our application based on
Struts 1.0.2, we make some customs tags extends or
composed by struts-html tag.

For example, we've got a DateTag composed by 3
SelectTag from struts, we invoke directly doXxxTag()
methods in the doXxxTag() methode from our DateTag.

Data type used with DateTag is a class composed by 3
String (day,month,year).

like this:

DateTag#doStartTag() {

 SelectTag day = new SelectTag();
 day.setPageContext(pageContext);
 day.setPageContext(this.property + .day);
 (...)
 
 day.doStartTag();

 this.addOptionDays();

 day.doEndTag();

  // Idem with month and year.
  (...)

}

But randomly, we have this exception :

No getter method for property date.day of bean
org.apache.struts.taglib.html.BEAN

I put some System.out in struts class PropertyUtils
and the bean is here ! but the get method returned is
null !


Is threre any problem by making a tag composed by
struts-html tags ... and invoke manually doXxxTag()
methods ?

Thx,
-Emmanuel


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




RE: ServletContextListener vs ActionServlet/RequestProcessor subclassing

2002-06-27 Thread Heligon Sandra

Thanks for your help, if I understand your explanation,
the ServletContextListener is the best solution.
But this case needs to have a servlet 2.3 engine, like Tomcat 4.0.4
for instance. I read the Struts 1.1 used JSP1.1 and Servlet2.2
but it works with container2.3. Are they downsides to mixing
servlet specifications? It is dangerous if we have to change servlet
engine and that the new engine doesn't support servlet2.3, isn't ?
 
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: 27 June 2002 17:43
To: Struts Users Mailing List
Subject: Re: ServletContextListener vs ActionServlet/RequestProcessor
sub clas sing




On Thu, 27 Jun 2002, Heligon Sandra wrote:

 Date: Thu, 27 Jun 2002 11:09:47 +0200
 From: Heligon Sandra [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: ServletContextListener vs ActionServlet/RequestProcessor sub
 clas sing


   I would like to add comments on my previous message about
 ServletContextListener and
   ActionServlet sub classing. I read that with Struts1.1 it is bad to
 create ActionServlet subclass ,
   because a new class RequestProcessor has been added.
   So my new question is, single initialisations (as database
 connection or ORB initialisation)
   must be done in ServletContextListener class
   or RequestProcessor sub classing (in this case which method use ?, I
 don't look any init() method).


See previous response.

Note that the Struts PlugIn API in 1.1 is designed to replace the need to
subclass ActionServlet if the *only* thing you need to do is add some
extra initialization stuff.  It has the same advantages (runs under
Servlet 2.2 environments) and disadvantages (lifecycle is not guaranteed)
as overriding init() and destroy() on ActionServlet itself.

   I don't understand why the RequestProcessor has been created ? Do
 this class implement new
   features/methods in comparison with ActionServlet ?
   Or do these two classes not work in the same context ? For example a
 RequestProcessor  is
   associated to a single application whereas an ActionServlet instance
 can be shared between several
   applications ?
   In this case we can yet need to subclass the ActionServlet class.
   Has somebody an example ? I work on a little web application and I
 don't understand well the
   notion of sub-application or multiple applications and the
 difference with multiple Action
   instances.


It was created so that advanced users could have different request
processing lifecycles for different sub-applications if they need them.
For the vast majority of Struts developers, you can just forget that this
thing even exists.

Sub-applications are not well documented yet (that is being worked on),
but the basic idea is that you can have multiple independent
struts-config.xml files in the same webapp, sharing the same controller
servlet underneath.  Sub-applications are distinguished by a prefix, so
you might have context-relative requests like /catalog/showCategory.do
and /checkout/acceptCreditCard.do served by different subapps.

This will be explained better (with examples) in the final docs.

   Thanks in advance.
   Sandra


Craig


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

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




Looking for Senior Struts Mentors

2002-06-27 Thread @Basebeans.com

Subject: Looking for Senior Struts Mentors
From: seniormentor2002 seniormentor2002@yahoo.com
 ===
Looking for Senior Struts Mentors
If you are looking for a good position or contract, and you have Struts 
experience and know related technologies, like SQL,  please send resume 
to [EMAIL PROTECTED] and note your availability. Excellent 
communications required, sample past articles a plus; no Visa.


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




RE: ServletContextListener vs ActionServlet/RequestProcessor subclassing

2002-06-27 Thread Craig R. McClanahan



On Thu, 27 Jun 2002, Heligon Sandra wrote:

 Date: Thu, 27 Jun 2002 18:10:43 +0200
 From: Heligon Sandra [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: ServletContextListener vs ActionServlet/RequestProcessor
 subc lassing

 Thanks for your help, if I understand your explanation,
 the ServletContextListener is the best solution.
 But this case needs to have a servlet 2.3 engine, like Tomcat 4.0.4
 for instance. I read the Struts 1.1 used JSP1.1 and Servlet2.2
 but it works with container2.3. Are they downsides to mixing
 servlet specifications? It is dangerous if we have to change servlet
 engine and that the new engine doesn't support servlet2.3, isn't ?


Struts will work fine with either Servlet 2.2 / JSP 1.1 containers, or
with Servlet 2.3 / JSP 1.2 containers, so you can choose whichever kind
meets your other needs.

Obviously, if you use a Servlet 2.3 feature, you will make it impossible
to use a container that only supports Servlet 2.2, so you have to make a
tradeoff decision.  However, things like ServletContextListener (added in
Servlet 2.3) will work on any other Servlet 2.3 container as well.

If you cannot (or do not want to) use a Servlet 2.3 container, then you
cannot use ServletContextListener and need to use the previous approach.

Craig


 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: 27 June 2002 17:43
 To: Struts Users Mailing List
 Subject: Re: ServletContextListener vs ActionServlet/RequestProcessor
 sub clas sing




 On Thu, 27 Jun 2002, Heligon Sandra wrote:

  Date: Thu, 27 Jun 2002 11:09:47 +0200
  From: Heligon Sandra [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
  Subject: ServletContextListener vs ActionServlet/RequestProcessor sub
  clas sing
 
 
  I would like to add comments on my previous message about
  ServletContextListener and
  ActionServlet sub classing. I read that with Struts1.1 it is bad to
  create ActionServlet subclass ,
  because a new class RequestProcessor has been added.
  So my new question is, single initialisations (as database
  connection or ORB initialisation)
  must be done in ServletContextListener class
  or RequestProcessor sub classing (in this case which method use ?, I
  don't look any init() method).
 

 See previous response.

 Note that the Struts PlugIn API in 1.1 is designed to replace the need to
 subclass ActionServlet if the *only* thing you need to do is add some
 extra initialization stuff.  It has the same advantages (runs under
 Servlet 2.2 environments) and disadvantages (lifecycle is not guaranteed)
 as overriding init() and destroy() on ActionServlet itself.

  I don't understand why the RequestProcessor has been created ? Do
  this class implement new
  features/methods in comparison with ActionServlet ?
  Or do these two classes not work in the same context ? For example a
  RequestProcessor  is
  associated to a single application whereas an ActionServlet instance
  can be shared between several
  applications ?
  In this case we can yet need to subclass the ActionServlet class.
  Has somebody an example ? I work on a little web application and I
  don't understand well the
  notion of sub-application or multiple applications and the
  difference with multiple Action
  instances.
 

 It was created so that advanced users could have different request
 processing lifecycles for different sub-applications if they need them.
 For the vast majority of Struts developers, you can just forget that this
 thing even exists.

 Sub-applications are not well documented yet (that is being worked on),
 but the basic idea is that you can have multiple independent
 struts-config.xml files in the same webapp, sharing the same controller
 servlet underneath.  Sub-applications are distinguished by a prefix, so
 you might have context-relative requests like /catalog/showCategory.do
 and /checkout/acceptCreditCard.do served by different subapps.

 This will be explained better (with examples) in the final docs.

  Thanks in advance.
  Sandra
 

 Craig


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

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




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




Dynamic form construction

2002-06-27 Thread Rodrigo Paes

I have the following problem:
I have two forms.
The first form has a field which contains the numbers of itens desired for 
user.
The second form will be constructed based on the numbers of itens entered 
in the first.

In struts is very easy to write the first form bean, ie:
FirstFormBean.java

 private String numberOfItens;

 public void setNumberOfItens(String numberOfItens){
 this.numberOfItens = numberOfItens
 }

 public String getNumberOfItens(){
 return this.numberOfItens;
 }



But i don't know how to write a bean for the second form!

Can someone help me??

Below is a 'conceptual' snippet:



Page one.jsp

 ...
 Number of itens: [ text ]
 ...


Page two.jsp

 ...

 for ( i = 0 ; i  number of itens ; i++) {

 Title  : [ Text ]
 Description: [ Text ]
 Status : [ Radio]
 }

 ...



Rodrigo Paes
Ciência da Computação - UFAL
Messenger - [EMAIL PROTECTED]
ICQ - 85921785


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Tag Attribute - Pulling Values from Beans at JSP

2002-06-27 Thread Jacob Hookom

I'm writing a tag to extend data being iterated over on a page.  If I
wish to pull data from that bean, are there methods within struts that I
can use to extend into my own tag that would allow me to do:
value=beanName.property scope=page ?

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.371 / Virus Database: 206 - Release Date: 6/13/2002
 


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




Is ActionMappings shared by all the servlets ?

2002-06-27 Thread olschmeltzer


-- Envoyée par Olivier Schmeltzer/QVI/GRAF/FR le
27/06/2002 17:44 ---


Olivier Schmeltzer
24/06/2002 15:58

Pour : [EMAIL PROTECTED]
cc :
Objet : Is ActionMappings shared by all the servlets ?

Hi !

I am very confused by what is taking place inside my app.
To separate different business logics, I am using two different servlets,
both managed by Struts (version 1.0.2, I have to precise) inside the same
webapp. To do this, I specified two different struts-config.xml files
inside my web.xml description file. The 'home' servlet (extension *.home)
has a home-struts-config.xml file ; the 'logon' servlet (extension *.logon)
has a logon-struts-config.xml file.
When I request a 'logon' action, everything is doing OK ; I request then a
'home' action : still OK. When I am requesting the previous logon action, I
have an error that comes from the fact that the ActionMappings instance
that the controller servlet is using is the home one. So, of course, the
mappings don't match and I can't retrieve an action class for this mapping.
How is this possible ? Are these instances shared in some way ? I don't
think so since two instances have been created but at some point there is a
mismatch.
Does this problem come from my using two different servlets with Struts
inside the same webapp ?
Thx for any help !

Olivier Schmeltzer






---

Les données et renseignements contenus dans ce message sont personnels, confidentiels 
et secrets. Ce message est adressé à l'individu ou l'entité dont les coordonnées 
figurent ci-dessus. Si vous n'êtes pas le bon destinataire, nous vous demandons de ne 
pas lire, copier, utiliser ou divulguer cette communication. Nous vous prions de 
notifier cette erreur à l'expéditeur et d'effacer immediatement cette communication de 
votre système.

The information contained in this message is privileged, confidential, and protected 
from disclosure. This message is intended for the individual or entity adressed 
herein. If you are not the intended recipient, please do not read, copy, use or 
disclose this communication to others ;also please notify the sender by replying to 
this message, and then delete it from your system.


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




get indexed property

2002-06-27 Thread fabrice dewasmes

Hi all !

i'm not sure if i have to post this on struts or commons list but anyway
here's my question :

I want to make a table of radio buttons with Struts 1.1 . Each line is
independant of the others. The lines ar contained in a collection so i use
the logic:iterate tag. I followed Larry Maturo's Struts whitepaper for doing
this so i used the indexed property of the html:radio tag. here's what it
gives :

logic:iterate id=loggerList name=loggingForm property=loggerList
  tr
tdbean:write name=loggerList property=name filter=true//td
tdhtml:radio name=loggerList property=level value=DEBUG
indexed=true//td
tdhtml:radio name=loggerList property=level value=INFO
indexed=true//td
tdhtml:radio name=loggerList property=level value=WARN
indexed=true//td
tdhtml:radio name=loggerList property=level value=ERROR
indexed=true//td
tdhtml:radio name=loggerList property=level value=FATAL
indexed=true//td
  /tr
/logic:iterate

and here's the form bean code :

  public void setLoggerList(java.util.ArrayList loggerList) {
this.loggerList = loggerList;
  }
  public java.util.ArrayList getLoggerList() {
return loggerList;
  }
  public LoggerBean getLoggerList(int index){
return (LoggerBean)this.loggerList.get(index);
  }
  public void setLoggerList(int index,LoggerBean bean){
loggerList.set(index,bean);
  }
  private java.util.ArrayList loggerList;

where loggerList is a collection of my form bean. The problem is : i'm able
to get the proper loggerList collection fulfilled in my action class only if
make the scope of the form bean be 'session'. If the scope is set to
'request' the collection comes out to be null. however making the scope
'session' gives the correctly filled collection (with the user input).

am I doing something wrong or is there something special to do in the form
bean ?

thanks

Fabrice DEWASMES


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




RE: ServletContextListener vs ActionServlet/RequestProcessor subc lassing

2002-06-27 Thread Heligon Sandra

I need to trace when the application and new client-browsers start-up or
stop.
I think so that the ServletContextListener and SessionListener are really
the best solution.
Do you know if a lot of servlet engines don't support servlet2.3?
I look for summary on the web but I don't find. 
We have chose to work with Tomcat and Tomcat 4.0.4 supports
servlet 2.3 specifications but we don't know how the future will be?

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: 27 June 2002 18:19
To: Struts Users Mailing List
Subject: RE: ServletContextListener vs ActionServlet/RequestProcessor
subc lassing




On Thu, 27 Jun 2002, Heligon Sandra wrote:

 Date: Thu, 27 Jun 2002 18:10:43 +0200
 From: Heligon Sandra [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: ServletContextListener vs ActionServlet/RequestProcessor
 subc lassing

 Thanks for your help, if I understand your explanation,
 the ServletContextListener is the best solution.
 But this case needs to have a servlet 2.3 engine, like Tomcat 4.0.4
 for instance. I read the Struts 1.1 used JSP1.1 and Servlet2.2
 but it works with container2.3. Are they downsides to mixing
 servlet specifications? It is dangerous if we have to change servlet
 engine and that the new engine doesn't support servlet2.3, isn't ?


Struts will work fine with either Servlet 2.2 / JSP 1.1 containers, or
with Servlet 2.3 / JSP 1.2 containers, so you can choose whichever kind
meets your other needs.

Obviously, if you use a Servlet 2.3 feature, you will make it impossible
to use a container that only supports Servlet 2.2, so you have to make a
tradeoff decision.  However, things like ServletContextListener (added in
Servlet 2.3) will work on any other Servlet 2.3 container as well.

If you cannot (or do not want to) use a Servlet 2.3 container, then you
cannot use ServletContextListener and need to use the previous approach.

Craig


 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: 27 June 2002 17:43
 To: Struts Users Mailing List
 Subject: Re: ServletContextListener vs ActionServlet/RequestProcessor
 sub clas sing




 On Thu, 27 Jun 2002, Heligon Sandra wrote:

  Date: Thu, 27 Jun 2002 11:09:47 +0200
  From: Heligon Sandra [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
  Subject: ServletContextListener vs ActionServlet/RequestProcessor sub
  clas sing
 
 
  I would like to add comments on my previous message about
  ServletContextListener and
  ActionServlet sub classing. I read that with Struts1.1 it is bad to
  create ActionServlet subclass ,
  because a new class RequestProcessor has been added.
  So my new question is, single initialisations (as database
  connection or ORB initialisation)
  must be done in ServletContextListener class
  or RequestProcessor sub classing (in this case which method use ?, I
  don't look any init() method).
 

 See previous response.

 Note that the Struts PlugIn API in 1.1 is designed to replace the need to
 subclass ActionServlet if the *only* thing you need to do is add some
 extra initialization stuff.  It has the same advantages (runs under
 Servlet 2.2 environments) and disadvantages (lifecycle is not guaranteed)
 as overriding init() and destroy() on ActionServlet itself.

  I don't understand why the RequestProcessor has been created ? Do
  this class implement new
  features/methods in comparison with ActionServlet ?
  Or do these two classes not work in the same context ? For example a
  RequestProcessor  is
  associated to a single application whereas an ActionServlet instance
  can be shared between several
  applications ?
  In this case we can yet need to subclass the ActionServlet class.
  Has somebody an example ? I work on a little web application and I
  don't understand well the
  notion of sub-application or multiple applications and the
  difference with multiple Action
  instances.
 

 It was created so that advanced users could have different request
 processing lifecycles for different sub-applications if they need them.
 For the vast majority of Struts developers, you can just forget that this
 thing even exists.

 Sub-applications are not well documented yet (that is being worked on),
 but the basic idea is that you can have multiple independent
 struts-config.xml files in the same webapp, sharing the same controller
 servlet underneath.  Sub-applications are distinguished by a prefix, so
 you might have context-relative requests like /catalog/showCategory.do
 and /checkout/acceptCreditCard.do served by different subapps.

 This will be explained better (with examples) in the final docs.

  Thanks in advance.
  Sandra
 

 Craig


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

Struts V1.1B1 bug

2002-06-27 Thread Toni Nehme

Hi,



I download struts V1.1B1 and tried to use it in my project.


I got the following Errors:


Parsing of JSP File '/index.jsp' failed:

/index.jsp(2): Error in using tag library uri='/struts-bean.tld' 
prefix='bean': The Tag class 'org.apache.struts.taglib.bean.MessageTag' has 
no setter method corresponding to TLD declared attribute 'name', (JSP 1.1 
spec, 5.4.1)
probably occurred due to an error in /index.jsp line 2:
%@ taglib uri=/struts-bean.tld prefix=bean %





I was using Struts 1.0.2.


Please let me know if this is a Struts bug.


Regards.





From: Craig R. McClanahan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: AW: How can I access a global forward within a struts action?
Date: Thu, 27 Jun 2002 08:52:38 -0700 (PDT)



On Thu, 27 Jun 2002, Dirk Storck wrote:

  Date: Thu, 27 Jun 2002 17:06:30 +0200
  From: Dirk Storck [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Subject: AW: How can I access a global forward within a struts action?
 
  Thanks !
  and about that Controller?
 

Do you mean the configuration information?  In 1.1 the ApplicationConfig
object for each sub-application is available as a servlet context
attribute (the default one being under Action.APPLICATION_KEY).  In
addition, the ApplicationConfig for the current request is stored under
the same key as a request attribute.

This object, and the properties it contains, hold essentially all of the
information that was loaded from a struts-config.xml file.

I don't know quite what you mean by defining a controller for an action.

Craig


  -Ursprüngliche Nachricht-
  Von: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 27. Juni 2002 16:44
  An: 'Struts Users Mailing List'
  Betreff: RE: How can I access a global forward within a struts action?
 
 
  Accessing a global forward is easy.  Access it the same as you would a 
local
  forward.
  return mapping.findForward(globalForwardName);
  Hope that helps.
 
  ~ Keith
 
 
  -Original Message-
  From: Dirk Storck [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 27, 2002 9:58 AM
  To: 'Struts User (E-Mail)'
  Subject: How can I access a global forward within a struts action?
 
 
  How can I access a global forward within a struts action?
  How do I find more about defining an controller for an action like it 
seem
  to be possible in struts1.1?
 
 
  Many thanks!
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 
 


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


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Struts-Tiles with other Struts Tags?

2002-06-27 Thread Jerry Jalenak

I'm in the process of developing my first tiles-based application, and have
come across the following issues.

1. In my header.jsp, I have the following code snippet:

logic:present name=bApplication
img border=0 src=/images/logo.jpg
/logic:present

  I know the 'bApplication' bean does NOT exist as I haven't even coded it
yet, but the image is still being rendered on the final page.

2. In place of the img tag above, I tried to use the html:img border=0
src=/images/logo.jpg / form.  All of my images are 'owned' by my Apache
webserver.  I'm not 100% sure, but I think that when the html:img tag
rewrites the URL for the image, Apache can no longer find it since I don't
get the image displayed.

Any ideas/comments/suggestions are appreciated, as always.

Jerry

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



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




RE: How do I handle (ignore) multiple submits from one client?

2002-06-27 Thread James Mitchell

Struts Action class handles this for you.

Try searching for 'token'


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://struts-atlanta.open-tools.org

 -Original Message-
 From: Chris Means [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 27, 2002 10:16 AM
 To: Struts Users Mailing List
 Cc: Developer
 Subject: RE: How do I handle (ignore) multiple submits from one client?


 Hi,

 I did search the archive before I submitted my question.

 I used your suggested search string (minus typo g), which did
 turn up two
 threads I hadn't run across (thanks!), however, neither of them seemed to
 fit my particular problem.

 However, I have been able to get an approach to work (having a busy flag
 on the session), I was confused about the fact that I was seeing
 Connection
 reset by peer: socket write error exceptions in the Servlet console
 window...but then I realized they would be expected under the
 circumstances.

 Thanks for your help.

 -Chris

  -Original Message-
  From: Developer [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 27, 2002 7:44 AM
  To: Struts Users Mailing List; [EMAIL PROTECTED]
  Subject: Re: How do I handle (ignore) multiple submits from one client?
 
 
  Hi Chris,
 
  That's been discussed on this list many times, I have not paid much
  attention to it but I know it can be found in the archives at
  http://www.mail-archive.com/struts-user%40jakarta.apache.org/.
 
  There you can do a search on miltiple submits.  Please post the thread
  that was most helpful to you in solving your problem.
 
  Thank you.
 
 


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



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




Re: Struts V1.1B1 bug

2002-06-27 Thread Toni Nehme

Please disregard my question.




From: Toni Nehme [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Struts V1.1B1 bug
Date: Thu, 27 Jun 2002 12:33:44 -0400

Hi,



I download struts V1.1B1 and tried to use it in my project.


I got the following Errors:


Parsing of JSP File '/index.jsp' failed:

/index.jsp(2): Error in using tag library uri='/struts-bean.tld'
prefix='bean': The Tag class 'org.apache.struts.taglib.bean.MessageTag' has
no setter method corresponding to TLD declared attribute 'name', (JSP 1.1
spec, 5.4.1)
probably occurred due to an error in /index.jsp line 2:
%@ taglib uri=/struts-bean.tld prefix=bean %





I was using Struts 1.0.2.


Please let me know if this is a Struts bug.


Regards.





From: Craig R. McClanahan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: AW: How can I access a global forward within a struts action?
Date: Thu, 27 Jun 2002 08:52:38 -0700 (PDT)



On Thu, 27 Jun 2002, Dirk Storck wrote:

  Date: Thu, 27 Jun 2002 17:06:30 +0200
  From: Dirk Storck [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Subject: AW: How can I access a global forward within a struts action?
 
  Thanks !
  and about that Controller?
 

Do you mean the configuration information?  In 1.1 the ApplicationConfig
object for each sub-application is available as a servlet context
attribute (the default one being under Action.APPLICATION_KEY).  In
addition, the ApplicationConfig for the current request is stored under
the same key as a request attribute.

This object, and the properties it contains, hold essentially all of the
information that was loaded from a struts-config.xml file.

I don't know quite what you mean by defining a controller for an action.

Craig


  -Ursprüngliche Nachricht-
  Von: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 27. Juni 2002 16:44
  An: 'Struts Users Mailing List'
  Betreff: RE: How can I access a global forward within a struts action?
 
 
  Accessing a global forward is easy.  Access it the same as you would a
local
  forward.
  return mapping.findForward(globalForwardName);
  Hope that helps.
 
  ~ Keith
 
 
  -Original Message-
  From: Dirk Storck [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 27, 2002 9:58 AM
  To: 'Struts User (E-Mail)'
  Subject: How can I access a global forward within a struts action?
 
 
  How can I access a global forward within a struts action?
  How do I find more about defining an controller for an action like it
seem
  to be possible in struts1.1?
 
 
  Many thanks!
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 


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


_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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



_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




how to stop struts logging

2002-06-27 Thread Virga

how to stop struts action from flooding my server console ?
i have tried to edit my web.xml
and modify load-on-startup1/load-on-startup to
load-on-startup-1/load-on-startup
but the Action servlet doesn't work, off course ! because action servlet has
to be initialized every time the server starts.
my point is how to stop struts action from logging too much. i got 5
projects using struts framework, each time it starts i got log messages
flooding out my console !
any ideas?

VR


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




No bean found under attribute key

2002-06-27 Thread rainer juenger

Hi,

When I change the scope in the strus-config.xml form an action to session I
am receiving the below exception.
With request-scoupe everything works just fine! So I cannot understand why
once the Bean can be found and when the scoupe is session it cannot?

My setup is as follows:

struts-config.xml:
.
.
form-bean  name=trinkwasserInputForm
type=trinkwasser.TrinkwasserInputForm/
.
.
 action  path=/trinkwasserform
 type=trinkwasser.TrinkwasserInputAction
 name=trinkwasserInputForm
 scope=request
 input=/application/datensteckbriefe/forms/form_trinkwasser.jsp
 forward name=success
path=/application/datensteckbriefe/forms/form_trinkwasser_preview.jsp/
  /action
.
.
thanks für your help!

Rainer

2002-06-27 19:25:47 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
javax.servlet.ServletException: No bean found under attribute key
trinkwasserInputForm
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:457)
 at
org.apache.jsp.form_0005ftrinkwasser$jsp._jspService(form_0005ftrinkwasser$j
sp.java:596)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
 at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97
2)
 at
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.j
ava:947)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:245)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
 at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97
2)
 at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

Re: how to stop struts logging

2002-06-27 Thread emmanuel.boudrant

Set init-parameters detail and debug at 0.


 --- Virga [EMAIL PROTECTED] a écrit : 
how to stop struts action from flooding my server
 console ?
 i have tried to edit my web.xml
 and modify load-on-startup1/load-on-startup to
 load-on-startup-1/load-on-startup
 but the Action servlet doesn't work, off course !
 because action servlet has
 to be initialized every time the server starts.
 my point is how to stop struts action from logging
 too much. i got 5
 projects using struts framework, each time it starts
 i got log messages
 flooding out my console !
 any ideas?
 
 VR
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




JSP Exception

2002-06-27 Thread SATISH.T


Hi I was trying to throw a jsp , with quite a few logic:equal tags in
the jsp , I get the error 

JSP Exception :

“No selector attribute (cookie/header/name/parameter) was specified”

 

Jun 27, 2002 11:11:35 PM IST Error HTTP
[WebAppServletContext(3073299,dss

,/dss)] Root cause of ServletException

javax.servlet.jsp.JspException: No selector attribute
(cookie/header/name/parame

ter) was specified

at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:1

49)

at
jsp_servlet._jsp.__userresultlist._jspService(__userresultlist.java:1

88)

at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)

at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm

pl.java:265)

at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm

pl.java:200)

at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat

cherImpl.java:241)

at
org.apache.struts.action.ActionServlet.processActionForward(ActionSer

vlet.java:1759)

at
com.jiris.dss.common.DSSActionServlet.process(DSSActionServlet.java:2

05)

at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)

 

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm

pl.java:265)

at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm

pl.java:200)

at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat

cherImpl.java:241)

at
org.apache.struts.action.ActionServlet.processActionForward(ActionSer

vlet.java:1759)

at
com.jiris.dss.common.DSSActionServlet.process(DSSActionServlet.java:2

05)

at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)

 

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm

pl.java:265)

at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm

pl.java:200)

at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe

rvletContext.java:2495)

at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm

pl.java:2204)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)



 

Any idea what might be wrong, with the jsp, 

Regards,

Satish




**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


Re: how to stop struts logging

2002-06-27 Thread Joe Germuska

Struts uses the commons-logging framework for logging, so you can 
find the details about how to control it in that project.

http://jakarta.apache.org/commons/logging.html

The API doc includes explanations of how to set the logging 
implementation that you want (you could set it to the NoOpLog). 
Setting the logging level is depending on which implementation you 
use -- if you're using Log4j then you need to use Log4j specific 
controls; if you're using Commons SimpleLog, the API doc for that 
class includes instructions on what properties control the logging 
level.

Joe

At 7:39 PM +0200 2002/06/27, Virga wrote:
how to stop struts action from flooding my server console ?
i have tried to edit my web.xml
and modify load-on-startup1/load-on-startup to
load-on-startup-1/load-on-startup
but the Action servlet doesn't work, off course ! because action servlet has
to be initialized every time the server starts.
my point is how to stop struts action from logging too much. i got 5
projects using struts framework, each time it starts i got log messages
flooding out my console !
any ideas?

VR


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


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

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




Struts / CTLX / integration into Ultradev fails: Missing port in JNDIrequest? localhost

2002-06-27 Thread Krause, Oliver {POYD~Kaiseraugst}

hi,

probs with installing resp. running the ultradev extension:

(tomcat 4.04, struts 1.02, ultradev extension from 06.26.02, ultradev 4.01)
I did everything described in the documentation 
http://jakarta.apache.org/taglibs/doc/ultradev4-doc/

Now I am able to open this window 'use tag libs' in dreamweaver and select one of this 
three tlds (struts, struts-bean, struts-logic). Now I want to click 'Use Tag 
Library'... Then it takes some time and then the error message 'Tag library can not be 
found on server' appears...;-(

In the tomcat console I can see that a jndi request is done to the address:  
jndi:/localhost/TLDParser/... 
I guess the port is missing??!! Where can I tell whom to use 'localhost:8080'? I 
looked within the useTagLib.js and inserted the IP address instead but this only 
seemes to have an effect to filling the poplist with the tld overview, no effect on 
the 'Use Tag Libs' 

Does jndi use the jdk settings? How does my box / tomcat (or who else...) know this 
localhost instead of localhost:8080

THX 4 help!
o


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




Re: Is ActionMappings shared by all the servlets ?

2002-06-27 Thread Craig R. McClanahan

Struts does *not* support multiple controller servlets in a single webapp.
There are many assumptions throughout the code that there is only one.

Craig


On Thu, 27 Jun 2002 [EMAIL PROTECTED] wrote:

 Date: Thu, 27 Jun 2002 17:45:15 +0200
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Is ActionMappings shared by all the servlets ?


 -- Envoyée par Olivier Schmeltzer/QVI/GRAF/FR le
 27/06/2002 17:44 ---


 Olivier Schmeltzer
 24/06/2002 15:58

 Pour : [EMAIL PROTECTED]
 cc :
 Objet : Is ActionMappings shared by all the servlets ?

 Hi !

 I am very confused by what is taking place inside my app.
 To separate different business logics, I am using two different servlets,
 both managed by Struts (version 1.0.2, I have to precise) inside the same
 webapp. To do this, I specified two different struts-config.xml files
 inside my web.xml description file. The 'home' servlet (extension *.home)
 has a home-struts-config.xml file ; the 'logon' servlet (extension *.logon)
 has a logon-struts-config.xml file.
 When I request a 'logon' action, everything is doing OK ; I request then a
 'home' action : still OK. When I am requesting the previous logon action, I
 have an error that comes from the fact that the ActionMappings instance
 that the controller servlet is using is the home one. So, of course, the
 mappings don't match and I can't retrieve an action class for this mapping.
 How is this possible ? Are these instances shared in some way ? I don't
 think so since two instances have been created but at some point there is a
 mismatch.
 Does this problem come from my using two different servlets with Struts
 inside the same webapp ?
 Thx for any help !

 Olivier Schmeltzer






 ---

 Les données et renseignements contenus dans ce message sont personnels, 
confidentiels et secrets. Ce message est adressé à l'individu ou l'entité dont les 
coordonnées figurent ci-dessus. Si vous n'êtes pas le bon destinataire, nous vous 
demandons de ne pas lire, copier, utiliser ou divulguer cette communication. Nous 
vous prions de notifier cette erreur à l'expéditeur et d'effacer immediatement cette 
communication de votre système.

 The information contained in this message is privileged, confidential, and protected 
from disclosure. This message is intended for the individual or entity adressed 
herein. If you are not the intended recipient, please do not read, copy, use or 
disclose this communication to others ;also please notify the sender by replying to 
this message, and then delete it from your system.


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




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




RE: how to stop struts logging

2002-06-27 Thread Mark Nichols

I think what you want is:

servlet
[...snip...]
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namedetail/param-name
param-value0/param-value
/init-param
[...snip...]
/servlet


/mark

-Original Message-
From: Virga [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 12:39 PM
To: Struts Users Mailing List
Subject: how to stop struts logging


how to stop struts action from flooding my server console ?
i have tried to edit my web.xml
and modify load-on-startup1/load-on-startup to
load-on-startup-1/load-on-startup
but the Action servlet doesn't work, off course ! because action servlet has
to be initialized every time the server starts.
my point is how to stop struts action from logging too much. i got 5
projects using struts framework, each time it starts i got log messages
flooding out my console !
any ideas?

VR


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



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




RE: Struts-Tiles with other Struts Tags?

2002-06-27 Thread Jerry Jalenak

Never mind.  Didn't realize that you had to have the %@ taglib... %
definitions at the top of each tiles component.  Sorry for the post.

Jerry

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 11:38 AM
To: '[EMAIL PROTECTED]'
Subject: Struts-Tiles with other Struts Tags?


I'm in the process of developing my first tiles-based application, and have
come across the following issues.

1. In my header.jsp, I have the following code snippet:

logic:present name=bApplication
img border=0 src=/images/logo.jpg
/logic:present

  I know the 'bApplication' bean does NOT exist as I haven't even coded it
yet, but the image is still being rendered on the final page.

2. In place of the img tag above, I tried to use the html:img border=0
src=/images/logo.jpg / form.  All of my images are 'owned' by my Apache
webserver.  I'm not 100% sure, but I think that when the html:img tag
rewrites the URL for the image, Apache can no longer find it since I don't
get the image displayed.

Any ideas/comments/suggestions are appreciated, as always.

Jerry

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



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



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




No bean found under attribute key

2002-06-27 Thread rainer jünger

Hi,

When I change the scope in the strus-config.xml form an action to session I
am receiving the below exception.
With request-scoupe everything works just fine! So I cannot understand why
once the Bean can be found and when the scoupe is session it cannot?

My setup is as follows:

struts-config.xml:
.
.
form-bean  name=trinkwasserInputForm
type=trinkwasser.TrinkwasserInputForm/
.
.
 action  path=/trinkwasserform
 type=trinkwasser.TrinkwasserInputAction
 name=trinkwasserInputForm
 scope=request
 input=/application/datensteckbriefe/forms/form_trinkwasser.jsp
 forward name=success
path=/application/datensteckbriefe/forms/form_trinkwasser_preview.jsp/
  /action
.
.
thanks für your help!

Rainer

2002-06-27 19:25:47 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
javax.servlet.ServletException: No bean found under attribute key
trinkwasserInputForm
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:457)
 at
org.apache.jsp.form_0005ftrinkwasser$jsp._jspService(form_0005ftrinkwasser$j
sp.java:596)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
 at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97
2)
 at
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.j
ava:947)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:245)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
 at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97
2)
 at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

problem switching apps.. Form object is not getting passed

2002-06-27 Thread Bhattad, Nilesh

Hello 

While I switch from one application to another, a new Form object is
created. Is there a way to use the Form object which is created during the
Request process of previous application page?

In my struts-config.xml, I have defined 2 different actions namely index and
core. From index.jsp which belongs to index application, I want to switch to
home.jsp which belongs to core application.

In home.jsp, I'm getting a Form object which was generated for index app.

This question might have been discussed several times. Still could anyone
please point me to the correct thread where I can get some information in
order to solve this problem,

Thanks in advance

- Nilesh

form-beans
form-bean  name=index
type=com.inet.struts.action.DynaForm
/form-bean
form-bean  name=core
type=com.inet.struts.action.DynaForm
/form-bean
/form-beans



action-mappings

actionpath=/index
   type=com.inet.index.action.IndexActionHandler
   name=index
   scope=request
   
   forward name=index  path=/index.jsp/
   forward name=home   path=/home.jsp/
/action

actionpath=/core
   type=com.inet.struts.action.ActionHandler
   name=core
   scope=request
   forward name=home path=/home.jsp/
   forward name=testbc   path=/testbc.jsp/
/action

action-mappings


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




RE: ServletContextListener vs ActionServlet/RequestProcessor subc lassing

2002-06-27 Thread Craig R. McClanahan



On Thu, 27 Jun 2002, Heligon Sandra wrote:

 Date: Thu, 27 Jun 2002 18:33:48 +0200
 From: Heligon Sandra [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: ServletContextListener vs ActionServlet/RequestProcessor
 subc  lassing

 I need to trace when the application and new client-browsers start-up or
 stop.
 I think so that the ServletContextListener and SessionListener are really
 the best solution.
 Do you know if a lot of servlet engines don't support servlet2.3?
 I look for summary on the web but I don't find.
 We have chose to work with Tomcat and Tomcat 4.0.4 supports
 servlet 2.3 specifications but we don't know how the future will be?


FYI, any J2EE 1.3 application server, by definition, supports Servlet 2.3
and JSP 1.2.   A list of J2EE licensees is available at:

  http://java.sun.com/j2ee/licensees.html

You'd have to check with each vendor on their plans, but I imagine that
all of these companies either already have, or will have, J2EE 1.3
products.

Craig

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: 27 June 2002 18:19
 To: Struts Users Mailing List
 Subject: RE: ServletContextListener vs ActionServlet/RequestProcessor
 subc lassing




 On Thu, 27 Jun 2002, Heligon Sandra wrote:

  Date: Thu, 27 Jun 2002 18:10:43 +0200
  From: Heligon Sandra [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Subject: RE: ServletContextListener vs ActionServlet/RequestProcessor
  subc lassing
 
  Thanks for your help, if I understand your explanation,
  the ServletContextListener is the best solution.
  But this case needs to have a servlet 2.3 engine, like Tomcat 4.0.4
  for instance. I read the Struts 1.1 used JSP1.1 and Servlet2.2
  but it works with container2.3. Are they downsides to mixing
  servlet specifications? It is dangerous if we have to change servlet
  engine and that the new engine doesn't support servlet2.3, isn't ?
 

 Struts will work fine with either Servlet 2.2 / JSP 1.1 containers, or
 with Servlet 2.3 / JSP 1.2 containers, so you can choose whichever kind
 meets your other needs.

 Obviously, if you use a Servlet 2.3 feature, you will make it impossible
 to use a container that only supports Servlet 2.2, so you have to make a
 tradeoff decision.  However, things like ServletContextListener (added in
 Servlet 2.3) will work on any other Servlet 2.3 container as well.

 If you cannot (or do not want to) use a Servlet 2.3 container, then you
 cannot use ServletContextListener and need to use the previous approach.

 Craig


  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
  Sent: 27 June 2002 17:43
  To: Struts Users Mailing List
  Subject: Re: ServletContextListener vs ActionServlet/RequestProcessor
  sub clas sing
 
 
 
 
  On Thu, 27 Jun 2002, Heligon Sandra wrote:
 
   Date: Thu, 27 Jun 2002 11:09:47 +0200
   From: Heligon Sandra [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
   To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
   Subject: ServletContextListener vs ActionServlet/RequestProcessor sub
   clas sing
  
  
 I would like to add comments on my previous message about
   ServletContextListener and
 ActionServlet sub classing. I read that with Struts1.1 it is bad to
   create ActionServlet subclass ,
 because a new class RequestProcessor has been added.
 So my new question is, single initialisations (as database
   connection or ORB initialisation)
 must be done in ServletContextListener class
 or RequestProcessor sub classing (in this case which method use ?, I
   don't look any init() method).
  
 
  See previous response.
 
  Note that the Struts PlugIn API in 1.1 is designed to replace the need to
  subclass ActionServlet if the *only* thing you need to do is add some
  extra initialization stuff.  It has the same advantages (runs under
  Servlet 2.2 environments) and disadvantages (lifecycle is not guaranteed)
  as overriding init() and destroy() on ActionServlet itself.
 
 I don't understand why the RequestProcessor has been created ? Do
   this class implement new
 features/methods in comparison with ActionServlet ?
 Or do these two classes not work in the same context ? For example a
   RequestProcessor  is
 associated to a single application whereas an ActionServlet instance
   can be shared between several
 applications ?
 In this case we can yet need to subclass the ActionServlet class.
 Has somebody an example ? I work on a little web application and I
   don't understand well the
 notion of sub-application or multiple applications and the
   difference with multiple Action
 instances.
  
 
  It was created so that advanced users could have different request
  processing lifecycles for different sub-applications if they need them.
  

newbie html:link question

2002-06-27 Thread @Basebeans.com

Subject: newbie html:link question
From: Jeff Herald [EMAIL PROTECTED]
 ===
Hello all,

I have an html:link tag that is nested in a logic:iterate tag. I need to add
the iterate index
as a parameter to the link url. I'm having trouble referencing the page
scope variable index
from the html:link tag.What is the correct way to do this?

Here is my code snippet (right now it throws a cannot find bean page in
scope null error):

logic:iterate name=add property=subnets id=item
indexId=index
%=item% nbsp; html:link page=/admin/add.do
paramName=page paramProperty=index
paramId=indexDelete/html:linkBR
/logic:iterate

Any help would be appreciated.



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




RE: newbie html:link question

2002-06-27 Thread Regan, Patrick

I know I have used the bean:write tag (with name=index) to get at the
index.

Pat

-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 3:10 PM
To: [EMAIL PROTECTED]
Subject: newbie html:link question


Subject: newbie html:link question
From: Jeff Herald [EMAIL PROTECTED]
 ===
Hello all,

I have an html:link tag that is nested in a logic:iterate tag. I need to add
the iterate index
as a parameter to the link url. I'm having trouble referencing the page
scope variable index
from the html:link tag.What is the correct way to do this?

Here is my code snippet (right now it throws a cannot find bean page in
scope null error):

logic:iterate name=add property=subnets id=item
indexId=index
%=item% nbsp; html:link page=/admin/add.do
paramName=page paramProperty=index
paramId=indexDelete/html:linkBR
/logic:iterate

Any help would be appreciated.



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

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




Struts Date Handling

2002-06-27 Thread Regan, Patrick

What is the best way to handle dates in Struts?  If I use html:text in my
form, can I define it as a Timestamp (or Date) in my action form?  Will
struts handle the conversion automatically?  Or do I have to use Strings for
everything and do the conversion in my action or business logic layer?

Pat




Multiple Message Resources

2002-06-27 Thread Juan Alvarado \(Struts List\)

If you have the following in your struts-config.xml:

message-resources parameter=ApplicationResources/
message-resources key=CHANNELS_RESOURCE_KEY
parameter=ApplicationResourcesChannels null=false/

how do you access the second one from an action or a JSP???

MessageResources messages = getResources(request);

Returns only the first one.

Thanks in advance

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


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




Re: Multiple Message Resources

2002-06-27 Thread Craig R. McClanahan



On Thu, 27 Jun 2002, Juan Alvarado (Struts List) wrote:

 Date: Thu, 27 Jun 2002 15:45:14 -0400
 From: Juan Alvarado (Struts List) [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Struts [EMAIL PROTECTED]
 Subject: Multiple Message Resources

 If you have the following in your struts-config.xml:

   message-resources parameter=ApplicationResources/
   message-resources key=CHANNELS_RESOURCE_KEY
 parameter=ApplicationResourcesChannels null=false/

 how do you access the second one from an action or a JSP???

 MessageResources messages = getResources(request);


From an action:

  MessageResources messages = (MessageResources)
   getServlet().getServletContext().getAttribute(CHANNELS_RESOURCE_KEY);

From a JSP:

  bean:message key=foo bundle=CHANNELS_RESOURCE_KEY/

 Returns only the first one.

 Thanks in advance


Craig


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




RE: Struts V1.1B1 bug

2002-06-27 Thread James Mitchell

LOLyou know, you should be glad that Mark G. is on vacation :)

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://struts-atlanta.open-tools.org

 -Original Message-
 From: Toni Nehme [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 27, 2002 1:16 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Struts V1.1B1 bug


 Please disregard my question.




 From: Toni Nehme [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Struts V1.1B1 bug
 Date: Thu, 27 Jun 2002 12:33:44 -0400
 
 Hi,
 
 
 
 I download struts V1.1B1 and tried to use it in my project.
 
 
 I got the following Errors:
 
 
 Parsing of JSP File '/index.jsp' failed:
 -
 ---
 /index.jsp(2): Error in using tag library uri='/struts-bean.tld'
 prefix='bean': The Tag class
 'org.apache.struts.taglib.bean.MessageTag' has
 no setter method corresponding to TLD declared attribute 'name', (JSP 1.1
 spec, 5.4.1)
 probably occurred due to an error in /index.jsp line 2:
 %@ taglib uri=/struts-bean.tld prefix=bean %
 -
 ---
 
 
 
 
 I was using Struts 1.0.2.
 
 
 Please let me know if this is a Struts bug.
 
 
 Regards.
 
 
 
 
 
 From: Craig R. McClanahan [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: AW: How can I access a global forward within a
 struts action?
 Date: Thu, 27 Jun 2002 08:52:38 -0700 (PDT)
 
 
 
 On Thu, 27 Jun 2002, Dirk Storck wrote:
 
   Date: Thu, 27 Jun 2002 17:06:30 +0200
   From: Dirk Storck [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
   To: 'Struts Users Mailing List' [EMAIL PROTECTED]
   Subject: AW: How can I access a global forward within a
 struts action?
  
   Thanks !
   and about that Controller?
  
 
 Do you mean the configuration information?  In 1.1 the ApplicationConfig
 object for each sub-application is available as a servlet context
 attribute (the default one being under Action.APPLICATION_KEY).  In
 addition, the ApplicationConfig for the current request is stored under
 the same key as a request attribute.
 
 This object, and the properties it contains, hold essentially all of the
 information that was loaded from a struts-config.xml file.
 
 I don't know quite what you mean by defining a controller for
 an action.
 
 Craig
 
 
   -Ursprüngliche Nachricht-
   Von: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
   Gesendet: Donnerstag, 27. Juni 2002 16:44
   An: 'Struts Users Mailing List'
   Betreff: RE: How can I access a global forward within a
 struts action?
  
  
   Accessing a global forward is easy.  Access it the same as
 you would a
 local
   forward.
   return mapping.findForward(globalForwardName);
   Hope that helps.
  
   ~ Keith
  
  
   -Original Message-
   From: Dirk Storck [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, June 27, 2002 9:58 AM
   To: 'Struts User (E-Mail)'
   Subject: How can I access a global forward within a struts action?
  
  
   How can I access a global forward within a struts action?
   How do I find more about defining an controller for an action like it
 seem
   to be possible in struts1.1?
  
  
   Many thanks!
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
   --
   To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 _
 Join the world’s largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com


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



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




Has anyone successfully implemented Jakarta Struts 1.0.2 in iPlanet 6.5?

2002-06-27 Thread Scott P. Bartle

I have been working on this issue for the past 3 days, and I've read a
lot of questions on a variety of forums and mailing lists, but I have
yet to find a solution to this problem.  The problem I am running into
is the notorious IllegalAccessError.  Mapping the name Director to my
ActionServlet, here is what I am seeing:

Error in executing servlet Director: java.lang.IllegalAccessError: try
to access class org.apache.struts.action.AddDataSourceRule from class
org.apache.struts.action.ActionServlet
[27/Jun/2002 11:25:33:9] error: APPLOGIC-caught_exception: Caught
Exception:
java.lang.ClassCastException: java.lang.IllegalAccessError
at
com.netscape.server.servlet.servletrunner.ServletRunner.reportError(Unkn
own Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:484)

I have also tried to deploy the struts-example.war, and although it does
successfully deploy, it fails and throws the above IllegalAccessError
upon initializing the ActionServlet.

I have been out to read Matt Raible's document
(http://www.icsynergy.com/downloads/struts/strutsHowTo.html), and I have
read the Using Jakarta Struts on iPlanet Application Server
document(http://developer.iplanet.com/appserver/samples/struts/docs/stru
ts.pdf), provided by Sun--both excellent documents if you haven't read
them, yet.  Regardless of what I have tried, however, I have yet to see
a successful implementation of Jakarta Struts with iPlanet 6.5.  I get
the impression that others have had success with Jakarta Struts on prior
releases of iPlanet, so I am hoping there is an answer to this issue for
release 6.5, as well.

All ideas are welcome!!

Thanks for your help,
-spb

ps -- I am posting this on jGuru and the Struts mailing list as well.
If we find an answer to this issue, I will post the answer to all 3
lists, as well.  Thanks, again.


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




RE: html:checkbox tag does not set the checked value

2002-06-27 Thread mike . witt

Hi, I'm wondering if you followed this warning in the javadoc (for 1.0
anyway):

WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

When I didn't do this, my form thought these controls were always checked,
so that may not be the problem.  Just thought I'd throw it in.

Mike

-Original Message-
From: Toni Nehme [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 12:24 PM
To: [EMAIL PROTECTED]
Subject: html:checkbox tag does not set the checked value


Hi,


I have a class and an action and a form,
I am trying to check one of the two checkboxes and submit and
display the selected checkbox value.


The following code is in my form:

public final class TestForm extends ActionForm  {

private String chkVal = on;
private boolean isBillable = false;

public String getChkVal()
{
return (this.chkVal);
}

public void setChkVal(String _chkVal)
{
this.chkVal = _chkVal;
}

public boolean getIsBillable()
{
return isBillable;
}

public void setIsBillable(boolean billed)
{
isBillable = billed;
}

public void reset(ActionMapping mapping, HttpServletRequest request)
{
isBillable=false;
}
}


The test.jsp has the following code:

html:html
head
title
  bean:message key=welcome.title/
/title
html:base/
/head
body
html:errors/
html:form action=/test
html:checkbox property=isBillable value=chkVal/
html:submit
bean:message key=button.display/
/html:submit
   /html:form
   /body
/html:html



When I click on the button to submit the form, I tried to display the
attributes of the checkbox and they are still
isBillable=false
value=on


Does anybody know how to fix?
Or anybody knows a detailed html:checkbox with struts detailed example
to point me to it?


Thanks,,,

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


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

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




Re: Collection for ResultSet

2002-06-27 Thread Lolik Tum

ResultSet has an open connection to the database, and until you call
ResultSet.close() method or GarbageCollector collects it, it will stay open,
so you shoud copy everything into a collection, close the result set and
then put the collection on the session for JSP to access.
- Original Message -
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, June 26, 2002 1:46 PM
Subject: RE: Collection for ResultSet


 I just learned how to do this sort of database work yesterday.  Obviously
 I'm no expert, but it seems like you should just do exactly what you
 thought.  A ResultSet is generally not scrollable, so you should probably
 put the retrieved info in a collection.  Any of those database experts out
 there should correct me if I'm wrong.

 ~ Keith


 -Original Message-
 From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 26, 2002 1:40 PM
 To: [EMAIL PROTECTED]
 Subject: Collection for ResultSet


 Subject: Collection for ResultSet
 From: David Chu [EMAIL PROTECTED]
  ===
 What is the preferred method to iterate through the rows of a database
query
 from a JSP under the Struts framework?  Should I write a class that dumps
 the contents of a ResultSet into some Collection?  It seems this is a
 reoccuring problem and would have been tackled before.  Please advise on a
 preferred solution.  Thanks.


 --
 -david

 --
 David C. Chu
 America Online
 Network Tools Intern
 --



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

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



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




Session Expiry Page

2002-06-27 Thread Olikkadavath, Bobby

I am a newbie to struts.
I would like to have a single page for all session expiry. Now can I specify
this session expiry page somewhere (ex struts-config) by which it will
automatically show this page.

Thanks for the help.

Bobby




Re: Struts Date Handling

2002-06-27 Thread Michael Baldwin

It is usually better to allow your action forms to deal with most
everything as Strings.  The http request parameters are always Strings.
Users will invariably pass you dates that are not properly formatted and
which cannot be converted.

If you try to convert data types before mapping to the ActionForm, you
will be unable to handle bad formats gracefully through the use of the
ActionForm.validate() method.   Even if you use the client-side
javascript validator, users could always turn off javascript, eh?

It is a good idea to do the date conversion in the ActionForm or the
Action after the date has been validated to be a valid format.

--Michael


Regan, Patrick wrote:

Part 1.1Type: Plain Text (text/plain)



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


ActionErrors not clearing

2002-06-27 Thread Greg Lehane

Hey Folks,

  Anyone ever had problems with the ActionErrors object not clearing
itself? I've noticed that if you add an error, after which the user hits
the browsers back button to get off whatever validation error
notification page, the actionerror object doesn't clear. It just floats
about in the session until you clear it manually.

  This is potentially disasterous, as the only way to get rid of it is
to re-start the server. (If you haven't got a manual clearing mechanism
in your code)
  
  Is this a bug in struts or am I missing something?

  Thanks,

- Greg


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




RequestProcessor and forwarding to an Action

2002-06-27 Thread Jason Rosen

I would like to know the best way to forward to an action from within
RequestProcessor.processPreprocess

In my application, I would like to have a custom RequestProcessor that
checks some HttpSession attributes
before the requested Action is passed control.  If the HttpSession attribute
is in a given state, 
I would like processPreprocess to populate an ActionForm and pass control to
an Action, 
that will, in turn forward to an ActionForward.
If the HttpSession attribute is in another state, then I would allow
processPreprocess to return true so
the requested Action can take control, as usual.

I have been searching the Struts-Users Mailing List Archives and the Struts
1.1b1 Javadocs, but can't seem
to figure out the best way to pass control to an Action from the
RequestProcessor.  I was looking at 
processActionPerform, but it seems that I would then have to use
processActionCreate to get an Action reference,
and possibly even processMapping so I could use processActionCreate.  Using
these methods seems that I would make
processPreprocess perform the main controller functions that might be the
responsibility of other methods (either
within ActionServlet or RequestProcessor).


I appreciate all responses that may shed some light for me.

Thanks in advance.

Jason



Dose DynaActionForm support indexed properties?

2002-06-27 Thread Qian Wong

I'm building an application that has a list of the
same type of attribute such as:

  email address 1
  email address 2
  email address 3
   ...

in my HTML form, I have input names like email1,
email2, email3, ... emailx. My problem is how to write
form-bean section in struts-config.xml, I cannot fix
email1, email2, etc. in the form-property tag, cuz
the count of email will be dynamically changes, I
don't know what it is when deploy app. Dose
DynaActionForm support indexed properties like
get(name, index)? or some way to work around it.

thanks,

qian



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: Has anyone successfully implemented Jakarta Struts 1.0.2 iniPlanet 6.5?

2002-06-27 Thread Craig R. McClanahan

One quick-and-dirty thing to look for -- are all of your classes and their
constructors declared public?  If they are not, then Struts won't be
able to use reflection to get at their insides.

Craig


On Thu, 27 Jun 2002, Scott P. Bartle wrote:

 Date: Thu, 27 Jun 2002 14:32:22 -0600
 From: Scott P. Bartle [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Has anyone successfully implemented Jakarta Struts 1.0.2 in
 iPlanet 6.5?

 I have been working on this issue for the past 3 days, and I've read a
 lot of questions on a variety of forums and mailing lists, but I have
 yet to find a solution to this problem.  The problem I am running into
 is the notorious IllegalAccessError.  Mapping the name Director to my
 ActionServlet, here is what I am seeing:

 Error in executing servlet Director: java.lang.IllegalAccessError: try
 to access class org.apache.struts.action.AddDataSourceRule from class
 org.apache.struts.action.ActionServlet
 [27/Jun/2002 11:25:33:9] error: APPLOGIC-caught_exception: Caught
 Exception:
 java.lang.ClassCastException: java.lang.IllegalAccessError
 at
 com.netscape.server.servlet.servletrunner.ServletRunner.reportError(Unkn
 own Source)
 at
 com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
 Source)
 at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
 at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
 at com.kivasoft.thread.ThreadBasic.run(Native Method)
 at java.lang.Thread.run(Thread.java:484)

 I have also tried to deploy the struts-example.war, and although it does
 successfully deploy, it fails and throws the above IllegalAccessError
 upon initializing the ActionServlet.

 I have been out to read Matt Raible's document
 (http://www.icsynergy.com/downloads/struts/strutsHowTo.html), and I have
 read the Using Jakarta Struts on iPlanet Application Server
 document(http://developer.iplanet.com/appserver/samples/struts/docs/stru
 ts.pdf), provided by Sun--both excellent documents if you haven't read
 them, yet.  Regardless of what I have tried, however, I have yet to see
 a successful implementation of Jakarta Struts with iPlanet 6.5.  I get
 the impression that others have had success with Jakarta Struts on prior
 releases of iPlanet, so I am hoping there is an answer to this issue for
 release 6.5, as well.

 All ideas are welcome!!

 Thanks for your help,
 -spb

 ps -- I am posting this on jGuru and the Struts mailing list as well.
 If we find an answer to this issue, I will post the answer to all 3
 lists, as well.  Thanks, again.


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




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




Re: Collection for ResultSet

2002-06-27 Thread Renaud Waldura

Somebody wrote a DataListHandler pattern to handle large result sets.
http://www.theserverside.com/resources/article.jsp?l=DataListHandler

All the solutions mentioned so far are good, simple, and easy to implement.
But they don't scale: what if your ResultSet doesn't fit in memory?



- Original Message -
From: Lolik Tum [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 1:56 PM
Subject: Re: Collection for ResultSet


 ResultSet has an open connection to the database, and until you call
 ResultSet.close() method or GarbageCollector collects it, it will stay
open,
 so you shoud copy everything into a collection, close the result set and
 then put the collection on the session for JSP to access.
 - Original Message -
 From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Wednesday, June 26, 2002 1:46 PM
 Subject: RE: Collection for ResultSet


  I just learned how to do this sort of database work yesterday.
Obviously
  I'm no expert, but it seems like you should just do exactly what you
  thought.  A ResultSet is generally not scrollable, so you should
probably
  put the retrieved info in a collection.  Any of those database experts
out
  there should correct me if I'm wrong.
 
  ~ Keith
 
 
  -Original Message-
  From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, June 26, 2002 1:40 PM
  To: [EMAIL PROTECTED]
  Subject: Collection for ResultSet
 
 
  Subject: Collection for ResultSet
  From: David Chu [EMAIL PROTECTED]
   ===
  What is the preferred method to iterate through the rows of a database
 query
  from a JSP under the Struts framework?  Should I write a class that
dumps
  the contents of a ResultSet into some Collection?  It seems this is a
  reoccuring problem and would have been tackled before.  Please advise on
a
  preferred solution.  Thanks.
 
 
  --
  -david
 
  --
  David C. Chu
  America Online
  Network Tools Intern
  --





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




  1   2   >