#99 How to use jsp code to generate cewolf tag?

v1.0_(example)
closed
nobody
None
5
2005-09-26
2005-05-02
Anonymous
No

If I try correct jsp code like this the tag doesn't work:

out.println("<center>");
out.println("<head><title>Infinity QS Data
Grapher</title></head>");
out.println("<H1>This page refreshes each 30
seconds</H1>");
out.println("<HR><jsp:useBean id='pageViews'
class='JFreeCharter.PieData'/>");//de.laures.cewolf.exam
ple.PageViewCountData
out.println("<cewolf:chart");
out.println("id='line'");
out.println("title='Page title'");
out.println("type='+request.getParameter
("ChartType")+"'");
out.println("xaxislabel='Page'");
out.println("yaxislabel='Views'>");
out.println("<cewolf:data>");
out.println("<cewolf:producer
id='pageViews'/>");
out.println("</cewolf:data>");
out.println("</cewolf:chart><p>");
out.println("<cewolf:img chartid='line'
renderer='cewolf' width='800' height='500'>"+
"<cewolf:map
id='pageViews'/></cewolf:img>");
out.println("<FORM><INPUT TYPE='button'
VALUE='Back' onClick='history.go(-1);return true;'>
</FORM>");
out.println("</CENTER>")

Or just doing the out.println
("type='+request.getParameter("ChartType")+"'");
line to change the type of graph doesn't work since it
appears to "break" the tag. Any idea?

Discussion

  • Brian Fox

    Brian Fox - 2005-05-02

    Logged In: YES
    user_id=805618

    Is this generated code you are showing, or what your jsp
    actually has? You can't write a jsp like that using tags
    because the jsp compiler has to interprete them.

     
  • Javier A. Ortiz Bultron

    Logged In: YES
    user_id=1270691

    So basically there isn't a way to make a dynamic cewolf tag
    on jsp? I want to be able to vary the chart type and axis titles
    without having to have multiple pages with almost the same
    info on them.

     
  • Brian Fox

    Brian Fox - 2005-09-26
    • status: open --> closed
     
  • Brian Fox

    Brian Fox - 2005-09-26

    Logged In: YES
    user_id=805618

    You can make parameters you pass dynamic, but not the way
    you've tried here.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks