Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Import .ssc seems to have no effect

8 posts in General Discussion (old) Last posting was on 2000-02-17 21:32:58.0Z
Daniel Coppersmith Posted on 2000-02-12 17:31:13.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
From: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
Subject: Import .ssc seems to have no effect
Date: Sat, 12 Feb 2000 12:31:13 -0500
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-Mimeole: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: sdn-ar-002insbenP182.dialsprint.net 168.191.107.222
Message-ID: <347_LnwN2DYd$GA.327@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28848
Article PK: 161227

Hi...

I have a script where I import the JavaWrapper.ssc code. Here's what my
code looks like:

<!--SCRIPT
import "include/JavaWrapper.ssc";
.....
-->

I do not get any errors on the import, but I do get an "undefined variable"
error when I try to use the JavaFieldHelper class.

If I cut and paste the JavaWrapper.ssc code in rather than use an import,
everything works great. JavaWrapper.ssc is deployed and I can see it in
Sybase Central.

If I use: import "include/JavaWrapperXXXXX.ssc"; it will tell me that the
file couldn't be found, so I'm confident my syntax is right.

Any ideas?

Thanks,

Daniel


Dave Wolf [Sybase] Posted on 2000-02-13 19:32:32.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Import .ssc seems to have no effect
Date: Sun, 13 Feb 2000 14:32:32 -0500
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 158.159.8.10
Message-ID: <347_1xoAPmld$GA.96@forums.sybase.com>
References: <347_LnwN2DYd$GA.327@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28822
Article PK: 161206

Have you solved this?

Dave Wolf
Internet Applications Division

Daniel Coppersmith <daniel@NO.SPAM.infrontsoftware.com> wrote in message
news:LnwN2DYd$GA.327@forums.sybase.com...
> Hi...
>
> I have a script where I import the JavaWrapper.ssc code. Here's what my
> code looks like:
>
> <!--SCRIPT
> import "include/JavaWrapper.ssc";
> .....
> -->
>
> I do not get any errors on the import, but I do get an "undefined
variable"
> error when I try to use the JavaFieldHelper class.
>
> If I cut and paste the JavaWrapper.ssc code in rather than use an import,
> everything works great. JavaWrapper.ssc is deployed and I can see it in
> Sybase Central.
>
> If I use: import "include/JavaWrapperXXXXX.ssc"; it will tell me that
the
> file couldn't be found, so I'm confident my syntax is right.
>
> Any ideas?
>
> Thanks,
>
> Daniel
>
>


Daniel Coppersmith Posted on 2000-02-13 20:17:51.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
From: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
Subject: Re: Import .ssc seems to have no effect
Date: Sun, 13 Feb 2000 15:17:51 -0500
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: sdn-ar-002insbenP077.dialsprint.net 168.191.107.165
Message-ID: <347_3gRAlFmd$GA.223@forums.sybase.com>
References: <347_LnwN2DYd$GA.327@forums.sybase.com> <347_1xoAPmld$GA.96@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28820
Article PK: 160931

Not the import. I am able to use the classes you defined and all that works
great, but the import seems to not happen. I've tried putting writeln's to
create an alert in the .ssc file to see if I got the messagebox when it was
imported, but no luck.

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:1xoAPmld$GA.96@forums.sybase.com...
> Have you solved this?
>
> Dave Wolf
> Internet Applications Division
>
> Daniel Coppersmith <daniel@NO.SPAM.infrontsoftware.com> wrote in message
> news:LnwN2DYd$GA.327@forums.sybase.com...
> > Hi...
> >
> > I have a script where I import the JavaWrapper.ssc code. Here's what my
> > code looks like:
> >
> > <!--SCRIPT
> > import "include/JavaWrapper.ssc";
> > .....
> > -->
> >
> > I do not get any errors on the import, but I do get an "undefined
> variable"
> > error when I try to use the JavaFieldHelper class.
> >
> > If I cut and paste the JavaWrapper.ssc code in rather than use an
import,
> > everything works great. JavaWrapper.ssc is deployed and I can see it in
> > Sybase Central.
> >
> > If I use: import "include/JavaWrapperXXXXX.ssc"; it will tell me that
> the
> > file couldn't be found, so I'm confident my syntax is right.
> >
> > Any ideas?
> >
> > Thanks,
> >
> > Daniel
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-02-13 21:15:54.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Import .ssc seems to have no effect
Date: Sun, 13 Feb 2000 16:15:54 -0500
Lines: 64
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 158.159.8.25
Message-ID: <347_ZP5VAgmd$GA.96@forums.sybase.com>
References: <347_LnwN2DYd$GA.327@forums.sybase.com> <347_1xoAPmld$GA.96@forums.sybase.com> <347_3gRAlFmd$GA.223@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28818
Article PK: 160929

