[Thread Prev][Thread Next][Index]

Re: [las_users] UI Server, catitem=1



Ben,

The dataset url is managed by three pieces of interrelated software: dataset.vm, DatasetBean.java and DatasetFormBean.java.
These pieces are in order, the Velocity template, the template bean that is responsible for filling the Velocity context with data needed to render the page and the FormBean which manages the form parameters on those pages.

There are already extensive facilities built into LAS that allow installers to organize data collections in to arbitrary hierarchies and to create a custom display associated with any or all of the nodes in the hierarchy and automatically display them in neat little blocks of hierarchical text.  The GODAE Modeler's Intercomparison site is a good example of how the standard tools can be used to create a highly customized display of both categories (the opening page) and variables (any of the sub-links from the opening page).  Before undertaking any modifications to these components make sure it's not already possible to achieve the results you want with these tools.

If it turns out you need even more flexibility, I'm working on some documenation right now on how to modify the dataset display and how to interact with the mySQL database.  I'll post a link when it's finished.

A final caveat, we're working on a new user interface.  When the new version comes out your code will have to be modified to use the classes we create that fish this information directly out of a memory instantiation of the XML config files instead of a mySQL database.  We're not trying to preserve the interfaces that interact with the database in the new code that interacts with JDOM XML objects, so you'll have some rewriting to do.

Roland

Ben Burford wrote:
Hello,

I need to find the place in the LAS software where LAS receives a menu page 
request from a browser.  In the browser source for the top level menu page, 
the first item in the menu is requested when the browser requests the menu p
age for catitem = 1:

<a class="dataset" href="">1. Insitu</a>

The request (from the Apache log) looks like:
"GET /las/servlets/dataset?catitem=1 HTTP/1.1"

Can someone tell me where in the LAS code that this request is received (whe
re the software receives this request from the browser and then, I assume, g
oes to Mysql to get the contents of the next menu page)?

Thanks very much in advance for any help!!!

Thank you,

Ben





  


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement