Home > Archive > EAserver > April 2005 > Question from an EAServer newbie









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Question from an EAServer newbie
Erin

2005-04-25, 1:24 pm

Hi guys! I have been using some of the tutorials I've
downloaded here. So far i'm doing good.

My question is about the calling of a jsp page that would
then call the PB object. Most of the user interface in the
current system that I'm going to migrate to PB 10/EAServer
are in HTML. Since we use web.pb, we just call the pb
component in the ACTION part of the FORM in HTML. These
HTMLs call diff PB functions and passes diff arguments. Now
as I understand it in the tutorials, I have to create JSP
page for each one of them. Is there a way for me to call
just one JSP page? something like a JSP main page that would
redirect it to the corresponding PB component based on the
page that called it? and pass arguments?

Any suggestions/hints would be greatly appreciated!
Larry Cermak [Team Sybase]

2005-04-26, 3:26 am

Yes you could do it that way. It might be hard to have 1 JSP page serve up
all your dynamic content. I would first get some pages started and
understand how to pass arguments and navigate with web applications. Then
back up and decide how to decide your overall application. I guess what I'm
saying is to get a good understanding of your options on how things can be
done before making that design decision.

How far have you got with navigation and passing arguments to pages?

--

Larry Cermak [Team Sybase]
Branick Consulting, Inc.
www.branick-inc.com
EAServer & PowerBuilder Consulting & Training
EAServer and PowerBuilder Computer Based Training Courses


<Erin> wrote in message news:426d37b5.1711.1681692777@sybase.com...
> Hi guys! I have been using some of the tutorials I've
> downloaded here. So far i'm doing good.
>
> My question is about the calling of a jsp page that would
> then call the PB object. Most of the user interface in the
> current system that I'm going to migrate to PB 10/EAServer
> are in HTML. Since we use web.pb, we just call the pb
> component in the ACTION part of the FORM in HTML. These
> HTMLs call diff PB functions and passes diff arguments. Now
> as I understand it in the tutorials, I have to create JSP
> page for each one of them. Is there a way for me to call
> just one JSP page? something like a JSP main page that would
> redirect it to the corresponding PB component based on the
> page that called it? and pass arguments?
>
> Any suggestions/hints would be greatly appreciated!



Adam Simmonds

2005-04-26, 3:26 am

Erin wrote:
> Hi guys! I have been using some of the tutorials I've
> downloaded here. So far i'm doing good.
>
> My question is about the calling of a jsp page that would
> then call the PB object. Most of the user interface in the
> current system that I'm going to migrate to PB 10/EAServer
> are in HTML. Since we use web.pb, we just call the pb
> component in the ACTION part of the FORM in HTML. These
> HTMLs call diff PB functions and passes diff arguments. Now
> as I understand it in the tutorials, I have to create JSP
> page for each one of them. Is there a way for me to call
> just one JSP page? something like a JSP main page that would
> redirect it to the corresponding PB component based on the
> page that called it? and pass arguments?
>
> Any suggestions/hints would be greatly appreciated!


You really need to consider using a pre-built framework such as Cynergy
EAF framework. You will be able to easily create HTMLDW's and then mix
this in with a tag lib such as STRUTS or SITEMESH and you will be able
to reduce your development time.

Taking you current NVO's and just placing them in a CASE statement on
one JSP is asking for trouble... IMO :)

a.
Erin

2005-04-26, 9:24 am

I'm not sure i understand your question but so far I have
created a login page that calls a login_verify jsp. This jsp
calls a PB component which does all the database
verification of the user. Also, a page that would list some
data in a table.

I've read about the getquerystring but I believe it has
limitations as to the number of characters it can hold. I
can use it in pages with small number of parameters but I
don't think I can use it with pages that would do database
updates. Simply because out tables can have many columns and
some have text datatypes.

Any suggestions?

> Yes you could do it that way. It might be hard to have 1
> JSP page serve up all your dynamic content. I would first
> get some pages started and understand how to pass
> arguments and navigate with web applications. Then back
> up and decide how to decide your overall application. I
> guess what I'm saying is to get a good understanding of
> your options on how things can be done before making that
> design decision.
>
> How far have you got with navigation and passing arguments
> to pages?
>
> --
>
> Larry Cermak [Team Sybase]
> Branick Consulting, Inc.
> www.branick-inc.com
> EAServer & PowerBuilder Consulting & Training
> EAServer and PowerBuilder Computer Based Training Courses
>
>
> <Erin> wrote in message
> here. So far i'm doing good. >
> called it? and pass arguments? >
>
>

Erin

2005-04-26, 9:24 am