Very weird. This is exactly what I do with these classes all the time.

Dave Wolf
Internet Applications Division

Daniel Coppersmith <daniel@NO.SPAM.infrontsoftware.com> wrote in message
news:3gRAlFmd$GA.223@forums.sybase.com...
> Not the import. I am able to use the classes you defined and all that
works
> great, but the import seems to not happen. I've tried putting writeln's
to
> create an alert in the .ssc file to see if I got the messagebox when it
was
> imported, but no luck.
>
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> news:1xoAPmld$GA.96@forums.sybase.com...
> > Have you solved this?
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > Daniel Coppersmith <daniel@NO.SPAM.infrontsoftware.com> wrote in message
> > news:LnwN2DYd$GA.327@forums.sybase.com...
> > > Hi...
> > >
> > > I have a script where I import the JavaWrapper.ssc code. Here's what
my
> > > code looks like:
> > >
> > > <!--SCRIPT
> > > import "include/JavaWrapper.ssc";
> > > .....
> > > -->
> > >
> > > I do not get any errors on the import, but I do get an "undefined
> > variable"
> > > error when I try to use the JavaFieldHelper class.
> > >
> > > If I cut and paste the JavaWrapper.ssc code in rather than use an
> import,
> > > everything works great. JavaWrapper.ssc is deployed and I can see it
in
> > > Sybase Central.
> > >
> > > If I use: import "include/JavaWrapperXXXXX.ssc"; it will tell me
that
> > the
> > > file couldn't be found, so I'm confident my syntax is right.
> > >
> > > Any ideas?
> > >
> > > Thanks,
> > >
> > > Daniel
> > >
> > >
> >
> >
>
>


Daniel Coppersmith Posted on 2000-02-13 22:29:32.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
From: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
Subject: Re: Import .ssc seems to have no effect
Date: Sun, 13 Feb 2000 17:29:32 -0500
Lines: 75
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: sdn-ar-002insbenP192.dialsprint.net 168.191.107.232
Message-ID: <347_g6INLPnd$GA.327@forums.sybase.com>
References: <347_LnwN2DYd$GA.327@forums.sybase.com> <347_1xoAPmld$GA.96@forums.sybase.com> <347_3gRAlFmd$GA.223@forums.sybase.com> <347_ZP5VAgmd$GA.96@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28811
Article PK: 160921

