Re: how to access oracle database on netwrk

2004-11-18 Thread Peng Tuck
Nishant wrote:
now server is throwing an errors as  cannot load JDBC driver called com.mysql.jdbc.Driver 
wht is wrong  wiil i hav to import some external JDBC driver (on my pc no oracle is there ) 
 

You want to connect to an oracle database and you're loading a jdbc 
driver for mysql ?  
Yes you will have to make a oracle jdbc driver available to tomcat ( or 
whatever app server you are using). FYI
there is a brief write up on this with the tomcat docs. Just make sure 
you have the proper driver for the version of oracle you are using
and you should be ok.

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


RE: JDBC problem

2004-11-18 Thread Marco Mistroni
Hello,
If you are connecting to oracle, why you have jdbc:mysql in your
JDBC URL?

Regards
marco

-Original Message-
From: Nishant [mailto:[EMAIL PROTECTED] 
Sent: 18 November 2004 07:04
To: Struts Users Mailing List
Subject: JDBC problem

i am tryin to connect with oracle Server on network.
Now i am getting errors as No Suitable Driver
i hav classes12.jar file in my jre\lib directory...
still i am gettin error ...
and also  wht should be written in
set-property property=url
 value=jdbc:mysql://dthinsrv/employees /
value field of url...
plz help..
thanks in advance ..

Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path


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



Re: JDBC problem

2004-11-18 Thread Vic
You are on the wrong mail list, this mail list is for a Struts framework.
I see you are a Software Engineer from Kalyaninagar, impressive.
.V
Nishant wrote:
i am tryin to connect with oracle Server on network.
Now i am getting errors as No Suitable Driver
i hav classes12.jar file in my jre\lib directory...
still i am gettin error ...
and also  wht should be written in
set-property property=url
 value=jdbc:mysql://dthinsrv/employees /
value field of url...
plz help..
thanks in advance ..
Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path

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


Tiles and on-load events

2004-11-18 Thread andy wix
Hi,
I have a page which I would like frequently reloaded into the browser and 
was going to use javascript.  The issue is that using Tiles I only have the 
on-load event available for the layout.jsp file and I only want one of my 
pages to have this functionality.

Is there a work-around?
Thanks,
Andy
_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

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


RE: Tiles and on-load events

2004-11-18 Thread dave
I had a similar problem.

I included a piece of Javascript in the main layout which allows pages
to register
script to be run when onload is invoked, then any page in the layout can
add things:

html
head
script language=JavaScript
var onLoadExpressions = new Array();
var onUnLoadExpressions = new Array();

function addOnLoadExpression(expr, checkForDuplicates)
{
  if (checkForDuplicates  findOnLoadExpression(expr))
  {
return;
  }

  var newExprs = new Array(onLoadExpressions.length + 1);
  var i;
  for (i=0; ionLoadExpressions.length; i++)
  {
newExprs[i] = onLoadExpressions[i];
  }
  newExprs[onLoadExpressions.length] = expr;
  onLoadExpressions = newExprs;
}

function addOnUnLoadExpression(expr, checkForDuplicates)
{
  if (checkForDuplicates  findOnUnLoadExpression(expr))
  {
return;
  }

  var newExprs = new Array(onUnLoadExpressions.length + 1);
  var i;
  for (i=0; ionUnLoadExpressions.length; i++)
  {
newExprs[i] = onUnLoadExpressions[i];
  }
  newExprs[onUnLoadExpressions.length] = expr;
  onUnLoadExpressions = newExprs;
}

function findOnLoadExpression(expr)
{
  var exprFound = false;
  var i;
  for (i=0; ionLoadExpressions.length; i++)
  {
if (expr == onLoadExpressions[i])
{
  exprFound = true;
}
  }
  return exprFound;
}

function findOnUnLoadExpression(expr)
{
  var exprFound = false;
  var i;
  for (i=0; ionUnLoadExpressions.length; i++)
  {
if (expr == onUnLoadExpressions[i])
{
  exprFound = true;
}
  }
  return exprFound;
}

function documentLoaded()
{
  var i;
  for (i=0; ionLoadExpressions.length; i++)
  {
eval(onLoadExpressions[i]);
  }
}

function documentUnLoaded()
{
  var i;
  for (i=0; ionUnLoadExpressions.length; i++)
  {
eval(onUnLoadExpressions[i]);
  }
}
/script 
/head

body onload=documentLoaded(); onunload=documentUnLoaded();
/body
/html

then in your jsp just use:

script
addOnLoadExpression('alert(hello);', false);
/script

Dave

 -Original Message-
 From: andy wix [mailto:[EMAIL PROTECTED] 
 Sent: Donnerstag, 18. November 2004 12:38
 To: [EMAIL PROTECTED]
 Subject: Tiles and on-load events
 
 
 Hi,
 
 I have a page which I would like frequently reloaded into the 
 browser and 
 was going to use javascript.  The issue is that using Tiles I 
 only have the 
 on-load event available for the layout.jsp file and I only 
 want one of my 
 pages to have this functionality.
 
 Is there a work-around?
 
 Thanks,
 Andy
 
 _
 It's fast, it's easy and it's free. Get MSN Messenger today! 
 http://www.msn.co.uk/messenger
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: [OT] how to print - jdk1.3?

2004-11-18 Thread Joe Germuska
At 12:27 PM +0530 11/18/04, Viral_Thakkar wrote:
Hi All:
How to print document/pdf file which is available on server machine on
user printer in asynchronous mode?
I don't know of any way you can drive the user's printer.  The 
javascript print() method will pop up a print dialog, but it 
wouldn't be asynchronous, and in any case, it would print the 
document that called the method -- don't know how you'd do that in a 
PDF.

Don't most users have printing down well enough that you can just 
instruct them to download your file and print it?

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
Narrow minds are weapons made for mass destruction  -The Ex

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


Re: Tiles and on-load events

2004-11-18 Thread Joe Germuska
At 12:37 PM + 11/18/04, andy wix wrote:
Hi,
I have a page which I would like frequently reloaded into the 
browser and was going to use javascript.  The issue is that using 
Tiles I only have the on-load event available for the layout.jsp 
file and I only want one of my pages to have this functionality.

Is there a work-around?
Here is the simplest thing I've found, from Simon Willison:
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
window.onload = func;
  } else {
window.onload = function() {
  oldonload();
  func();
}
  }
}
full writeup at: http://www.sitepoint.com/blog-post-view.php?id=171578
It wouldn't be too hard to extend this so that you could use one 
function to add both onload and onunload events, should that be 
valuable.  In this case, you don't even specify an onload attribute 
in your html tag.  If you do, it would override anything set using 
this mechanism.

Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
Narrow minds are weapons made for mass destruction  -The Ex

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


Re: URL Customization

2004-11-18 Thread Jeff Beal
Why?
Richard wrote:
I need to remove the webapp specific part / names on my application.
For example
http://mydomain.com/mywebapp/index.jsp
and 

http://mydomain.com/mywebapp/serverpages/add-record.rr
I need the user to just see http://mydomain.com/ on their browser. 

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


Re: [OT] how to print - jdk1.3?

2004-11-18 Thread Vic
Of course the new JDK 1.5 allows JDNC and JNLP security sandbox access 
to the printer (if you did RiA).

.V
Joe Germuska wrote:
At 12:27 PM +0530 11/18/04, Viral_Thakkar wrote:
Hi All:
How to print document/pdf file which is available on server machine on
user printer in asynchronous mode?

I don't know of any way you can drive the user's printer.  The 
javascript print() method will pop up a print dialog, but it wouldn't 
be asynchronous, and in any case, it would print the document that 
called the method -- don't know how you'd do that in a PDF.

Don't most users have printing down well enough that you can just 
instruct them to download your file and print it?

Joe

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


RE: database problem

2004-11-18 Thread Matthias Wessendorf
do you have
http://jakarta.apache.org/commons/dbcp/

and

http://jakarta.apache.org/commons/pool/

in WEB-INF/lib?