I'm afraid buying another software is not an option right
now.


> Erin wrote:
>
> You really need to consider using a pre-built framework
> such as Cynergy EAF framework. You will be able to easily
> create HTMLDW's and then mix this in with a tag lib such
> as STRUTS or SITEMESH and you will be able to reduce your
> development time.
>
> Taking you current NVO's and just placing them in a CASE
> statement on one JSP is asking for trouble... IMO :)
>
> a.

Rahul Jain

2005-04-26, 9:24 am

EAF is free and opensource. You also get free support via EAF discussion
forums.

--
Rahul Jain
Cynergy Systems, Inc.

Take PowerBuilder Applications to the Web Today with Cynergy EAF 4.0
http://www.cynergysystems.com/public/products/eaf

Blogging at: http://rahuljain.pbdjmagzine.com


<Erin> wrote in message news:426e3c8c.22cc.1681692777@sybase.com...[color=darkred]
> I'm afraid buying another software is not an option right
> now.
>
>


Adam Simmonds

2005-04-26, 11:26 am

Erin wrote:

> I'm afraid buying another software is not an option right
> now.


EAF is free ( www.cynergysystems.com )
Sitemesh is free ( http://www.opensymphony.com/sitemesh )
Struts is free ( http://struts.apache.org - you may want to focus on
Tiles which is like Sitemesh, I like Sitemesh better )

a.

[color=darkred]
>
>
>
Jim Egan

2005-04-27, 3:24 am

Erin wrote...
> Hi guys! I have been using some of the tutorials I've
> downloaded here. So far i'm doing good.
>
> My question is about the calling of a jsp page that would
> then call the PB object. Most of the user interface in the
> current system that I'm going to migrate to PB 10/EAServer
> are in HTML. Since we use web.pb, we just call the pb
> component in the ACTION part of the FORM in HTML. These
> HTMLs call diff PB functions and passes diff arguments. Now
> as I understand it in the tutorials, I have to create JSP
> page for each one of them. Is there a way for me to call
> just one JSP page? something like a JSP main page that would
> redirect it to the corresponding PB component based on the
> page that called it? and pass arguments?
>
> Any suggestions/hints would be greatly appreciated!
>


My projects do not use a framework. However, they do use a couple of taglibs. One to
access the Web DataWindow (HTML DW, whatever you want to call it) and one to access PB
components.

There is a JSP in one project that accesses a number of different components depending upon
the inputs. I really, really don't like it. In my opinion it is sloppy and just makes for
more work.

When a user selects a menu item in most of my projects they are directed to a JSP. While
on the screen that the JSP produces they do not access any other JSP. If a popup is
generated then that would be a different page. If the content of the page is different
then another JSP is used. In general I try to keep each JSP simple and focused on a single
topic. (This is not a hard and fast rule though. I do have a couple JSP that are flexible
in that they can show different thing depending on the input, but these are very
infrequent.) Some JSP may show more than one DataWindow, but they would be related.

A normal JSP in my projects would generate the HTML DataWindow, then accept input from that
(on a round trip) and perform a complex set of validations that the normal HTML DataWindow
Update() would do. Then it would generate the HTML DataWindow again.

I am starting to do a lot more screens that involve the use of frames and iframes. We now
have screens that are starting to look like thick client applications (just the look, not
the weight!) and require fewer round trips to the server for users that are doing
repetitive tasks.
--
Jim Egan [TeamSybase]
Sybase product enhancement requests:
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
Larry Cermak [Team Sybase]

2005-04-28, 3:26 am

On my web site you can download something I created a few years ago called
the EAServer Starter Kit. It does exactly what you are trying to accomplish.
I'll qualify the statement saying this was meant as demonstration code and
not production stuff. It is intended to help people get started with
PowerBuilder and EAServer.

--

Larry Cermak [Team Sybase]
Branick Consulting, Inc.
www.branick-inc.com
EAServer & PowerBuilder Consulting & Training
EAServer and PowerBuilder Computer Based Training Courses


<Erin> wrote in message news:426e3bd8.22bc.1681692777@sybase.com...[color=darkred]
> I'm not sure i understand your question but so far I have
> created a login page that calls a login_verify jsp. This jsp
> calls a PB component which does all the database
> verification of the user. Also, a page that would list some
> data in a table.
>
> I've read about the getquerystring but I believe it has
> limitations as to the number of characters it can hold. I
> can use it in pages with small number of parameters but I
> don't think I can use it with pages that would do database
> updates. Simply because out tables can have many columns and
> some have text datatypes.
>
> Any suggestions?
>


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com