× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Ok, this is kewl I got it working.  My next question is, I have two tabs 
on the body, each containing a form.  The selection works great, but I'd 
like to remember which tab I was on, it's set in the onLoad event on the 
body.  Right now it's hardcoded to tab1.  Is it possible for me to 
determine which tab I was on coming back from the java servlet and 
reloading the page?

here's the script I'm using for sending to my servlet:

function changeBulkRecord(form){
        var formObject = form
        var i = formObject.callRecDate.selectedIndex
        var url = "ChangeGarbageRec?selectedIndex=" + i + "&type=bulk"
        open(url, target="smiddle")
}

function changeMetalRecord(form){
        var formObject = form
        var i = formObject.callRecDate.selectedIndex
        var url = "ChangeGarbageRec?selectedIndex=" + i + "&type=metal"
        open(url, target="smiddle")
}

When it returns, i'd love to know if I was on metal or bulk, and if so set 
the proper tab as current in the onLoad="init()" function.

//sets the default display to tab 1
function init(){
                tabContents.innerHTML = t1Contents.innerHTML;
} 

<BODY onclick="changeTabs()" onload="init()">

Much appreciate the help.

Ron Power
Programmer
Information Services
City Of St. John's, NL
P.O. Box 908
St. John's, NL
A1C 5M2
Tel: 709-576-8132
Email: rpower@xxxxxxxxxx
Website: http://www.stjohns.ca/
___________________________________________________________________________
Success is going from failure to failure without a loss of enthusiasm. - 
Sir Winston Churchill




"Joe Pluta" <joepluta@xxxxxxxxxxxxxxxxx> 
Sent by: java400-l-bounces@xxxxxxxxxxxx
19/04/2005 04:05 PM
Please respond to
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>


To
"'Java Programming on and around the iSeries / AS400'" 
<java400-l@xxxxxxxxxxxx>
cc

Subject
RE: In significant need of help.






I find this statement interesting, Pete.  Why do you consider FreeMarker
more MVC than JSP?  With a properly written JSP, all the model
information is passed via beans, and the JSP simply displays them.  Why
is this less MVC than FreeMarker?  FreeMarker is just a text generator,
sort of like XSLT, and as such isn't very smart about things like HTML.
You have to actually embed your HTML code in the FreeMarker template,
which makes it roughly equivalent to a JSP (except interpreted).

Joe

> From: Pete Helgren
> 
> JSP's kind of
> muddy the waters between client side and server side so perhaps there
is
> a way with JSP's to do this.
> 
> I am by no means an experienced .jsp programmer.  We moved to
FreeMarker
> so we could avoid JSP's.  Freemarker, being a server side engine has
> gotten us a close to MVC as possible....but I am digressing here.

-- 
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.