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.

servlet - htmldw

20 posts in General Discussion (old) Last posting was on 2000-03-30 21:27:31.0Z
udk Posted on 2000-03-29 19:05:28.0Z
Newsgroups: sybase.public.easerver
From: "udk" <udk@hotmail.com>
Subject: servlet - htmldw
X-Newsreader: Microsoft Internet News 4.70.1155
Date: Wed, 29 Mar 2000 14:05:28 -0500
Lines: 12
NNTP-Posting-Host: 167.240.240.66
Message-ID: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25335
Article PK: 155434

hi

we are in the process of web enabling existing Pb application using EA
studio.

instead of Powerdynamo, we plan to use servlet to generate dynamic html as
well as
some server side coding.

so far all the documentation talk about how to call html generator
component from
Powerdynamo? but i'd like to know how to call Jaguar html generator
component (htmldw) from servlet.

any help would be greatly appreciated

thanks in advance
udk


Mark J. Pfeifer[TeamSybase] Posted on 2000-03-29 19:25:36.0Z
Newsgroups: sybase.public.easerver
From: Mark J. Pfeifer[TeamSybase] <see_msg@sprynet.com>
Subject: Re: servlet - htmldw
Date: Wed, 29 Mar 2000 12:25:36 -0700
Organization: Corporate Technology Partners, Inc.
X-Newsreader: MicroPlanet Gravity v2.20
Lines: 21
NNTP-Posting-Host: coral.tci.com 198.178.8.81
Message-ID: <347_MPG.134c0698a4c793f998972a@forums.sybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25329
Article PK: 154293

In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
udk@hotmail.com says...

> hi
>
> we are in the process of web enabling existing Pb application using EA
> studio.
>
> instead of Powerdynamo, we plan to use servlet to generate dynamic html as
> well as
> some server side coding.

I believe you need to use Dynamo or ASP to interact with the HTML
Generator. IMHO - I always wanted it to use a servlet. Thought it would
be a cool and standard approach.

Mark

--

Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
mpfeifer @ sprynet.com Emerging Technology Solutions
www.ctpartners.com


Join The Team - hr@ctpartners.com