Regards,

 -Original Message-
 From: Nishant [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 18, 2004 2:59 PM
 To: Struts Users Mailing List
 Subject: database problem
 
 
 hi,
 
 i am using struts with tomcat server ...
 my database is oracle and it is on some other machine on 
 network. on my machine oracle is not installed. thus i am 
 using odbc14.jar and classes12.jar in my lib directry of 
 struts application.. in my struts-config.xml file the 
 datasource is data-sources
 data-source type=org.apache.commons.dbcp.BasicDataSource
   set-property property=driverClassName
 value=oracle.jdbc.driver.OracleDriver /
   set-property property=url
 value=jdbc:oracle:thin:@dthinsrv:1521:TCF /
   set-property property=username
 value=thinc/
   set-property property=password
 value=thinc/
 /data-source
   /data-sources
 
 but i am not sure that whether my database is conected or not 
 ... actually while firing query on database i am getting sql 
 exception ... i aint able to understand wht is the 
 problem... plz help thanks in advance Regards Nishant Patil 
 Software Engineer Cybage Softwares Pvt. Ltd. (A CMM Level 3 
 Company) [EMAIL PROTECTED] www.cybage.com There is 
 difference between knowing the Path and walking on the Path
 


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



RE: [OT] how to print - jdk1.3?

2004-11-18 Thread Viral_Thakkar
I am using jdk1.3



-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic
Sent: Thursday, November 18, 2004 7:33 PM
To: [EMAIL PROTECTED]
Subject: Re: [OT] how to print - jdk1.3?

Of course the new JDK 1.5 allows JDNC and JNLP security sandbox access 
to the printer (if you did RiA).

.V

Joe Germuska wrote:
 At 12:27 PM +0530 11/18/04, Viral_Thakkar wrote:
 
 Hi All:

 How to print document/pdf file which is available on server machine
on
 user printer in asynchronous mode?
 
 
 I don't know of any way you can drive the user's printer.  The 
 javascript print() method will pop up a print dialog, but it
wouldn't 
 be asynchronous, and in any case, it would print the document that 
 called the method -- don't know how you'd do that in a PDF.
 
 Don't most users have printing down well enough that you can just 
 instruct them to download your file and print it?
 
 Joe
 


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



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



Re: [SPAM] - RE: database problem - Sending mail server found on list.dsbl.org

2004-11-18 Thread Nishant
yes i do have  commons-dbcp-1.2.1.jar
and
commons-pool-1.2.jar
Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path
- Original Message - 
From: Matthias Wessendorf [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 7:32 PM
Subject: [SPAM] - RE: database problem - Sending mail server found on
list.dsbl.org


 do you have
 http://jakarta.apache.org/commons/dbcp/

 and

 http://jakarta.apache.org/commons/pool/

 in WEB-INF/lib?

 Regards,

  -Original Message-
  From: Nishant [mailto:[EMAIL PROTECTED]
  Sent: Thursday, November 18, 2004 2:59 PM
  To: Struts Users Mailing List
  Subject: database problem
 
 
  hi,
 
  i am using struts with tomcat server ...
  my database is oracle and it is on some other machine on
  network. on my machine oracle is not installed. thus i am
  using odbc14.jar and classes12.jar in my lib directry of
  struts application.. in my struts-config.xml file the
  datasource is data-sources
  data-source type=org.apache.commons.dbcp.BasicDataSource
set-property property=driverClassName
  value=oracle.jdbc.driver.OracleDriver /
set-property property=url
  value=jdbc:oracle:thin:@dthinsrv:1521:TCF /
set-property property=username
  value=thinc/
set-property property=password
  value=thinc/
  /data-source
/data-sources
 
  but i am not sure that whether my database is conected or not
  ... actually while firing query on database i am getting sql
  exception ... i aint able to understand wht is the
  problem... plz help thanks in advance Regards Nishant Patil
  Software Engineer Cybage Softwares Pvt. Ltd. (A CMM Level 3
  Company) [EMAIL PROTECTED] www.cybage.com There is
  difference between knowing the Path and walking on the Path
 


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



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



Re: JerichoFaces ?

2004-11-18 Thread Joe Germuska
On Wed, 17 Nov 2004 21:52:56 -0800, Craig McClanahan 
[EMAIL PROTECTED] wrote:
It's sort of interesting that a page controller is one of the things
people really like about Tiles, for the same reason I like it --
cutting down on the number of moving parts :-).
I am not wholly in love with the tiles controller.  I find it 
inconvenient to handle errors that might occur in the controller once 
the HTTP response is already committed.  I would prefer to have those 
errors happen before control is forwarded, so that I can use a basic 
error page rather than having a blank tile appear, or having to 
sprinkle c:catch tags throughout my pages.  I like the basic idea, 
but I don't like deferring that processing to after-Struts.

On the other hand, I think the basic model of mapping a piece of 
handler code to a view path in about the same way we map code to 
request URL paths is brilliant and makes many things work much more 
cleanly.  I'd just rather do it in a view controller than in a JSP 
tag.

At 11:56 PM -0800 11/17/04, Dakota Jack wrote:
The bottom line is that Shale is wholly inconsistent with the Struts
approach.  If Struts 2.0 becomes Shale, Struts is dead.
Jack, don't take this personally, as I appreciate your energy and 
your efforts to articulate an alternative -- but I see this as 
alarmist and overblown.  I have been trying to track this thread, and 
I have yet to see a convincing argument backing up this statement.

I'm still looking for the personal time to get Shale running and to 
look at making an app with it, but if you're going to make this 
statement (and you have a couple of times), then I think you need to 
come up with a concise explanation of why Shale is wholly 
inconsistent with Struts.  If you've made this point, I apologize 
for missing that email.  Maybe you could add it to the web site 
you're developing, or on a page in the Wiki?

Elaborating from this, one might ask what is Struts?   Particularly 
when one looks at the chain-processing model, the definition becomes 
much more amorphous.  Then again, I don't think the answer is 
critically important.  I don't really care what it's called; I just 
want a webapp framework that makes my job easier.  Continuity with 
Struts 1.x will help with that, since I won't have to live through 
retraining myself and the whole team -- but we've learned to deal 
with lots of change anyway.

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
Narrow minds are weapons made for mass destruction  -The Ex

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


Re: database problem

2004-11-18 Thread Erik Weber
Nishant, ojdbc14.jar is the only jar you need unless you are using an 
old version of Oracle. It belongs in $catalina_home (your Tomcat base 
directory)/common/lib, not in your web app's lib directory.

Erik

Nishant wrote:
hi,
i am using struts with tomcat server ...
my database is oracle and it is on some other machine on network.
on my machine oracle is not installed.
thus i am using odbc14.jar and classes12.jar in my lib directry of struts 
application..
in my struts-config.xml file the datasource is
data-sources
   data-source type=org.apache.commons.dbcp.BasicDataSource
 set-property property=driverClassName
   value=oracle.jdbc.driver.OracleDriver /
 set-property property=url
   value=jdbc:oracle:thin:@dthinsrv:1521:TCF /
 set-property property=username
   value=thinc/
 set-property property=password
   value=thinc/
   /data-source
 /data-sources
but i am not sure that whether my database is conected or not ...
actually while firing query on database i am getting sql exception ...
i aint able to understand wht is the problem...
plz help
thanks in advance
Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path
 

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


Re: Problems with Date validation

2004-11-18 Thread Daniel Hopper
Kinjal,
   In my experience with dates and validation, the problem you have 
having is quite possibly when you are coping the date values out of the 
ActionForm if you are trying to convert the string to a date right there 
in the get method and the value is an empty string no null.  Since the 
BeanUtils.popuplate will call a set method with  instead of null.  
Here is a sample class that may help you track down the problem, 
basically I just check the value when the setter is called to make sure 
it isn't zero length string, if so I actually want the value to be null 
instead.  Seeing your ActionForm in which this is happening would help, 
but here is a simple example of what may get you pasted the error.

public class Sample extends ValidatorForm /* or ValidatorActionForm */ {   
   private String strExpiration;

   public Date getExpiration() {
   if(strExpiration != null) {
   return Date.valueOf(strExpiration);
   }
  
   return null;
   }

   public void setExpiration(Date expiration) {
   if(expiration != null) {
   this.strExpiration = expiration.toString();
   }
   }
   public String getStrExpiration() {
   return strExpiration;
   }
   public void setStrExpiration(String strExpiration) {
   this.strExpiration = zeroLengthSet(strExpiration);
   }
  
   protected String zeroLengthSet(String str) {
   if (s != null  s.length()  0) {
   return str.trim();
   }
  
   return null;
   }
}

Good Hunting
-daniel hopper
Kinjal Shares wrote:
Dear all,
I've been trying to get Dates validation for my Struts
project without any success. I'm using struts 1.2.4
with Validator 1.1.3 on tomcat 5.0.27. 

In my application, I'm having a hier of
MappingActionForm for Action, where individual action
mappings in struts-config map to individual method in
the Action class. The form is a child of
ValidatorActionForm with a VO bean for holding
business data and a string for holding the value for
the date field. The VO bean contains a java.sql.Date
field. In the getter and setter of the textual field,
I get and set the data from VO bean, so as to have
virtually a String-only ActionForm.
I'm pasting relevant codes below
struts-config.xml:
-
action path=/inquiry/submitDetail 
	parameter=submitDetail 
	name=inquiryForm 
	scope=session 
	validate=true 
	input=/pages/inquiry/editDetail.jsp 
	type=foo.bar.struts.action.InquiryAction
forward name=previewDetail
path=/pages/inquiry/previewDetail.jsp/
/action
--

validation.xml: 
--
form name=/inquiry/submitDetail
	field property=offerEndDate depends=required
page=1		
arg0 key=inquiry.form.header.offerEndDate/
	/field
/form
--

editDetail.jsp:
--
html:form action=/inquiry/submitDetail
html:hidden property=page value=1 /
html:text name=inquiryForm property=offerEndDate
/
..
..
/html:form
--
Now, everytime I submit the page and if the field is
empty it throws me an exception related to
beanUtils.populate(). According to my understanding
this type of exception should only come when struts
copying data into the ActionForm is problamatic.
However, it seems to me that the validator is somehow
bypassed. 

If I remove the copying (to and from the VO bean into
the textual date field) code from my ActionForm, it
validates things properly.
I'm not sure what is going wrong here and hence I'm
seeking the advise here. I've gone throgh all major
mailing lists and forums for struts for any hints on
this, but could find little. I'm sorry for such a long
post, but I wanted include maximum data into the post.
Thanks and regards,
Kinjal Sonpal

		
__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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

 


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


Re: database problem

2004-11-18 Thread Vic
Also, Struts data source is deprecated, this belongs in Tomcat or 
whatever container.
.V

Erik Weber wrote:
Nishant, ojdbc14.jar is the only jar you need unless you are using an 
old version of Oracle. It belongs in $catalina_home (your Tomcat base 
directory)/common/lib, not in your web app's lib directory.

Erik

Nishant wrote:
hi,
i am using struts with tomcat server ...
my database is oracle and it is on some other machine on network.
on my machine oracle is not installed.
thus i am using odbc14.jar and classes12.jar in my lib directry of 
struts application..
in my struts-config.xml file the datasource is
data-sources
   data-source type=org.apache.commons.dbcp.BasicDataSource
 set-property property=driverClassName
   value=oracle.jdbc.driver.OracleDriver /
 set-property property=url
   value=jdbc:oracle:thin:@dthinsrv:1521:TCF /
 set-property property=username
   value=thinc/
 set-property property=password
   value=thinc/
   /data-source
 /data-sources

but i am not sure that whether my database is conected or not ...
actually while firing query on database i am getting sql exception 
...
i aint able to understand wht is the problem...
plz help
thanks in advance
Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path
 


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


Re: JerichoFaces ?

2004-11-18 Thread Dakota Jack
Hi, Joe,

This is certainly a reasonable request and I don't take it personally
at all.  I don't think what I have said is overblown.  I will add more
later, but for the moment let me say that one needs to articulate what
Struts does and ask what is left with the new proposals.  I will add
more on that later today if I find the time.  We can all do that,
however.  I do think that, if you want in any sense what Struts has
been, I don't think what I said is alarmist but true.  If not, I
certainly would like to get the truth clarified.  I have found your
contributions to be clear, thought, and sound at all levels.  I am
more than happy to meet this request.

Jack


 At 11:56 PM -0800 11/17/04, Dakota Jack wrote:
 The bottom line is that Shale is wholly inconsistent with the Struts
 approach.  If Struts 2.0 becomes Shale, Struts is dead.
 
 Jack, don't take this personally, as I appreciate your energy and
 your efforts to articulate an alternative -- but I see this as
 alarmist and overblown.  I have been trying to track this thread, and
 I have yet to see a convincing argument backing up this statement.
 
 I'm still looking for the personal time to get Shale running and to
 look at making an app with it, but if you're going to make this
 statement (and you have a couple of times), then I think you need to
 come up with a concise explanation of why Shale is wholly
 inconsistent with Struts.  If you've made this point, I apologize
 for missing that email.  Maybe you could add it to the web site
 you're developing, or on a page in the Wiki?
 
 Elaborating from this, one might ask what is Struts?   Particularly
 when one looks at the chain-processing model, the definition becomes
 much more amorphous.  Then again, I don't think the answer is
 critically important.  I don't really care what it's called; I just
 want a webapp framework that makes my job easier.  Continuity with
 Struts 1.x will help with that, since I won't have to live through
 retraining myself and the whole team -- but we've learned to deal
 with lots of change anyway.
 
 Joe
 
 --
 Joe Germuska
 [EMAIL PROTECTED]
 http://blog.germuska.com
 Narrow minds are weapons made for mass destruction  -The Ex
 
 -
 
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Problem with Tomcat 5.5

2004-11-18 Thread Peter Neu
Hello everybody,
I just switched to Tomcat 5.5 while still using the old JDK 1.4.2_04 . 
The Struts Version
I use is 1.1. When I run my application on the new Tomcat I get this error :

Error instantiating servlet class org.apache.struts.action.ActionServlet
Can anybody tell what I can change in order to run my application on 
Tomcat 5.5 ?

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


Re: Problem with Tomcat 5.5

2004-11-18 Thread Vic
5.5 needs JDK1.5 Afaik.
.V
Peter Neu wrote:
Hello everybody,
I just switched to Tomcat 5.5 while still using the old JDK 1.4.2_04 . 
The Struts Version
I use is 1.1. When I run my application on the new Tomcat I get this 
error :

Error instantiating servlet class org.apache.struts.action.ActionServlet
Can anybody tell what I can change in order to run my application on 
Tomcat 5.5 ?

Regards,
Peter

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


AW: Problem with Tomcat 5.5

2004-11-18 Thread Andreas Solarik
Hi Peter!

In http://apache.mirror.netmonic.com/jakarta/tomcat-5/v5.5.4/README.html the
developers claim that Tomcat 5.5 requires the JRE 5.0. We didn't have the
problem you found when we tested tomcat 5.5. Which classloader are you
using?

Andreas


-Ursprüngliche Nachricht-
Von: Peter Neu [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 18. November 2004 16:52
An: Struts Users Mailing List
Betreff: Problem with Tomcat 5.5


Hello everybody,

I just switched to Tomcat 5.5 while still using the old JDK 1.4.2_04 .
The Struts Version
I use is 1.1. When I run my application on the new Tomcat I get this error :

Error instantiating servlet class org.apache.struts.action.ActionServlet

Can anybody tell what I can change in order to run my application on
Tomcat 5.5 ?

Regards,

Peter

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


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



RE: tiles and redirect (non-struts application)

2004-11-18 Thread Saravanan Veerappan
Thanks david, The applications i am working on is not in struts and i was 
planning to migrate it into tiles before moving into struts.  Looks like it is 
not possible without migrating the application into struts.

David G. Friedman [EMAIL PROTECTED] wrote:Saravanan,

This point has been discussed in the last 30 days. It usually came down to
the idea that tiles has already started writing to the output stream so the
headers are already committed, and often sent already. If you want do
perform business conditions like that, I recommend you put them into your
action and make a forward which your action can use INSTEAD of your tile.

Regards,
David

-Original Message-
From: Saravanan Veerappan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 5:07 PM
To: [EMAIL PROTECTED]
Subject: tiles and redirect (non-struts application)


I have a existing application (non-struts) and i would like to utilize tiles
to take advantage of templates for layout. When i inlude redirect in the
tiles body the redirection doesn't work saying response has been already
comitted. Any suggestions?

Here is my sample code








body.jsp

if(bussiness_conditions){
response.sendRedirect(someother.jsp);
}
else{
//Show response here.
}

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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




-
Do you Yahoo!?
 Meet the all-new My Yahoo! – Try it today! 

Re: Help with Exception handling

2004-11-18 Thread Wendy Smoak
From: David G. Friedman [EMAIL PROTECTED]
 Now, on the JSP issues, since you're trading control over to JSP's, can't
 you list the exception in your web.xml configuration file?  See the
 'exception-type' in the solution under this url:
 http://www.jguru.com/faq/view.jsp?EID=457102

Probably, but then I couldn't use a Tiles definition for the 'path' it
should go to when the Exception is thrown.   Although right now I'm just
using 'error.jsp' it eventually needs to be a Tiles def.

From: Bill Siggelkow
 Struts exception handling *does* work correctly when it comes to
 inheritance; and your configuration looks correct. First, check the FQN
 (fully-qualified name) of your exception

Bill wins the prize.  Amazing what a good night's sleep and another set of
eyes will do for a problem... I missed one of the pieces of the package
name.  And it works!

Thanks also to Erik for explaining the 'key' attribute. :)

-- 
Wendy Smoak



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



RE: Sending List as a Request Parameter

2004-11-18 Thread Matthias Wessendorf
JavaDoc says:

public java.lang.Object getAttribute(java.lang.String name)

...



java.util.List l = (java.util.List) getAttribute(...)


 -Original Message-
 From: Sudip Shrestha [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 18, 2004 5:46 PM
 To: [EMAIL PROTECTED]
 Subject: Sending List as a Request Parameter
 
 
 Using: Tomcat 5.0.28, Struts 1.2.4, jdk 1.5.0, hibernate 2.1.6
 
 When I try to pass java.util.List parameter via 
 javax.servelet.HttpServletRequest from an action method to a 
 .jsp page, I get exception: incompatible types
 found   : java.lang.Object
 required: java.util.List
   List result = request.getAttribute( employeeList );
 
 Here the List contains a list of plain business objects.
 
 When using net.sf.hibernate.session.find() method, it only 
 returns List of objects. Now in order to show the results in 
 the .jsp page, I must pass the List to the .jsp Is there 
 any other way to tackle this problem?
 -- 
 Thanx,
 Sudip
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Sending List as a Request Parameter

2004-11-18 Thread Erik Weber
List result = (List) request.getAttribute(employeeList);
Erik
Sudip Shrestha wrote:
Using: Tomcat 5.0.28, Struts 1.2.4, jdk 1.5.0, hibernate 2.1.6
When I try to pass java.util.List parameter via
javax.servelet.HttpServletRequest from an action method to a .jsp
page, I get exception:
incompatible types
found   : java.lang.Object
required: java.util.List
List result = request.getAttribute( employeeList );
Here the List contains a list of plain business objects.
When using net.sf.hibernate.session.find() method, it only returns
List of objects. Now in order to show the results in the .jsp page, I
must pass the List to the .jsp Is there any other way to tackle
this problem?
 

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


Newbie With Question

2004-11-18 Thread Scott Purcell
Hello,
 
I am just getting underway with struts and found an example here:  
http://javaboutique.internet.com/tutorials/Struts/
 
I have completely followed the directions and I can get the initial form to 
display the data that comes from the ActionForm bean. Hansen.
 
But after I hit the submit, I just get a blank page. I have double, triple 
checked all config settings, but cannot figure out where the problem is. The 
Tomcat console does not show any error, and there appears to be no error 
anywhere. Problem is, it just does not display the submit.jsp page back with 
updated results.
 
If anyone has ideas, please let me know. Especially if there is a way to find 
any type of log from Tomcat. I cannot find any type of output from the app.
 
Thanks,
Scott
 
 
Here are my files:
my webapp is called firststrut
The classes are in package com
The file structure is correct
 
 
 
/WEB-INF/classes/com
package com;
 
import javax.servlet.http.*;
import org.apache.struts.action.*;
 
public final class SubmitAction extends Action {
 
 
  public ActionForward perform(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response) {
 
 
System.out.println(SubmitAction extends Action class ##);
 
SubmitForm f = (SubmitForm) form; // get the form bean
// and take the last name value
String lastName = f.getLastName(); 
// Translate the name to upper case 
//and save it in the request object 
request.setAttribute(lastName, lastName.toUpperCase());

// Forward control to the specified success target
return (mapping.findForward(success));
  }
 
}
 
/WEB-INF/classes/com
package com;
 
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;
 
public final class SubmitForm extends ActionForm {
 
  /* Last Name */
  private String lastName = AMF; // default value
  public String getLastName() {
  System.out.println(Getting last name);
return (this.lastName);
  }
  public void setLastName(String lastName) {
this.lastName = lastName;
  }
 
  /* Address */
  private String address = 1313 Mockingbird Lane;
  public String getAddress() {
return (this.address);
  }
  public void setAddress(String address) {
this.address = address;
  }
 
  /* Sex */
  private String sex = null;
  public String getSex() {
return (this.sex);
  }
  public void setSex(String sex) {
this.sex = sex;
  }
 
  /* Married status */
  private String married = null;
  public String getMarried() {
return (this.married);
  }
  public void setMarried(String married) {
this.married = married;
  }
 
  /* Age */
  private String age = null;
  public String getAge() {
return (this.age);
  }
  public void setAge(String age) {
this.age = age;
  }
 
}


 
web.xml
?xml version=1.0 encoding=ISO-8859-1?
 
!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
web-app
 
  !-- Standard Action Servlet Configuration (with debugging) --
  servlet
servlet-nameaction/servlet-name
servlet-class
org.apache.struts.action.ActionServlet
 /servlet-class
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
init-param
  param-namevalidate/param-name
  param-valuetrue/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet
 
 
  !-- Standard Action Servlet Mapping --
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping
 
 
  !-- Struts Tag Library Descriptors --
  taglib
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/struts-bean.tld/taglib-location
  /taglib
 
  taglib
taglib-uri/WEB-INF/struts-html.tld/taglib-uri
taglib-location/WEB-INF/struts-html.tld/taglib-location
  /taglib
 
  taglib
taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
taglib-location/WEB-INF/struts-logic.tld/taglib-location
  /taglib
 
/web-app

 
struts-config.xml
?xml version=1.0 encoding=ISO-8859-1 ?
 
!DOCTYPE struts-config PUBLIC
 -//Apache Software Foundation//DTD Struts Configuration 1.0//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
 
struts-config
 
  !-- == Form Bean Definitions = --
  form-beans
 
form-bean  name=submitForm
type=com.SubmitForm/
 
  /form-beans
 
  !-- == Action Mapping Definitions  --
  action-mappings
 
action   path=/submit
  type=com.SubmitAction
  name=submitForm
  input=/submit.jsp
  

Re: JerichoFaces ?

2004-11-18 Thread Craig McClanahan
Jack,

Since we're all developers here ... you might consider trying to
demonstrate with *code* instead of words (or pretty pictures :-) why a
proposed solution is better.  Show us that it makes the framework code
easier to write and maintain.  Show us an application based on that
design (preferably one also implemented on the alternative approaches
so we can compare -- and it doesn't have to be mailreader; I'm game
for a different one).

You've said you don't like the page controller approach.  Fine ...
that's your right.  But Struts is dead comments are just noise,
until you demonstrate exactly why and how your approach is better.  I
don't *care* if you like page controller or not.  I don't *care* if
your picture indicates a mythical complete separation between the
various elements -- it doesn't mean anything until its cast in
something concrete.

And, by the way, PLEASE move the discussions over the the developer
list where they belong.  Anyone on the user list who wants to
participate in the discussion (or just follow along) is welcome to
subscribe.  Users who are interested primarily in getting the current
version to work will appreciate the lower volume on a pretty high
volume list.

Craig



On Thu, 18 Nov 2004 07:49:01 -0800, Dakota Jack [EMAIL PROTECTED] wrote:
 Hi, Joe,
 
 This is certainly a reasonable request and I don't take it personally
 at all.  I don't think what I have said is overblown.  I will add more
 later, but for the moment let me say that one needs to articulate what
 Struts does and ask what is left with the new proposals.  I will add
 more on that later today if I find the time.  We can all do that,
 however.  I do think that, if you want in any sense what Struts has
 been, I don't think what I said is alarmist but true.  If not, I
 certainly would like to get the truth clarified.  I have found your
 contributions to be clear, thought, and sound at all levels.  I am
 more than happy to meet this request.
 
 Jack
 
 
 
 
  At 11:56 PM -0800 11/17/04, Dakota Jack wrote:
  The bottom line is that Shale is wholly inconsistent with the Struts
  approach.  If Struts 2.0 becomes Shale, Struts is dead.
 
  Jack, don't take this personally, as I appreciate your energy and
  your efforts to articulate an alternative -- but I see this as
  alarmist and overblown.  I have been trying to track this thread, and
  I have yet to see a convincing argument backing up this statement.
 
  I'm still looking for the personal time to get Shale running and to
  look at making an app with it, but if you're going to make this
  statement (and you have a couple of times), then I think you need to
  come up with a concise explanation of why Shale is wholly
  inconsistent with Struts.  If you've made this point, I apologize
  for missing that email.  Maybe you could add it to the web site
  you're developing, or on a page in the Wiki?
 
  Elaborating from this, one might ask what is Struts?   Particularly
  when one looks at the chain-processing model, the definition becomes
  much more amorphous.  Then again, I don't think the answer is
  critically important.  I don't really care what it's called; I just
  want a webapp framework that makes my job easier.  Continuity with
  Struts 1.x will help with that, since I won't have to live through
  retraining myself and the whole team -- but we've learned to deal
  with lots of change anyway.
 
  Joe
 
  --
  Joe Germuska
  [EMAIL PROTECTED]
  http://blog.germuska.com
  Narrow minds are weapons made for mass destruction  -The Ex
 
  -
 
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Performance issues

2004-11-18 Thread Juan Salazar
Is there any performance issue using Struts (actions, tiles, validators,
etc)?  (memory, network bandwith, etc)

I am using Struts for awhile, but need to known how to improve code.

Thanks in advance



Re: Performance issues

2004-11-18 Thread Vic
The slowest part of J2EE is Data access.
With Struts, you have the capability to stress test the DAO layer by itself.
hth,
.V
Juan Salazar wrote:
Is there any performance issue using Struts (actions, tiles, validators,
etc)?  (memory, network bandwith, etc)
I am using Struts for awhile, but need to known how to improve code.
Thanks in advance


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


RE: About *.do

2004-11-18 Thread Chaikin, Yaakov Y.
Is it a problem to map 2 servlet mappings to the Struts controller
servlet...

For example, I could think of a situation where someone would want to use
different naming schemes so the customers will be less lost:

For Shopping:
*/doShopping/*

For Checkout:
*/doCheckout/*

However, obviously, in reality both of these would be processed by the
Struts controller servlet.

Would this set up present a problem? (It shouldn't, but I am just want to
make sure for the future.)

Thanks,
Yaakov.

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 10:52 PM
To: Struts Users Mailing List; Koon Yue Lam
Subject: RE: About *.do

See section 5.4.1 and 5.4.2 on the Struts site for how to map your action
path such as /login to be either /login.do or /do/login on
http://struts.apache.org/userGuide/configuration.html

Again, the do (/do/* or *.do) part is customizable.  Some people posted
about messing with people's heads by mapping every action to *.aspx instead
of *.do to mess with their boss' head. :)

Regards,
David

-Original Message-
From: Koon Yue Lam [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 10:42 PM
To: Struts Users Mailing List
Subject: Re: About *.do


so I need to map all actions of my webapp?
something like
/login map to /login.do ???

Regards

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


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

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



Re: Newbie With Question

2004-11-18 Thread Bill Siggelkow
Scott, this problem can happen when you are trying to forward to a 
non-existent location. For example, you would see this problem if the 
path specified in the forward name=success path=/submit.jsp/ was 
invalid.

However, looking at your struts-config.xml I do not see any errors.
I would first check that your Struts config is not throwing any errors 
when it is read in (check the Tomcat console for this). Then, I would 
get out the debugger.

(P.S. Just a matter of style here -- by convention, package names 
typically use the reverse of your company's web address; so your 
action's fully-qualified name would be something like 
'com.vertisinc.SubmitAction')

-Bill Siggelkow
Scott Purcell wrote:
Hello,
 
I am just getting underway with struts and found an example here:  http://javaboutique.internet.com/tutorials/Struts/
 
I have completely followed the directions and I can get the initial form to display the data that comes from the ActionForm bean. Hansen.
 
But after I hit the submit, I just get a blank page. I have double, triple checked all config settings, but cannot figure out where the problem is. The Tomcat console does not show any error, and there appears to be no error anywhere. Problem is, it just does not display the submit.jsp page back with updated results.
 
If anyone has ideas, please let me know. Especially if there is a way to find any type of log from Tomcat. I cannot find any type of output from the app.
 
Thanks,
Scott
 
 
Here are my files:
my webapp is called firststrut
The classes are in package com
The file structure is correct
 
 
 
/WEB-INF/classes/com
package com;
 
import javax.servlet.http.*;
import org.apache.struts.action.*;
 
public final class SubmitAction extends Action {
 
 
  public ActionForward perform(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response) {
 
 
System.out.println(SubmitAction extends Action class ##);
 
SubmitForm f = (SubmitForm) form; // get the form bean
// and take the last name value
String lastName = f.getLastName(); 
// Translate the name to upper case 
//and save it in the request object 
request.setAttribute(lastName, lastName.toUpperCase());

// Forward control to the specified success target
return (mapping.findForward(success));
  }
 
}
 
/WEB-INF/classes/com
package com;
 
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;
 
public final class SubmitForm extends ActionForm {
 
  /* Last Name */
  private String lastName = AMF; // default value
  public String getLastName() {
  System.out.println(Getting last name);
return (this.lastName);
  }
  public void setLastName(String lastName) {
this.lastName = lastName;
  }
 
  /* Address */
  private String address = 1313 Mockingbird Lane;
  public String getAddress() {
return (this.address);
  }
  public void setAddress(String address) {
this.address = address;
  }
 
  /* Sex */
  private String sex = null;
  public String getSex() {
return (this.sex);
  }
  public void setSex(String sex) {
this.sex = sex;
  }
 
  /* Married status */
  private String married = null;
  public String getMarried() {
return (this.married);
  }
  public void setMarried(String married) {
this.married = married;
  }
 
  /* Age */
  private String age = null;
  public String getAge() {
return (this.age);
  }
  public void setAge(String age) {
this.age = age;
  }
 
}

 
web.xml
?xml version=1.0 encoding=ISO-8859-1?
 
!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
web-app
 
  !-- Standard Action Servlet Configuration (with debugging) --
  servlet
servlet-nameaction/servlet-name
servlet-class
org.apache.struts.action.ActionServlet
 /servlet-class
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
init-param
  param-namevalidate/param-name
  param-valuetrue/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet
 
 
  !-- Standard Action Servlet Mapping --
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping
 
 
  !-- Struts Tag Library Descriptors --
  taglib
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/struts-bean.tld/taglib-location
  /taglib
 
  taglib
taglib-uri/WEB-INF/struts-html.tld/taglib-uri
taglib-location/WEB-INF/struts-html.tld/taglib-location
  /taglib
 
  taglib
taglib-uri/WEB-INF/struts-logic.tld/taglib-uri

Exception debugging

2004-11-18 Thread john . chesher




Hell,
Can anyone help a newbie with how to interpret an exception stack?  I have
had some luck debugging previous problems, when the exception occured in my
own code, as the stack info usually points to a line number or variable in
the source file causing the problem.  However, for an exception like below,
how do I have any idea where the error is occuring, much less the possible
cause?  I am assuming the 257 is pointing to the line of source in a
struts framework module, so it is not of use to me.  Is that correct?  If
it helps with the answer, I use the NetBeans IDE.
Thanks!


2004-11-18 12:56:49 ApplicationDispatcher[/schs82] Servlet.service() for
servlet jsp threw exception
java.lang.ArrayIndexOutOfBoundsException: 257
  at org.apache.jasper.compiler.JspReader.peekChar(JspReader.java:193)
  at org.apache.jasper.compiler.JspReader.isSpace(JspReader.java:386)
  at
org.apache.jasper.compiler.JspReader.isDelimiter(JspReader.java:453)
  at
org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:434)
  at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1325)
  at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1598)
  at org.apache.jasper.compiler.Parser.parse(Parser.java:171)
  at
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
  at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
  at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
  at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
  at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
  at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:750)
  at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:636)
  at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:546)
  at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1002)
  at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:626)
  at
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
  at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
  at
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
  at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
  at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
  at
org.apache.jsp.layout_jsp._jspx_meth_tiles_insert_2(layout_jsp.java:288)
  at
org.apache.jsp.layout_jsp._jspx_meth_html_html_0(layout_jsp.java:151)
  at org.apache.jsp.layout_jsp._jspService(layout_jsp.java:78)
  at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
  at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
  at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:750)
  at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:510)
  at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:445)
  at

RE: Newbie With Question

2004-11-18 Thread Scott Purcell
Hello Bill,

I checked everything again, and still do not see anything obvious. What did you 
mean by a debugger? Do you know of one for Tomcat and checking this type of 
problem?

If so, please let me know.

Thanks,
Scott



-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Thursday, November 18, 2004 12:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Newbie With Question


Scott, this problem can happen when you are trying to forward to a 
non-existent location. For example, you would see this problem if the 
path specified in the forward name=success path=/submit.jsp/ was 
invalid.

However, looking at your struts-config.xml I do not see any errors.

I would first check that your Struts config is not throwing any errors 
when it is read in (check the Tomcat console for this). Then, I would 
get out the debugger.

(P.S. Just a matter of style here -- by convention, package names 
typically use the reverse of your company's web address; so your 
action's fully-qualified name would be something like 
'com.vertisinc.SubmitAction')

-Bill Siggelkow

