Re: Struts User in Malaysia

2003-08-26 Thread virupaksha
Hi amin.

I am virupaksha working in peneng on j2ee..
I haven't started my development in struts yet.

But i know struts.

regards,
viru



- Original Message - 
From: "Mohd Amin Mohd Din" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 25, 2003 9:53 PM
Subject: Struts User in Malaysia


> Hi,
>  
> Any Malaysians on this mailing list? Lets start a struts user meet up in
> preferably KL.
>  
> Amin
> 

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



Re: BEGINEER FOR STRUTS

2003-08-29 Thread virupaksha
Dear mahavir,

check your web.xml file for tag lib configuration.
try to configure your tag lib as follows .


strutsbean
/WEB-INF/struts-bean.tld
  
  
strutshtml
/WEB-INF/struts-html.tld
  
  
strutslogic
/WEB-INF/struts-logic.tld
  
  


it should work..

Regards,
virupaksha
- Original Message -
From: "mahavir" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 28, 2003 12:05 PM
Subject: BEGINEER FOR STRUTS


i am begineer for struts,i ahd installed all the files needed for it but it
is giving the following error,as the all *.tld files are in tis proper
locations

 Unable to open taglibrary /WEB-INF/struts-bean.tld : Could not locate TLD
/WEB-INF/struts-bean.tld

can u help me


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



struts user list

2003-09-02 Thread virupaksha
Dear Manglu,

how are you..?
Then, can you able to recive mails from struts user list..?
B'coz i couldn't able to recive any mails.. 

please let me know.

Regards,
viru

why servlet as controller in MVC

2003-09-08 Thread virupaksha
Dear All,

I have a simple doubt,
Why servlet is considered as controller in in MVC framework, 

Can any one please answer..

Regards,
viru



Re: why servlet as controller in MVC

2003-09-09 Thread virupaksha
Dear Max,

Thanks for your answer..
I just wanted to know, why we should use servlet in MVC framework..
Frankly, I was not knowing the answer.. 

I think, I had asked question in wrong manner...

Thanks once again for answer..

Regards,
viru


- Original Message - 
From: "Max Cooper" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <
Sent: Tuesday, September 09, 2003 12:19 PM
Subject: Re: why servlet as controller in MVC


> That is kind of an open-ended question, but here are two alternatives
> and some problems associated with them:
> 
> 1. Filter -- some containers require that a request really does map to a
> resource, so even if the Filter mapping matched the request you could
> end up with 404 errors in the case where the resource doesn't exist. One
> way to avoid this would be to have each request map to a JSP directly,
> but that would be pretty confusing if the controller decided to map the
> request to some other JSP (or some other, similar view resource) instead
> of passing it down the chain to the indicated JSP. Some Actions have
> some kind of switching behavior to route the request to one of a number
> of view resources.
> 
> 2. JSP -- the controller normally passes the request to a view resource
> (like a JSP) but doesn't produce the response directly. JSPs are best
> suited to producing a response (usually HTML) directly, where a servlet
> better matches the needs of writing a controller. Other view-oriented
> technologies are similar to JSPs, and many use their own servlet to
> process the requests anyway.
> 
> Since those don't work so well, a Servlet turns out to be a good match
> for the needs of the controller component in comparison.
> 
> It sounds like you might have something else in mind -- what alternative
> implementation strategy are you thinking of?
> 
> -Max
> 
> On Mon, 2003-09-08 at 19:24, virupaksha wrote:
> > Dear All,
> > 
> > I have a simple doubt,
> > Why servlet is considered as controller in in MVC framework, 
> > 
> > Can any one please answer..
> > 
> > Regards,
> > viru
> > 
> 
> 
> -
> 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]



connection failure

2003-09-09 Thread virupaksha
Dear All,

I am working on a web based jsp application.
In my application i have to connect to database server located away from LAN.
I m connecting to server using ADSL connection.So before going to connect to server, i 
need to check whether  ADSL connection is Up or DOWN.
if ADSL connection is DOWN then my application has to connect to local server located 
in same LAN.
can any one come across this type of issue..please suggest me how to do this 
programmetically

wating for your response..

Regards,
viru




eclips IDE

2003-09-12 Thread virupaksha
Dear All,

Can any one please tell me where i can download Eclips IDE for JSP ..


Regards,
viru




Re: eclips IDE

2003-09-12 Thread virupaksha
Thank you rahul...
R u from india, b'coz ur name sounds like indian name..?

Regards,
viru
- Original Message - 
From: "Rahul" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, September 13, 2003 11:00 AM
Subject: Re: eclips IDE


> You can download the Eclipse IDE at
> http://www.eclipse.org/downloads/index.php
> And, You can find a JSP plugin at http://www.objectlearn.com/
> 
> cheers :)
> rahul
> 
> 
> - Original Message - 
> From: "virupaksha" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Saturday, September 13, 2003 2:50 PM
> Subject: eclips IDE
> 
> 
> Dear All,
> 
> Can any one please tell me where i can download Eclips IDE for JSP ..
> 
> 
> Regards,
> viru
> 
> 
> 
> 
> 
> -
> 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]



Data Source in struts-config.xml

2003-09-18 Thread virupaksha
Dear All,

I need to connect to two different databases,MS Access & MYSQL.
I am connecting databases using JNDI lookup,so to connect using JNDI lookup i need to 
give database name in my code.
Can any one help me how i can configure two datasource name in struts-config.xml.

Waiting for ur help...

Regards,
viru

two different data source in struts-config.xml

2003-09-18 Thread virupaksha
Dear All,

I need to connect to two different databases,MS Access & MYSQL.
I am connecting databases using JNDI lookup,so to connect using JNDI lookup i need to 
give database name in my code.
Can any one help me how i can configure two datasource name in struts-config.xml.

Waiting for ur help...

Regards,
viru

Two Data Source

2003-09-18 Thread virupaksha
Dear All,

I need to connect to two different databases,MS Access & MYSQL.
I am connecting databases using JNDI lookup,so to connect using JNDI lookup i need to 
give database name in my code.
Can any one help me how i can configure two datasource name in struts-config.xml.

Waiting for ur help...

Regards,
viru

problem in database connection

2003-09-19 Thread virupaksha
 Dear All,

While connecting to Database i am getting following error 
'Cannot load JDBC driver class 'null'' in TOMACT server.
I have a bean called UpdateRegDB, in this bean i am connecting to the database, 
following is code for connection and i m creating instance of this bean in 
ActionServlet called UpdateAction..
code connection in 
bean-
public Connection getConnection(){
 Connection con = null;
  try{
   Context initctx = new InitialContext();
   DataSource ds = (DataSource)initctx.lookup("java:comp/env/jdbc/TestDB");
   con = ds.getConnection();
  }
  catch(Exception e){
  System.out.println("Class : UpdateRegDB, Method : 
getConnection()"+e.getMessage());
  }
  return con;
 }
}
 
-
following is code for JNDI configuration in server.xml from TOMCAT server



   
 
 
   factory
   org.apache.commons.dbcp.BasicDataSourceFactory
 



  maxActive
  100



  maxIdle
  30



  maxWait
  1



 username
 admin


 password
 admin



   driverClassName
   org.gjt.mm.mysql.Driver



  url
  jdbc:mysql://191.100.10.248:3306/db_slcs?autoReconnect=true

  

--
Resource ref in WEB-INF/web.xml(In my struts framework web.xml)


 DB Connection
  jdbc/TestDB
  javax.sql.DataSource
  Container

---

Can any one please tell me where i am doing mistake...

wating for ur help.

Regards,
viru



working with jdbc mapping in strus

2003-09-20 Thread virupaksha
Dear All,

Can any one suggest me how to configure jdbc mapping in tomcat container and  in 
struts application

Waiting for ur reply..

Regards,
viru



Re: books and tutorials

2003-09-30 Thread virupaksha
Hi,

Welcome to struts ..

I suggest u , its better to  buy a book,
u can learn more in books then any other online documents.. best book i felt
is,

'Programming Jakarta Struts - Chuck Cavaness'.

and u can download struts IDE from http://www.exadel.com its realy very
good..

some other interesting link for beginners,
 http://www.reumann.net/do/struts/lesson1
 http://struts.sourceforge.net/projects/strutsdoc/

Happy struts coding ..

Regards,
virupaksha



- Original Message -
From: "Carlos Llona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 01, 2003 1:07 AM
Subject: books and tutorials


> Hello
>
> Im new in Struts but its very interesting,but I dont find goob books
> or tutorials to download, please if anyone knows links send me plz
>
> byte
>
>
> -
> 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]



Object mapping..

2003-10-06 Thread virupaksha
Dear All,

Can any one please tell me why we require object mapping with database in  model of 
MVC architecutre.
my doubt is, we can communicate with database by directly our bean..why we have to use 
 object mapping with OJB(Object Relational mapping) or whatever..i just want to know 
what is advantages by using object mapping over normal method..

waiting for ur valuable answers..

Regards & thanks ,

virupaksha

Re: Books

2003-10-07 Thread virupaksha
u can refer "Programming jakarta struts" by chuck cavaness , it is really
very good book.
- Original Message -
From: "Brian Richards" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, October 08, 2003 11:01 AM
Subject: Books


> I'm a complete struts newb. I got tomcat 4.1 installed along with struts
and
> eclipse. I was wondering if you guys could recommend a book for learning
> struts. Not necessarily a reference book. But it would be nice to have
some
> good examples. Getting laid off has me starving to learn something new. So
> I'm trying to think of *something* to implement with struts. So yeah, book
> recommendations?
>
>
> -Brian Richards
>
>
> -
> 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]



Design suggestion

2003-10-13 Thread virupaksha
Dear All,

I am new to Struts framework,but i am comfortable in JSP & servlets,
I have to implement a HRMS application in struts framework,
Our team size is very small (2 members), i have to take care of design & coding, 
Can any one suggest me how i can start my work in struts, any design issue,any 
constraint... 

pls. suggest me.. ur help is greatly appreciated,,

waiting for your positive response..

Regards,
viru

Re: Design suggestion

2003-10-14 Thread virupaksha
Dear Adam,

Thanks for your suggestions,,

Regards,
virupaksha

- Original Message -
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 3:50 PM
Subject: Re: Design suggestion


> On 10/14/2003 05:14 AM virupaksha wrote:
> > Dear All,
> >
> > I am new to Struts framework,but i am comfortable in JSP & servlets,
> > I have to implement a HRMS application in struts framework,
> > Our team size is very small (2 members), i have to take care of design &
coding,
> > Can any one suggest me how i can start my work in struts, any design
issue,any constraint...
>
> Hi Virupaksha,
> there are several tutorials that you can find on the jakarta struts
> website which will help you learn the basics.
>
> If you haven't used struts before, you should probably get a reference
> book on the subject. It would help you immensely.
>
> The core of struts (at least what I consider the core, other might have
> different opinions) are your Action child classes and how you program
> them to work with your action mappings in struts-config.xml. There are
> lots of useful discussions on this in the list archives. Recently
> [EMAIL PROTECTED] ran a poll on this subject - if you check that thread
> out, you'll see the options available and what people were saying about
> them.
>
> You need an overview of struts as well, to decide which of the struts
> optional components you need to use (& therefore need to learn):
> DynaActionForms, Tiles, Validator, ssl-ext, transaction tokens, taglibs,
> JSTL, nested beans, etc etc.
>
> HTH,
> Adam
>
> --
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> -
> 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]



IDE

2003-10-14 Thread virupaksha
Dear All,

I am working on struts using exadel struts studio,
Can any one know other open IDE for struts ..?
especially for designing View(Drag & drop approach..?)

let me know please..

Regards,
viru

Re: IDE

2003-10-16 Thread virupaksha
Dear Barry,

 Eclipse supports  drag & drop option for designing  view..?

Regards,
viru

- Original Message -
From: "Barry Volpe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, October 16, 2003 5:23 AM
Subject: Re: IDE


> Eclipse, Tomcat, JBoss, Xdoclet all open and free.
>
> Works for me..
>
> Barry
>
>
> - Original Message -
> From: "Voinea, Marina" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 15, 2003 2:19 PM
> Subject: RE: IDE
>
>
> > But that's expensive : 2000 $ (or else, evaluation for 1 month only). Is
> > there anything a bit more "open" ?
> >
> > Thanks,
> > Marina
> >
> > -Original Message-
> > From: Kirk Wylie [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 15, 2003 4:53 PM
> > To: Struts Users Mailing List
> > Subject: Re: IDE
> >
> >
> > 
> > You might want to evaluate the 4.0 release of the M7 Application
> > Assembly Suite, Professional Edition.
> > http://www.m7.com/
> > 
> >
> > Kirk Wylie
> > M7 Corporation
> >
> > virupaksha wrote:
> >
> > > Dear All,
> > >
> > > I am working on struts using exadel struts studio,
> > > Can any one know other open IDE for struts ..?
> > > especially for designing View(Drag & drop approach..?)
> > >
> > > let me know please..
> > >
> > > Regards,
> > > viru
> > >
> >
> >
> >
> > -
> > 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]



JNDI Datasource

2003-10-16 Thread virupaksha
Dear All,

I am facing following error, when i am trying to connect jndi data source. 

error is "Cannot load JDBC driver class 'null'".

here i am using Mysql database, i have copied mysql driver jar files into 
struts application's lib folder , tomcat's common/lib and  shared/lib folder and Jndi 
datasource is configured in server.config,, 

can any one pls. help me to correct my mistake..

Regards,
viru



Re: JNDI Datasource

2003-10-16 Thread virupaksha
Dear Kirk Wylie,

Thanks for your reply,
here is the tomcat's server.xml file pls. find it,

Regards,
viru
--server.xml
-


  
  
  


   
  

  


  

  


  
  






  
  
  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  maxActive
  100


  maxWait
  1


  password
  suiwah


  url

jdbc:mysql://191.100.10.248:3306/db_slcs?autoReconnect=true


  driverClassName
  org.gjt.mm.mysql.Driver


  maxIdle
  30


  username
  admin

  
  

  
user
admin
  
  
password
suiwah
  
 
   driverClassName
org.gjt.mm.mysql.Driver
  
 
driverName
 jdbc:mysql://191.100.10.248:3306/db_slcs
   
 






  






  
  
  

  



-
- Original Message -
From: "Kirk Wylie" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 2:31 AM
Subject: Re: JNDI Datasource


> This actually looks like a Tomcat problem, not a Struts problem, but if
> you post your server.xml file it might help debug the problem.
>
> Kirk Wylie
> M7 Corporation
>
> virupaksha wrote:
>
> > Dear All,
> >
> > I am facing following error, when i am trying to connect jndi data
source.
> >
> > error is "Cannot load JDBC driver class 'null'".
> >
> > here i am using Mysql database, i have copied mysql driver jar files
into
> > struts application's lib folder , tomcat's common/lib and  shared/lib
> > folder and Jndi datasource is configured in server.config,,
> >
> > can any one pls. help me to correct my mistake..
> >
> > Regards,
> > viru
> >
>
>
>
> -
> 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: Datasources Tomcat/Struts

2003-10-28 Thread virupaksha
Hi Mathieu Grimault,

can you send me ur tomcat's server.xml file, the problem is in tomcat
configuration,

Regards,
viru

- Original Message -
From: "Mathieu Grimault" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 5:01 PM
Subject: Datasources Tomcat/Struts


Hello, next to my question about deprecation, i've try to make Tomcat JNDI
Datasource working without success... I  followed the How-to but nothing
goes well.

My configuration is :
- Tomcat 4.1.27
- JDK 1.4.2
- Struts 1.1
- MySQL 4

When i try to make a request on the database i've got :
"Cannot load JDBC driver class 'null'"
this error come from the line :
Connection conn = ds.getConnection();

(Code is a copy and paste from the how to)

I think that tomcat cannot found the JDBC drivers. My jars (
commons-collections, common-dbcp, common-pool, mm.mysql) are in the
CATALINA_HOME/common/lib

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



Re: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo

2003-11-07 Thread virupaksha

- Original Message -
From: "Sudha Joish" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 07, 2003 7:17 PM
Subject: java.lang.NoClassDefFoundError:
javax/servlet/jsp/tagext/TagExtraInfo


>
>
>
> hi pple
>
> i have an application written using JSPs and Servlets. my next step is to
> use Struts and modify it.
>
> this is my first try at struts and tied to run my first sample application
> from:
>
> http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp#struts
>
> am using struts 1.0.2, Tomcat 5.0.12
>
> this is what i did:
>
> i placed:
> -- struts.jar in the C:\Tomcat_5.0\webapps\struts\WEB-INF\lib folder
> -- all .tld files in the C:\Tomcat_5.0\webapps\struts\WEB-INF folder
> -- servlet-api.jar and struts.jar in  C:\j2sdk1.4.2\jre\lib\ext folder
>
> i have a LoginBean.java, LoginAction.java and LoginForm.java from the
> website above. i have merely compiled them and placed them along with the
> MessageResources.properties file in the:
> C:\Tomcat_5.0\webapps\struts\WEB-INF\classes\test\struts folder.
>
> i have placed LoginView.jsp and MainMenu.jsp in:
> C:\Tomcat_5.0\webapps\struts\jsp folder.
>
> i have followed all the instructions!!
>
> i started Tomcat 5.0 server and when i request for:
>
> http://127.0.0.1:8080/struts/jsp/LoginView.jsp  in my browser, i get the
> following error message:
>
>
> [error-code]
>
> HTTP Status 500 -
>
> --
--
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: javax/servlet/jsp/tagext/TagExtraInfo
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
> root cause
>
> java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo
> java.lang.ClassLoader.defineClass0(Native Method)
> java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> java.security.AccessController.doPrivileged(Native Method)
> java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> java.lang.ClassLoader.loadClass(ClassLoader.java:282)
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
> java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1278)
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1212)
>
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm
pl.java:455)
>
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:295)
>
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:204)
> org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:460)
> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:525)
> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1625)
> org.apache.jasper.compiler.Parser.parse(Parser.java:173)
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:247)
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:149)
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:135)
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:243)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
55)
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
> note The full stack trace of the root cause is available in the Tomcat
logs.
>
> [/error-code]
>
>
>
>
> what am i missing here?
>
> thanks
> -- $uDhA
>
> _
> From Beethoven to the Rolling Stones, your favorite music is always
playing
> on MSN Radio Plus. No ads, no talk. Trial month FREE!
> http://join.msn.com/?page=offers/premiumradio
>
>
> -
> 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.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo

2003-11-07 Thread virupaksha
Dear Sudha,

You can try same example using struts1.1,

Remove following line of code in MainMenu.jsp and LoginVew.jsp,
<%@ taglib uri="/WEB-INF/struts.tld" prefix="struts" %>  and

Modify following code in MainMenu.jsp and LoginVew.jsp,
replace  tag with 

These examples are working fine in struts1.1 version.

Check it out...

Regards,
Virupaksh Hosamath


- Original Message -
From: "Sudha Joish" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, November 07, 2003 8:38 PM
Subject: java.lang.NoClassDefFoundError:
javax/servlet/jsp/tagext/TagExtraInfo


>
>
>
> hi pple
>
> i have an application written using JSPs and Servlets. my next step is to
> use Struts and modify it.
>
> this is my first try at struts and tied to run my first sample application
> from:
>
> http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp#struts
>
> am using struts 1.0.2, Tomcat 5.0.12
>
> this is what i did:
>
> i placed:
> -- struts.jar in the C:\Tomcat_5.0\webapps\struts\WEB-INF\lib folder
> -- all .tld files in the C:\Tomcat_5.0\webapps\struts\WEB-INF folder
> -- servlet-api.jar and struts.jar in  C:\j2sdk1.4.2\jre\lib\ext folder
>
> i have a LoginBean.java, LoginAction.java and LoginForm.java from the
> website above. i have merely compiled them and placed them along with the
> MessageResources.properties file in the:
> C:\Tomcat_5.0\webapps\struts\WEB-INF\classes\test\struts folder.
>
> i have placed LoginView.jsp and MainMenu.jsp in:
> C:\Tomcat_5.0\webapps\struts\jsp folder.
>
> i have followed all the instructions!!
>
> i started Tomcat 5.0 server and when i request for:
>
> http://127.0.0.1:8080/struts/jsp/LoginView.jsp  in my browser, i get the
> following error message:
>
>
> [error-code]
>
> HTTP Status 500 -
>
> --
--
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: javax/servlet/jsp/tagext/TagExtraInfo
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
> root cause
>
> java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo
> java.lang.ClassLoader.defineClass0(Native Method)
> java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> java.security.AccessController.doPrivileged(Native Method)
> java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> java.lang.ClassLoader.loadClass(ClassLoader.java:282)
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
> java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1278)
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1212)
>
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm
pl.java:455)
>
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:295)
>
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:204)
> org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:460)
> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:525)
> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1625)
> org.apache.jasper.compiler.Parser.parse(Parser.java:173)
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:247)
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:149)
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:135)
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:243)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
55)
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
> note The full stack trace of the root cause is available in the Tomcat
logs.
>
> [/error-code]
>
>
>
>
> what am i missing here?
>
> thanks
> -- $uDhA
>
> _
> From Beethoven to the Rolling Stones, your favorite music is always
playing
> on MSN Radio Plus. No ads, no talk. Trial month FREE!
> http://join.msn.com/?page=offers/premiumradio
>
>
> --

Can't open file: 'vip_detail_tab.MYD'. (errno: 144)

2003-11-26 Thread virupaksha
Dear All,

I am very sorry to ask MySQL releted question in Struts group..

i am facing this problem since one week but couldn't able to sovle...

could any one faced following error before..?

while accessing table called vip_detail_tab, i m getting following error..

Can't open file: 'vip_detail_tab.MYD'. (errno: 144)

i feel this table may corrupted..

expecting some ray of hope from this group..:(

Regards,
viru






Re: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)

2003-11-26 Thread virupaksha
Dear Marcos,

Thanks for immediate your response...

Yaa, when i tried 'myisamchk -f  vip_detail_tab' command,
i got following error...

Checking MyISAM file: /var/lib/mysql/db_slcs/vip_detail_tab
Data records:   39642   Deleted blocks:   0
myisamchk: warning: Table is marked as crashed and last repair failed
- check file-size
myisamchk: warning: Size of indexfile is: 1992704   Should be: 1024
- check key delete-chain
- check record delete-chain
- check index reference
- check data record references index: 1
myisamchk: error: Can't read indexpage from filepos: -1
- recovering (with sort) MyISAM-table
'/var/lib/mysql/db_slcs/vip_detail_tab.MYI'
Data records: 39642
- Fixing index 1
myisamchk: Error writing file '/var/lib/mysql/db_slcs/vip_detail_tab.TMD'
(Errcode: 28)
myisamchk: error: 28 when writing to datafile
MyISAM-table '/var/lib/mysql/db_slcs/vip_detail_tab' is not fixed because of
errors
Try fixing it by using the --safe-recover (-o) or the --force (-f) option

with warm regards,
viru

- Original Message -
From: "Marcos Oliva" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, November 27, 2003 11:53 AM
Subject: RE: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)


> Viru,
>
> have you tried looking into the MySQL errro 144 ?, you may have to issue
the myisamchk  with the -force option
> and see if that helps
>
> marcos oliva
>
>
> -Original Message-
> From: virupaksha [mailto:[EMAIL PROTECTED]
> Sent: Wed 11/26/2003 6:42 PM
> To: Struts Users Mailing List
> Cc:
> Subject: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
>
>
>
> Dear All,
>
> I am very sorry to ask MySQL releted question in Struts group..
>
> i am facing this problem since one week but couldn't able to sovle...
>
> could any one faced following error before..?
>
> while accessing table called vip_detail_tab, i m getting following error..
>
> Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
>
> i feel this table may corrupted..
>
> expecting some ray of hope from this group..:(
>
> Regards,
> viru
>
>
>
>
>
>
>






> -
> 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: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)

2003-11-26 Thread virupaksha
Dear Marcos,

I tried using REPAIR TABLE vip_detail_tab QUICK,
i got following error,

+++--+--
-+
| Table  | Op | Msg_type | Msg_text
|
+++--+--
-+
| db_slcs.vip_detail_tab | repair | error| Couldn't fix table with quick
recovery: Found wrong number of deleted records |
| db_slcs.vip_detail_tab | repair | error| Run recovery again without -q
|
| db_slcs.vip_detail_tab | repair | error| 28 when writing to datafile
|
| db_slcs.vip_detail_tab | repair | error| 28 when writing to datafile
|
| db_slcs.vip_detail_tab | repair | status   | Operation failed
|
+++--+--
-+
5 rows in set (1.06 sec)


Regards,
viru
- Original Message -
From: "Marcos Oliva" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, November 27, 2003 12:09 PM
Subject: RE: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)


> Viru,
>
> Ok then have you tried using the "REPAIR TABLE QUICK" or else try dumping
the data from the table to a delim file and recreating the table .
>
> marcos
>
> -Original Message-
> From: virupaksha [mailto:[EMAIL PROTECTED]
> Sent: Wed 11/26/2003 7:03 PM
> To: Struts Users Mailing List
> Cc:
> Subject: Re: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
>
>
>
> Dear Marcos,
>
> Thanks for immediate your response...
>
> Yaa, when i tried 'myisamchk -f  vip_detail_tab' command,
> i got following error...
>
> Checking MyISAM file: /var/lib/mysql/db_slcs/vip_detail_tab
> Data records:   39642   Deleted blocks:   0
> myisamchk: warning: Table is marked as crashed and last repair failed
> - check file-size
> myisamchk: warning: Size of indexfile is: 1992704   Should be: 1024
> - check key delete-chain
> - check record delete-chain
> - check index reference
> - check data record references index: 1
> myisamchk: error: Can't read indexpage from filepos: -1
> - recovering (with sort) MyISAM-table
> '/var/lib/mysql/db_slcs/vip_detail_tab.MYI'
> Data records: 39642
> - Fixing index 1
> myisamchk: Error writing file '/var/lib/mysql/db_slcs/vip_detail_tab.TMD'
> (Errcode: 28)
> myisamchk: error: 28 when writing to datafile
> MyISAM-table '/var/lib/mysql/db_slcs/vip_detail_tab' is not fixed because
of
> errors
> Try fixing it by using the --safe-recover (-o) or the --force (-f) option
>
> with warm regards,
> viru
>
> - Original Message -
> From: "Marcos Oliva" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, November 27, 2003 11:53 AM
> Subject: RE: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
>
>
> > Viru,
> >
> > have you tried looking into the MySQL errro 144 ?, you may have to issue
> the myisamchk  with the -force option
> > and see if that helps
> >
> > marcos oliva
> >
> >
> > -Original Message-
> > From: virupaksha [mailto:[EMAIL PROTECTED]
> > Sent: Wed 11/26/2003 6:42 PM
> > To: Struts Users Mailing List
> > Cc:
> > Subject: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
> >
> >
> >
> > Dear All,
> >
> > I am very sorry to ask MySQL releted question in Struts group..
> >
> > i am facing this problem since one week but couldn't able to sovle...
> >
> > could any one faced following error before..?
> >
> > while accessing table called vip_detail_tab, i m getting following
error..
> >
> > Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
> >
> > i feel this table may corrupted..
> >
> > expecting some ray of hope from this group..:(
> >
> > Regards,
> > viru
> >
> >
> >
> >
> >
> >
> >
>
>
> --
--
> 
>
>
> > -
> > 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: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)

2003-11-26 Thread virupaksha
Dear Srinivas,

I tried this option too like,
REPAIR TABLE vip_detail_tab QUICK, but i got following error..

+++--+--
-+
| Table  | Op | Msg_type | Msg_text
|
+++--+--
-+
| db_slcs.vip_detail_tab | repair | error| Couldn't fix table with quick
recovery: Found wrong number of deleted records |
| db_slcs.vip_detail_tab | repair | error| Run recovery again without -q
|
| db_slcs.vip_detail_tab | repair | error| 28 when writing to datafile
|
| db_slcs.vip_detail_tab | repair | error| 28 when writing to datafile
|
| db_slcs.vip_detail_tab | repair | status   | Operation failed
|
+++--+--
-+
5 rows in set (1.06 sec)

facing critical problem...

regards,
viru
- Original Message -
From: "chekuri raju" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, November 27, 2003 12:16 PM
Subject: RE: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)


> Hai Viru,
>
> even i had the same problem some time back could fix it with this below
command
> mysql>repair table  vip_detail_tab;
> u can look at the help options under mysql command prompt
>
> srinivas
>
> Marcos Oliva <[EMAIL PROTECTED]> wrote:
> Viru,
>
> have you tried looking into the MySQL errro 144 ?, you may have to issue
the myisamchk with the -force option
> and see if that helps
>
> marcos oliva
>
>
> -Original Message-
> From: virupaksha [mailto:[EMAIL PROTECTED]
> Sent: Wed 11/26/2003 6:42 PM
> To: Struts Users Mailing List
> Cc:
> Subject: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
>
>
>
> Dear All,
>
> I am very sorry to ask MySQL releted question in Struts group..
>
> i am facing this problem since one week but couldn't able to sovle...
>
> could any one faced following error before..?
>
> while accessing table called vip_detail_tab, i m getting following error..
>
> Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
>
> i feel this table may corrupted..
>
> expecting some ray of hope from this group..:(
>
> Regards,
> viru
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard

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



Re: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)

2003-11-26 Thread virupaksha
Dear Marcos,

still getting  error after running 'repair table vip_detail_tab',

+++--+-+
| Table  | Op | Msg_type | Msg_text|
+++--+-+
| db_slcs.vip_detail_tab | repair | error| 28 when writing to datafile |
| db_slcs.vip_detail_tab | repair | error| 28 when writing to datafile |
| db_slcs.vip_detail_tab | repair | status   | Operation failed|
+++--+-+

regards,
viru



- Original Message -
From: "Marcos Oliva" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, November 27, 2003 12:20 PM
Subject: RE: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)


> Viru,
>
> do not run the recovery quick, just run it as repair table 
>
> marcos
>
> -Original Message-
> From: virupaksha [mailto:[EMAIL PROTECTED]
> Sent: Wed 11/26/2003 7:17 PM
> To: Struts Users Mailing List
> Cc:
> Subject: Re: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
>
>
>
> Dear Marcos,
>
> I tried using REPAIR TABLE vip_detail_tab QUICK,
> i got following error,
>
>
+++--+--
> -+
> | Table  | Op | Msg_type | Msg_text
> |
>
+++--+--
> -+
> | db_slcs.vip_detail_tab | repair | error| Couldn't fix table with
quick
> recovery: Found wrong number of deleted records |
> | db_slcs.vip_detail_tab | repair | error| Run recovery again
without -q
> |
> | db_slcs.vip_detail_tab | repair | error| 28 when writing to datafile
> |
> | db_slcs.vip_detail_tab | repair | error| 28 when writing to datafile
> |
> | db_slcs.vip_detail_tab | repair | status   | Operation failed
> |
>
+++--+--
> -+
> 5 rows in set (1.06 sec)
>
>
> Regards,
> viru
> - Original Message -
> From: "Marcos Oliva" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, November 27, 2003 12:09 PM
> Subject: RE: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
>
>
> > Viru,
> >
> > Ok then have you tried using the "REPAIR TABLE QUICK" or else try
dumping
> the data from the table to a delim file and recreating the table .
> >
> > marcos
> >
> > -Original Message-
> > From: virupaksha [mailto:[EMAIL PROTECTED]
> > Sent: Wed 11/26/2003 7:03 PM
> > To: Struts Users Mailing List
> > Cc:
> > Subject: Re: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
> >
> >
> >
> > Dear Marcos,
> >
> > Thanks for immediate your response...
> >
> > Yaa, when i tried 'myisamchk -f  vip_detail_tab' command,
> > i got following error...
> >
> > Checking MyISAM file: /var/lib/mysql/db_slcs/vip_detail_tab
> > Data records:   39642   Deleted blocks:   0
> > myisamchk: warning: Table is marked as crashed and last repair failed
> > - check file-size
> > myisamchk: warning: Size of indexfile is: 1992704   Should be: 1024
> > - check key delete-chain
> > - check record delete-chain
> > - check index reference
> > - check data record references index: 1
> > myisamchk: error: Can't read indexpage from filepos: -1
> > - recovering (with sort) MyISAM-table
> > '/var/lib/mysql/db_slcs/vip_detail_tab.MYI'
> > Data records: 39642
> > - Fixing index 1
> > myisamchk: Error writing file
'/var/lib/mysql/db_slcs/vip_detail_tab.TMD'
> > (Errcode: 28)
> > myisamchk: error: 28 when writing to datafile
> > MyISAM-table '/var/lib/mysql/db_slcs/vip_detail_tab' is not fixed
because
> of
> > errors
> > Try fixing it by using the --safe-recover (-o) or the --force (-f)
option
> >
> > with warm regards,
> > viru
> >
> > - Original Message -
> > From: "Marcos Oliva" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, November 27, 2003 11:53 AM
> > Subject: RE: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
> >
> >
&g

Thanks for your great help...!

2003-11-27 Thread virupaksha
Dear Marcos,

As you suggested me to check the file size, i checked the file size and it
was full..
I have removed all unwanted data from the 'var' file and repaired the table
using repair query..
now i can successfully run query on table..

Once again thanks for your help.

now a personal question, from which country you are..?

With warm regards,
Viru


- Original Message -
From: "Marcos Oliva" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, November 27, 2003 12:20 PM
Subject: RE: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)


> Viru,
>
> do not run the recovery quick, just run it as repair table 
>
> marcos
>
> -Original Message-
> From: virupaksha [mailto:[EMAIL PROTECTED]
> Sent: Wed 11/26/2003 7:17 PM
> To: Struts Users Mailing List
> Cc:
> Subject: Re: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
>
>
>
> Dear Marcos,
>
> I tried using REPAIR TABLE vip_detail_tab QUICK,
> i got following error,
>
>
+++--+--
> -+
> | Table  | Op | Msg_type | Msg_text
> |
>
+++--+--
> -+
> | db_slcs.vip_detail_tab | repair | error| Couldn't fix table with
quick
> recovery: Found wrong number of deleted records |
> | db_slcs.vip_detail_tab | repair | error| Run recovery again
without -q
> |
> | db_slcs.vip_detail_tab | repair | error| 28 when writing to datafile
> |
> | db_slcs.vip_detail_tab | repair | error| 28 when writing to datafile
> |
> | db_slcs.vip_detail_tab | repair | status   | Operation failed
> |
>
+++--+--
> -+
> 5 rows in set (1.06 sec)
>
>
> Regards,
> viru
> - Original Message -
> From: "Marcos Oliva" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, November 27, 2003 12:09 PM
> Subject: RE: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
>
>
> > Viru,
> >
> > Ok then have you tried using the "REPAIR TABLE QUICK" or else try
dumping
> the data from the table to a delim file and recreating the table .
> >
> > marcos
> >
> > -Original Message-
> > From: virupaksha [mailto:[EMAIL PROTECTED]
> > Sent: Wed 11/26/2003 7:03 PM
> > To: Struts Users Mailing List
> > Cc:
> > Subject: Re: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
> >
> >
> >
> > Dear Marcos,
> >
> > Thanks for immediate your response...
> >
> > Yaa, when i tried 'myisamchk -f  vip_detail_tab' command,
> > i got following error...
> >
> > Checking MyISAM file: /var/lib/mysql/db_slcs/vip_detail_tab
> > Data records:   39642   Deleted blocks:   0
> > myisamchk: warning: Table is marked as crashed and last repair failed
> > - check file-size
> > myisamchk: warning: Size of indexfile is: 1992704   Should be: 1024
> > - check key delete-chain
> > - check record delete-chain
> > - check index reference
> > - check data record references index: 1
> > myisamchk: error: Can't read indexpage from filepos: -1
> > - recovering (with sort) MyISAM-table
> > '/var/lib/mysql/db_slcs/vip_detail_tab.MYI'
> > Data records: 39642
> > - Fixing index 1
> > myisamchk: Error writing file
'/var/lib/mysql/db_slcs/vip_detail_tab.TMD'
> > (Errcode: 28)
> > myisamchk: error: 28 when writing to datafile
> > MyISAM-table '/var/lib/mysql/db_slcs/vip_detail_tab' is not fixed
because
> of
> > errors
> > Try fixing it by using the --safe-recover (-o) or the --force (-f)
option
> >
> > with warm regards,
> > viru
> >
> > - Original Message -
> > From: "Marcos Oliva" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, November 27, 2003 11:53 AM
> > Subject: RE: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
> >
> >
> > > Viru,
> > >
> > > have you tried looking into the MySQL errro 144 ?, you may have to
issue
> > the myisamchk  with the -force option
> > > and see if that helps
> > >
> > > marcos oliva
> &

Re: Database with struts

2003-12-04 Thread virupaksha
hi,

I too have same setup like you,
You can use JNDI to locate datasource, configure your datasource in tomcat's
server.xml,
and write your JNDI code in your bean. it will be easy & better way :)

regards,
Virupaksha





- Original Message -
From: "Vic Cekvenich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 05, 2003 4:24 AM
Subject: Re: Database with struts


> I disagree.
> DataSource should not be used, you should use a DAO, for example
iBatis.com.
>
> .V
>
> Gurpreet Dhanoa wrote:
> > hi
> >
> > You have to Configure DataSource and then u can get the refernce of the
same
> > it in the ACtion and can use it
> >
> > Regards
> > gary
> > - Original Message -
> > From: "Divya B Sridhar" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, December 04, 2003 7:03 PM
> > Subject: Database with struts
> >
> >
> >
> >>Hi all,
> >>I am trying to do a database connectivity using struts.
> >>Actually, the database resides on another machine and I have tomcat
> >>running on my local machine.
> >>The other machine is a linux box(a linux machine) which has the database
> >>installed(PostgreSQL).
> >>So, apart from the  tags to be specified in the
> >>struts-config.xml file, the Action class containing the Connection and
> >>the queries, what other configuration is required. Any ideas on this?(I
> >>mean to ask the other steps required in order that a simple sample
> >>database example with struts works - drivers etc. Any input is welcome)
> >>Thanks in advance,
> >>
> >>Regards,
> >>Divya.
> >>
>
>
>
> -
> 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: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta Reference Implementation

2004-01-07 Thread virupaksha
Dear Craig,


I am working on resin-2.1.9 (java page container from caucho),
It's supports servlets 2.3 version, can i  use JSF for this container,

Regards,
Viru

- Original Message -
From: "Matthias Wessendorf" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, January 06, 2004 5:16 PM
Subject: RE: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta
Reference Implementation


hi jan,

perhaps you must change the sturcuture of build.xml

in my case:
i copied jsf-1.0 beta in to $jwsdp.home
and copied some specified lib into $jwsdp.home too.

e.g. jsp-api, servlet-api

of course i copied jsf-libs and jstl-libs to WEB-INF/lib of example2
now tomcat started them up...

and perhaps you must change your user-name/password for tomcat! :-)

try this...

greetings
matthias



-Original Message-
From: Jan Dirksen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 10:02 AM
To: Struts Users Mailing List
Subject: Re: JavaServer Faces 1.0 -- Proposed Final Draft Spec and Beta
Reference Implementation


Hi Craig,

i just want to try the struts-faces examples.
but i got compilation-error. is there something i
need...?
jwsdp-1.3 is on my box.

thanks

 --- "Craig R. McClanahan" <[EMAIL PROTECTED]>
schrieb: >
>
> I'm pleased to announce that the Proposed Final
> Draft version of the JavaServer
> Faces 1.0 Specification, and a corresponding Beta
> release of the Reference
> Implementation, is now available at:
>
>
>
http://java.sun.com/j2ee/javaserverfaces/download.html
>
> Please send any feedback and comments strictly about JavaServer Faces
> to <[EMAIL PROTECTED]>.
>
> I'm also finishing up an update to the Struts-Faces Integration
> Library, and will be making it available (via nightly builds)
> very soon.  Feel free to ask
> any questions about how to use Struts and JavaServer
> Faces here on the
> STRUTS-USER list.
>
> Craig McClanahan
>
>
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

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



Database pool full.

2004-01-13 Thread virupaksha
Dear All,

I am developing an application on resin-2.1.9 web server.
Connection to MYSQL Database is using JNDI. JNDI connection code is written in a class 
called DBService.
I am instantiating DBService class where ever i need database connection and getting 
connection using getConnection() method.

when user start working on  application, i m getting following errors,

Class:DBService. Method:getConnection() cann't open connection with full database 
pool(30)
Class:MonthReport. Method:SelectReportDetailNull() cann't open connection with full 
database pool(30)

it sounds like database pool is full, Whether i need to increase the pool size or 
optimize code in DBService database connection class.

for your reference below code  performs database connection.

--
public Connection getConnection()
{
java.sql.Connection con = null;
javax.sql.DataSource ds=null;

try{

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
ds= (DataSource)envCtx.lookup("jdbc/training");
con = ds.getConnection();

}catch(Exception e){
System.out.println("Class : DBService, Method : 
getConnection()"+e.getMessage());
}
return con;

}//end of getConnection method
-

Your advice will be great help to optimize my application.

Thanks in advance.

Regards,
Viru

Re: Database pool full.

2004-01-13 Thread virupaksha
Dear Max,

Yah, this problem occures after  visiting some pages,
to use #1 strategy, whether I need to do any changes in configuration or is
there any other way?

Thanks for your suggestions & immediate response,

Regards,
viru


- Original Message -
From: "Max Cooper" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 14, 2004 12:30 PM
Subject: Re: Database pool full.


> My guess is that you have a connection leak somewhere. Does this problem
> start occurring immediately, or does it only show up after visiting a
number
> of pages in the site?
>
> Various db pools have different ways of dealing with no connections being
> available. Often, you can configure which strategy to use. Here are 3
> different strategies:
>
> 1. Wait until a connection becomes available.
> 2. Fail if no connections are available (i.e. return null or throw an
> exception).
> 3. Grow the pool temporarily if there are no free connections.
>
> It is clear from the errors you are getting that your pool is currently
> using strategy #2. I like #1 the best, because it is less likely that
> requests will fail under load. But, you must be sure that you don't have
any
> connection leaks, because the app will eventually hang if you have
> connection leaks and use strategy #1. Strategy #3 works, but you can run
> still run out of connections in the database itself, so it can start to
act
> like strategy #2. This is one aspect of connection pooling that important
to
> consider when developing web apps.
>
> But, it seems likely that you have leaks somewhere. Some of your requests
> are probably not returning their connections to the pool. It could be that
> you have exceptions that are being thrown and not releasing the
connection,
> or it could just be that you have non-exception logic paths that don't
> return the connections. Some combination of code reviews, debugging, etc.
is
> needed to track them down.
>
> Another thing to watch out for is requests that require more than 1
> simultaneous connection. For instance, consider the situation where you
have
> a pool of 30 connections, 15 request handler threads, and a request that
> requires 3 connections. If 15 of those requests come in at once, and each
> request handler thread grabs 2 connections, you will have deadlock as all
> the request handler threads wait forever for a third db connection to
become
> available (assuming you are using pooling strategy #1 above). The solution
> to this problem is to make sure that you don't have any requests that
> require more than one simultaneous connection, or at least that your db
> connection pool has enough connections to survive a flood of connection
> hungry requests (e.g. have a pool of 45 connections in the example
scenario
> described above -- 3 conn/req * 15 threads = 45 connections in the pool).
> This may seem unlikely, but it is a problem I have faced in a production
> system (and it wasn't easy to track down!). Another lister here suggested
a
> good technique for ensuring that none of your requests require more than 1
> simultaneous connection -- test your app with a pool of 1 connections.
>
> -Max
>
> - Original Message -
> From: "virupaksha" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 13, 2004 7:14 PM
> Subject: Database pool full.
>
>
> Dear All,
>
> I am developing an application on resin-2.1.9 web server.
> Connection to MYSQL Database is using JNDI. JNDI connection code is
written
> in a class called DBService.
> I am instantiating DBService class where ever i need database connection
and
> getting connection using getConnection() method.
>
> when user start working on  application, i m getting following errors,
>
> Class:DBService. Method:getConnection() cann't open connection with full
> database pool(30)
> Class:MonthReport. Method:SelectReportDetailNull() cann't open connection
> with full database pool(30)
>
> it sounds like database pool is full, Whether i need to increase the pool
> size or optimize code in DBService database connection class.
>
> for your reference below code  performs database connection.
>
> --
> public Connection getConnection()
> {
> java.sql.Connection con = null;
> javax.sql.DataSource ds=null;
>
> try{
>
> Context initCtx = new InitialContext();
> Context envCtx = (Context) initCtx.lookup("java:comp/env");
> ds= (DataSource)envCtx.lookup("jdbc/training");
> con = ds.ge

Re: Database pool full.

2004-01-15 Thread virupaksha
Thanks max for your suggestions,
Yah, there was a connection leak in  a mthod, so that leades to system slow
down.
Now it's OK, I am monitoring my application performance ,
then, we are using Resin connection pool class. any more suggestions?

Regards,
Viru
- Original Message -
From: "Max Cooper" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 14, 2004 4:04 PM
Subject: Re: Database pool full.


> We were using the Oracle connection pool implementation, and it is a
> configurable item on there. There is no config file, so we used a method
> call to set the strategy in that case. I would expect that other pool
> implementations might have different options and different configuration
> procedures. I'm not familiar with the MySQL config, or even if the pool
you
> are using is part of the MySQL driver package (or perhaps the pool is part
> of Resin?). What is the fully-qualified class name of the DataSource class
> you are using?
>
> -Max
>
> - Original Message -
> From: "virupaksha" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 13, 2004 9:02 PM
> Subject: Re: Database pool full.
>
>
> > Dear Max,
> >
> > Yah, this problem occures after  visiting some pages,
> > to use #1 strategy, whether I need to do any changes in configuration or
> is
> > there any other way?
> >
> > Thanks for your suggestions & immediate response,
> >
> > Regards,
> > viru
> >
> >
> > - Original Message -
> > From: "Max Cooper" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 14, 2004 12:30 PM
> > Subject: Re: Database pool full.
> >
> >
> > > My guess is that you have a connection leak somewhere. Does this
problem
> > > start occurring immediately, or does it only show up after visiting a
> > number
> > > of pages in the site?
> > >
> > > Various db pools have different ways of dealing with no connections
> being
> > > available. Often, you can configure which strategy to use. Here are 3
> > > different strategies:
> > >
> > > 1. Wait until a connection becomes available.
> > > 2. Fail if no connections are available (i.e. return null or throw an
> > > exception).
> > > 3. Grow the pool temporarily if there are no free connections.
> > >
> > > It is clear from the errors you are getting that your pool is
currently
> > > using strategy #2. I like #1 the best, because it is less likely that
> > > requests will fail under load. But, you must be sure that you don't
have
> > any
> > > connection leaks, because the app will eventually hang if you have
> > > connection leaks and use strategy #1. Strategy #3 works, but you can
run
> > > still run out of connections in the database itself, so it can start
to
> > act
> > > like strategy #2. This is one aspect of connection pooling that
> important
> > to
> > > consider when developing web apps.
> > >
> > > But, it seems likely that you have leaks somewhere. Some of your
> requests
> > > are probably not returning their connections to the pool. It could be
> that
> > > you have exceptions that are being thrown and not releasing the
> > connection,
> > > or it could just be that you have non-exception logic paths that don't
> > > return the connections. Some combination of code reviews, debugging,
> etc.
> > is
> > > needed to track them down.
> > >
> > > Another thing to watch out for is requests that require more than 1
> > > simultaneous connection. For instance, consider the situation where
you
> > have
> > > a pool of 30 connections, 15 request handler threads, and a request
that
> > > requires 3 connections. If 15 of those requests come in at once, and
> each
> > > request handler thread grabs 2 connections, you will have deadlock as
> all
> > > the request handler threads wait forever for a third db connection to
> > become
> > > available (assuming you are using pooling strategy #1 above). The
> solution
> > > to this problem is to make sure that you don't have any requests that
> > > require more than one simultaneous connection, or at least that your
db
> > > connection pool has enough connections to survive a flood of
connection
> > > hungry requests (e.g. have a pool of 45 connections in the

Memory usage

2004-02-25 Thread virupaksha
Dear All,

I have a requirement, where i need to stop garbage collection, is there any way to 
implement?
Because, I need to  judge our code is good and optimized,

I need some ray of hope

Thanks in advance,

Viru
 


error..!

2003-07-21 Thread virupaksha hosamath
Dear All,
 
 
I am new to struts framework, please any body can help me to come out from the 
following error... 
 
Bean Name : Dept.java
Action Name:ListDepartmentsAction.java
JSP name: DeptListing.jsp
 
-error---
javax.servlet.ServletException: Cannot find bean listdepartments in scope null
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:193)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)

I am facing above error when i run  DeptListing.jsp.
 
Hereby I have mentioned code for struts-config.xml & DeptListing.jsp ,
 
 
-code for 
DeptListing.jsp-
 
<%@ taglib uri="strutslogic" prefix="logic" %>
<%@ taglib uri="strutsbean" prefix="bean" %>
<%@ taglib uri="strutshtml" prefix="html" %>

<%System.out.println("Before Calling Me..!");%>

<%System.out.println("After  Calling Me..!");%>
   
   

   
   
   
  
   Show 

   
  
  

--end
 
-struts-config.xml-
 

http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"; >







 
 
 
 
 







--end-

 
waiting for ur help.
 
regards,
virupaksha

 

 




-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: error..!

2003-07-21 Thread virupaksha hosamath
Dear Buics,
 
Thanks for ur immediate response..
 
I tried by putting request.setAttribute("listdeprtments",listdepartments)..
 
please have look on my ListDepartmentAction.java & DeptListing.jsp
-ListActionDeprtment.java-
package app;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class ListDepartmentsAction extends Action{
 
public ActionForward perform(ActionMapping mapping,ActionForm 
form,HttpServletRequest request,HttpServletResponse response) throws Exception{
Dept dept = new Dept();
request.setAttribute("listdepartments",dept.getDepartments());
 return mapping.findForward("listing");
 }
}

 
end
-DeptListing.jsp---
<%@ taglib uri="strutslogic" prefix="logic" %>
<%@ taglib uri="strutsbean" prefix="bean" %>
<%@ taglib uri="strutshtml" prefix="html" %>

 <%
 request.getAttribute("listdepartments");
 %>


   
   

   
   
   
  
   Show 

   
  
  

--

Buics <> wrote:
put your object in the request attribute
ex.
request.setAttribute("listdepartments", listdepartments);
%>


virupaksha hosamath wrote:

> Dear All,
>
>
> I am new to struts framework, please any body can help me to come out from the 
> following error...
>
> Bean Name : Dept.java
> Action Name:ListDepartmentsAction.java
> JSP name: DeptListing.jsp
>
> -error---
> javax.servlet.ServletException: Cannot find bean listdepartments in scope null
> at 
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
> at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:193)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke(Standar

RE: error..!(Thnks Swaroop George)

2003-07-21 Thread virupaksha hosamath
Dear Swaroop,
 
Thanks for ur response..!
 
I just want to retrive data from the database using bean Dept.java,
I m not using any formbean here.just instantiating Dept bean in 
ListDepartmentAction.java and displaying using  tag in jsp called 
DeptListing.jsp. Action mapping has done in struts-config.xml.
but still, i m getting same error. can u help me out..?
 
Model : Dept.java(to just retrive data from the database.)
Controller : ListDepartmentsAction.java(Instantiate class Dept )
View : DeptListing.jsp(iterate over bean and display)
 
for ur ref. i m sending code again pls. find..
 
im getting same error
 
Thank you once again..
 please reply me
 
Regards,
virupaksha
 
struts-config---

  
  
   

 
 
 

  
-
 
-DeptListing.jsp-
<%@ taglib uri="strutslogic" prefix="logic" %>
<%@ taglib uri="strutsbean" prefix="bean" %>
<%@ taglib uri="strutshtml" prefix="html" %>

 

   

   
 
 Show 
 
  
  

---
-ListDepartmentsAction.java--
package app;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class ListDepartmentsAction extends Action{
 
public ActionForward perform(ActionMapping mapping,ActionForm 
form,HttpServletRequest request,HttpServletResponse response) throws Exception{
Dept dept = new Dept();
request.getSession().setAttribute("list",dept.getDepartments);
return mapping.findForward("listing");
 }
}
---
--error--

exception 
javax.servlet.ServletException: Cannot find bean departments in scope null  at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
  at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187) at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)  
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)   
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)  
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
 at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)   
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) 
   at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)  
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.

RE: error..!(Thnks Swaroop George)

2003-07-21 Thread virupaksha hosamath
Dear Nagendra,
 
Still same error no change...!
Still I am not getting where will be the problem..?
 
Hey Nagendra..? r u indian..? where ur working..?
 
I m indian working in Malysia..
 
thanks 4 mail,
 
Regds,
virupaksha

Nagendra Kumar O V S <[EMAIL PROTECTED]> wrote:
FLAVOR00-NONE---;hey,
u have saved ur dataObject to the request with the name "list" .
so ur jsp should look something like this
 
<%@ taglib uri="strutslogic" prefix="logic" %>
<%@ taglib uri="strutsbean" prefix="bean" %>
<%@ taglib uri="strutshtml" prefix="html" %>



 



 Show 


 


check it out!!
 
-- nagi
---Original Message---
 
From: Struts Users Mailing List
Date: Tuesday, July 22, 2003 11:37:18 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: error..!(Thnks Swaroop George)

 
Dear Swaroop,

Thanks for ur response..!

I just want to retrive data from the database using bean Dept.java,
I m not using any formbean here.just instantiating Dept bean in 
ListDepartmentAction.java and displaying using  tag in jsp called 
DeptListing.jsp. Action mapping has done in struts-config.xml.
but still, i m getting same error. can u help me out..?