---
Upcoming Events: (http://www.sybase.com/events)
* WhistleStop - Denver, CO


Dave Wolf [Sybase] Posted on 2000-03-29 19:35:40.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: servlet - htmldw
Date: Wed, 29 Mar 2000 14:35:40 -0500
Lines: 78
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.61
Message-ID: <347_wN$Icabm$GA.201@forums.sybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25326
Article PK: 154292

Here is a snippet of a servlet calling to the HTML DW.

public void doPost(HttpServletRequest request, HttpServletResponse response)
throws Exception
{
PrintWriter out = response.getWriter();
out.println("<h3><FONT FACE=ARIAL>Hello " + getName() + "</FONT></H3><BR>");
HTMLGenerator comp = this.getGenerator();
comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
comp.SetWeight(true, true, true, true, true);
comp.SetHTMLObjectName("dwTest");
comp.SetTrans("JDS","UseContextObject='No',CacheName='" + CACHENAME +
"'", "","", "","", "");

omp.SetSelfLink( "https://localhost:8082/servlet/com.sybase.sample.DataWindo
wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
comp.RetrieveEx(request.getParameter("arg1"));

// See if any client actions have been issued
// (ie. next, previous, insert, etc.)

String action = request.getParameter("dwTest_action");
String context = request.getParameter("dwTest_context");

System.out.println(action + " : " + context);
if (action != null) {
// there is some action
// Tell the DW Generator about the action (Next, Previous, Insert,
etc.)
int ret_val = comp.SetAction(action, context);

if ( ret_val < 0 ) {
out.println(comp.GetLastErrorString());
}
}

out.println(comp.Generate());
}

Dave Wolf
Internet Applications Division

"Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> udk@hotmail.com says...
> > hi
> >
> > we are in the process of web enabling existing Pb application using EA
> > studio.
> >
> > instead of Powerdynamo, we plan to use servlet to generate dynamic html
as
> > well as
> > some server side coding.
>
> I believe you need to use Dynamo or ASP to interact with the HTML
> Generator. IMHO - I always wanted it to use a servlet. Thought it would
> be a cool and standard approach.
>
> Mark
>
> --
>
> Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> mpfeifer @ sprynet.com Emerging Technology Solutions
> www.ctpartners.com
>
>
> Join The Team - hr@ctpartners.com
>
> ---
> Upcoming Events: (http://www.sybase.com/events)
> * WhistleStop - Denver, CO
>


Mark J. Pfeifer[TeamSybase] Posted on 2000-03-29 21:15:53.0Z
Newsgroups: sybase.public.easerver
From: Mark J. Pfeifer[TeamSybase] <see_msg@sprynet.com>
Subject: Re: servlet - htmldw
Date: Wed, 29 Mar 2000 14:15:53 -0700
Organization: Corporate Technology Partners, Inc.
X-Newsreader: MicroPlanet Gravity v2.20
Lines: 15
NNTP-Posting-Host: coral.tci.com 198.178.8.81
Message-ID: <347_MPG.134c207126389ac698972d@forums.sybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25307
Article PK: 155416

In article <wN$Icabm$GA.201@forums.sybase.com>, dwolf@sybase.com says...
> Here is a snippet of a servlet calling to the HTML DW.

Dave -

Cool - Everything works the same from this point on? So you really do not
need PD or ASP after all, correct?

Thanks,
Mark

--

Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
mpfeifer @ sprynet.com Emerging Technology Solutions
www.ctpartners.com


Join The Team - hr@ctpartners.com

---
Upcoming Events: (http://www.sybase.com/events)
* WhistleStop - Denver, CO


Glenn Santa Cruz Posted on 2000-03-29 22:24:27.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 29 Mar 2000 16:24:27 -0600
From: Glenn Santa Cruz <spam?no.glenn_santacruz@dailyaccess.com>
Organization: Daily Access Concepts
X-Mailer: Mozilla 4.7 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: servlet - htmldw
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 28
NNTP-Posting-Host: 12.6.74.30
Message-ID: <347_38E2829B.B17EBF77@dailyaccess.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_MPG.134c207126389ac698972d@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25294
Article PK: 228495

My $0.02 -- we abandoned PD in favor of servlets, have been accessing
the HTMLDW, and are quite pleased with the results. Our primary reason
for abandoning PD was file upload capability along with facing the fact
that we had to learn either Dynascript or Java; considering the role
Java is playing in server-side affairs, we opted for it.

Glenn

"Mark J. Pfeifer[TeamSybase]" wrote:
>
> In article <wN$Icabm$GA.201@forums.sybase.com>, dwolf@sybase.com says...
> > Here is a snippet of a servlet calling to the HTML DW.
>
> Dave -
>
> Cool - Everything works the same from this point on? So you really do not
> need PD or ASP after all, correct?
>
> Thanks,
> Mark
>
> --
>
> Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> mpfeifer @ sprynet.com Emerging Technology Solutions
> www.ctpartners.com
>
> Join The Team - hr@ctpartners.com
>
> ---
> Upcoming Events: (http://www.sybase.com/events)
> * WhistleStop - Denver, CO


Dave Wolf [Sybase] Posted on 2000-03-29 23:30:39.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: servlet - htmldw
Date: Wed, 29 Mar 2000 18:30:39 -0500
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: nomad6-12.sybase.com 157.133.176.12
Message-ID: <347_0Sp7xddm$GA.298@forums.sybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_MPG.134c207126389ac698972d@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25290
Article PK: 228499

No you dont. You can also do it from JSP. Hell if you wanted you could do
it from CGI!

Dave Wolf
Internet Applications Division

"Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
news:MPG.134c207126389ac698972d@forums.sybase.com...
> In article <wN$Icabm$GA.201@forums.sybase.com>, dwolf@sybase.com says...
> > Here is a snippet of a servlet calling to the HTML DW.
>
> Dave -
>
> Cool - Everything works the same from this point on? So you really do not
> need PD or ASP after all, correct?
>
> Thanks,
> Mark
>
> --
>
> Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> mpfeifer @ sprynet.com Emerging Technology Solutions
> www.ctpartners.com
>
>
> Join The Team - hr@ctpartners.com
>
> ---
> Upcoming Events: (http://www.sybase.com/events)
> * WhistleStop - Denver, CO
>


udk Posted on 2000-03-29 20:52:38.0Z
Newsgroups: sybase.public.easerver
From: "udk" <udk@hotmail.com>
Subject: Re: servlet - htmldw
X-Newsreader: Microsoft Internet News 4.70.1155
Date: Wed, 29 Mar 2000 15:52:38 -0500
Lines: 75
NNTP-Posting-Host: 167.240.240.66
Message-ID: <347_01bf99bf$f2ceb6e0$42f0f0a7@DMB0663.state.mi.us>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25314
Article PK: 155421

hi dave

thanks for immediate reply. i really appriciate it.

HTMLGenerator comp = this.generator()

i believe i've to declare object of type HTMLgenerator then call generator
method. i am bit confused in understanding above line of code. generator()
method belongs to which object?????

i'm confused totally.....

udk.

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
<wN$Icabm$GA.201@forums.sybase.com>...
> Here is a snippet of a servlet calling to the HTML DW.
>
> public void doPost(HttpServletRequest request, HttpServletResponse
response)
> throws Exception
> {
> PrintWriter out = response.getWriter();
> out.println("<h3><FONT FACE=ARIAL>Hello " + getName() +
"</FONT></H3><BR>");
> HTMLGenerator comp = this.getGenerator();
> comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> comp.SetWeight(true, true, true, true, true);
> comp.SetHTMLObjectName("dwTest");
> comp.SetTrans("JDS","UseContextObject='No',CacheName='" + CACHENAME +
> "'", "","", "","", "");
>
> omp.SetSelfLink(
"https://localhost:8082/servlet/com.sybase.sample.DataWindo
> wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> comp.RetrieveEx(request.getParameter("arg1"));
>
> // See if any client actions have been issued
> // (ie. next, previous, insert, etc.)
>
> String action = request.getParameter("dwTest_action");
> String context = request.getParameter("dwTest_context");
>
> System.out.println(action + " : " + context);
> if (action != null) {
> // there is some action
> // Tell the DW Generator about the action (Next, Previous, Insert,
> etc.)
> int ret_val = comp.SetAction(action, context);
>
> if ( ret_val < 0 ) {
> out.println(comp.GetLastErrorString());
> }
> }
>
> out.println(comp.Generate());
> }
>
> Dave Wolf
> Internet Applications Division
>
>
> "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > udk@hotmail.com says...
> > > hi
> > >
> > > we are in the process of web enabling existing Pb application using
EA
> > > studio.
> > >
> > > instead of Powerdynamo, we plan to use servlet to generate dynamic
html
> as
> > > well as
> > > some server side coding.
> >
> > I believe you need to use Dynamo or ASP to interact with the HTML
> > Generator. IMHO - I always wanted it to use a servlet. Thought it would
> > be a cool and standard approach.
> >
> > Mark
> >
> > --
> >
> > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > mpfeifer @ sprynet.com Emerging Technology Solutions
> > www.ctpartners.com
> >
> >
> > Join The Team - hr@ctpartners.com
> >
> > ---
> > Upcoming Events: (http://www.sybase.com/events)
> > * WhistleStop - Denver, CO
> >
>
>
>


Dave Wolf [Sybase] Posted on 2000-03-29 20:50:01.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: servlet - htmldw
Date: Wed, 29 Mar 2000 15:50:01 -0500
Lines: 128
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.61
Message-ID: <347_9m2$$Dcm$GA.298@forums.sybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_01bf99bf$f2ceb6e0$42f0f0a7@DMB0663.state.mi.us>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25313
Article PK: 155420

Sorry that method was also in the servlet. I just snipped the doPost()
method.

protected HTMLGenerator getGenerator()


java.util.Properties props = new java.util.Properties();
props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
ORB orb = ORB.init((String[]) null, props);

Manager manager =
ManagerHelper.narrow(orb.string_to_object("iiop://0:0"));
Session session = manager.createSession("jagadmin", "");
Factory factory =
FactoryHelper.narrow(session.lookup("DataWindow/HTMLGenerator"));
HTMLGenerator comp = HTMLGeneratorHelper.narrow(factory.create());
return comp;
}

Dave Wolf
Internet Applications Division

"udk" <udk@hotmail.com> wrote in message
news:01bf99bf$f2ceb6e0$42f0f0a7@DMB0663.state.mi.us...
> hi dave
>
> thanks for immediate reply. i really appriciate it.
>
> HTMLGenerator comp = this.generator()
>
> i believe i've to declare object of type HTMLgenerator then call generator
> method. i am bit confused in understanding above line of code. generator()
> method belongs to which object?????
>
> i'm confused totally.....
>
> udk.
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
> <wN$Icabm$GA.201@forums.sybase.com>...
> > Here is a snippet of a servlet calling to the HTML DW.
> >
> > public void doPost(HttpServletRequest request, HttpServletResponse
> response)
> > throws Exception
> > {
> > PrintWriter out = response.getWriter();
> > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() +
> "</FONT></H3><BR>");
> > HTMLGenerator comp = this.getGenerator();
> > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > comp.SetWeight(true, true, true, true, true);
> > comp.SetHTMLObjectName("dwTest");
> > comp.SetTrans("JDS","UseContextObject='No',CacheName='" + CACHENAME
+
> > "'", "","", "","", "");
> >
> > omp.SetSelfLink(
> "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > comp.RetrieveEx(request.getParameter("arg1"));
> >
> > // See if any client actions have been issued
> > // (ie. next, previous, insert, etc.)
> >
> > String action = request.getParameter("dwTest_action");
> > String context = request.getParameter("dwTest_context");
> >
> > System.out.println(action + " : " + context);
> > if (action != null) {
> > // there is some action
> > // Tell the DW Generator about the action (Next, Previous, Insert,
> > etc.)
> > int ret_val = comp.SetAction(action, context);
> >
> > if ( ret_val < 0 ) {
> > out.println(comp.GetLastErrorString());
> > }
> > }
> >
> > out.println(comp.Generate());
> > }
> >
> > Dave Wolf
> > Internet Applications Division
> >
> >
> > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > udk@hotmail.com says...
> > > > hi
> > > >
> > > > we are in the process of web enabling existing Pb application using
> EA
> > > > studio.
> > > >
> > > > instead of Powerdynamo, we plan to use servlet to generate dynamic
> html
> > as
> > > > well as
> > > > some server side coding.
> > >
> > > I believe you need to use Dynamo or ASP to interact with the HTML
> > > Generator. IMHO - I always wanted it to use a servlet. Thought it
would
> > > be a cool and standard approach.
> > >
> > > Mark
> > >
> > > --
> > >
> > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > www.ctpartners.com
> > >
> > >
> > > Join The Team - hr@ctpartners.com
> > >
> > > ---
> > > Upcoming Events: (http://www.sybase.com/events)
> > > * WhistleStop - Denver, CO
> > >
> >
> >
> >


udk Posted on 2000-03-29 21:02:04.0Z
Newsgroups: sybase.public.easerver
From: "udk" <udk@hotmail.com>
Subject: Re: servlet - htmldw
X-Newsreader: Microsoft Internet News 4.70.1155
Date: Wed, 29 Mar 2000 16:02:04 -0500
Lines: 113
NNTP-Posting-Host: 167.240.240.66
Message-ID: <347_01bf99c1$4409e420$42f0f0a7@DMB0663.state.mi.us>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_01bf99bf$f2ceb6e0$42f0f0a7@DMB0663.state.mi.us> <347_9m2$$Dcm$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25312
Article PK: 155418

hi dave

once again thanks for immediate reply. now i am confused as to where to
start & where to end?? could u please post me a complete sample code for
the same

udk

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
<9m2$$Dcm$GA.298@forums.sybase.com>...
> Sorry that method was also in the servlet. I just snipped the doPost()
> method.
>
> protected HTMLGenerator getGenerator()
>
>
> java.util.Properties props = new java.util.Properties();
> props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> ORB orb = ORB.init((String[]) null, props);
>
> Manager manager =
> ManagerHelper.narrow(orb.string_to_object("iiop://0:0"));
> Session session = manager.createSession("jagadmin", "");
> Factory factory =
> FactoryHelper.narrow(session.lookup("DataWindow/HTMLGenerator"));
> HTMLGenerator comp = HTMLGeneratorHelper.narrow(factory.create());
> return comp;
> }
>
> Dave Wolf
> Internet Applications Division
>
> "udk" <udk@hotmail.com> wrote in message
> news:01bf99bf$f2ceb6e0$42f0f0a7@DMB0663.state.mi.us...
> > hi dave
> >
> > thanks for immediate reply. i really appriciate it.
> >
> > HTMLGenerator comp = this.generator()
> >
> > i believe i've to declare object of type HTMLgenerator then call
generator
> > method. i am bit confused in understanding above line of code.
generator()
> > method belongs to which object?????
> >
> > i'm confused totally.....
> >
> > udk.
> >
> > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
> > <wN$Icabm$GA.201@forums.sybase.com>...
> > > Here is a snippet of a servlet calling to the HTML DW.
> > >
> > > public void doPost(HttpServletRequest request, HttpServletResponse
> > response)
> > > throws Exception
> > > {
> > > PrintWriter out = response.getWriter();
> > > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() +
> > "</FONT></H3><BR>");
> > > HTMLGenerator comp = this.getGenerator();
> > > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > > comp.SetWeight(true, true, true, true, true);
> > > comp.SetHTMLObjectName("dwTest");
> > > comp.SetTrans("JDS","UseContextObject='No',CacheName='" +
CACHENAME
> +
> > > "'", "","", "","", "");
> > >
> > > omp.SetSelfLink(
> > "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > > comp.RetrieveEx(request.getParameter("arg1"));
> > >
> > > // See if any client actions have been issued
> > > // (ie. next, previous, insert, etc.)
> > >
> > > String action = request.getParameter("dwTest_action");
> > > String context = request.getParameter("dwTest_context");
> > >
> > > System.out.println(action + " : " + context);
> > > if (action != null) {
> > > // there is some action
> > > // Tell the DW Generator about the action (Next, Previous,
Insert,
> > > etc.)
> > > int ret_val = comp.SetAction(action, context);
> > >
> > > if ( ret_val < 0 ) {
> > > out.println(comp.GetLastErrorString());
> > > }
> > > }
> > >
> > > out.println(comp.Generate());
> > > }
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > >
> > > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> > > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > > udk@hotmail.com says...
> > > > > hi
> > > > >
> > > > > we are in the process of web enabling existing Pb application
using
> > EA
> > > > > studio.
> > > > >
> > > > > instead of Powerdynamo, we plan to use servlet to generate
dynamic
> > html
> > > as
> > > > > well as
> > > > > some server side coding.
> > > >
> > > > I believe you need to use Dynamo or ASP to interact with the HTML
> > > > Generator. IMHO - I always wanted it to use a servlet. Thought it
> would
> > > > be a cool and standard approach.
> > > >
> > > > Mark
> > > >
> > > > --
> > > >
> > > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > > www.ctpartners.com
> > > >
> > > >
> > > > Join The Team - hr@ctpartners.com
> > > >
> > > > ---
> > > > Upcoming Events: (http://www.sybase.com/events)
> > > > * WhistleStop - Denver, CO
> > > >
> > >
> > >
> > >
>
>
>


Dave Wolf [Sybase] Posted on 2000-03-29 21:05:38.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: servlet - htmldw
Date: Wed, 29 Mar 2000 16:05:38 -0500
Lines: 211
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.61
Message-ID: <347_QajktMcm$GA.290@forums.sybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_01bf99bf$f2ceb6e0$42f0f0a7@DMB0663.state.mi.us> <347_9m2$$Dcm$GA.298@forums.sybase.com> <347_01bf99c1$4409e420$42f0f0a7@DMB0663.state.mi.us>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25310
Article PK: 155417

Find attached.

Dave Wolf
Internet Applications Division

"udk" <udk@hotmail.com> wrote in message
news:01bf99c1$4409e420$42f0f0a7@DMB0663.state.mi.us...
> hi dave
>
> once again thanks for immediate reply. now i am confused as to where to
> start & where to end?? could u please post me a complete sample code for
> the same
>
> udk
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
> <9m2$$Dcm$GA.298@forums.sybase.com>...
> > Sorry that method was also in the servlet. I just snipped the doPost()
> > method.
> >
> > protected HTMLGenerator getGenerator()
> >
> >
> > java.util.Properties props = new java.util.Properties();
> > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > ORB orb = ORB.init((String[]) null, props);
> >
> > Manager manager =
> > ManagerHelper.narrow(orb.string_to_object("iiop://0:0"));
> > Session session = manager.createSession("jagadmin", "");
> > Factory factory =
> > FactoryHelper.narrow(session.lookup("DataWindow/HTMLGenerator"));
> > HTMLGenerator comp = HTMLGeneratorHelper.narrow(factory.create());
> > return comp;
> > }
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > "udk" <udk@hotmail.com> wrote in message
> > news:01bf99bf$f2ceb6e0$42f0f0a7@DMB0663.state.mi.us...
> > > hi dave
> > >
> > > thanks for immediate reply. i really appriciate it.
> > >
> > > HTMLGenerator comp = this.generator()
> > >
> > > i believe i've to declare object of type HTMLgenerator then call
> generator
> > > method. i am bit confused in understanding above line of code.
> generator()
> > > method belongs to which object?????
> > >
> > > i'm confused totally.....
> > >
> > > udk.
> > >
> > > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
> > > <wN$Icabm$GA.201@forums.sybase.com>...
> > > > Here is a snippet of a servlet calling to the HTML DW.
> > > >
> > > > public void doPost(HttpServletRequest request, HttpServletResponse
> > > response)
> > > > throws Exception
> > > > {
> > > > PrintWriter out = response.getWriter();
> > > > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() +
> > > "</FONT></H3><BR>");
> > > > HTMLGenerator comp = this.getGenerator();
> > > > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > > > comp.SetWeight(true, true, true, true, true);
> > > > comp.SetHTMLObjectName("dwTest");
> > > > comp.SetTrans("JDS","UseContextObject='No',CacheName='" +
> CACHENAME
> > +
> > > > "'", "","", "","", "");
> > > >
> > > > omp.SetSelfLink(
> > > "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > > > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > > > comp.RetrieveEx(request.getParameter("arg1"));
> > > >
> > > > // See if any client actions have been issued
> > > > // (ie. next, previous, insert, etc.)
> > > >
> > > > String action = request.getParameter("dwTest_action");
> > > > String context = request.getParameter("dwTest_context");
> > > >
> > > > System.out.println(action + " : " + context);
> > > > if (action != null) {
> > > > // there is some action
> > > > // Tell the DW Generator about the action (Next, Previous,
> Insert,
> > > > etc.)
> > > > int ret_val = comp.SetAction(action, context);
> > > >
> > > > if ( ret_val < 0 ) {
> > > > out.println(comp.GetLastErrorString());
> > > > }
> > > > }
> > > >
> > > > out.println(comp.Generate());
> > > > }
> > > >
> > > > Dave Wolf
> > > > Internet Applications Division
> > > >
> > > >
> > > > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> > > > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > > > udk@hotmail.com says...
> > > > > > hi
> > > > > >
> > > > > > we are in the process of web enabling existing Pb application
> using
> > > EA
> > > > > > studio.
> > > > > >
> > > > > > instead of Powerdynamo, we plan to use servlet to generate
> dynamic
> > > html
> > > > as
> > > > > > well as
> > > > > > some server side coding.
> > > > >
> > > > > I believe you need to use Dynamo or ASP to interact with the HTML
> > > > > Generator. IMHO - I always wanted it to use a servlet. Thought it
> > would
> > > > > be a cool and standard approach.
> > > > >
> > > > > Mark
> > > > >
> > > > > --
> > > > >
> > > > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > > > www.ctpartners.com
> > > > >
> > > > >
> > > > > Join The Team - hr@ctpartners.com
> > > > >
> > > > > ---
> > > > > Upcoming Events: (http://www.sybase.com/events)
> > > > > * WhistleStop - Denver, CO
> > > > >
> > > >
> > > >
> > > >
> >
> >
> >


udk Posted on 2000-03-29 21:19:37.0Z
Newsgroups: sybase.public.easerver
From: "udk" <udk@hotmail.com>
Subject: Re: servlet - htmldw
X-Newsreader: Microsoft Internet News 4.70.1155
Date: Wed, 29 Mar 2000 16:19:37 -0500
Lines: 135
NNTP-Posting-Host: 167.240.240.66
Message-ID: <347_01bf99c3$b817c060$42f0f0a7@DMB0663.state.mi.us>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_01bf99bf$f2ceb6e0$42f0f0a7@DMB0663.state.mi.us> <347_9m2$$Dcm$GA.298@forums.sybase.com> <347_01bf99c1$4409e420$42f0f0a7@DMB0663.state.mi.us> <347_QajktMcm$GA.290@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25306
Article PK: 155412

hi dave

thanks. u guys are great!!!!!!!!!

udk

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
<QajktMcm$GA.290@forums.sybase.com>...
> Find attached.
>
> Dave Wolf
> Internet Applications Division
>
>
> "udk" <udk@hotmail.com> wrote in message
> news:01bf99c1$4409e420$42f0f0a7@DMB0663.state.mi.us...
> > hi dave
> >
> > once again thanks for immediate reply. now i am confused as to where to
> > start & where to end?? could u please post me a complete sample code
for
> > the same
> >
> > udk
> >
> > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
> > <9m2$$Dcm$GA.298@forums.sybase.com>...
> > > Sorry that method was also in the servlet. I just snipped the
doPost()
> > > method.
> > >
> > > protected HTMLGenerator getGenerator()
> > >
> > >
> > > java.util.Properties props = new java.util.Properties();
> > > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > > ORB orb = ORB.init((String[]) null, props);
> > >
> > > Manager manager =
> > > ManagerHelper.narrow(orb.string_to_object("iiop://0:0"));
> > > Session session = manager.createSession("jagadmin", "");
> > > Factory factory =
> > > FactoryHelper.narrow(session.lookup("DataWindow/HTMLGenerator"));
> > > HTMLGenerator comp = HTMLGeneratorHelper.narrow(factory.create());
> > > return comp;
> > > }
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > "udk" <udk@hotmail.com> wrote in message
> > > news:01bf99bf$f2ceb6e0$42f0f0a7@DMB0663.state.mi.us...
> > > > hi dave
> > > >
> > > > thanks for immediate reply. i really appriciate it.
> > > >
> > > > HTMLGenerator comp = this.generator()
> > > >
> > > > i believe i've to declare object of type HTMLgenerator then call
> > generator
> > > > method. i am bit confused in understanding above line of code.
> > generator()
> > > > method belongs to which object?????
> > > >
> > > > i'm confused totally.....
> > > >
> > > > udk.
> > > >
> > > > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
> > > > <wN$Icabm$GA.201@forums.sybase.com>...
> > > > > Here is a snippet of a servlet calling to the HTML DW.
> > > > >
> > > > > public void doPost(HttpServletRequest request,
HttpServletResponse
> > > > response)
> > > > > throws Exception
> > > > > {
> > > > > PrintWriter out = response.getWriter();
> > > > > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() +
> > > > "</FONT></H3><BR>");
> > > > > HTMLGenerator comp = this.getGenerator();
> > > > > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > > > > comp.SetWeight(true, true, true, true, true);
> > > > > comp.SetHTMLObjectName("dwTest");
> > > > > comp.SetTrans("JDS","UseContextObject='No',CacheName='" +
> > CACHENAME
> > > +
> > > > > "'", "","", "","", "");
> > > > >
> > > > > omp.SetSelfLink(
> > > > "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > > > > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > > > > comp.RetrieveEx(request.getParameter("arg1"));
> > > > >
> > > > > // See if any client actions have been issued
> > > > > // (ie. next, previous, insert, etc.)
> > > > >
> > > > > String action = request.getParameter("dwTest_action");
> > > > > String context = request.getParameter("dwTest_context");
> > > > >
> > > > > System.out.println(action + " : " + context);
> > > > > if (action != null) {
> > > > > // there is some action
> > > > > // Tell the DW Generator about the action (Next, Previous,
> > Insert,
> > > > > etc.)
> > > > > int ret_val = comp.SetAction(action, context);
> > > > >
> > > > > if ( ret_val < 0 ) {
> > > > > out.println(comp.GetLastErrorString());
> > > > > }
> > > > > }
> > > > >
> > > > > out.println(comp.Generate());
> > > > > }
> > > > >
> > > > > Dave Wolf
> > > > > Internet Applications Division
> > > > >
> > > > >
> > > > > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in
message
> > > > > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > > > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > > > > udk@hotmail.com says...
> > > > > > > hi
> > > > > > >
> > > > > > > we are in the process of web enabling existing Pb application
> > using
> > > > EA
> > > > > > > studio.
> > > > > > >
> > > > > > > instead of Powerdynamo, we plan to use servlet to generate
> > dynamic
> > > > html
> > > > > as
> > > > > > > well as
> > > > > > > some server side coding.
> > > > > >
> > > > > > I believe you need to use Dynamo or ASP to interact with the
HTML
> > > > > > Generator. IMHO - I always wanted it to use a servlet. Thought
it
> > > would
> > > > > > be a cool and standard approach.
> > > > > >
> > > > > > Mark
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > > > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > > > > www.ctpartners.com
> > > > > >
> > > > > >
> > > > > > Join The Team - hr@ctpartners.com
> > > > > >
> > > > > > ---
> > > > > > Upcoming Events: (http://www.sybase.com/events)
> > > > > > * WhistleStop - Denver, CO
> > > > > >
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
>
>
>


Bill Green[TeamSybase] Posted on 2000-03-29 21:24:04.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 29 Mar 2000 16:24:04 -0500
From: "Bill Green[TeamSybase]" <bill.green@teamsybase.com>
Reply-To: bill.green@teamsybase.com
Organization: TeamSybase
X-Mailer: Mozilla 4.6 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: servlet - htmldw
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 79
NNTP-Posting-Host: threshold3.jpmorgan.com 169.71.1.12
Message-ID: <347_38E27474.6F5D547E@teamsybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25302
Article PK: 228497

Dave,

If you have JAWS installed, can you call the HTMLGenerator directly?

Bill

"Dave Wolf [Sybase]" wrote:

> Here is a snippet of a servlet calling to the HTML DW.
>
> public void doPost(HttpServletRequest request, HttpServletResponse response)
> throws Exception
> {
> PrintWriter out = response.getWriter();
> out.println("<h3><FONT FACE=ARIAL>Hello " + getName() + "</FONT></H3><BR>");
> HTMLGenerator comp = this.getGenerator();
> comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> comp.SetWeight(true, true, true, true, true);
> comp.SetHTMLObjectName("dwTest");
> comp.SetTrans("JDS","UseContextObject='No',CacheName='" + CACHENAME +
> "'", "","", "","", "");
>
> omp.SetSelfLink( "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> comp.RetrieveEx(request.getParameter("arg1"));
>
> // See if any client actions have been issued
> // (ie. next, previous, insert, etc.)
>
> String action = request.getParameter("dwTest_action");
> String context = request.getParameter("dwTest_context");
>
> System.out.println(action + " : " + context);
> if (action != null) {
> // there is some action
> // Tell the DW Generator about the action (Next, Previous, Insert,
> etc.)
> int ret_val = comp.SetAction(action, context);
>
> if ( ret_val < 0 ) {
> out.println(comp.GetLastErrorString());
> }
> }
>
> out.println(comp.Generate());
> }
>
> Dave Wolf
> Internet Applications Division
>
> "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > udk@hotmail.com says...
> > > hi
> > >
> > > we are in the process of web enabling existing Pb application using EA
> > > studio.
> > >
> > > instead of Powerdynamo, we plan to use servlet to generate dynamic html
> as
> > > well as
> > > some server side coding.
> >
> > I believe you need to use Dynamo or ASP to interact with the HTML
> > Generator. IMHO - I always wanted it to use a servlet. Thought it would
> > be a cool and standard approach.
> >
> > Mark
> >
> > --
> >
> > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > mpfeifer @ sprynet.com Emerging Technology Solutions
> > www.ctpartners.com
> >
> >
> > Join The Team - hr@ctpartners.com
> >
> > ---
> > Upcoming Events: (http://www.sybase.com/events)
> > * WhistleStop - Denver, CO
> >

--
Bill Green[TeamSybase]

-----------------------------------------------------------
Good Links to know, good places to go:

Sybase Developer Network (SDN) - http://www.sybase.com/sdn
Find things like:
-- Print to PDF component
-- Lotus Notes E-Mail component
-- Taking existing PB apps to the web white paper

PFC Guide - http://www.pfcguide.com
Power3 - Custom Training - http://www.power3.com
-----------------------------------------------------------


Jim O'Neil [Sybase] Posted on 2000-03-30 03:03:53.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 29 Mar 2000 22:03:53 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: servlet - htmldw
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 97
NNTP-Posting-Host: nomad6-45.sybase.com 157.133.176.45
Message-ID: <347_38E2C418.19F10F90@sybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_38E27474.6F5D547E@teamsybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25270
Article PK: 155395

I guess you could, but not sure why you'd want to. WebPB functions are stateless
calls that take some parameters and then spit out HTML as the return value - the
URL is basically the one and only function call. The HTML DW is usually treated
as a semi-stateful component and it takes a couple of component methods calls to
set it up (SetTrans, SetDWObject, etc.) although I guess if you set it up for
one-trip, it might work ok.

--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc

"Bill Green[TeamSybase]" wrote:

> Dave,
>
> If you have JAWS installed, can you call the HTMLGenerator directly?
>
> Bill
>
> "Dave Wolf [Sybase]" wrote:
>
> > Here is a snippet of a servlet calling to the HTML DW.
> >
> > public void doPost(HttpServletRequest request, HttpServletResponse response)
> > throws Exception
> > {
> > PrintWriter out = response.getWriter();
> > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() + "</FONT></H3><BR>");
> > HTMLGenerator comp = this.getGenerator();
> > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > comp.SetWeight(true, true, true, true, true);
> > comp.SetHTMLObjectName("dwTest");
> > comp.SetTrans("JDS","UseContextObject='No',CacheName='" + CACHENAME +
> > "'", "","", "","", "");
> >
> > omp.SetSelfLink( "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > comp.RetrieveEx(request.getParameter("arg1"));
> >
> > // See if any client actions have been issued
> > // (ie. next, previous, insert, etc.)
> >
> > String action = request.getParameter("dwTest_action");
> > String context = request.getParameter("dwTest_context");
> >
> > System.out.println(action + " : " + context);
> > if (action != null) {
> > // there is some action
> > // Tell the DW Generator about the action (Next, Previous, Insert,
> > etc.)
> > int ret_val = comp.SetAction(action, context);
> >
> > if ( ret_val < 0 ) {
> > out.println(comp.GetLastErrorString());
> > }
> > }
> >
> > out.println(comp.Generate());
> > }
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > udk@hotmail.com says...
> > > > hi
> > > >
> > > > we are in the process of web enabling existing Pb application using EA
> > > > studio.
> > > >
> > > > instead of Powerdynamo, we plan to use servlet to generate dynamic html
> > as
> > > > well as
> > > > some server side coding.
> > >
> > > I believe you need to use Dynamo or ASP to interact with the HTML
> > > Generator. IMHO - I always wanted it to use a servlet. Thought it would
> > > be a cool and standard approach.
> > >
> > > Mark
> > >
> > > --
> > >
> > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > www.ctpartners.com
> > >
> > >
> > > Join The Team - hr@ctpartners.com
> > >
> > > ---
> > > Upcoming Events: (http://www.sybase.com/events)
> > > * WhistleStop - Denver, CO
> > >
>
> --
> Bill Green[TeamSybase]
>
> -----------------------------------------------------------
> Good Links to know, good places to go:
>
> Sybase Developer Network (SDN) - http://www.sybase.com/sdn
> Find things like:
> -- Print to PDF component
> -- Lotus Notes E-Mail component
> -- Taking existing PB apps to the web white paper
>
> PFC Guide - http://www.pfcguide.com
> Power3 - Custom Training - http://www.power3.com
> -----------------------------------------------------------


Bill Green[TeamSybase] Posted on 2000-03-30 16:45:16.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 30 Mar 2000 11:45:16 -0500
From: "Bill Green[TeamSybase]" <bill.green@teamsybase.com>
Reply-To: bill.green@teamsybase.com
Organization: TeamSybase
X-Mailer: Mozilla 4.6 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: servlet - htmldw
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 121
NNTP-Posting-Host: threshold3.jpmorgan.com 169.71.1.12
Message-ID: <347_38E3849C.EFEB0403@teamsybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_38E27474.6F5D547E@teamsybase.com> <347_38E2C418.19F10F90@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25214
Article PK: 228485

My "want to" stems from wanting to get to everything without going through Dynamo. I
guess it won't hurt to use a combination of JAWS and Dave's servlet code to gain
access to everything via URL redirects.

thanks,
Bill

"Jim O'Neil [Sybase]" wrote:

> I guess you could, but not sure why you'd want to. WebPB functions are stateless
> calls that take some parameters and then spit out HTML as the return value - the
> URL is basically the one and only function call. The HTML DW is usually treated
> as a semi-stateful component and it takes a couple of component methods calls to
> set it up (SetTrans, SetDWObject, etc.) although I guess if you set it up for
> one-trip, it might work ok.
>
> --
> Jim O'Neil
> Senior Technical Support Engineer
> Sybase, Inc
>
> "Bill Green[TeamSybase]" wrote:
>
> > Dave,
> >
> > If you have JAWS installed, can you call the HTMLGenerator directly?
> >
> > Bill
> >
> > "Dave Wolf [Sybase]" wrote:
> >
> > > Here is a snippet of a servlet calling to the HTML DW.
> > >
> > > public void doPost(HttpServletRequest request, HttpServletResponse response)
> > > throws Exception
> > > {
> > > PrintWriter out = response.getWriter();
> > > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() + "</FONT></H3><BR>");
> > > HTMLGenerator comp = this.getGenerator();
> > > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > > comp.SetWeight(true, true, true, true, true);
> > > comp.SetHTMLObjectName("dwTest");
> > > comp.SetTrans("JDS","UseContextObject='No',CacheName='" + CACHENAME +
> > > "'", "","", "","", "");
> > >
> > > omp.SetSelfLink( "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > > comp.RetrieveEx(request.getParameter("arg1"));
> > >
> > > // See if any client actions have been issued
> > > // (ie. next, previous, insert, etc.)
> > >
> > > String action = request.getParameter("dwTest_action");
> > > String context = request.getParameter("dwTest_context");
> > >
> > > System.out.println(action + " : " + context);
> > > if (action != null) {
> > > // there is some action
> > > // Tell the DW Generator about the action (Next, Previous, Insert,
> > > etc.)
> > > int ret_val = comp.SetAction(action, context);
> > >
> > > if ( ret_val < 0 ) {
> > > out.println(comp.GetLastErrorString());
> > > }
> > > }
> > >
> > > out.println(comp.Generate());
> > > }
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> > > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > > udk@hotmail.com says...
> > > > > hi
> > > > >
> > > > > we are in the process of web enabling existing Pb application using EA
> > > > > studio.
> > > > >
> > > > > instead of Powerdynamo, we plan to use servlet to generate dynamic html
> > > as
> > > > > well as
> > > > > some server side coding.
> > > >
> > > > I believe you need to use Dynamo or ASP to interact with the HTML
> > > > Generator. IMHO - I always wanted it to use a servlet. Thought it would
> > > > be a cool and standard approach.
> > > >
> > > > Mark
> > > >
> > > > --
> > > >
> > > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > > www.ctpartners.com
> > > >
> > > >
> > > > Join The Team - hr@ctpartners.com
> > > >
> > > > ---
> > > > Upcoming Events: (http://www.sybase.com/events)
> > > > * WhistleStop - Denver, CO
> > > >
> >
> > --
> > Bill Green[TeamSybase]
> >
> > -----------------------------------------------------------
> > Good Links to know, good places to go:
> >
> > Sybase Developer Network (SDN) - http://www.sybase.com/sdn
> > Find things like:
> > -- Print to PDF component
> > -- Lotus Notes E-Mail component
> > -- Taking existing PB apps to the web white paper
> >
> > PFC Guide - http://www.pfcguide.com
> > Power3 - Custom Training - http://www.power3.com
> > -----------------------------------------------------------

--
Bill Green[TeamSybase]

-----------------------------------------------------------
Good Links to know, good places to go:

Sybase Developer Network (SDN) - http://www.sybase.com/sdn
Find things like:
-- Print to PDF component
-- Lotus Notes E-Mail component
-- Taking existing PB apps to the web white paper

PFC Guide - http://www.pfcguide.com
Power3 - Custom Training - http://www.power3.com
-----------------------------------------------------------


Jim O'Neil [Sybase] Posted on 2000-03-30 17:42:17.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 30 Mar 2000 12:42:17 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: servlet - htmldw
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 133
NNTP-Posting-Host: joneil-nt.sybase.com 204.167.42.111
Message-ID: <347_38E391F8.EC9BB270@sybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_38E27474.6F5D547E@teamsybase.com> <347_38E2C418.19F10F90@sybase.com> <347_38E3849C.EFEB0403@teamsybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25209
Article PK: 155342

Ok, I guess I wasn't thinking far enough ahead on this. Seems doable, but not sure how
much work it will be. Likely a candidate for a 'character building experience' ;>)

"Bill Green[TeamSybase]" wrote:

> My "want to" stems from wanting to get to everything without going through Dynamo. I
> guess it won't hurt to use a combination of JAWS and Dave's servlet code to gain
> access to everything via URL redirects.
>
> thanks,
> Bill
>
> "Jim O'Neil [Sybase]" wrote:
>
> > I guess you could, but not sure why you'd want to. WebPB functions are stateless
> > calls that take some parameters and then spit out HTML as the return value - the
> > URL is basically the one and only function call. The HTML DW is usually treated
> > as a semi-stateful component and it takes a couple of component methods calls to
> > set it up (SetTrans, SetDWObject, etc.) although I guess if you set it up for
> > one-trip, it might work ok.
> >
> > --
> > Jim O'Neil
> > Senior Technical Support Engineer
> > Sybase, Inc
> >
> > "Bill Green[TeamSybase]" wrote:
> >
> > > Dave,
> > >
> > > If you have JAWS installed, can you call the HTMLGenerator directly?
> > >
> > > Bill
> > >
> > > "Dave Wolf [Sybase]" wrote:
> > >
> > > > Here is a snippet of a servlet calling to the HTML DW.
> > > >
> > > > public void doPost(HttpServletRequest request, HttpServletResponse response)
> > > > throws Exception
> > > > {
> > > > PrintWriter out = response.getWriter();
> > > > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() + "</FONT></H3><BR>");
> > > > HTMLGenerator comp = this.getGenerator();
> > > > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > > > comp.SetWeight(true, true, true, true, true);
> > > > comp.SetHTMLObjectName("dwTest");
> > > > comp.SetTrans("JDS","UseContextObject='No',CacheName='" + CACHENAME +
> > > > "'", "","", "","", "");
> > > >
> > > > omp.SetSelfLink( "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > > > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > > > comp.RetrieveEx(request.getParameter("arg1"));
> > > >
> > > > // See if any client actions have been issued
> > > > // (ie. next, previous, insert, etc.)
> > > >
> > > > String action = request.getParameter("dwTest_action");
> > > > String context = request.getParameter("dwTest_context");
> > > >
> > > > System.out.println(action + " : " + context);
> > > > if (action != null) {
> > > > // there is some action
> > > > // Tell the DW Generator about the action (Next, Previous, Insert,
> > > > etc.)
> > > > int ret_val = comp.SetAction(action, context);
> > > >
> > > > if ( ret_val < 0 ) {
> > > > out.println(comp.GetLastErrorString());
> > > > }
> > > > }
> > > >
> > > > out.println(comp.Generate());
> > > > }
> > > >
> > > > Dave Wolf
> > > > Internet Applications Division
> > > >
> > > > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> > > > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > > > udk@hotmail.com says...
> > > > > > hi
> > > > > >
> > > > > > we are in the process of web enabling existing Pb application using EA
> > > > > > studio.
> > > > > >
> > > > > > instead of Powerdynamo, we plan to use servlet to generate dynamic html
> > > > as
> > > > > > well as
> > > > > > some server side coding.
> > > > >
> > > > > I believe you need to use Dynamo or ASP to interact with the HTML
> > > > > Generator. IMHO - I always wanted it to use a servlet. Thought it would
> > > > > be a cool and standard approach.
> > > > >
> > > > > Mark
> > > > >
> > > > > --
> > > > >
> > > > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > > > www.ctpartners.com
> > > > >
> > > > >
> > > > > Join The Team - hr@ctpartners.com
> > > > >
> > > > > ---
> > > > > Upcoming Events: (http://www.sybase.com/events)
> > > > > * WhistleStop - Denver, CO
> > > > >
> > >
> > > --
> > > Bill Green[TeamSybase]
> > >
> > > -----------------------------------------------------------
> > > Good Links to know, good places to go:
> > >
> > > Sybase Developer Network (SDN) - http://www.sybase.com/sdn
> > > Find things like:
> > > -- Print to PDF component
> > > -- Lotus Notes E-Mail component
> > > -- Taking existing PB apps to the web white paper
> > >
> > > PFC Guide - http://www.pfcguide.com
> > > Power3 - Custom Training - http://www.power3.com
> > > -----------------------------------------------------------
>
> --
> Bill Green[TeamSybase]
>
> -----------------------------------------------------------
> Good Links to know, good places to go:
>
> Sybase Developer Network (SDN) - http://www.sybase.com/sdn
> Find things like:
> -- Print to PDF component
> -- Lotus Notes E-Mail component
> -- Taking existing PB apps to the web white paper
>
> PFC Guide - http://www.pfcguide.com
> Power3 - Custom Training - http://www.power3.com
> -----------------------------------------------------------


Bill Green[TeamSybase] Posted on 2000-03-30 21:27:31.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 30 Mar 2000 16:27:31 -0500
From: "Bill Green[TeamSybase]" <bill.green@teamsybase.com>
Reply-To: bill.green@teamsybase.com
Organization: TeamSybase
X-Mailer: Mozilla 4.6 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: servlet - htmldw
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 156
NNTP-Posting-Host: threshold3.jpmorgan.com 169.71.1.12
Message-ID: <347_38E3C6C2.F2DF482F@teamsybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_38E27474.6F5D547E@teamsybase.com> <347_38E2C418.19F10F90@sybase.com> <347_38E3849C.EFEB0403@teamsybase.com> <347_38E391F8.EC9BB270@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25174
Article PK: 154273

I'll let you know how much my character builds after I try to implement Dave's servlet
example <g>

"Jim O'Neil [Sybase]" wrote:

> Ok, I guess I wasn't thinking far enough ahead on this. Seems doable, but not sure how
> much work it will be. Likely a candidate for a 'character building experience' ;>)
>
> "Bill Green[TeamSybase]" wrote:
>
> > My "want to" stems from wanting to get to everything without going through Dynamo. I
> > guess it won't hurt to use a combination of JAWS and Dave's servlet code to gain
> > access to everything via URL redirects.
> >
> > thanks,
> > Bill
> >
> > "Jim O'Neil [Sybase]" wrote:
> >
> > > I guess you could, but not sure why you'd want to. WebPB functions are stateless
> > > calls that take some parameters and then spit out HTML as the return value - the
> > > URL is basically the one and only function call. The HTML DW is usually treated
> > > as a semi-stateful component and it takes a couple of component methods calls to
> > > set it up (SetTrans, SetDWObject, etc.) although I guess if you set it up for
> > > one-trip, it might work ok.
> > >
> > > --
> > > Jim O'Neil
> > > Senior Technical Support Engineer
> > > Sybase, Inc
> > >
> > > "Bill Green[TeamSybase]" wrote:
> > >
> > > > Dave,
> > > >
> > > > If you have JAWS installed, can you call the HTMLGenerator directly?
> > > >
> > > > Bill
> > > >
> > > > "Dave Wolf [Sybase]" wrote:
> > > >
> > > > > Here is a snippet of a servlet calling to the HTML DW.
> > > > >
> > > > > public void doPost(HttpServletRequest request, HttpServletResponse response)
> > > > > throws Exception
> > > > > {
> > > > > PrintWriter out = response.getWriter();
> > > > > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() + "</FONT></H3><BR>");
> > > > > HTMLGenerator comp = this.getGenerator();
> > > > > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > > > > comp.SetWeight(true, true, true, true, true);
> > > > > comp.SetHTMLObjectName("dwTest");
> > > > > comp.SetTrans("JDS","UseContextObject='No',CacheName='" + CACHENAME +
> > > > > "'", "","", "","", "");
> > > > >
> > > > > omp.SetSelfLink( "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > > > > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > > > > comp.RetrieveEx(request.getParameter("arg1"));
> > > > >
> > > > > // See if any client actions have been issued
> > > > > // (ie. next, previous, insert, etc.)
> > > > >
> > > > > String action = request.getParameter("dwTest_action");
> > > > > String context = request.getParameter("dwTest_context");
> > > > >
> > > > > System.out.println(action + " : " + context);
> > > > > if (action != null) {
> > > > > // there is some action
> > > > > // Tell the DW Generator about the action (Next, Previous, Insert,
> > > > > etc.)
> > > > > int ret_val = comp.SetAction(action, context);
> > > > >
> > > > > if ( ret_val < 0 ) {
> > > > > out.println(comp.GetLastErrorString());
> > > > > }
> > > > > }
> > > > >
> > > > > out.println(comp.Generate());
> > > > > }
> > > > >
> > > > > Dave Wolf
> > > > > Internet Applications Division
> > > > >
> > > > > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> > > > > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > > > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > > > > udk@hotmail.com says...
> > > > > > > hi
> > > > > > >
> > > > > > > we are in the process of web enabling existing Pb application using EA
> > > > > > > studio.
> > > > > > >
> > > > > > > instead of Powerdynamo, we plan to use servlet to generate dynamic html
> > > > > as
> > > > > > > well as
> > > > > > > some server side coding.
> > > > > >
> > > > > > I believe you need to use Dynamo or ASP to interact with the HTML
> > > > > > Generator. IMHO - I always wanted it to use a servlet. Thought it would
> > > > > > be a cool and standard approach.
> > > > > >
> > > > > > Mark
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > > > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > > > > www.ctpartners.com
> > > > > >
> > > > > >
> > > > > > Join The Team - hr@ctpartners.com
> > > > > >
> > > > > > ---
> > > > > > Upcoming Events: (http://www.sybase.com/events)
> > > > > > * WhistleStop - Denver, CO
> > > > > >
> > > >
> > > > --
> > > > Bill Green[TeamSybase]
> > > >
> > > > -----------------------------------------------------------
> > > > Good Links to know, good places to go:
> > > >
> > > > Sybase Developer Network (SDN) - http://www.sybase.com/sdn
> > > > Find things like:
> > > > -- Print to PDF component
> > > > -- Lotus Notes E-Mail component
> > > > -- Taking existing PB apps to the web white paper
> > > >
> > > > PFC Guide - http://www.pfcguide.com
> > > > Power3 - Custom Training - http://www.power3.com
> > > > -----------------------------------------------------------
> >
> > --
> > Bill Green[TeamSybase]
> >
> > -----------------------------------------------------------
> > Good Links to know, good places to go:
> >
> > Sybase Developer Network (SDN) - http://www.sybase.com/sdn
> > Find things like:
> > -- Print to PDF component
> > -- Lotus Notes E-Mail component
> > -- Taking existing PB apps to the web white paper
> >
> > PFC Guide - http://www.pfcguide.com
> > Power3 - Custom Training - http://www.power3.com
> > -----------------------------------------------------------

--
Bill Green[TeamSybase]

-----------------------------------------------------------
Good Links to know, good places to go:

Sybase Developer Network (SDN) - http://www.sybase.com/sdn
Find things like:
-- Print to PDF component
-- Lotus Notes E-Mail component
-- Taking existing PB apps to the web white paper

PFC Guide - http://www.pfcguide.com
Power3 - Custom Training - http://www.power3.com
-----------------------------------------------------------


Dave Wolf [Sybase] Posted on 2000-03-29 23:30:59.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: servlet - htmldw
Date: Wed, 29 Mar 2000 18:30:59 -0500
Lines: 117
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: nomad6-12.sybase.com 157.133.176.12
Message-ID: <347_ldTl9ddm$GA.276@forums.sybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_38E27474.6F5D547E@teamsybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25289
Article PK: 155403

Sorry I dont know JAWS to good. Nice english huh?

Dave Wolf
Internet Applications Division

"Bill Green[TeamSybase]" <bill.green@teamsybase.com> wrote in message
news:38E27474.6F5D547E@teamsybase.com...
> Dave,
>
> If you have JAWS installed, can you call the HTMLGenerator directly?
>
> Bill
>
> "Dave Wolf [Sybase]" wrote:
>
> > Here is a snippet of a servlet calling to the HTML DW.
> >
> > public void doPost(HttpServletRequest request, HttpServletResponse
response)
> > throws Exception
> > {
> > PrintWriter out = response.getWriter();
> > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() +
"</FONT></H3><BR>");
> > HTMLGenerator comp = this.getGenerator();
> > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > comp.SetWeight(true, true, true, true, true);
> > comp.SetHTMLObjectName("dwTest");
> > comp.SetTrans("JDS","UseContextObject='No',CacheName='" + CACHENAME
+
> > "'", "","", "","", "");
> >
> >
mp.SetSelfLink( "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > comp.RetrieveEx(request.getParameter("arg1"));
> >
> > // See if any client actions have been issued
> > // (ie. next, previous, insert, etc.)
> >
> > String action = request.getParameter("dwTest_action");
> > String context = request.getParameter("dwTest_context");
> >
> > System.out.println(action + " : " + context);
> > if (action != null) {
> > // there is some action
> > // Tell the DW Generator about the action (Next, Previous, Insert,
> > etc.)
> > int ret_val = comp.SetAction(action, context);
> >
> > if ( ret_val < 0 ) {
> > out.println(comp.GetLastErrorString());
> > }
> > }
> >
> > out.println(comp.Generate());
> > }
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > udk@hotmail.com says...
> > > > hi
> > > >
> > > > we are in the process of web enabling existing Pb application using
EA
> > > > studio.
> > > >
> > > > instead of Powerdynamo, we plan to use servlet to generate dynamic
html
> > as
> > > > well as
> > > > some server side coding.
> > >
> > > I believe you need to use Dynamo or ASP to interact with the HTML
> > > Generator. IMHO - I always wanted it to use a servlet. Thought it
would
> > > be a cool and standard approach.
> > >
> > > Mark
> > >
> > > --
> > >
> > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > www.ctpartners.com
> > >
> > >
> > > Join The Team - hr@ctpartners.com
> > >
> > > ---
> > > Upcoming Events: (http://www.sybase.com/events)
> > > * WhistleStop - Denver, CO
> > >
>
> --
> Bill Green[TeamSybase]
>
> -----------------------------------------------------------
> Good Links to know, good places to go:
>
> Sybase Developer Network (SDN) - http://www.sybase.com/sdn
> Find things like:
> -- Print to PDF component
> -- Lotus Notes E-Mail component
> -- Taking existing PB apps to the web white paper
>
> PFC Guide - http://www.pfcguide.com
> Power3 - Custom Training - http://www.power3.com
> -----------------------------------------------------------
>
>


udk Posted on 2000-03-30 13:06:21.0Z
Newsgroups: sybase.public.easerver
From: "udk" <udk@hotmail.com>
Subject: Re: servlet - htmldw
X-Newsreader: Microsoft Internet News 4.70.1155
Date: Thu, 30 Mar 2000 08:06:21 -0500
Lines: 111
NNTP-Posting-Host: 167.240.240.66
Message-ID: <347_01bf9a47$f293ef00$42f0f0a7@DMB0663.state.mi.us>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_38E27474.6F5D547E@teamsybase.com> <347_ldTl9ddm$GA.276@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25248
Article PK: 155372

hi all

i am being confused again after reading all the responses to this topic.
My quick question

1. do i need JAWS to access HTML generator component from servlet
2. what is the role of web.pb. how it is related to servlet-HTML generator
issue. as i mentioned we are planning to start development from the
scratch.
3. in the sample code i could see one import statment as "import
DataWindow.*;"
do i have to use some package supplied by sybase? or this package is
created once u generate java stubs and compile?.

thanks
udk

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
<ldTl9ddm$GA.276@forums.sybase.com>...
> Sorry I dont know JAWS to good. Nice english huh?
>
> Dave Wolf
> Internet Applications Division
>
> "Bill Green[TeamSybase]" <bill.green@teamsybase.com> wrote in message
> news:38E27474.6F5D547E@teamsybase.com...
> > Dave,
> >
> > If you have JAWS installed, can you call the HTMLGenerator directly?
> >
> > Bill
> >
> > "Dave Wolf [Sybase]" wrote:
> >
> > > Here is a snippet of a servlet calling to the HTML DW.
> > >
> > > public void doPost(HttpServletRequest request, HttpServletResponse
> response)
> > > throws Exception
> > > {
> > > PrintWriter out = response.getWriter();
> > > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() +
> "</FONT></H3><BR>");
> > > HTMLGenerator comp = this.getGenerator();
> > > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > > comp.SetWeight(true, true, true, true, true);
> > > comp.SetHTMLObjectName("dwTest");
> > > comp.SetTrans("JDS","UseContextObject='No',CacheName='" +
CACHENAME
> +
> > > "'", "","", "","", "");
> > >
> > >
> mp.SetSelfLink(
"https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > > comp.RetrieveEx(request.getParameter("arg1"));
> > >
> > > // See if any client actions have been issued
> > > // (ie. next, previous, insert, etc.)
> > >
> > > String action = request.getParameter("dwTest_action");
> > > String context = request.getParameter("dwTest_context");
> > >
> > > System.out.println(action + " : " + context);
> > > if (action != null) {
> > > // there is some action
> > > // Tell the DW Generator about the action (Next, Previous,
Insert,
> > > etc.)
> > > int ret_val = comp.SetAction(action, context);
> > >
> > > if ( ret_val < 0 ) {
> > > out.println(comp.GetLastErrorString());
> > > }
> > > }
> > >
> > > out.println(comp.Generate());
> > > }
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> > > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > > udk@hotmail.com says...
> > > > > hi
> > > > >
> > > > > we are in the process of web enabling existing Pb application
using
> EA
> > > > > studio.
> > > > >
> > > > > instead of Powerdynamo, we plan to use servlet to generate
dynamic
> html
> > > as
> > > > > well as
> > > > > some server side coding.
> > > >
> > > > I believe you need to use Dynamo or ASP to interact with the HTML
> > > > Generator. IMHO - I always wanted it to use a servlet. Thought it
> would
> > > > be a cool and standard approach.
> > > >
> > > > Mark
> > > >
> > > > --
> > > >
> > > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > > www.ctpartners.com
> > > >
> > > >
> > > > Join The Team - hr@ctpartners.com
> > > >
> > > > ---
> > > > Upcoming Events: (http://www.sybase.com/events)
> > > > * WhistleStop - Denver, CO
> > > >
> >
> > --
> > Bill Green[TeamSybase]
> >
> > -----------------------------------------------------------
> > Good Links to know, good places to go:
> >
> > Sybase Developer Network (SDN) - http://www.sybase.com/sdn
> > Find things like:
> > -- Print to PDF component
> > -- Lotus Notes E-Mail component
> > -- Taking existing PB apps to the web white paper
> >
> > PFC Guide - http://www.pfcguide.com
> > Power3 - Custom Training - http://www.power3.com
> > -----------------------------------------------------------
> >
> >
>
>
>


Bill Green[TeamSybase] Posted on 2000-03-30 16:43:20.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 30 Mar 2000 11:43:20 -0500
From: "Bill Green[TeamSybase]" <bill.green@teamsybase.com>
Reply-To: bill.green@teamsybase.com
Organization: TeamSybase
X-Mailer: Mozilla 4.6 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: servlet - htmldw
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 142
NNTP-Posting-Host: threshold3.jpmorgan.com 169.71.1.12
Message-ID: <347_38E38427.694B0CF7@teamsybase.com>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_38E27474.6F5D547E@teamsybase.com> <347_ldTl9ddm$GA.276@forums.sybase.com> <347_01bf9a47$f293ef00$42f0f0a7@DMB0663.state.mi.us>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25216
Article PK: 155345

1. No, the servlet Dave published up here is all you need. JAWS is another
servlet that is downloadable from the Sybase Developer Network site and I was
curious about whether it could do what Daves code could do.
2. Web.pb is not related at all other than that using the servlet approach,
you can pretty much use your web.pb components deployed into jaguar with
little or no change.
3. The package is part of Jaguar.

regards,
Bill

udk wrote:

> hi all
>
> i am being confused again after reading all the responses to this topic.
> My quick question
>
> 1. do i need JAWS to access HTML generator component from servlet
> 2. what is the role of web.pb. how it is related to servlet-HTML generator
> issue. as i mentioned we are planning to start development from the
> scratch.
> 3. in the sample code i could see one import statment as "import
> DataWindow.*;"
> do i have to use some package supplied by sybase? or this package is
> created once u generate java stubs and compile?.
>
> thanks
> udk
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
> <ldTl9ddm$GA.276@forums.sybase.com>...
> > Sorry I dont know JAWS to good. Nice english huh?
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > "Bill Green[TeamSybase]" <bill.green@teamsybase.com> wrote in message
> > news:38E27474.6F5D547E@teamsybase.com...
> > > Dave,
> > >
> > > If you have JAWS installed, can you call the HTMLGenerator directly?
> > >
> > > Bill
> > >
> > > "Dave Wolf [Sybase]" wrote:
> > >
> > > > Here is a snippet of a servlet calling to the HTML DW.
> > > >
> > > > public void doPost(HttpServletRequest request, HttpServletResponse
> > response)
> > > > throws Exception
> > > > {
> > > > PrintWriter out = response.getWriter();
> > > > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() +
> > "</FONT></H3><BR>");
> > > > HTMLGenerator comp = this.getGenerator();
> > > > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > > > comp.SetWeight(true, true, true, true, true);
> > > > comp.SetHTMLObjectName("dwTest");
> > > > comp.SetTrans("JDS","UseContextObject='No',CacheName='" +
> CACHENAME
> > +
> > > > "'", "","", "","", "");
> > > >
> > > >
> > mp.SetSelfLink(
> "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > > > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > > > comp.RetrieveEx(request.getParameter("arg1"));
> > > >
> > > > // See if any client actions have been issued
> > > > // (ie. next, previous, insert, etc.)
> > > >
> > > > String action = request.getParameter("dwTest_action");
> > > > String context = request.getParameter("dwTest_context");
> > > >
> > > > System.out.println(action + " : " + context);
> > > > if (action != null) {
> > > > // there is some action
> > > > // Tell the DW Generator about the action (Next, Previous,
> Insert,
> > > > etc.)
> > > > int ret_val = comp.SetAction(action, context);
> > > >
> > > > if ( ret_val < 0 ) {
> > > > out.println(comp.GetLastErrorString());
> > > > }
> > > > }
> > > >
> > > > out.println(comp.Generate());
> > > > }
> > > >
> > > > Dave Wolf
> > > > Internet Applications Division
> > > >
> > > > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in message
> > > > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > > > udk@hotmail.com says...
> > > > > > hi
> > > > > >
> > > > > > we are in the process of web enabling existing Pb application
> using
> > EA
> > > > > > studio.
> > > > > >
> > > > > > instead of Powerdynamo, we plan to use servlet to generate
> dynamic
> > html
> > > > as
> > > > > > well as
> > > > > > some server side coding.
> > > > >
> > > > > I believe you need to use Dynamo or ASP to interact with the HTML
> > > > > Generator. IMHO - I always wanted it to use a servlet. Thought it
> > would
> > > > > be a cool and standard approach.
> > > > >
> > > > > Mark
> > > > >
> > > > > --
> > > > >
> > > > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > > > www.ctpartners.com
> > > > >
> > > > >
> > > > > Join The Team - hr@ctpartners.com
> > > > >
> > > > > ---
> > > > > Upcoming Events: (http://www.sybase.com/events)
> > > > > * WhistleStop - Denver, CO
> > > > >
> > >
> > > --
> > > Bill Green[TeamSybase]
> > >
> > > -----------------------------------------------------------
> > > Good Links to know, good places to go:
> > >
> > > Sybase Developer Network (SDN) - http://www.sybase.com/sdn
> > > Find things like:
> > > -- Print to PDF component
> > > -- Lotus Notes E-Mail component
> > > -- Taking existing PB apps to the web white paper
> > >
> > > PFC Guide - http://www.pfcguide.com
> > > Power3 - Custom Training - http://www.power3.com
> > > -----------------------------------------------------------
> > >
> > >
> >
> >
> >

--
Bill Green[TeamSybase]

-----------------------------------------------------------
Good Links to know, good places to go:

Sybase Developer Network (SDN) - http://www.sybase.com/sdn
Find things like:
-- Print to PDF component
-- Lotus Notes E-Mail component
-- Taking existing PB apps to the web white paper

PFC Guide - http://www.pfcguide.com
Power3 - Custom Training - http://www.power3.com
-----------------------------------------------------------


udk Posted on 2000-03-30 17:13:02.0Z
Newsgroups: sybase.public.easerver
From: "udk" <udk@hotmail.com>
Subject: Re: servlet - htmldw
X-Newsreader: Microsoft Internet News 4.70.1155
Date: Thu, 30 Mar 2000 12:13:02 -0500
Lines: 154
NNTP-Posting-Host: 167.240.240.66
Message-ID: <347_01bf9a6a$6c96db60$42f0f0a7@DMB0663.state.mi.us>
References: <347_01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us> <347_MPG.134c0698a4c793f998972a@forums.sybase.com> <347_wN$Icabm$GA.201@forums.sybase.com> <347_38E27474.6F5D547E@teamsybase.com> <347_ldTl9ddm$GA.276@forums.sybase.com> <347_01bf9a47$f293ef00$42f0f0a7@DMB0663.state.mi.us> <347_38E38427.694B0CF7@teamsybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25213
Article PK: 228482

bill,
thank you very much ....

Bill Green[TeamSybase] <bill.green@teamsybase.com> wrote in article
<38E38427.694B0CF7@teamsybase.com>...
> 1. No, the servlet Dave published up here is all you need. JAWS is
another
> servlet that is downloadable from the Sybase Developer Network site and I
was
> curious about whether it could do what Daves code could do.
> 2. Web.pb is not related at all other than that using the servlet
approach,
> you can pretty much use your web.pb components deployed into jaguar with
> little or no change.
> 3. The package is part of Jaguar.
>
> regards,
> Bill
>
> udk wrote:
>
> > hi all
> >
> > i am being confused again after reading all the responses to this
topic.
> > My quick question
> >
> > 1. do i need JAWS to access HTML generator component from servlet
> > 2. what is the role of web.pb. how it is related to servlet-HTML
generator
> > issue. as i mentioned we are planning to start development from the
> > scratch.
> > 3. in the sample code i could see one import statment as "import
> > DataWindow.*;"
> > do i have to use some package supplied by sybase? or this package is
> > created once u generate java stubs and compile?.
> >
> > thanks
> > udk
> >
> > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in article
> > <ldTl9ddm$GA.276@forums.sybase.com>...
> > > Sorry I dont know JAWS to good. Nice english huh?
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > "Bill Green[TeamSybase]" <bill.green@teamsybase.com> wrote in message
> > > news:38E27474.6F5D547E@teamsybase.com...
> > > > Dave,
> > > >
> > > > If you have JAWS installed, can you call the HTMLGenerator
directly?
> > > >
> > > > Bill
> > > >
> > > > "Dave Wolf [Sybase]" wrote:
> > > >
> > > > > Here is a snippet of a servlet calling to the HTML DW.
> > > > >
> > > > > public void doPost(HttpServletRequest request,
HttpServletResponse
> > > response)
> > > > > throws Exception
> > > > > {
> > > > > PrintWriter out = response.getWriter();
> > > > > out.println("<h3><FONT FACE=ARIAL>Hello " + getName() +
> > > "</FONT></H3><BR>");
> > > > > HTMLGenerator comp = this.getGenerator();
> > > > > comp.SetDWObject( "C:\\Temp\\cia_app.pbl", "d_nhrtc" );
> > > > > comp.SetWeight(true, true, true, true, true);
> > > > > comp.SetHTMLObjectName("dwTest");
> > > > > comp.SetTrans("JDS","UseContextObject='No',CacheName='" +
> > CACHENAME
> > > +
> > > > > "'", "","", "","", "");
> > > > >
> > > > >
> > > mp.SetSelfLink(
> > "https://localhost:8082/servlet/com.sybase.sample.DataWindo
> > > > > wServlet", "arg1='\"" + request.getParameter("arg1") + "\"'" );
> > > > > comp.RetrieveEx(request.getParameter("arg1"));
> > > > >
> > > > > // See if any client actions have been issued
> > > > > // (ie. next, previous, insert, etc.)
> > > > >
> > > > > String action = request.getParameter("dwTest_action");
> > > > > String context = request.getParameter("dwTest_context");
> > > > >
> > > > > System.out.println(action + " : " + context);
> > > > > if (action != null) {
> > > > > // there is some action
> > > > > // Tell the DW Generator about the action (Next, Previous,
> > Insert,
> > > > > etc.)
> > > > > int ret_val = comp.SetAction(action, context);
> > > > >
> > > > > if ( ret_val < 0 ) {
> > > > > out.println(comp.GetLastErrorString());
> > > > > }
> > > > > }
> > > > >
> > > > > out.println(comp.Generate());
> > > > > }
> > > > >
> > > > > Dave Wolf
> > > > > Internet Applications Division
> > > > >
> > > > > "Mark J. Pfeifer[TeamSybase]" <see_msg@sprynet.com> wrote in
message
> > > > > news:MPG.134c0698a4c793f998972a@forums.sybase.com...
> > > > > > In article <01bf99b0$f9cb3040$42f0f0a7@DMB0663.state.mi.us>,
> > > > > > udk@hotmail.com says...
> > > > > > > hi
> > > > > > >
> > > > > > > we are in the process of web enabling existing Pb application
> > using
> > > EA
> > > > > > > studio.
> > > > > > >
> > > > > > > instead of Powerdynamo, we plan to use servlet to generate
> > dynamic
> > > html
> > > > > as
> > > > > > > well as
> > > > > > > some server side coding.
> > > > > >
> > > > > > I believe you need to use Dynamo or ASP to interact with the
HTML
> > > > > > Generator. IMHO - I always wanted it to use a servlet. Thought
it
> > > would
> > > > > > be a cool and standard approach.
> > > > > >
> > > > > > Mark
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Mark J. Pfeifer[TeamSybase] Corporate Technology Partners, Inc.
> > > > > > mpfeifer @ sprynet.com Emerging Technology Solutions
> > > > > > www.ctpartners.com
> > > > > >
> > > > > >
> > > > > > Join The Team - hr@ctpartners.com
> > > > > >
> > > > > > ---
> > > > > > Upcoming Events: (http://www.sybase.com/events)
> > > > > > * WhistleStop - Denver, CO
> > > > > >
> > > >
> > > > --
> > > > Bill Green[TeamSybase]
> > > >
> > > > -----------------------------------------------------------
> > > > Good Links to know, good places to go:
> > > >
> > > > Sybase Developer Network (SDN) - http://www.sybase.com/sdn
> > > > Find things like:
> > > > -- Print to PDF component
> > > > -- Lotus Notes E-Mail component
> > > > -- Taking existing PB apps to the web white paper
> > > >
> > > > PFC Guide - http://www.pfcguide.com
> > > > Power3 - Custom Training - http://www.power3.com
> > > > -----------------------------------------------------------
> > > >
> > > >
> > >
> > >
> > >
>
> --
> Bill Green[TeamSybase]
>
> -----------------------------------------------------------
> Good Links to know, good places to go:
>
> Sybase Developer Network (SDN) - http://www.sybase.com/sdn
> Find things like:
> -- Print to PDF component
> -- Lotus Notes E-Mail component
> -- Taking existing PB apps to the web white paper
>
> PFC Guide - http://www.pfcguide.com
> Power3 - Custom Training - http://www.power3.com
> -----------------------------------------------------------
>
>
>