Scott Purcell wrote:
 Hello,
  
 I am just getting underway with struts and found an example here:  
 http://javaboutique.internet.com/tutorials/Struts/
  
 I have completely followed the directions and I can get the initial form to 
 display the data that comes from the ActionForm bean. Hansen.
  
 But after I hit the submit, I just get a blank page. I have double, triple 
 checked all config settings, but cannot figure out where the problem is. The 
 Tomcat console does not show any error, and there appears to be no error 
 anywhere. Problem is, it just does not display the submit.jsp page back with 
 updated results.
  
 If anyone has ideas, please let me know. Especially if there is a way to find 
 any type of log from Tomcat. I cannot find any type of output from the app.
  
 Thanks,
 Scott
  
  
 Here are my files:
 my webapp is called firststrut
 The classes are in package com
 The file structure is correct
  
  
  
 /WEB-INF/classes/com
 package com;
  
 import javax.servlet.http.*;
 import org.apache.struts.action.*;
  
 public final class SubmitAction extends Action {
  
  
   public ActionForward perform(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response) {
  
  
 System.out.println(SubmitAction extends Action class ##);
  
 SubmitForm f = (SubmitForm) form; // get the form bean
 // and take the last name value
 String lastName = f.getLastName(); 
 // Translate the name to upper case 
 //and save it in the request object 
 request.setAttribute(lastName, lastName.toUpperCase());
 
 // Forward control to the specified success target
 return (mapping.findForward(success));
   }
  
 }
  
 /WEB-INF/classes/com
 package com;
  
 import javax.servlet.http.HttpServletRequest;
 import org.apache.struts.action.*;
  
 public final class SubmitForm extends ActionForm {
  
   /* Last Name */
   private String lastName = AMF; // default value
   public String getLastName() {
   System.out.println(Getting last name);
 return (this.lastName);
   }
   public void setLastName(String lastName) {
 this.lastName = lastName;
   }
  
   /* Address */
   private String address = 1313 Mockingbird Lane;
   public String getAddress() {
 return (this.address);
   }
   public void setAddress(String address) {
 this.address = address;
   }
  
   /* Sex */
   private String sex = null;
   public String getSex() {
 return (this.sex);
   }
   public void setSex(String sex) {
 this.sex = sex;
   }
  
   /* Married status */
   private String married = null;
   public String getMarried() {
 return (this.married);
   }
   public void setMarried(String married) {
 this.married = married;
   }
  
   /* Age */
   private String age = null;
   public String getAge() {
 return (this.age);
   }
   public void setAge(String age) {
 this.age = age;
   }
  
 }
 
 
  
 web.xml
 ?xml version=1.0 encoding=ISO-8859-1?
  
 !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
  
 web-app
  
   !-- Standard Action Servlet Configuration (with debugging) --
   servlet
 servlet-nameaction/servlet-name
 servlet-class
 org.apache.struts.action.ActionServlet
  /servlet-class
 init-param
   param-nameapplication/param-name
   param-valueApplicationResources/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namevalidate/param-name
   param-valuetrue/param-value
 /init-param
 

Re: Exception debugging

2004-11-18 Thread Vic
Of the top, one of your tiles jsp's has a typo is a guess.
I would test out each ONE of the tiles jsps ( and tiles actions?) BEFORE 
assembling them into one big JSP, this way you get a better error.

hth,
.V
[EMAIL PROTECTED] wrote:

Hell,
Can anyone help a newbie with how to interpret an exception stack?  I have
had some luck debugging previous problems, when the exception occured in my
own code, as the stack info usually points to a line number or variable in
the source file causing the problem.  However, for an exception like below,
how do I have any idea where the error is occuring, much less the possible
cause?  I am assuming the 257 is pointing to the line of source in a
struts framework module, so it is not of use to me.  Is that correct?  If
it helps with the answer, I use the NetBeans IDE.
Thanks!
2004-11-18 12:56:49 ApplicationDispatcher[/schs82] Servlet.service() for
servlet jsp threw exception
java.lang.ArrayIndexOutOfBoundsException: 257
  at org.apache.jasper.compiler.JspReader.peekChar(JspReader.java:193)
  at org.apache.jasper.compiler.JspReader.isSpace(JspReader.java:386)
  at
org.apache.jasper.compiler.JspReader.isDelimiter(JspReader.java:453)
  at
org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:434)
  at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1325)
  at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1598)
  at org.apache.jasper.compiler.Parser.parse(Parser.java:171)
  at
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
  at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
  at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
  at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
  at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
  at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:750)
  at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:636)
  at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:546)
  at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1002)
  at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:626)
  at
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
  at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
  at
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
  at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
  at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
  at
org.apache.jsp.layout_jsp._jspx_meth_tiles_insert_2(layout_jsp.java:288)
  at
org.apache.jsp.layout_jsp._jspx_meth_html_html_0(layout_jsp.java:151)
  at org.apache.jsp.layout_jsp._jspService(layout_jsp.java:78)
  at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
  at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
  at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:750)
  at

Re: About *.do

2004-11-18 Thread Corey Scott
If that is the case, you might want to look into separate modules?

-Corey


