how can we insert a gantt chart in a jsp page?
340563
<%@ include file="JSPExamples/filename" %>\nor\n<jsp:includ page="URL" flush="true" />\n\nif the flush is true,the buffer in the outputstream is flushed before the inclusion is performed.
1057610
Great little PDF here for you..\n\nhttp://www.oracle.com/technology/sample_code/tutorials/jsp20/files/jsp2.pdf
953641
I can only say so much because those equations are too long for two in the morning. Not that it matters; I just won't be retyping them. But you certainly need a bunch of random things for this. First, you need a variable -- a char, probably, since you don't care about any input beyond that. I don't know what the compare thing is going to output, but that'll come.\n\nI suggest an array for the old and new charts.\n\nGeez, what's the syntax? int oldchart[11], or something? I'm getting too used to Java. Anyway. Since you're going in increments of 5 from 0 to 50, you'll have a 0, 5, 10, ... 45, 50 -- that is, 11 different speeds, right? So you'll need an array for the old chart and an array for the new chart, both with a size of 11. Do you get where I'm going?\n\nCalculating the chart takes a bit more thinking. We'll ignore the actual process of getting input for the moment and just deal with filling it in. I'll suggest a method, and explain afterwards:\n\nint speed;\nfor(int i = 0; i < 11; i++)\n{\n   speed = i*5;\n   oldchart[i] = <calculate wind chill>;\n}\n\nThe same thing could be applies to the newchart array. The index, i, will go from 0 to 10, matching the indexes of the array, right? Since you're going by increments of 5, the speed for slot i will be i*5. That takes you from 0 to 50.\n\nSo after you pull that off for the old and new, you've got charts saved in the variables. Printing them is kind of similar to what happened above -- you use a loop to output what's in the array, using i*5 for the speed.\n\nNow, granted, you could combine this and the above step so you wouldn't need the arrays at all--you'd just recalculate and print every time. But I find it easier to organize my thoughts by going a way that deals with one issue at a time... It depends on what you prefer at this point.\n\nfor(int i = 0; i < 11; i++)\n{\n   speed = i*5;\n   cout << "Speed: "<< speed << " Wind Chill: " << oldarray[i] << endl;\n}\n\nLet's see...\n\nDisplaying the menu is easy--just use cout << "your menu stuff" << endl;\nInput is a bit stranger, I think. For something like this, just use a cin and check afterwards if it's right. Um, let's see... I'll give this to you in pseudocode--you should be able to work out the actual stuff.\n\nwhile ( the user doesn't want to exit )\n//this is just a logic thing -- if the user is done, then what?\n{\n     take the user's input;\n\n     if the input is 'o' or 'O'\n     {\n          calculate and print the old chart\n     }\n\n     else if the input is 'n' or 'N'\n     {\n          calculate and print the new chart\n     }\n\n     else if the input is 'c' or 'C'\n     {\n          calculate and print both the old and new charts (?) (whatever compare does)\n     }\n\n     else if the user wants to exit\n     {\n          end the program (usu. with return 0 or something of that nature)\n     }\n\n     else the user's input was bad\n}\n\nMind that for this to go well, you'd have to mind a few issues -- as I wrote above, if the user doesn't enter what you expect them to. Also, you'd have to deal with a case where the user decided to print charts before entering data into the old or new charts. For that, you should give the temperature a default value, like 0, so the charts can still be calculated.\n\nYou can see that I wrote in a calculation for every print, which is what I was saying before with it not being necessary. You could technically use the for loop I gave for printing but just replace the reference to the array with the calculation for the wind chill.\n\n...Don't know if I covered all of it, but I should be getting to bed. ^^;
342178
Try apache axis. You can use this tool for both client and server code.
462583
Install the Java Plugin:\nhttp://www.java.com/en/download/index.jsp\n\nInstall this, java sites/programs/chats should work
190237
you cant!\nthats why ITS CALLED A TEST PAGE!
370092
In the toolbar click on Insert > Chart.\nYou will see a list of chart types on the left and sub types on the right.
138634
I don't think that JSP got antkind of browser compaitablity issue it's just a simple html page on client end so it depends on which version of HTML you are using.
1090052
http://www.java.com/en/download/manual.jsp
248707
you have to use the embed feature of html\n\nthis link 'll help you\nhttp://www.htmlgoodies.com/tutorials/web_graphics/article.php/3480061
142243
http://www.pinksheets.com/quote/news.jsp?symbol=NMCX
1033314
A Gantt chart shows the length of time a project and the tasks in a project will take -- and when they start and end. It can also show which tasks can be done at the same time and the order of tasks.\n\n For more information, see http://www.ganttchart.com/
918193
https://java.sun.com/javase/embedded/index.jsp\n\nhttp://community.java.net/embeddedjava/
225309
Im not a Java pro but I heard from my friend that this website has quite some info/code for JSP. Check it out..\n\nwww.jspin.com
95575
hope this helps u out..\n\nimport java.awt.*;\nimport java.awt.event.*;\nimport java.util.*;\nimport javax.swing.*;\nimport javax.swing.text.*;\n \npublic class ComboBoxMultiColumn extends JFrame\n{\npublic ComboBoxMultiColumn()\n{\ngetContentPane().setLayout( new GridLayout(0, 2) );\n \nVector items = new Vector();\nitems.addElement( new Item("1", "Car" ) );\nitems.addElement( new Item("23", "Plane" ) );\nitems.addElement( new Item("345", "Train" ) );\nitems.addElement( new Item("4567", "Nuclear Submarine" ) );\n \n//  Use a JTextArea as a renderer\n \nJComboBox comboBox1 = new JComboBox( items );\ncomboBox1.setRenderer( new TextAreaRenderer(5) );\n \ngetContentPane().add( new JLabel("TextArea Renderer") );\ngetContentPane().add( comboBox1 );\n \n//  Use a JTextPane as a renderer\n \nJComboBox comboBox2 = new JComboBox( items );\ncomboBox2.setRenderer( new TextPaneRenderer(10) );\n \ngetContentPane().add( new JLabel("TextPane Renderer") );\ngetContentPane().add( comboBox2 );\n \n//  Use a JPanel as a renderer\n \nJComboBox comboBox3 = new JComboBox( items );\ncomboBox3.setRenderer( new PanelRenderer(50) );\n \ngetContentPane().add( new JLabel("Panel Renderer") );\ngetContentPane().add( comboBox3 );\n \n//  Using HTML\n \nJComboBox comboBox4 = new JComboBox( items );\ncomboBox4.setRenderer( new HTMLRenderer() );\n \ngetContentPane().add( new JLabel("HTML Renderer") );\ngetContentPane().add( comboBox4 );\n}\n \nclass Item\n{\nprivate String id;\nprivate String description;\n \npublic Item(String id, String description)\n{\nthis.id = id;\nthis.description = description;\n}\n \npublic String getId()\n{\nreturn id;\n}\n \npublic String getDescription()\n{\nreturn description;\n}\n \npublic String toString()\n{\nreturn description;\n}\n}\n \npublic static void main(String[] args)\n{\nJFrame frame = new ComboBoxMultiColumn();\nframe.setDefaultCloseOperation( EXIT_ON_CLOSE );\nframe.pack();\nframe.setVisible( true );\n}\n \n/*\n**  Tabs are easier to use in a JTextArea, but not very flexible\n*/\nclass TextAreaRenderer extends JTextArea implements ListCellRenderer\n{\npublic TextAreaRenderer(int tabSize)\n{\nsetTabSize(tabSize);\n}\n \npublic Component getListCellRendererComponent(JList list, Object value,\nint index, boolean isSelected, boolean cellHasFocus)\n{\nItem item = (Item)value;\nsetText(item.getId() + "&#92;t" + item.getDescription());\nsetBackground(isSelected ? list.getSelectionBackground() : null);\nsetForeground(isSelected ? list.getSelectionForeground() : null);\nreturn this;\n}\n}\n \n/*\n**  Tabs are harder to use in a JTextPane, but much more flexible\n*/\nclass TextPaneRenderer extends JTextPane implements ListCellRenderer\n{\npublic TextPaneRenderer(int tabColumn)\n{\nsetMargin( new Insets(0, 0, 0, 0) );\n \nFontMetrics fm = getFontMetrics( getFont() );\nint width = fm.charWidth( 'w' ) * tabColumn;\n \nTabStop[] tabs = new TabStop[1];\ntabs[0] = new TabStop( width, TabStop.ALIGN_LEFT, TabStop.LEAD_NONE );\nTabSet tabSet = new TabSet(tabs);\n \nSimpleAttributeSet attributes = new SimpleAttributeSet();\nStyleConstants.setTabSet(attributes, tabSet);\ngetStyledDocument().setParagraphAttributes(0, 0, attributes, false);\n}\n \npublic Component getListCellRendererComponent(JList list, Object value,\nint index, boolean isSelected, boolean cellHasFocus)\n{\nItem item = (Item)value;\nsetText(item.getId() + "&#92;t" + item.getDescription());\nsetBackground(isSelected ? list.getSelectionBackground() : null);\nsetForeground(isSelected ? list.getSelectionForeground() : null);\nreturn this;\n}\n}\n \n/*\n**  Use a panel to hold multiple components\n*/\nclass PanelRenderer implements ListCellRenderer\n{\nprivate JPanel renderer;\nprivate JLabel first;\nprivate JLabel second;\n \npublic PanelRenderer(int firstColumnWidth)\n{\nrenderer = new JPanel();\nrenderer.setLayout(new BoxLayout(
456842
it needs java oriented scripting. u can find it in the following addersses.
843901
import java.awt.*;\nimport javax.swing.*;\n//\n// A Simple Java Application that make use of the  Swing package\n//\npublic class Sample {\nprivate JFrame jF;\nprivate JPanel jP;\nprivate JButton jB;\n\npublic void go() {\njF = new JFrame("Sample");\njP = new JPanel();\njP.setBorder( BorderFactory.createEmptyBorder(30,30,30,30));\njP.setLayout(new GridLayout(0,1));\n\njB = new JButton("Click Here");\njB.setToolTipText("Please Click This Button");\n\njP.add(jB);\njF.setContentPane(jP);\n\njF.pack();\njF.setVisible(true);\n}\n\npublic static void main(String args[]) {\nSample s = new Sample();\ns.go();\n}\n}\n\n/* Save the file as Sample.java and compile. */\n/* Note the codes are for your reference only. Change it and run it to ensure you understand what each part is for. You will learn only by writing your own codes. */