Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

conversion of xml to jsp using Javascript

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working as a java programmer in a small concern.

Now we started ,new framework ie, if we put an entry in xml it automatically creates a UI according to that entry. I dont have much idea about javascript so kindly suggest me how to proceeds with that and kindly tell how to work with javascript data grids.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
XML to JSP with JavaScript? HUH?

JavaScript can not convert stuff to a JSP, it can build HTML DOM objects.

Eric
 
balamurugan velliambalam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ya you are right eric,but we put entry like this in xml(our own framework)
<tfw_table_cols ATTRIB_ID ="29" COL_NAME ="REVISION_NO" COL_UNIQID ="N" COL_CAPTION ="Revision Number"
COL_DISPLAYTYPE ="TEXT" COL_DISPLAYFORMAT="NULL" COL_LENGTH="100"
COL_MAXVAL="NULL" COL_ALLOWNULL ="Y" COL_ADD_EDITABLE="0" COL_EDIT_EDITABLE="0" COL_ADD_ENABLE="0"
COL_EDIT_ENABLE="0" COL_ADD_HIDE="1" COL_EDIT_HIDE="1" COL_DEFA ="HQ_DEFA_S_EQN_REVISION_NO+1"/>
where i marked bold revision number it is a caption and col_display type is text means text box. we store all these values in database based upon the values we built UI which more fast than normal because more work done by client side. I hope you understand if you have any doubts regarding this kindly let me know.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So you wrote your own framework that has an XML structure that you did not match up to an existing JavaScript implementation of a grid?

http://www.trirand.com/blog/
http://developer.yahoo.com/yui/datatable/

There are plenty more out there if you search.

If you want to write your own, looks like you need to figure out how to read an xml document in JavaScript and convert it over to html.

Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic