Need a design approach or suggestion for a simple structure using Servlet.
- by akshay
Hi
I have to design such that whenever user pass a query I process it
using servlet and then call the js page to draw the chart
1 user writes a query on a page
2 the page call the servelt class
public class MyServlet extends Httpservlet implements
DataSourceServlet {..... return data
The user see a beautiful string like this..
google.visualization.Query.setResponse......... /Tiger'},{v:80.0},
{v:false}]}]}});
3 when the user hits on different html page myhtml.js it draws the
chart.
I want the Myservlet class itself call the myhtml.js page and draw
the chart directly.
and want to eliminate the beautiful string
google.visualization.Query.setResponse......... /Tiger'},{v:80.0},
{v:false}]}]}});
from coming on user's browser
What should i do?
I tried using functions to call another page like request
dispatcher(), redirect() calling myhtml.js page directly after
myservlet process the query results.
But i get the result like this
google.visualization.Query.setResponse......... /Tiger'},{v:80.0},
{v:false}]}]}});
and the entire myhtml.js code page below it on the browsers that to
without the chart been draw.
Is there anyway to element the beautiful string from coming on clients
browser
and only show them the chart been drawn ? :)
This is the small tutorial i am following
http://code.google.com/apis/visualization/documentation/dev/dsl_get_started.html