I don't need to do anything special to the .SSC file other than check it in
and deploy it, right? I don't need to compile stubs or anything for it?
It's just like a .h file in the C world, right?

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:ZP5VAgmd$GA.96@forums.sybase.com...
> Very weird. This is exactly what I do with these classes all the time.
>
> Dave Wolf
> Internet Applications Division
>
> Daniel Coppersmith <daniel@NO.SPAM.infrontsoftware.com> wrote in message
> news:3gRAlFmd$GA.223@forums.sybase.com...
> > Not the import. I am able to use the classes you defined and all that
> works
> > great, but the import seems to not happen. I've tried putting writeln's
> to
> > create an alert in the .ssc file to see if I got the messagebox when it
> was
> > imported, but no luck.
> >
> >
> > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > news:1xoAPmld$GA.96@forums.sybase.com...
> > > Have you solved this?
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > Daniel Coppersmith <daniel@NO.SPAM.infrontsoftware.com> wrote in
message
> > > news:LnwN2DYd$GA.327@forums.sybase.com...
> > > > Hi...
> > > >
> > > > I have a script where I import the JavaWrapper.ssc code. Here's
what
> my
> > > > code looks like:
> > > >
> > > > <!--SCRIPT
> > > > import "include/JavaWrapper.ssc";
> > > > .....
> > > > -->
> > > >
> > > > I do not get any errors on the import, but I do get an "undefined
> > > variable"
> > > > error when I try to use the JavaFieldHelper class.
> > > >
> > > > If I cut and paste the JavaWrapper.ssc code in rather than use an
> > import,
> > > > everything works great. JavaWrapper.ssc is deployed and I can see
it
> in
> > > > Sybase Central.
> > > >
> > > > If I use: import "include/JavaWrapperXXXXX.ssc"; it will tell me
> that
> > > the
> > > > file couldn't be found, so I'm confident my syntax is right.
> > > >
> > > > Any ideas?
> > > >
> > > > Thanks,
> > > >
> > > > Daniel
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-02-13 22:47:07.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Import .ssc seems to have no effect
Date: Sun, 13 Feb 2000 17:47:07 -0500
Lines: 101
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 158.159.8.12
Message-ID: <347_1ZeSILqd$GA.223@forums.sybase.com>
References: <347_LnwN2DYd$GA.327@forums.sybase.com> <347_1xoAPmld$GA.96@forums.sybase.com> <347_3gRAlFmd$GA.223@forums.sybase.com> <347_ZP5VAgmd$GA.96@forums.sybase.com> <347_g6INLPnd$GA.327@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28806
Article PK: 160920

Yeah exactly.

<!--SCRIPT

import JavaWrappers.ssc;

array = new JavaArrayHelper("java.lang.String",3);
helper = new JavaFieldHelper(array);
document.writeln(helper.getInt("length"));

-->

Does that not work?

Dave Wolf
Internet Applications Division

Daniel Coppersmith <daniel@NO.SPAM.infrontsoftware.com> wrote in message
news:g6INLPnd$GA.327@forums.sybase.com...
> I don't need to do anything special to the .SSC file other than check it
in
> and deploy it, right? I don't need to compile stubs or anything for it?
> It's just like a .h file in the C world, right?
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> news:ZP5VAgmd$GA.96@forums.sybase.com...
> > Very weird. This is exactly what I do with these classes all the time.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > Daniel Coppersmith <daniel@NO.SPAM.infrontsoftware.com> wrote in message
> > news:3gRAlFmd$GA.223@forums.sybase.com...
> > > Not the import. I am able to use the classes you defined and all that
> > works
> > > great, but the import seems to not happen. I've tried putting
writeln's
> > to
> > > create an alert in the .ssc file to see if I got the messagebox when
it
> > was
> > > imported, but no luck.
> > >
> > >
> > > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > > news:1xoAPmld$GA.96@forums.sybase.com...
> > > > Have you solved this?
> > > >
> > > > Dave Wolf
> > > > Internet Applications Division
> > > >
> > > > Daniel Coppersmith <daniel@NO.SPAM.infrontsoftware.com> wrote in
> message
> > > > news:LnwN2DYd$GA.327@forums.sybase.com...
> > > > > Hi...
> > > > >
> > > > > I have a script where I import the JavaWrapper.ssc code. Here's
> what
> > my
> > > > > code looks like:
> > > > >
> > > > > <!--SCRIPT
> > > > > import "include/JavaWrapper.ssc";
> > > > > .....
> > > > > -->
> > > > >
> > > > > I do not get any errors on the import, but I do get an "undefined
> > > > variable"
> > > > > error when I try to use the JavaFieldHelper class.
> > > > >
> > > > > If I cut and paste the JavaWrapper.ssc code in rather than use an
> > > import,
> > > > > everything works great. JavaWrapper.ssc is deployed and I can see
> it
> > in
> > > > > Sybase Central.
> > > > >
> > > > > If I use: import "include/JavaWrapperXXXXX.ssc"; it will tell me
> > that
> > > > the
> > > > > file couldn't be found, so I'm confident my syntax is right.
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Daniel
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Daniel Coppersmith Posted on 2000-02-14 17:27:10.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
From: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
Subject: Re: Import .ssc seems to have no effect
Date: Mon, 14 Feb 2000 12:27:10 -0500
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: sdn-ar-002insbenP281.dialsprint.net 168.191.108.83
Message-ID: <347_FI1ZjLxd$GA.149@forums.sybase.com>
References: <347_LnwN2DYd$GA.327@forums.sybase.com> <347_1xoAPmld$GA.96@forums.sybase.com> <347_3gRAlFmd$GA.223@forums.sybase.com> <347_ZP5VAgmd$GA.96@forums.sybase.com> <347_g6INLPnd$GA.327@forums.sybase.com> <347_1ZeSILqd$GA.223@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28742
Article PK: 160866

