Re: Newbie datasource Q

2001-03-27 Thread piyush raj jain

kartik!
url depends on driver class used.
piyush

Kartik Sudarsan wrote:

> i think the problem lies in your url. i have implemented datasource in my
> application using datasource and this is what my url looks like
> jdbc:oracle:thin:@sandstorm:1521:testdb
> here sandstorm is the name of the machine on which the database is
> and testdb is the global database name
>
> i hope this is of use to you
>
> Regards,
>
> Kartik Sudarsan
>
> IT Cube India Pvt. Ltd,
> Unit 1, 8th Floor,
> Innovator Building
> ITPL, Whitefield Road
> Ph:98450 74666
>
> Quality is a mindset,not an event
>
> -Original Message-
> From: JOEL VOGT [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 28, 2001 6:11 AM
> To: [EMAIL PROTECTED]
> Subject: Newbie datasource Q
>
> Hi all,
>
> Hopefully this is an easy question for somebody.
> In my struts-config I have the datasource
> 
> autoCommit="false"
>  description="Access data source config"
>  driverClass="sun.jdbc.odbc.JdbcOdbcDriver"
>  maxCount="4"
>  minCount="2"
>  password="mypassword"
>  url="jdbc:odbc:Rec97"
>  user="myusername"
>  />
> 
>
> later on in a servlet I have
>
> javax.sql.DataSource dataSource = servlet.findDataSource(null);
> con = dataSource.getConnection();
>
> When I try to use this however, I get an java.sql exception :
> 'no data found'
>
> Anyone know how to fix this, do this proper? It works fine if I hard
> code in the database details.
>
> Thanks,
> Joel.

--
=
 Piyush Raj Jain  Phone:
 Member Technical Staff,   (Off):91-80-5584271
 e-Governance & Digital Library (res):91-80-5341683
 Centre for Development of Advanced Computing, (Fax):91-80-5584893
 Banglore, INDIA.[EMAIL PROTECTED]
=





Re: Using buttons for forwarding

2000-11-17 Thread piyush raj jain

I doubt that netscape won't display the button without form .

Nikolaus Rumm wrote:

> Hello, for design reasons I would like to use a button instead of a
> text-hyperlink to forward/redirect a request to another
> action/jsp-page. The struts:button tag is only valid inside a form and
> IMHO not intended for this use. Is there any workaround available
> ? Regards Nikolaus




Re: TAG-File for Dreamweaver

2000-11-17 Thread piyush raj jain

hi Cools
Sorry ..
but just curious
never worked on dreamweaver ..
how this is beneficiary in overall development with struts.
what we do is graphic desiner makes a prototype
then jsp person edit it and transform the htmls to jsps.

cheers
piyush
Thierry Cools wrote:

> I did something similar for Dreamweaver ultradev 1.0, I wrote a
> translator that cover almost all visual struts tags, it is not perfect
> yet but it works pretty well.If you're interrested, in the file ( it's
> a a javascript file ), just send me a mail. Thierry
> Thierry Cools
>
> Senior Java Developer
> S1 Brussels
> Kleine Kloosterstraat, 23
> 1932 st. Stevens-Woluwe
> Belgium
> Tel : +32 2 200 43 82
> Email : [EMAIL PROTECTED]
>
>  - Original Message -
>  From: Nikolaus Rumm
>  To: [EMAIL PROTECTED]
>  Sent: Friday, November 17, 2000 1:49 AM
>  Subject: TAG-File for Dreamweaver
>   Hello, has anyone yet made a TAG.xml-file that describes
>  the struts 0.5 standard tags for use with Dreamweaver 3 ? If
>  so, could you please post it to me ?Hint: Dreamweaver uses
>  TAG.xml files to display ustom-tags. Thx Nikolaus
>