On Thu, 18 Nov 2004 12:52:38 -0500, Chaikin, Yaakov Y.
[EMAIL PROTECTED] wrote:
 Is it a problem to map 2 servlet mappings to the Struts controller
 servlet...
 
 For example, I could think of a situation where someone would want to use
 different naming schemes so the customers will be less lost:
 
 For Shopping:
 */doShopping/*
 
 For Checkout:
 */doCheckout/*
 
 However, obviously, in reality both of these would be processed by the
 Struts controller servlet.
 
 Would this set up present a problem? (It shouldn't, but I am just want to
 make sure for the future.)
 
 Thanks,
 Yaakov.
 
 -Original Message-
 From: David G. Friedman [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 11, 2004 10:52 PM
 To: Struts Users Mailing List; Koon Yue Lam
 Subject: RE: About *.do
 
 See section 5.4.1 and 5.4.2 on the Struts site for how to map your action
 path such as /login to be either /login.do or /do/login on
 http://struts.apache.org/userGuide/configuration.html
 
 Again, the do (/do/* or *.do) part is customizable.  Some people posted
 about messing with people's heads by mapping every action to *.aspx instead
 of *.do to mess with their boss' head. :)
 
 Regards,
 David
 
 -Original Message-
 From: Koon Yue Lam [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 11, 2004 10:42 PM
 To: Struts Users Mailing List
 Subject: Re: About *.do
 
 so I need to map all actions of my webapp?
 something like
 /login map to /login.do ???
 
 Regards
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: JerichoFaces ?

2004-11-18 Thread Dakota Jack
Thanks for your thoughts, Craig.  See infra.  Most of your comments
were about the appearance, mien, bearing, style, and environment of
the discussion about Jericho versus Shale.

 I hope we don't have to keep discussing the legitimacy of the
discussion itself.  I am comfortable that a discussion of this topic
is legitimate on a Struts user list.  I think that we can talk about
these issues, whomever is right, closer to right, or whatever, and
that such talk is constructive and to be advised.

I am going to try to bring the discussion back a bit more to the
substance of the issues.  Hopefully the following will be constructive
for all.


 PLEASE move the discussions over the the developer
 list where they belong. 

With all due respect, which is considerable, on this topic the user
list seems far more appropriate than the developer list to me.  Users
have a significant investment in Struts remaining Struts.

Buying into Struts is not like buying a cup of coffee.  If Starbucks
wants to change to franchised taverns selling Mai Tai's and assorted
umbrelled drinks, we can always go to another coffee house.  If
Struts ends, the user is out of luck.

Joe wants my worries about Struts's future in relation to Shale cashed
out, and that certainly is a reasonable request.  The concern,
however, is primarily a user's concern and I would certainly advise
the user to pay attention to these developments.  If these worries are
not real, I would certainly read every word you have to say on that
with utmost care.  You can understand, I am sure, that the worry is
important to people that have an investment in Struts.

 Since we're all developers here ... you might consider trying to
 demonstrate with *code* instead of words (or pretty pictures :-) why a
 proposed solution is better.  

The diagram at http://131.191.32.112:8080/ cuts down on traffic: a
picture is worth a 1000 words?  The issues at this stage are
architectural not code.  So, from my perspective, this is the
appropriate presentation of the issues.  I don't think that code would
be at all helpful at this juncture.  More on this below.

 Show us an application based on that
 design (preferably one also implemented on the alternative approaches
 so we can compare -- and it doesn't have to be mailreader; I'm game
 for a different one).

There are numerous applications written in Struts and Struts has
proved itself.  Jericho as I see it is merely a very well thought out
technical improvement on Struts and can rely upon the past history and
success of Struts.  Jericho keeps the part that is not broken. 
Shale, however, if my view of Shale is right, essentially displaces
Struts with a new theory and has the burden of showing that code will
do what Struts can do and has done.  My main proposal, which is
consistent with Jericho but which is not part of Jericho per se, is to
develop a separate JerichoState mechanism with an event architecture
which will enhance the MVC pattern in a web based environment.

What I am advocating is the carpenter's adage -- measure twice, cut
once, and is the jumper's adage -- look before you leap.  I don't
think the sewer's adage -- a stitch in time saves nine -- is
appropriate to this discussion.  ;-)

 
 You've said you don't like the page controller approach.  Fine ...
 that's your right.  

I don't mind page controllers in one sense but do have questions in
another sense of page controller, i.e. in the sense employed in Java
ServerFaces and related to the controller in the MVC design pattern
which I think has proven itself.  I may be wrong.  But, heh, isn't
this the place to discuss it?  Where else?

 But Struts is dead comments are just noise,

I am not saying Struts is dead.  Let's be clear about that.  I am
very connected to the whole Struts idea.  I am worried that *if* Shale
is adapted Struts is dead.  This is not noise but a serious concern
which is either true or false.  Which is it?

 until you demonstrate exactly why and how your approach is better.  

If Struts *is* dead, then my investment in Struts is seriously
impacted whichever approach is better.  Right?  If Struts as we know
it dies with Shale, and that is the discussion topic in one aspect,
that has impacts that must address issues way beyond which is better. 
I might have an investment in Struts which would be important even if
Shale were better.  (I am not at all tending to think that, but,
again, that is another issue.)  Again, this is not like the Starbucks'
where there are other Struts houses out their the user can rely on if
Shale changes things as dramatically as I suspect it does.

 I don't *care* if you like page controller or not.  I don't *care* if
 your picture indicates a mythical complete separation between the
 various elements -- it doesn't mean anything until its cast in
 something concrete.

My picture is merely additive to StrutsJericho, which I don't
discuss but which has a serious presentation on the whiteboard. 
Struts has a considerable history 

Help with message resource on Struts module

2004-11-18 Thread Radu Badita

Hello,
I have a Struts module with the following message bundle:
message-resources parameter=mymodule.Application key=mymodulekey /
Inside an Action I can get messages from it with:
dateFormat = getResources(request,mymodulekey).getMessage(date.format);
and it works fine. But this Action forwards to a jsp in which I have this tag:
bean:message bundle=mymodule key=gs.filters.title/
it doesn't work because it cannot find the bundle in any scope.
Can anyone please help me with this? Maybe I don't use the bean:message / 
as it should be used...
Thanks

Radu

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


accessing message resources from tile definitions

2004-11-18 Thread Jeff Bowes
Hi,
Is there a way to access message-resources that you would normally 
access with a bean:message jsp tag in a tile definition in the 
tile-defs file.  I am using the tiles version included with Struts 1.1.

Thanks,
Jeff Bowes

--
Jeff Bowes M.Sc.
DBA/Technical Architect, Xenbase
Department of Biological Sciences
University of Calgary
Calgary, Alberta T2N 1N4
CANADA
Tel: (403) 220-2824 
Fax: (403) 284-4707



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


Re: JerichoFaces ?

2004-11-18 Thread Craig McClanahan
On Thu, 18 Nov 2004 14:09:02 -0500, Erik Weber [EMAIL PROTECTED] wrote:
 If Struts 2 is something fundamentally different from Struts 1, is it
 not possible that Struts 1 and Struts 2 could coexist and that the two
 could be maintained and (if people desire) developed separately? I mean,
 even if development peters out on Struts 1, can't it still stick around
 in its mature form? Doesn't it make sense that Craig could/should
 eventually leave behind Struts 1 to focus on Struts 2, etc., but that
 some other(s) could inherit leadership of Struts 1 and keep it going
 as well, if there is a user base to warrant it (if that is not already
 the case)?
 

There are many precedents for exactly this approach, including several
here at Apache:

* HTTP server (1.3 and 2.0 are totally different)

* Tomcat (3.x and 4.x were totally different)

as well as external examples (Windows 3.x versus XP, or ASP to
ASP.NEt, or VB to VB.Net, for example).

 I am speaking hypothetically because I haven't looked beyond Craig's
 initial Shale proposal doc (so I am quite uninformed about the
 fundamental differences), and I am not a Struts contributor in any form
 other than by helping (OK, *attempting* to help?) people on this list.
 But I do know that there are plenty of developers who really like the
 Struts of today, and perhaps it will remain good for certain jobs for an
 indefinite amount of time while Struts 2 is aimed at a different
 (probably more advanced) set of general requirements. Does anyone agree
 or am I missing something?
 
 
 Erik
 

Craig

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



Re: Performance issues

2004-11-18 Thread Joe Germuska
At 2:20 PM -0500 11/18/04, Erik Weber wrote:
I found that the JavaScript generated by the Validator (Struts 1.1) 
added nearly 40Kb to the page download! (Perhaps there is a way to 
only download a script once and reuse it among pages? I have no 
idea.) I don't use JavaScript validation other than a simple blank 
field check.
There is a way.  You can use the staticJavascript attribute and set 
it to false in most of your pages, and then make a single JSP like 
this:

more validation_js.jsp:
%@ page language=java %
%@ page contentType=text/javascript; charset=UTF-8 %
%@ taglib uri=/struts/html-el prefix=html %
html:javascript dynamicJavascript=false staticJavascript=true /
There you have it.
Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
Narrow minds are weapons made for mass destruction  -The Ex

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


Re: JerichoFaces ?

2004-11-18 Thread Dakota Jack
Joe,

This will be, to promote clarity, in a few parts.  The first is: WHAT
IS STRUTS? as you requested.  (See
http://rollerjm.free.fr/pro/Struts11.html#3 ).

 Elaborating from this, one might ask what is Struts?  

 Then again, I don't think the answer is
 critically important.  I don't really care what it's called; I just
 want a webapp framework that makes my job easier.  Continuity with
 Struts 1.x will help with that, since I won't have to live through
 retraining myself and the whole team -- but we've learned to deal
 with lots of change anyway.

This is, I think, well-known but may need to be said at the present
time.  I don't see StrutsJericho as a departure from the big picture
that is Struts.

Struts as I see it is essentially the framework defined by the classes
in Struts in part named by Action, i.e. ActionServet, Action,
ActionForm, ActionMapping, ActionForward, etc.

The ActionServlet takes a client's request which has a predefined
intent in the web.xml to employ the Struts framework (usually via
.do in the request URL) and passes them off to the appropriate
Action subclass with any predefined hooks, such as to an ActionForm.
 After processing, the Action subclass passes back control with an
ActionForward which tells the controller what response object to
return for the client's request.  The response object itself, e.g.
HTML, is created by the view helpers in Struts, e.g. JSP pages,
taglibs, etc.,, and its grabbing of data from request, page (tile),
session and application scope.  (This is where event based mechanism
in JerichoState, which is related to but not at all essential to
StrutsJericho -- controller -- comes into play.)

I refer anyone interested in this to the pretty pictures ;-) at
http://rollerjm.free.fr/pro/Struts11.html#3 which are fairly accurate,
I think, and have been provided to ASF by  Jean-Michel Garnier.

My discussion of Struts being on the chopping block (look deeply into
that chicken's eyes ;-) ) is based on seeing the controller mechanism,
what Craig now calls a monolithic controller, being jettisoned.

  Particularly
 when one looks at the chain-processing model, the definition becomes
 much more amorphous. 

I think that is 180 degrees off and that chain request processing is
completely in tune with the Struts architecture for the following
reasons.  The controller in Struts follows what the controller is
supposed to be in the classic MVC design, viz. a Strategy design
pattern which has as its job defin[ing] the way the user interface
reacts to user input (Gamma, et al, Design Patterns: Elements of
Reusable Object-Oriented Software, p. 4).  The Strategy pattern
essentially allows you to use different algorithms for a task. 
StrutsJericho clearly is an improvement on the original Struts vision
in this respect in that it allows the freedom to construct different
algorithms in the controller, ActionServlet, by allowing the
programmer to break down the RequestProcessor into increments which
can be arranged in various orders.

So far as I can tell, Shale merely dumps this whole idea for a page
based controller.  I am not adverse to page based controllers,
although I would not pursue this solution.  What I am saying is that
if there is a page based controller solution, it does not count as an
enhancement of but rather as a destruction of Struts.  If we want a
framework for Java ServerPages that is enamored of a page based
controller that is very cool and I would love to see it.  But, even
though Struts has great name recognition, grabbing the Struts name to
promote a non-Struts product seems too Machievellian to me.  LOL  That
*is* a joke, so let's laugh together.  If someone can explain to me
how the Struts controller vision can survive Shale, I would be very
interested.  If Shale is going to replace rather than enhance Struts,
let's know that up front.  Struts needs a big change, I think.  And, I
like the ideas Ted Husted has offered in StrutsJericho for Struts 2.0.
 Anyway, I would follow pretty much what everyone has been saying for
years in terms of what is essentially Struts.  Struts is pretty much
the controller mechanism that defined by handing off the ball to
Action subclasses and their return ActionForwards.  This is a way cool
idea, I think, and I would strongly suggest enhancing it rather than
dumping it as the way for Struts 2.0.  This does not mean I would not
support any work on anything.  I would support increasing rather than
decreasing choices.

I envision three more emails on this to the list: (1) what is
JerichoState?  (2) what is JerichoFaces?  and (3) does Shale jettison
rather than enhance Struts?  Then I will put up the core of these
emails with the helpful responses from the list.

I hope this addressed your question about what is Struts adequately,
Joe.  That is the real emphasis here conbined with a note that
StrutsJericho does that within the design pattern that Struts is
meant, viz. the Strategy pattern aspect of the controller in the MVC

Re: Newbie With Question

2004-11-18 Thread kjc
Debugging a server side component only works when the IDE has the 
ability to launch the appServer
inside the VM which is also running the IDE. You can then set 
breakpoints in the struts sources.

Bill Siggelkow wrote:
Scott,
Are you developing using an IDE such as Eclipse or IDEA?  Most IDEs 
have a debugger that allows you to step through your code as it 
executes. There is also a standalone debugger known as JSwat.

Because you have (or can get) the Struts source, you can set 
breakpoints within the Struts RequestProcessor to figure out where its 
failing.

-Bill Siggelkow
Scott Purcell wrote:
Hello Bill,
I checked everything again, and still do not see anything obvious. 
What did you mean by a debugger? Do you know of one for Tomcat and 
checking this type of problem?

If so, please let me know.
Thanks,
Scott

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Thursday, November 18, 2004 12:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Newbie With Question
Scott, this problem can happen when you are trying to forward to a 
non-existent location. For example, you would see this problem if the 
path specified in the forward name=success path=/submit.jsp/ 
was invalid.

However, looking at your struts-config.xml I do not see any errors.
I would first check that your Struts config is not throwing any 
errors when it is read in (check the Tomcat console for this). Then, 
I would get out the debugger.

(P.S. Just a matter of style here -- by convention, package names 
typically use the reverse of your company's web address; so your 
action's fully-qualified name would be something like 
'com.vertisinc.SubmitAction')

-Bill Siggelkow
Scott Purcell wrote:
Hello,
I am just getting underway with struts and found an example here:  
http://javaboutique.internet.com/tutorials/Struts/

I have completely followed the directions and I can get the initial 
form to display the data that comes from the ActionForm bean. Hansen.

But after I hit the submit, I just get a blank page. I have double, 
triple checked all config settings, but cannot figure out where the 
problem is. The Tomcat console does not show any error, and there 
appears to be no error anywhere. Problem is, it just does not 
display the submit.jsp page back with updated results.

If anyone has ideas, please let me know. Especially if there is a 
way to find any type of log from Tomcat. I cannot find any type of 
output from the app.

Thanks,
Scott
Here are my files:
my webapp is called firststrut
The classes are in package com
The file structure is correct

/WEB-INF/classes/com
package com;
import javax.servlet.http.*;
import org.apache.struts.action.*;
public final class SubmitAction extends Action {
 public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response) {
   System.out.println(SubmitAction extends Action class ##);
   SubmitForm f = (SubmitForm) form; // get the form bean
   // and take the last name value
   String lastName = f.getLastName();// Translate the name to 
upper case//and save it in the request object
request.setAttribute(lastName, lastName.toUpperCase());
  // Forward control to the specified success target
   return (mapping.findForward(success));
 }

}
/WEB-INF/classes/com
package com;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;
public final class SubmitForm extends ActionForm {
 /* Last Name */
 private String lastName = AMF; // default value
 public String getLastName() {
 System.out.println(Getting last name);
   return (this.lastName);
 }
 public void setLastName(String lastName) {
   this.lastName = lastName;
 }
 /* Address */
 private String address = 1313 Mockingbird Lane;
 public String getAddress() {
   return (this.address);
 }
 public void setAddress(String address) {
   this.address = address;
 }
 /* Sex */
 private String sex = null;
 public String getSex() {
   return (this.sex);
 }
 public void setSex(String sex) {
   this.sex = sex;
 }
 /* Married status */
 private String married = null;
 public String getMarried() {
   return (this.married);
 }
 public void setMarried(String married) {
   this.married = married;
 }
 /* Age */
 private String age = null;
 public String getAge() {
   return (this.age);
 }
 public void setAge(String age) {
   this.age = age;
 }
}

web.xml
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app
 !-- Standard Action Servlet Configuration (with debugging) --
 servlet
   servlet-nameaction/servlet-name
   servlet-class
   org.apache.struts.action.ActionServlet
/servlet-class
   init-param
 param-nameapplication/param-name
 param-valueApplicationResources/param-value
   /init-param
   init-param
 param-nameconfig/param-name
 

Re: Help with message resource on Struts module

2004-11-18 Thread Bill Siggelkow
Maybe this is just a typo but shouldn't you be using 
'bundle=mymodulekey' instead of 'bundle=mymodule'?

bean:message bundle=mymodulekey key=gs.filters.title/
Radu Badita wrote:

Hello,
I have a Struts module with the following message bundle:
message-resources parameter=mymodule.Application key=mymodulekey /
Inside an Action I can get messages from it with:
dateFormat = getResources(request,mymodulekey).getMessage(date.format);
and it works fine. But this Action forwards to a jsp in which I have 
this tag:
bean:message bundle=mymodule key=gs.filters.title/
it doesn't work because it cannot find the bundle in any scope.

Can anyone please help me with this? Maybe I don't use the bean:message 
/ as it should be used...
Thanks

Radu

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


[OT] Re: JerichoFaces ?

2004-11-18 Thread Dakota Jack
Craig,

I don't understand this.   I do want to be in the
middle of the herd on protocols and I do want to be heard.  

I don't understand your point here, however.  Are you seriously
saying this is just noise to users?  

Anyway, out of a lot of deference to you and out of a bit of fear 
from the warning part of fair warning and a little gratitude for the
fair part of fair warning, I have added [OT] to this.  I assume that
this discussion has to be at least as important to users as other 
[OT] discussions?  If you insist that even this is not acceptable, 
I will even drop this [OT] qualifier and move over to the developer 
list despite my judgment to the contrary and despite the fact that
I think this stiffles legitimate discussion.

Jack


On Thu, 18 Nov 2004 11:19:23 -0800, Craig McClanahan [EMAIL PROTECTED] wrote:
 On Thu, 18 Nov 2004 10:45:31 -0800, Dakota Jack [EMAIL PROTECTED] wrote:
 
 [snip]
  With all due respect, which is considerable, on this topic the user
  list seems far more appropriate than the developer list to me.  Users
  have a significant investment in Struts remaining Struts.
 
 Fair warning -- violating the community culture about how open source
 packages are developed; particularly here at Apache, is not going to
 help you get your ideas listened to, no matter how good they are.
 
 Craig


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



tiles performance

2004-11-18 Thread You Xu
I replaced the struts template with the tiles. And the performance
degraded significantly. For some pages, it is taking 1 minute while
previously it only took seconds. 
 
Any solution to this?  Thanks.
 
-yx


Re: Performance issues

2004-11-18 Thread Matt Bathje
Yes there is a way, here is a synopsis of what needs to be done from a 
message Bill Siggelkow posted to the list a while back:

Create a file called staticJavascript.jsp with the following content:

%@ page language=java %
%-- set document type to Javascript (addresses a bug in Netscape according to a web resource --%
%@ page contentType=application/x-javascript %
%@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html %
html:javascript dynamicJavascript=false staticJavascript=true/


Then in pages that use the validator include this file in the head(as you 
alluded).
head
  script language=Javascript1.1 src=staticJavascript.jsp/script
   ...
Now you can safely set the 'staticJavascript=false' on the html:javascript tag throughout your regular JSPs. 

There will still be some javascript on the page, but nowhere near as 
much as when the static javascript was printed.

Matt

Erik Weber wrote:
I found that the JavaScript generated by the Validator (Struts 1.1) 
added nearly 40Kb to the page download! (Perhaps there is a way to only 
download a script once and reuse it among pages? I have no idea.) I 
don't use JavaScript validation other than a simple blank field check.

Erik
Juan Salazar wrote:
Vic,
   Thanks. I have another question: I am testing for use Validators,
javascript code travels from server to client in each form request... in
a high traffic enviroment these could affects performance (network
bandwidth). What do you think?

El jue, 18-11-2004 a las 11:42 -0600, Vic escribió:
 

The slowest part of J2EE is Data access.
With Struts, you have the capability to stress test the DAO layer by 
itself.
hth,
.V

Juan Salazar wrote:
  

Is there any performance issue using Struts (actions, tiles, 
validators,
etc)?  (memory, network bandwith, etc)

I am using Struts for awhile, but need to known how to improve code.
Thanks in advance

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

--
 

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

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


Error instantiating servlet class, no root exception given

2004-11-18 Thread Peter Moore
I am trying to upgrade from Tomcat 4.1 to Tomcat 5.5.4, and am having 
problems migrating a struts application.  The application runs perfectly 
under Tomcat 4, but when I try to deploy it under version 5, I get the 
following in catalina.out:

--
Nov 17, 2004 2:55:45 PM org.apache.coyote.http11.Http11Protocol init
...
INFO: XML validation disabled
Nov 17, 2004 2:55:52 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Nov 17, 2004 1:40:20 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Servlet /pcs threw load() exception
javax.servlet.ServletException: Error instantiating servlet class 
d4.pcs.ServletPcsAction
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1020) 

  at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
  at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3817) 

  ...
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Nov 17, 2004 1:40:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 17, 2004 1:40:22 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Nov 17, 2004 1:40:22 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/132  config=null
Nov 17, 2004 1:40:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15628 ms
--
This is the only debugging output I appear to get.  There is no 
root-cause exception stack trace, no output in other files, etc.

*  I have been able to get a basic hello world-type application to 
deploy, so I'm pretty sure that Tomcat 5 is working in a sane manner, 
and that I'm not doing anything incredibly wrong in terms of server 
configuration.

* In WEB-INF/web.xml:
  servlet
  servlet-nameaction/servlet-name
  servlet-classd4.pcs.ServletPcsAction/servlet-class
  init-param
   ...
* The application in question extends the default struts servlet:
  public final class ServletPcsAction extends 
org.apache.struts.action.ActionServlet {  }
  This class has not changed at all, and works fine under TC 4.  There 
are numerous logging statements in this class, but no log statements 
show up anywhere. All I get is catalina.out.

* I am running on RH 9.0, and have exported  LD_ASSUME_KERNEL=2.4.1 as 
part of starting Tomcat.

* (TC 5.5) $TOMCAT_HOME/common/lib/ has the following jar files:
commons-el.jar
jasper-compiler.jar
jasper-compiler-jdt.jar
jasper-runtime.jar
jsp-api.jar
mysql-jdbc-conn.jar
naming-factory-dbcp.jar
naming-factory.jar
naming-resources.jar
servlet-api.jar
* These classfile folders are all empty:  $TOMCAT_HOME/shared/lib/,   
.../shared/classes/,  .../common/classes/.

*  The application was written using struts 1.0.  I have tried putting 
in the latest Struts jars / tld files (1.2), etc. to no effect.

Does anyone perhaps have an idea as to where I might look next?
Thanks,
  Peter Moore
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: About *.do

2004-11-18 Thread Chaikin, Yaakov Y.
Why? This would only be needed so that the user doesn't get confused by the
user-hostile blabla/do/hello. In reality all the functionality would be
the same.

What are the reasons to use different struts-config.xml in the first place?

Thanks,
Yaakov.

