JSPG0103E: Unable to open taglibrary /WEB-INF/struts-bean.tld

2004-03-19 Thread ansuman_behera
Hi All,

In our project we are getting an error with the subject as the error message. 

We are getting this in the development environment. We are using WSAD 4.0. The 
interesting thing is we are not getting the error when we are using WAS 4.0.1 as part 
of WSAD but with WAS 4.0.2.

I'm writing the error message again below.

Have tried searching on struts, google and almost every other option but failed to 
find a solution to this...

Has anyone else faced this? Is there a solution to this?

thanks
ansu

[3/17/04 11:25:41:734 CST] 70060345 OSEListenerDi X PLGN0021E: Servlet Request 
Processor Exception: Virtual Host/WebGroup Not Found : The web group / has not been 
defined
java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
at 
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:147)
at org.apache.jasper.compiler.JspUtil.parseXMLDoc(JspUtil.java:187)
at 
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:473)
at 
org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:305)
at 
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:800)
at 
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:216)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1115)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1066)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1062)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:237)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:697)
at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:244)
at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at 
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at 
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at 
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at 
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
at 
com.ibm.servlet.engine.webapp.SimpleFileServlet.doGet(SimpleFileServlet.java:223)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at 
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at 
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at 
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at 
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
at 
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184)
at 
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at 
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at 

RE: How to configure a struts application

2003-08-14 Thread ansuman_behera
It is very easy with Tomcat too. I'm using Tomcat 4.1 and Struts 1.0.2. Here is what 
you need to do at a high level

1. Ensure that your web application has a folder under TOMCAT_HOME/webapps.
2. Inside this folder create a folder called WEB-INF
3. In the WEB-INF folder you should have all struts*.tld files and the DTD file and 
the struts configuration file.
4. Create a folder called lib under WEB-INF and keep the struts.jar file inside 
this lib folder.

off the top of my head, I can't think of anything else that you might have to 
do...take some simple example code already built by someone and use it and see if this 
works...

thanks
ansuman

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 11:30 AM
To: Struts Users Mailing List
Subject: Re: How to configure a struts application



Tomcat, I am suffering and no luck yet. I hate it now.
It's very easy to do it in Weblogic.
- Do not put struts.jar in Weblogic classpath or any other classpath it
reads.
- Struts.jar should be in your Web Application's WEB-INF/lib
- Make sure you include struts.jar in your web application .war file
while building it.

Other then this, a Struts web application just deploys fine like any other
web application on weblogic.

thanks
-raj



   
   
  Nimmagadda, Ravikumar   
   
  (CORP, GEITC,   To:   Struts Users Mailing 
List [EMAIL PROTECTED]  
  Contractor)cc:  
   
  [EMAIL PROTECTED]Subject:  How to configure a struts 
application 
  ind.ge.com  
   
   
   
  07/08/2003 11:20 AM  
   
  Please respond to
   
  Struts Users Mailing
   
  List
   
   
   
   
   




Hi *,
I am new to Struts.
can any one let me know how to configure a struts application on either
Tomcat4.1 or weblogic.6.x
Thanks in advance.
Ravi

-
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: [FRIDAY] method to get new Id to next action when old Id is in request?

2003-08-14 Thread ansuman_behera
now that's a good answer:)

ansu

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 4:56 PM
To: Struts Users Mailing List
Subject: RE: method to get new Id to next action when old Id is in
request?


hah. Thats nothing!
Wait till you try coding it without hidden variables AND standing upside
down in a hammock while playing bagpipes at the same time.
Using .net
On a 486
with no monitor

...ah Friday is that BEER I can smell?

hmmm I know
how about tacking it on as a query parameter to the forms action url...?

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Friday, 8 August 2003 19:13
To: Struts Users Mailing List
Subject: RE: method to get new Id to next action when old Id is in
request?


That's ridiculous.  If that were true, then just give up and go home.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx




 -Original Message-
 From: ansuman_behera [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 08, 2003 2:51 AM
 To: Struts Users Mailing List
 Subject: RE: method to get new Id to next action when old Id is in
 request?


 what if there is a restriction that the developers should not be
 using hidden variables? what do you do in this case?

 -Original Message-
 From: Rohit Aeron [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 08, 2003 11:54 AM
 To: Struts Users Mailing List
 Subject: RE: method to get new Id to next action when old Id is in
 request?


 Try putting up id as a hidden variable...

 Eg:

 html:hidden name=FormBean property=id/


 it would work

 regards
 Rohit

 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 08, 2003 2:56 AM
 To: Struts Users Mailing List
 Subject: method to get new Id to next action when old Id is in request?

 I have two actions chained together. They both take the same formbean.
 The first is sectionInsert.do and the second, which sectionInsert
 forwards to on success, is sectionEdit.do

 sectionInsert.do receives the properties of a Section in the request
 parameters, including id=0 where it is 0 because it does not exist in
 the DB yet. So it inserts the new Section into the DB and returns the
 new id, which is needed by sectionEdit to put into the html for the edit
 page.

 I originally thought I could save the new id to the formbean and this
 would get passed on, but sectionEdit instantiates its own formbean and
 fills it with the request parameters - include id=0.

 Is there an intuitive way of passing on the new id?

 I already use sectionEdit.do as a first action by calling it with an id
 on a querystring, where the formbean picks it up. I would like to use a
 method that is easy for both these situations.

 I'd appreciate any inspiration.
 Adam


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



 *--
 This message and any attachment(s) is intended only for the use
 of the addressee(s) and may contain information that is
 PRIVILEGED and CONFIDENTIAL. If you are not the intended
 addressee(s), you are hereby notified that any use, distribution,
 disclosure or copying of this communication is strictly
 prohibited. If you have received this communication in error,
 please erase all copies of the message and its attachment(s) and
 notify the sender or Kanbay postmaster immediately.

 Any views expressed in this message are those of the individual
 sender and not of Kanbay.

 Although we have taken steps to ensure that this e-mail and any
 attachment(s) are free from any virus, we advise that in keeping
 with good computing practice the recipient should ensure they are
 actually virus free.


 -
 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]



DynaActionForm

2003-08-14 Thread ansuman_behera
Hi,

Is there a place where the disadvantages of using DynaActionForm is listed? Needed 
this for a discussion.

thanks
ansuman

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



RE: [FRIDAY] method to get new Id to next action when old Id is in request?

2003-08-14 Thread ansuman_behera
no offence meant James but I've had past experience when the so called architects and 
designer of my client have asked me not to use hidden variables...period...

they would not listen to anything, they would not discuss about and hence my question. 
Obviously you do understand that the answer given by you is something I cannot tell to 
my customers but thanks for answering anyway.

ansuman

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 4:43 PM
To: Struts Users Mailing List
Subject: RE: method to get new Id to next action when old Id is in
request?


That's ridiculous.  If that were true, then just give up and go home.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx




 -Original Message-
 From: ansuman_behera [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 08, 2003 2:51 AM
 To: Struts Users Mailing List
 Subject: RE: method to get new Id to next action when old Id is in
 request?
 
 
 what if there is a restriction that the developers should not be 
 using hidden variables? what do you do in this case?
 
 -Original Message-
 From: Rohit Aeron [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 08, 2003 11:54 AM
 To: Struts Users Mailing List
 Subject: RE: method to get new Id to next action when old Id is in
 request?
 
 
 Try putting up id as a hidden variable...
 
 Eg:
 
 html:hidden name=FormBean property=id/
 
 
 it would work 
 
 regards
 Rohit
 
 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED] 
 Sent: Friday, August 08, 2003 2:56 AM
 To: Struts Users Mailing List
 Subject: method to get new Id to next action when old Id is in request?
 
 I have two actions chained together. They both take the same formbean. 
 The first is sectionInsert.do and the second, which sectionInsert 
 forwards to on success, is sectionEdit.do
 
 sectionInsert.do receives the properties of a Section in the request 
 parameters, including id=0 where it is 0 because it does not exist in 
 the DB yet. So it inserts the new Section into the DB and returns the 
 new id, which is needed by sectionEdit to put into the html for the edit 
 page.
 
 I originally thought I could save the new id to the formbean and this 
 would get passed on, but sectionEdit instantiates its own formbean and 
 fills it with the request parameters - include id=0.
 
 Is there an intuitive way of passing on the new id?
 
 I already use sectionEdit.do as a first action by calling it with an id 
 on a querystring, where the formbean picks it up. I would like to use a 
 method that is easy for both these situations.
 
 I'd appreciate any inspiration.
 Adam
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 *--
 This message and any attachment(s) is intended only for the use 
 of the addressee(s) and may contain information that is 
 PRIVILEGED and CONFIDENTIAL. If you are not the intended 
 addressee(s), you are hereby notified that any use, distribution, 
 disclosure or copying of this communication is strictly 
 prohibited. If you have received this communication in error, 
 please erase all copies of the message and its attachment(s) and 
 notify the sender or Kanbay postmaster immediately.
 
 Any views expressed in this message are those of the individual 
 sender and not of Kanbay.
 
 Although we have taken steps to ensure that this e-mail and any 
 attachment(s) are free from any virus, we advise that in keeping 
 with good computing practice the recipient should ensure they are 
 actually virus free.
 
 
 -
 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: Button labels and DispatchActions mix?

2003-08-14 Thread ansuman_behera
even I had faced a similar problem in one of my past experiences. 

the workaround that I adopted was by providing a link instead of a button and hence I 
could append the parameter value. To my business users the difference did not matter...

ansuman

-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 6:09 PM
To: 'Struts Users Mailing List'
Subject: RE: Button labels and DispatchActions mix?


I believe that the solution is to use a DispatchLookupAction rather than a
dispatch action. See p226 in Struts in Action for a description.

Paul

-Original Message-
From: Rohit Aeron [mailto:[EMAIL PROTECTED]
Sent: 07 August 2003 13:27
To: Struts Users Mailing List
Subject: RE: Button labels and DispatchActions mix?


Its better you use javascript 
There you can append your action also with submit value

Eg:

Document.formbean.action=search.do+value;

Regards
Rohit


-Original Message-
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 5:49 PM
To: Struts Users Mailing List
Subject: Re: Button labels and DispatchActions mix?

It works with the button label But I have two Search buttons on the
same page both labeled
search.button.reset but they perform two different actions. So I need a
way to distinguish which was pressed
inside my DispatchAction


Rohit Aeron wrote:
 
 This will work ..
 
 html:submit property=action
 value=bean:message key=search.button.reset / 
 /html:submit
 
 -Original Message-
 From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 5:29 PM
 To: Struts Users Mailing List
 Subject: Button labels and DispatchActions mix?
 
 Hello people,
 
 I have the following code :
 
  html:submit property=action value=resetg 
  bean:message key=search.button.reset /
  /html:submit
 
 What I am trying to do is have a Dispatch Action
 so that when this button is pressed the request is something like
 search.do?action=resetg
 But I don't want my button to have the resetg title on it. I want it to
 have the search.button.reset title from ApplicationResources bundle
 on it. It seems tha Struts html tag library mixes the two. Is there a
 way out of this?
 
 Thanks
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 *--
 This message and any attachment(s) is intended only for the use of the
addressee(s) and may contain information that is PRIVILEGED and
CONFIDENTIAL. If you are not the intended addressee(s), you are hereby
notified that any use, distribution, disclosure or copying of this
communication is strictly prohibited. If you have received this
communication in error, please erase all copies of the message and its
attachment(s) and notify the sender or Kanbay postmaster immediately.
 
 Any views expressed in this message are those of the individual sender and
not of Kanbay.
 
 Although we have taken steps to ensure that this e-mail and any
attachment(s) are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.
 
 -
 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]


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.



RE: method to get new Id to next action when old Id is in request?

2003-08-09 Thread ansuman_behera
what if there is a restriction that the developers should not be using hidden 
variables? what do you do in this case?

-Original Message-
From: Rohit Aeron [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 11:54 AM
To: Struts Users Mailing List
Subject: RE: method to get new Id to next action when old Id is in
request?


Try putting up id as a hidden variable...

Eg:

html:hidden name=FormBean property=id/


it would work 

regards
Rohit

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 2:56 AM
To: Struts Users Mailing List
Subject: method to get new Id to next action when old Id is in request?

I have two actions chained together. They both take the same formbean. 
The first is sectionInsert.do and the second, which sectionInsert 
forwards to on success, is sectionEdit.do

sectionInsert.do receives the properties of a Section in the request 
parameters, including id=0 where it is 0 because it does not exist in 
the DB yet. So it inserts the new Section into the DB and returns the 
new id, which is needed by sectionEdit to put into the html for the edit 
page.

I originally thought I could save the new id to the formbean and this 
would get passed on, but sectionEdit instantiates its own formbean and 
fills it with the request parameters - include id=0.

Is there an intuitive way of passing on the new id?

I already use sectionEdit.do as a first action by calling it with an id 
on a querystring, where the formbean picks it up. I would like to use a 
method that is easy for both these situations.

I'd appreciate any inspiration.
Adam


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



*--
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.


-
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: Java Help

2003-08-07 Thread ansuman_behera
Zille,

following would be the rough steps that you'd have to do for accessing from a normal 
java class...
1. set the jdbc.drivers property of the system to the full path name of the driver
2. Call the getConnection method of the DriverManager class by passing the URL of the 
database

however if you are planning to access the DB from inside a web application, it is 
advisable to create a data source corresponding to the database in the server and 
access the same using JNDI.

something like
Context ctx = new InitialContext();
DataSource ds = (DataSource) 
ctx.lookup(java:comp/env/jdbc/myDataSource);
conn = ds.getConnection();
where myDataSource is the data source name that you provided while creating the JNDI 
entry...

hope this helps
ansu



-Original Message-
From: Zille Hassan [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 1:53 PM
To: Struts Users Mailing List
Subject: Java Help


Hey Guys really new to this java stuff 
So can someone tell me how do I connect to my DB using ODBC 
All I remember is 

Class.forName(sun.jdbc.odbc.JdbcOdbc:)

So how do I connect to my DB guys 
Regds 
Zille 


-
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]