Nope. Here's the error I get:

Warning: undefined variable JavaArrayHelper near line 19 in
"/logon_validate.html" Warning: undefined variable JavaFieldHelper near line
20 in "/logon_validate.html" Warning: undefined variable
helper.getInt[getInt] near line 21 in "/logon_validate.html" null

And here's the entire script:


<%@ LANGUAGE=JavaScript %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META NAME=SERVERLANGUAGE CONTENT=JavaScript HTTP-EQUIV=PowerSiteData>
<META content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<META name=GENERATOR content='"MSHTML 4.72.3110.7"'>
</HEAD>
<BODY>
<!--SCRIPT

import JavaWrappers.ssc;

array = new JavaArrayHelper("java.lang.String",3);
helper = new JavaFieldHelper(array);
document.writeln(helper.getInt("length"));

-->
</BODY>
</HTML>


Daniel Coppersmith Posted on 2000-02-17 21:32:58.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
From: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
Subject: Re: Import .ssc seems to have no effect
Date: Thu, 17 Feb 2000 16:32:58 -0500
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: sdn-ar-002insbenP088.dialsprint.net 168.191.107.176
Message-ID: <347_#K00pCZe$GA.324@forums.sybase.com>
References: <347_LnwN2DYd$GA.327@forums.sybase.com> <347_1xoAPmld$GA.96@forums.sybase.com> <347_3gRAlFmd$GA.223@forums.sybase.com> <347_ZP5VAgmd$GA.96@forums.sybase.com> <347_g6INLPnd$GA.327@forums.sybase.com> <347_1ZeSILqd$GA.223@forums.sybase.com> <347_FI1ZjLxd$GA.149@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28445
Article PK: 160461

For anyone searching on this in the future, I've solved this. I had the
.SSC file as a text file and simply imported it into my project through
PowerSite. Apparantly, this made it "find" the file, but did nothing with
it. It was listed in Sybase Central, but without the header block
information which must be required to import the code.

When I went into Sybase Central and created a new script file and pasted the
text into there, it imported properly into my HTML file.

Daniel Coppersmith <daniel@NO.SPAM.infrontsoftware.com> wrote in message
news:FI1ZjLxd$GA.149@forums.sybase.com...
> Nope. Here's the error I get:
>
> Warning: undefined variable JavaArrayHelper near line 19 in
> "/logon_validate.html" Warning: undefined variable JavaFieldHelper near
line
> 20 in "/logon_validate.html" Warning: undefined variable
> helper.getInt[getInt] near line 21 in "/logon_validate.html" null
>
> And here's the entire script:
>
>
> <%@ LANGUAGE=JavaScript %>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
> <HTML>
> <HEAD>
> <META NAME=SERVERLANGUAGE CONTENT=JavaScript HTTP-EQUIV=PowerSiteData>
> <META content="text/html; charset=windows-1252"
> http-equiv="Content-Type">
> <META name=GENERATOR content='"MSHTML 4.72.3110.7"'>
> </HEAD>
> <BODY>
> <!--SCRIPT
>
> import JavaWrappers.ssc;
>
> array = new JavaArrayHelper("java.lang.String",3);
> helper = new JavaFieldHelper(array);
> document.writeln(helper.getInt("length"));
>
> -->
> </BODY>
> </HTML>
>
>
>