-Original Message-
From: Corey Scott [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 1:32 PM
To: Struts Users Mailing List
Subject: Re: About *.do

If that is the case, you might want to look into separate modules?

-Corey


On Thu, 18 Nov 2004 12:52:38 -0500, Chaikin, Yaakov Y.
[EMAIL PROTECTED] wrote:
 Is it a problem to map 2 servlet mappings to the Struts controller
 servlet...

 For example, I could think of a situation where someone would want to use
 different naming schemes so the customers will be less lost:

 For Shopping:
 */doShopping/*

 For Checkout:
 */doCheckout/*

 However, obviously, in reality both of these would be processed by the
 Struts controller servlet.

 Would this set up present a problem? (It shouldn't, but I am just want to
 make sure for the future.)

 Thanks,
 Yaakov.

 -Original Message-
 From: David G. Friedman [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 11, 2004 10:52 PM
 To: Struts Users Mailing List; Koon Yue Lam
 Subject: RE: About *.do

 See section 5.4.1 and 5.4.2 on the Struts site for how to map your action
 path such as /login to be either /login.do or /do/login on
 http://struts.apache.org/userGuide/configuration.html

 Again, the do (/do/* or *.do) part is customizable.  Some people posted
 about messing with people's heads by mapping every action to *.aspx
instead
 of *.do to mess with their boss' head. :)

 Regards,
 David

 -Original Message-
 From: Koon Yue Lam [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 11, 2004 10:42 PM
 To: Struts Users Mailing List
 Subject: Re: About *.do

 so I need to map all actions of my webapp?
 something like
 /login map to /login.do ???

 Regards

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

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

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



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

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



Re: Performance issues

2004-11-18 Thread Juan Salazar
Joe:
Thanks, I gonna try it.

El jue, 18-11-2004 a las 13:42 -0600, Joe Germuska escribi:

 At 2:20 PM -0500 11/18/04, Erik Weber wrote:
 I found that the JavaScript generated by the Validator (Struts 1.1) 
 added nearly 40Kb to the page download! (Perhaps there is a way to 
 only download a script once and reuse it among pages? I have no 
 idea.) I don't use JavaScript validation other than a simple blank 
 field check.
 
 There is a way.  You can use the staticJavascript attribute and set 
 it to false in most of your pages, and then make a single JSP like 
 this:
 
 
 more validation_js.jsp:
 %@ page language=java %
 %@ page contentType=text/javascript; charset=UTF-8 %
 
 %@ taglib uri=/struts/html-el prefix=html %
 html:javascript dynamicJavascript=false staticJavascript=true /
 
 There you have it.
 
 Joe
 

-- 


RE: Newbie With Question

2004-11-18 Thread David G. Friedman
Scott,

I think I've found your problem:  The Action class in Struts no longer has
the perform() method.  If you change the method name to execute() and add
the appropriate throws clause, you should be fine.  Perform() and
execute() should have the same signature except for those differences.

Why do I think this is the problem?  Oh, just a few clues you left:

You are using a Java Boutique tutorial based on v1.0.  Many things have been
deprecated and removed as of the current, stable v1.2.4 including the
perform() to execute() change.  Since v1.0 is VERY difficult to find yet you
listed 'just getting underway with Struts', I am assuming you are using the
current version, 1.2.4.  Your struts-config.xml DTD lists v1.0 (long gone)
and your web.xml DTD lists v2.2.  The V2.2 webapp spec would have suggested
you are on Tomcat v3.X.X and I somehow doubt that. :)

Good luck on your Struts project.

Regards,
David

-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:20 PM
To: [EMAIL PROTECTED]
Subject: Newbie With Question


Hello,

I am just getting underway with struts and found an example here:
http://javaboutique.internet.com/tutorials/Struts/

I have completely followed the directions and I can get the initial form to
display the data that comes from the ActionForm bean. Hansen.

But after I hit the submit, I just get a blank page. I have double, triple
checked all config settings, but cannot figure out where the problem is. The
Tomcat console does not show any error, and there appears to be no error
anywhere. Problem is, it just does not display the submit.jsp page back with
updated results.

If anyone has ideas, please let me know. Especially if there is a way to
find any type of log from Tomcat. I cannot find any type of output from the
app.

Thanks,
Scott


Here are my files:
my webapp is called firststrut
The classes are in package com
The file structure is correct



/WEB-INF/classes/com
package com;

import javax.servlet.http.*;
import org.apache.struts.action.*;

public final class SubmitAction extends Action {


  public ActionForward perform(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response) {


System.out.println(SubmitAction extends Action class ##);

SubmitForm f = (SubmitForm) form; // get the form bean
// and take the last name value
String lastName = f.getLastName();
// Translate the name to upper case
//and save it in the request object
request.setAttribute(lastName, lastName.toUpperCase());

// Forward control to the specified success target
return (mapping.findForward(success));
  }

}

/WEB-INF/classes/com
package com;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;

public final class SubmitForm extends ActionForm {

  /* Last Name */
  private String lastName = AMF; // default value
  public String getLastName() {
  System.out.println(Getting last name);
return (this.lastName);
  }
  public void setLastName(String lastName) {
this.lastName = lastName;
  }

  /* Address */
  private String address = 1313 Mockingbird Lane;
  public String getAddress() {
return (this.address);
  }
  public void setAddress(String address) {
this.address = address;
  }

  /* Sex */
  private String sex = null;
  public String getSex() {
return (this.sex);
  }
  public void setSex(String sex) {
this.sex = sex;
  }

  /* Married status */
  private String married = null;
  public String getMarried() {
return (this.married);
  }
  public void setMarried(String married) {
this.married = married;
  }

  /* Age */
  private String age = null;
  public String getAge() {
return (this.age);
  }
  public void setAge(String age) {
this.age = age;
  }

}



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

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

web-app

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


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


  !-- Struts Tag Library Descriptors 

RE: tiles performance

2004-11-18 Thread David G. Friedman
Yx,

Is the slowdown the first time an action accesses a template after
application startup? Or does it happen every time your action calls that
tiles template?

Regards,
David

-Original Message-
From: You Xu [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 3:36 PM
To: [EMAIL PROTECTED]
Subject: tiles performance


I replaced the struts template with the tiles. And the performance
degraded significantly. For some pages, it is taking 1 minute while
previously it only took seconds.

Any solution to this?  Thanks.

-yx


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



RE: Error instantiating servlet class, no root exception given

2004-11-18 Thread Ron Day
The perform method still exists, but the execute method is preferred

Tomcat 5.5 requires Java 1.5 aka Java5.0

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 5:40 PM
To: Struts Users Mailing List
Subject: RE: Error instantiating servlet class, no root exception given


Peter,

Are you running the required 1.5 JDK specified by Tomcat 5.5.4 or have you
performed the extensive (rumored) modifications to alter Tomcat 5.5.X to
work with JDK 1.4 or earlier?
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt

Regards,
David

-Original Message-
From: Peter Moore [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 4:21 PM
To: [EMAIL PROTECTED]
Subject: Error instantiating servlet class, no root exception given


I am trying to upgrade from Tomcat 4.1 to Tomcat 5.5.4, and am having
problems migrating a struts application.  The application runs perfectly
under Tomcat 4, but when I try to deploy it under version 5, I get the
following in catalina.out:

--
Nov 17, 2004 2:55:45 PM org.apache.coyote.http11.Http11Protocol init
...
INFO: XML validation disabled
Nov 17, 2004 2:55:52 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Nov 17, 2004 1:40:20 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Servlet /pcs threw load() exception
javax.servlet.ServletException: Error instantiating servlet class
d4.pcs.ServletPcsAction
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
20)

   at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
   at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3817)

   ...
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Nov 17, 2004 1:40:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 17, 2004 1:40:22 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Nov 17, 2004 1:40:22 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/132  config=null
Nov 17, 2004 1:40:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15628 ms
--

This is the only debugging output I appear to get.  There is no
root-cause exception stack trace, no output in other files, etc.

*  I have been able to get a basic hello world-type application to
deploy, so I'm pretty sure that Tomcat 5 is working in a sane manner,
and that I'm not doing anything incredibly wrong in terms of server
configuration.

* In WEB-INF/web.xml:
   servlet
   servlet-nameaction/servlet-name
   servlet-classd4.pcs.ServletPcsAction/servlet-class
   init-param
...

* The application in question extends the default struts servlet:
   public final class ServletPcsAction extends
org.apache.struts.action.ActionServlet {  }
   This class has not changed at all, and works fine under TC 4.  There
are numerous logging statements in this class, but no log statements
show up anywhere. All I get is catalina.out.

* I am running on RH 9.0, and have exported  LD_ASSUME_KERNEL=2.4.1 as
part of starting Tomcat.

* (TC 5.5) $TOMCAT_HOME/common/lib/ has the following jar files:
 commons-el.jar
 jasper-compiler.jar
 jasper-compiler-jdt.jar
 jasper-runtime.jar
 jsp-api.jar
 mysql-jdbc-conn.jar
 naming-factory-dbcp.jar
 naming-factory.jar
 naming-resources.jar
 servlet-api.jar

* These classfile folders are all empty:  $TOMCAT_HOME/shared/lib/,
.../shared/classes/,  .../common/classes/.

*  The application was written using struts 1.0.  I have tried putting
in the latest Struts jars / tld files (1.2), etc. to no effect.

Does anyone perhaps have an idea as to where I might look next?

Thanks,

   Peter Moore

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


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






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



RE: Error instantiating servlet class, no root exception given

2004-11-18 Thread David G. Friedman
Ron,

I think we're in different threads.  Anyway, perform is both deprecated
(from 1.1 onward) AND gone (1.2.4 onward).  Check the
org.apache.struts.action.Action class in the SVN repository (I did before I
posted that other response).  Hell, check the API for current version:
http://struts.apache.org/api/org/apache/struts/action/Action.html

Regards,
David

-Original Message-
From: Ron Day [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 6:46 PM
To: Struts Users Mailing List
Subject: RE: Error instantiating servlet class, no root exception given


The perform method still exists, but the execute method is preferred

Tomcat 5.5 requires Java 1.5 aka Java5.0

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 5:40 PM
To: Struts Users Mailing List
Subject: RE: Error instantiating servlet class, no root exception given


Peter,

Are you running the required 1.5 JDK specified by Tomcat 5.5.4 or have you
performed the extensive (rumored) modifications to alter Tomcat 5.5.X to
work with JDK 1.4 or earlier?
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt

Regards,
David

-Original Message-
From: Peter Moore [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 4:21 PM
To: [EMAIL PROTECTED]
Subject: Error instantiating servlet class, no root exception given


I am trying to upgrade from Tomcat 4.1 to Tomcat 5.5.4, and am having
problems migrating a struts application.  The application runs perfectly
under Tomcat 4, but when I try to deploy it under version 5, I get the
following in catalina.out:

--
Nov 17, 2004 2:55:45 PM org.apache.coyote.http11.Http11Protocol init
...
INFO: XML validation disabled
Nov 17, 2004 2:55:52 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Nov 17, 2004 1:40:20 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Servlet /pcs threw load() exception
javax.servlet.ServletException: Error instantiating servlet class
d4.pcs.ServletPcsAction
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
20)

   at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
   at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3817)

   ...
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Nov 17, 2004 1:40:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 17, 2004 1:40:22 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Nov 17, 2004 1:40:22 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/132  config=null
Nov 17, 2004 1:40:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15628 ms
--

This is the only debugging output I appear to get.  There is no
root-cause exception stack trace, no output in other files, etc.

*  I have been able to get a basic hello world-type application to
deploy, so I'm pretty sure that Tomcat 5 is working in a sane manner,
and that I'm not doing anything incredibly wrong in terms of server
configuration.

* In WEB-INF/web.xml:
   servlet
   servlet-nameaction/servlet-name
   servlet-classd4.pcs.ServletPcsAction/servlet-class
   init-param
...

* The application in question extends the default struts servlet:
   public final class ServletPcsAction extends
org.apache.struts.action.ActionServlet {  }
   This class has not changed at all, and works fine under TC 4.  There
are numerous logging statements in this class, but no log statements
show up anywhere. All I get is catalina.out.

* I am running on RH 9.0, and have exported  LD_ASSUME_KERNEL=2.4.1 as
part of starting Tomcat.

* (TC 5.5) $TOMCAT_HOME/common/lib/ has the following jar files:
 commons-el.jar
 jasper-compiler.jar
 jasper-compiler-jdt.jar
 jasper-runtime.jar
 jsp-api.jar
 mysql-jdbc-conn.jar
 naming-factory-dbcp.jar
 naming-factory.jar
 naming-resources.jar
 servlet-api.jar

* These classfile folders are all empty:  $TOMCAT_HOME/shared/lib/,
.../shared/classes/,  .../common/classes/.

*  The application was written using struts 1.0.  I have tried putting
in the latest Struts jars / tld files (1.2), etc. to no effect.

Does anyone perhaps have an idea as to where I might look next?

Thanks,

   Peter Moore

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


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






-
To unsubscribe, 

Re: Error instantiating servlet class, no root exception given

2004-11-18 Thread Peter Moore
David,
I am indeed running the 1.5 JVM on this machine.
Also, while I agree that Ron's post regarding perform() / execute is 
probably meant for another thread, that is one thing that I forgot to 
mention.  The application was originally written to use struts 1.0  
(i.e., perform()), and all of the information in my original post 
applies to having tried to deploy to TC 5.5 using Struts 1.0 libraries 
(in WEB-INF/lib/).  However, I did try putting in newer Struts 
libraries, and had the same issue.  All of my ActionX classes extend a 
common ActionPcs class, which has the following method:


   public ActionForward execute(
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response) throws ServletException
   {
   HttpSession session = request.getSession(false);
   if(null == session) {
   throw new 
ServletException(Pcs.web.getString(sExcept.nullSession));
   }

   ActionForward actionForward = this.perform(mapping, form, 
request, response, session);   ---
   if(null == actionForward) {
   throw new 
ServletException(Pcs.web.getString(sExcept.nullForward));
   }
   return actionForward;
   }
---

-Peter Moore

David G. Friedman wrote:
Peter,
Are you running the required 1.5 JDK specified by Tomcat 5.5.4 or have you
performed the extensive (rumored) modifications to alter Tomcat 5.5.X to
work with JDK 1.4 or earlier?
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt
Regards,
David
 

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


Q's about Struts release information and upgrade guides

2004-11-18 Thread David G. Friedman
Where are the release notes for Struts versions before 1.2.4?  I just
received a question about code changes (via a private email) and cannot find
the changes from v1.0 to 1.2.4 on the Strut site or the Wiki (not where I
looked anyway). I would have expected to have found this information on the
release notes but it only lists the nightly 1.2.5 build and a 1.2.6
development build.  Can a link be made on
http://struts.apache.org/userGuide/release-notes.html to a page listing
changes/deprecations/etc. for previous versions for those who need to
upgrade?  I'd hate to have people emailing the list because they jumped
from, say v1.0 to v1.2.4 and BOOM big unexplainable compilations breaks
occur.  After all, so many things were deprecated AND removed from the code
but the reasons are no longer listed (where I looked).

Thank and regards,
David


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



Re: URL Customization

2004-11-18 Thread Richard
Well for one thing my boss wants it removed.


On Thu, 18 Nov 2004 09:02:40 -0500, Jeff Beal [EMAIL PROTECTED] wrote:
 Why?
 
 Richard wrote:
  I need to remove the webapp specific part / names on my application.
  For example
 
  http://mydomain.com/mywebapp/index.jsp
 
  and
 
  http://mydomain.com/mywebapp/serverpages/add-record.rr
 
  I need the user to just see http://mydomain.com/ on their browser.
 
 
 -
 
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



bean not found problem

2004-11-18 Thread Nishant
hi to all,
i am using tomcat apache server with struts .
problem is that my jsp page throwing me an errors that bean is not foound ...
my jsp code is ...
 logic:iterate id=employee name=employees type=com.cybage.DBDAO
 tr align=left
   td
   a href = detailProfile.jsp bean:write name=employee 
property=username //a
   /td
   td
bean:write name=employee property=id /
   /td
  
   td
a href=Edit.do?username=bean:write name=employee
   property=username /Edit/a
 a href=Delete.do?username=bean:write name=employee
   property=username /Delete/a
   /td
 /tr
  /logic:iterate

where employees is my Arraylist name.
while processing it will give an errors as 

11/19 10:28:03 error Unhandled exception thrown from /employeelist.jsp:41
[1]javax.servlet.jsp.JspException: Cannot find bean employees in any scope
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938)
at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:
277)
at jrun__employeelist2ejsp11._jspService(jrun__employeelist2ejsp11.java:
146)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
249)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:349)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:457)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:295)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
[0]jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from /empl
oyeelist.jsp:41
at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
at jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.
java:384)
at jrun__employeelist2ejsp11._jspService(jrun__employeelist2ejsp11.java:
242)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
249)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:349)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:457)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:295)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
 please help where am idoing wrong...

thanks in advance ...


Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path

Re: bean not found problem

2004-11-18 Thread Peng Tuck
Nishant ,
  Is there such a bean called employees exposed in any scope (since you 
didn't specify any scope) ?
If so logic:iterate will fail. Can you tell us if it's a bean with a 
collection you want to retrieve or is employees
just a plain old collection  ?

Nishant wrote:
hi to all,
i am using tomcat apache server with struts .
problem is that my jsp page throwing me an errors that bean is not foound ...
my jsp code is ...
logic:iterate id=employee name=employees type=com.cybage.DBDAO
tr align=left
  td
  a href = detailProfile.jsp bean:write name=employee property=username //a
  /td
  td
   bean:write name=employee property=id /
  /td
 
  td
   a href=Edit.do?username=bean:write name=employee
  property=username /Edit/a
a href=Delete.do?username=bean:write name=employee
  property=username /Delete/a
  /td
/tr
 /logic:iterate

where employees is my Arraylist name.
while processing it will give an errors as 
11/19 10:28:03 error Unhandled exception thrown from /employeelist.jsp:41
[1]javax.servlet.jsp.JspException: Cannot find bean employees in any scope
   at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938)
   at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:
277)
   at jrun__employeelist2ejsp11._jspService(jrun__employeelist2ejsp11.java:
146)
   at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
   at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
   at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
   at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
   at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
249)
   at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
   at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
   at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:349)
   at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:457)
   at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:295)
   at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
[0]jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from /empl
oyeelist.jsp:41
   at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
   at jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.
java:384)
   at jrun__employeelist2ejsp11._jspService(jrun__employeelist2ejsp11.java:
242)
   at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
   at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
   at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
   at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
   at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
249)
   at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
   at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
   at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:349)
   at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:457)
   at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:295)
   at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
please help where am idoing wrong...
thanks in advance ...
Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path
 


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


Re: bean not found problem

2004-11-18 Thread Nishant
employees is just a plain collection Arraylist 

Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path
- Original Message - 
From: Peng Tuck [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 19, 2004 10:49 AM
Subject: Re: bean not found problem


 Nishant ,
Is there such a bean called employees exposed in any scope (since you
 didn't specify any scope) ?
 If so logic:iterate will fail. Can you tell us if it's a bean with a
 collection you want to retrieve or is employees
 just a plain old collection  ?

 Nishant wrote:

 hi to all,
 i am using tomcat apache server with struts .
 problem is that my jsp page throwing me an errors that bean is not foound
...
 my jsp code is ...
  logic:iterate id=employee name=employees type=com.cybage.DBDAO
  tr align=left
td
a href = detailProfile.jsp bean:write name=employee
property=username //a
/td
td
 bean:write name=employee property=id /
/td
 
td
 a href=Edit.do?username=bean:write name=employee
property=username /Edit/a
  a href=Delete.do?username=bean:write name=employee
property=username /Delete/a
/td
  /tr
   /logic:iterate
 
 where employees is my Arraylist name.
 while processing it will give an errors as 
 
 11/19 10:28:03 error Unhandled exception thrown from /employeelist.jsp:41
 [1]javax.servlet.jsp.JspException: Cannot find bean employees in any
scope
 at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938)
 at
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:
 277)
 at
jrun__employeelist2ejsp11._jspService(jrun__employeelist2ejsp11.java:
 146)
 at
jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
 at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
 at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
 249)
 at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
 527)
 at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
 at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
 l.java:349)
 at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
 ava:457)
 at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
 java:295)
 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
 [0]jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown
from /empl
 oyeelist.jsp:41
 at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
 at
jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.
 java:384)
 at
jrun__employeelist2ejsp11._jspService(jrun__employeelist2ejsp11.java:
 242)
 at
jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
 at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
 at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
 249)
 at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
 527)
 at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
 at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
 l.java:349)
 at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
 ava:457)
 at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
 java:295)
 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
  please help where am idoing wrong...
 
 thanks in advance ...
 
 
 Regards
 Nishant Patil
 Software Engineer
 Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
 West Avenue, Kalyaninagar
 Pune - 411006
 Ph. +91-20-4044700/4041700 Extn 355
 [EMAIL PROTECTED]
 www.cybage.com
 There is difference between knowing the Path and walking on the Path
 
 


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



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



Re: bean not found problem

2004-11-18 Thread Peng Tuck
Right, so back to the original problem, did you populate that collection 
in any scope, say either the request or session or page  ?
Cause that's what it seems to indicate. I think you just need to do a 
little checking on your side to see if it's there, you should be ok
from the looks of what you are doing.

Nishant wrote:
employees is just a plain collection Arraylist 
Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path
- Original Message - 
From: Peng Tuck [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 19, 2004 10:49 AM
Subject: Re: bean not found problem

 

Nishant ,
  Is there such a bean called employees exposed in any scope (since you
didn't specify any scope) ?
If so logic:iterate will fail. Can you tell us if it's a bean with a
collection you want to retrieve or is employees
just a plain old collection  ?
Nishant wrote:
   

hi to all,
i am using tomcat apache server with struts .
problem is that my jsp page throwing me an errors that bean is not foound
 


 

my jsp code is ...
logic:iterate id=employee name=employees type=com.cybage.DBDAO
tr align=left
 td
 a href = detailProfile.jsp bean:write name=employee
 

property=username //a
 

 /td
 td
  bean:write name=employee property=id /
 /td
 td
  a href=Edit.do?username=bean:write name=employee
 property=username /Edit/a
   a href=Delete.do?username=bean:write name=employee
 property=username /Delete/a
 /td
/tr
/logic:iterate
where employees is my Arraylist name.
while processing it will give an errors as 
11/19 10:28:03 error Unhandled exception thrown from /employeelist.jsp:41
[1]javax.servlet.jsp.JspException: Cannot find bean employees in any
 

scope
 

  at
 

org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938)
 

  at
 

org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:
 

277)
  at
 

jrun__employeelist2ejsp11._jspService(jrun__employeelist2ejsp11.java:
 

146)
  at
 

jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
 

  at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
  at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
  at
 

jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 

  at
 

jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
 

249)
  at
 

jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
 

527)
  at
 

jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
 

  at
 

jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
 

l.java:349)
  at
 

jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
 

ava:457)
  at
 

jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
 

java:295)
  at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
[0]jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown
 

from /empl
 

oyeelist.jsp:41
  at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
  at
 

jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.
 

java:384)
  at
 

jrun__employeelist2ejsp11._jspService(jrun__employeelist2ejsp11.java:
 

242)
  at
 

jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
 

  at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
  at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
  at
 

jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 

  at
 

jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
 

249)
  at
 

jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
 

527)
  at
 

jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
 

  at
 

jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
 

l.java:349)
  at
 

jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
 

ava:457)
  at
 

jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
 

java:295)
  at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
please help where am idoing wrong...
thanks in advance ...
Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path
 

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



not getting

2004-11-18 Thread Nishant
hi to all,
i am using tomcat apache server 
i am getting following error..

 error There is no web application configured to service your request
i am not getting wht is wrong in my web- application n by which cause i am 
gettin this error
plz anyone help
thankx in advanced

Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path

Re: not getting

2004-11-18 Thread Richard Yee
What URL are you using to access the web application?
What does your config file look like? How did you
deploy your application?

-R
--- Nishant [EMAIL PROTECTED] wrote:

 hi to all,
 i am using tomcat apache server 
 i am getting following error..
 
  error There is no web application configured to
 service your request
 i am not getting wht is wrong in my web- application
 n by which cause i am gettin this error
 plz anyone help
 thankx in advanced
 
 Regards
 Nishant Patil
 Software Engineer
 Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
 West Avenue, Kalyaninagar
 Pune - 411006
 Ph. +91-20-4044700/4041700 Extn 355
 [EMAIL PROTECTED]
 www.cybage.com
 There is difference between knowing the Path and
 walking on the Path




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



[OT]-RE: not getting

2004-11-18 Thread Kailash Vasani
checkout tomcat documentation on how to deploy web application

-Original Message-
From: Nishant [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 11:38 AM
To: Struts Users Mailing List
Subject: not getting


hi to all,
i am using tomcat apache server 
i am getting following error..

 error There is no web application configured to service your request
i am not getting wht is wrong in my web- application n by which cause i
am gettin this error
plz anyone help
thankx in advanced

Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path
Quinnox is an Award Winning IT services organisation, accredited to CMM
Level 5. We are successfully delivering Application Development,
Integration, Support and Testing services to clients in the Finance,
Manufacturing, Retail and Telecom sectors. Particular focus areas include
e-Business and ERP (notably SAP) solutions.

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



validator form not responding properly

2004-11-18 Thread Nishant
 in my struts application i am goin from one page to another by clicking the 
buttons
but when i got to particular page which is using validatorform it will popup 
validations on invoking..
so my problem is how to delay the invocation of validatorForm ...
Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
There is difference between knowing the Path and walking on the Path