Warning: Division by zero in /.2/vhosts/www.chudadi.com/html/nonsense.php on line 333

Warning: Division by zero in /.2/vhosts/www.chudadi.com/html/nonsense.php on line 335
Jsp inside JS
i xfree
Thoughts on free softwares and web RSS Feed - Newest 10 Posts Add To Favourites

Jsp inside JS
Posted on 2008-09-29 by mjsawyerjr

This is not ajax. Just a try. Makes utilize of DOJO on behalf of the servlet call as well as widgets. I never thought anything like this before. It works.

// Initialize the bean with session scope

<jsp:useBean> <jsp:setProperty name=”penc” property=”*”/>

<html>

<head>

<script type=”java/script ” and rest of the code ……

// Hit the server, populate the bean available in session as well as Handle the Response below

function handleResponse()
{

// Fill the Controls (dojit widgets here) with the response available as bean
dijit.byId(”accexp”).setValue(”<%= penc.getPencilName()%>”);
dijit.byId(”pencilmake”).setValue(”<%= penc.getPencilName()%>”);

}

……………

</script>

</head>

<body> …….. </body>

</html>

      
feed | tags: openstandards, programming, web


del.icio.us digg Fark YahooMyWeb Reddit Furl NewsVine Spurl BlinkList blogmarks

<<< Back