Model : Dept.java(to just retrive data from the database.)
Controller : ListDepartmentsAction.java(Instantiate class Dept )
View : DeptListing.jsp(iterate over bean and display)

for ur ref. i m sending code again pls. find..

im getting same error

Thank you once again..
please reply me

Regards,
virupaksha

struts-config---










-

-DeptListing.jsp-
<%@ taglib uri="strutslogic" prefix="logic" %>
<%@ taglib uri="strutsbean" prefix="bean" %>
<%@ taglib uri="strutshtml" prefix="html" %>



 



 Show 


 

---
-ListDepartmentsAction.java--
package app;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class ListDepartmentsAction extends Action{

public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest 
request,HttpServletResponse response) throws Exception{
Dept dept = new Dept();
request.getSession().setAttribute("list",dept.getDepartments);
return mapping.findForward("listing");
}
}
---
--error--

exception 
javax.servlet.ServletException: Cannot find bean departments in scope null at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
 at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187) at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at 
org.apache.catalina.core.St

RE: error..!(Thnks Swaroop George)

2003-07-22 Thread virupaksha hosamath
Dear Prashanth,
 
I tried out for scope ="session" ,still the error is same..
..
 
thanks 4 ur response..
 
thanks..
 
rgds,
virupaksha

"Prashanth.S" <[EMAIL PROTECTED]> wrote:
Hi
I agree with nagendra..
try out

instead of 
scope=request...
Thanks
Prashanth


virupaksha hosamath wrote:
Dear Nagendra,

Still same error no change...!
Still I am not getting where will be the problem..?

Hey Nagendra..? r u indian..? where ur working..?

I m indian working in Malysia..

thanks 4 mail,

Regds,
virupaksha

Nagendra Kumar O V S wrote:
FLAVOR00-NONE---;hey,
u have saved ur dataObject to the request with the name "list" .
so ur jsp should look something like this











Show 





check it out!!

-- nagi
---Original Message---

From: Struts Users Mailing List
Date: Tuesday, July 22, 2003 11:37:18 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: error..!(Thnks Swaroop George)


Dear Swaroop,

Thanks for ur response..!

I just want to retrive data from the database using bean Dept.java,
I m not using any formbean here.just instantiating Dept bean in 
ListDepartmentAction.java and displaying using tag in jsp called DeptListing.jsp. 
Action mapping has done in struts-config.xml.
but still, i m getting same error. can u help me out..?

Model : Dept.java(to just retrive data from the database.)
Controller : ListDepartmentsAction.java(Instantiate class Dept )
View : DeptListing.jsp(iterate over bean and display)

for ur ref. i m sending code again pls. find..

im getting same error

Thank you once again..
please reply me

Regards,
virupaksha

struts-config---










-

-DeptListing.jsp-










Show 




---
-ListDepartmentsAction.java--
package app;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class ListDepartmentsAction extends Action{

public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest 
request,HttpServletResponse response) throws Exception{
Dept dept = new Dept();
request.getSession().setAttribute("list",dept.getDepartments);
return mapping.findForward("listing");
}
}
---
--error--

exception 
javax.servlet.ServletException: Cannot find bean departments in scope null at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
 at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187) at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at
org.apache.catalina.valves.E