Simple poll/comment box in JSP

Howdy, I'm trying to create a simple poll containing five options, as well as a comment box (consisting of a text box and a submit button), both of which show results on the same page they're on. I've been searching for some examples, but have had no luck. Can anyone point me in the right direction or help me out with any sites that have example source code dealing with this sort of thing? Thanks!

Here is a simple example:
<html>
<head>
<title>My Page</title>
</head>
<body>
<form method="GET" action="/servlet1">
<div align="center"><br>
<input type="radio" name="group1" value="Milk"> Milk<br>
<input type="radio" name="group1" value="Butter" checked> Butter<br>
<input type="radio" name="group1" value="Cheese"> Cheese
<hr>
<textarea name="comments" cols="40" rows="5">
Enter your comments here...
</textarea><br>
<input type="submit" value="Submit" />
</div>
</form>
</body>
</html>

Similar Messages

  • Simple php comment box?

    I haven't really found a third-party vendor or reliable tutorial for a simple form where people can enter comments/testimonials that will then display on my site. Does anyone have a resource? I did the tutorial at helpertuts, and was able to connect the dbase, but have run into many final tweaking issues, and would like to start over with something new.
    I noticed there is a free javascript comment box offered; is that ok if there is no real need to manage the comments with a dbase?
    Thanks for your help.

    Thanks Jon,  that looks very simple.
    On the other hand, I did give it a try myself, and before I take this simple alternative, maybe someone can take a bit of time, and possibly point me in the right direction.
    http://www.placetrenddata.com/jcshop.php
    A warning posts above the page footer, some issue with a query,
    The submitted comments should appear in the sidebar, and I think the script puts them in the header. Maybe this is why they don't show up.
    Here is the code for the success.php doc:
    <?php
    header("Location: jcshop.php");
    ?>
    Thanks again for the help.

  • How do I make a Crowdsourcing Poll/Comments page?

    I am currently learning HTML5, CSS3, Javascript and need to make a crowdsourcing page but can't find a good tutorial to help me figure it out.  So I'm hoping someone here can offer advice.
    What I need is a web page where people can enter ideas, have those ideas presented in boxes with a simple voting system "Like/meh/Dislike."  As the ideas are voted on they need to move up and down the list presented on the page.  Furthermore there needs to be a way where people can comment on or add to an idea and that addition needs to be presented as a list with a similar voting system.  Then those comments need to added to with even more comments as the masses further develop the original idea and work on the specifics.  Everything needs to be stored in server-side database but most of the organization should be handled by javascript and maybe html5.
    Additionally, but not important right away, is various sorting options like "Show Only Top Ten/Top Five," "Show Only My Likes," "Show What I Haven't Voted On Yet," "Show Only New Since Last Visit," though I believe once I learn how to do the poll/comments page such organizational options won't be too hard.
    All I need is a good tutorial or working example to learn from.  Once I get it down I should be able to create and modify the page as needed.
    Any suggestions?

    Sounds like you need Groupware or a Group Collaborative System like Tiki Wiki.
    http://info.tiki.org/Tiki+Wiki+CMS+Groupware
    Groupware Demo ~
    http://php.opensourcecms.com/scripts/show.php?pagenumber=1
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Can some one help me please / comment box ?

    hi im very new to dreanweaver and i have a big problem, I
    have a uni project to be in on friday and i need to put in a
    comment box which links to my email and i cant find a clear
    tutorial and is ther a way of doing it with out complicated html?
    I also have aproblem with making my pages fit or expand to th
    different screen sizes. i imported the back grounds fas png from
    illustrator is ther conversion i nead to apply ?
    Can some please please shed some light please

    Well without seeing your design, I can tell you that in order
    to make your webpage expand and contract based on the screen
    resolution will require that you use possibly repeating backgrounds
    in table cells or layers that have widths based on percentages
    rather than pixels.
    As far as a comments box goes, based on your description it
    sounds like you need a contact form to submit information to an
    email account as opposed to a comments box (
    http://www.shoutpro.com/ - that
    is a comments box).
    If you need a form to mail to an email you should consider
    what you can run on your server. More than likely, even if PHP is
    available it would be blocked by your server so you would have to
    use cgi for mail. So I would recommend trying this script:
    http://www.scriptarchive.com/formmail.html
    It is fairly simple, you just have to point your form to the
    CGI file that is include in the script. Then there are instructions
    on the site telling you how to edit that CGI file to send an email
    to where you need it to go. Hopefully this is what you are looking
    for. If you have any questions about it feel free to post
    back.

  • HCM Process & Forms: Date & Time Stamp issue in Prev Comments Box

    Hi
    We implemented HCM Process and Forms and we are in EHP4.  We need user name, date and time stamp in each step for audit purpose.
    Form Process Example:
    Step1: Manager -> Initiates a Form for employee pay/position changes  (REQUEST)
    Step2: 1-Up Manager -> Approves a Form for employee pay/position changes (APPROVE)
    Step3: HR Admin -> Process a Form for employee pay/position changes (PROCESS)
    Process Overview: HR Admin can open a form once all steps are completed and they want to see all 3 steps date & stamp here.
    New Comments -> To enter user comments in each step. Used data type HRASR_CURRENT_NOTE
    Previous Comments-> To display prev. step / user's comments including user name, date & time. Used data type HRASR_PREVIOUS_NOTES.
    I tried all different property settings in the form. May be I am still missing some property settings here.
    Issue:  If user enters any comments in "New Comments" box then only date & time stamp is coming along with their comments in "Previous Comments" otherwise not showing anything, just blank in the Prev. Comments.  I added some code in form script in case no data in "New Comments" then default a value ":" . It is working fine for first step but not working the same for other 2 steps.
    Trying in different way:
    Creating 3 text fields in a form just for display purpose and modifying each field (data set) with some text (combination of user name, system date and time) at each stage/step in a BADI.
    Method: IF_HRASR00GEN_SERVICE~DO_OPERATIONS
    Here it is updating correctly for first step/stage (REQUEST) and other 2 fields are not updating accordingly. I did debug for each step and updating the data set correctly but finally not dispalying the valuse in a form except first field.
    Can someone please share your ideas or inputs.
    Appreciate your time & help!
    Thanks
    Hari

    Hi Sahir
    Thank you for your reply.
    As I explained in my post, user details with date & stamp are coming when user enters some comments otherwise it is blank., All users may not enter comments because it is not a "required".
    HR is needed this for audit purpose, just at end of the process they need to see all user names, date & stamp in the form. Forget about comment boxes, Can't we make just simple text fields with user details for each step (all 3 stages)?
    FYI:
    Issue:  If user enters any comments in "New Comments" box then only date & time stamp is coming along with their comments in "Previous Comments" otherwise not showing anything, just blank in the Prev. Comments.  I added some code in form script in case no data in "New Comments" then default a value ":" . It is working fine for first step but not working the same for other 2 steps.
    Appreciate your inputs !
    Thanks
    Hari

  • Does anyone know of a free Comments box script / widget that actually works???

    Re: Dreamweaver 2014.1.1
    I've searched and tried over thirty different scripts so far....everything from HTML to CSS to javascript! Some java's worked and came out well (ex. Free Comment Script - Generate free ajax driven HTML comments on your website.) BUT when I press the "Post Comment" it does nothing at all. But other than that their great in reference to looks and what-not.
    Attached are pictures of the web screen-shot (above) where all is working EXCEPT the post comment and below is the script.
    So if anyone knows how to either get my java script I noted above to work when I press "Post Comment " or can link me to a reliable, simple Comments box/script/widget for me to post at the bottom of my <body> I would thank you dearly

    So the concept was that the spam was through the site providing, I completely understand....as I did get a lot of "hocus-pocus" crap during the preview of whatever code I pasted.
    As for the code which I installed and came up blank, here is a copy of it (I saved it just in case I want to try it again):
    <div id="disqus_thread"></div>
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES * * */
        var disqus_shortname = 'httpwwwoneidaservicescommariabdayhtml';
        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
    for comment count, add:
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES * * */
        var disqus_shortname = 'httpwwwoneidaservicescommariabdayhtml';
        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function () {
            var s = document.createElement('script'); s.async = true;
            s.type = 'text/javascript';
           s.src = '//' + disqus_shortname + '.disqus.com/count.js';
    (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
    </script>

  • How do I add a testimonial comment box to my site ?

    I am currently almost finished building my site, I want to add in my footer a comment box, so the visitors can leave testimonials about my business.
    I would like the data that they enter to automatically appear in another div and fade in and out.
    So basically two different divs one that holds the comment box, and the other that cycles through all the testimonials one at a time and fades in and out.
    The only problem is I have no idea where to start.
    Can someone tell me each subject that this involves and what I should reference to get this started and finished. Like I said I know how to build a basic site but I dont know anything about adding a comment box or have that inputted data display in another div automatically and cycling throught them all.
    This site at the bottom of the page has a display similar to what I am thinking off but doesnt have the comment box, but that is basically what I am trying to figure out how to do, the customer quotes fade in and out. I would just like another section next to it for customers to add there comments and have the list automatically update and scroll through them like this site is doing
    So if someone could just explain what topics I should be researching specifically I would greatly appreciate it.
    http://www.filesonic.com/file/45975527/v9.1.157.Cracked-NOY.part1.rarhttp://www.vsplash.com/

    What you need is server-side scripting and the use of a library like Jquery.  You need the server side scripting to send the information to a database to be saved (assuming you want to keep the comments) and then JQuery and javascript will process and write to the page.  I don't want to scare you too much, but this is not a topic for beginners because it involves interaction between the languages.  I have provided 2 links below for reference:
    http://net.tutsplus.com/tutorials/php/asynchronous-comments-with-jquery-and-json/
    http://www.99points.info/2010/07/facebook-style-wallpost-and-comments-system-using-jquery- ajax-and-php-reloaded/

  • How come I can't see the CNN's comment box? Now I can't comment! It works on others MacBook Pro's Safari, but not on mine.

    The Comment box vanished!. There is usually a box where you can type your comment right under where it says "Add New Comment".  I have Mac OS X Lion 10.7.4, Safari 6.0. I have a CNN account and can also log into it through Facebook and it still does not work. However, Whenever I log into my sister's laptop which is the same as mine, it works over there. So the issue is definitely on my Safari or somewhere else in my computer.
    I will show you two pictures giving an example on how the comment section on CNN is supposed to be working.
    PIC #1 - On this first picture, in the part where it says "Add New Comment", right under it theres supposed to be a box where i type inside my comment. But as you will see there will not be a box
    There is supposed to be a comment box between "Add New Comment" and those tabs where it says CNN DISQUS FacebookCONNECT TWITTER
    PIC # 2 - On this second picture, I will print screen the same page and try to reply to that first top comment on PIC #1. And doing it that way there is also no comment box. Again I should say that yes I do have an account on CNN and I am logged in. On CNN.com, if you are not logged in either through Facebook or CNN itself, the reply button would not even appear.
    As you can see, Right under where it says "Replying to geoplato"(whoever that is) there should be a box as well. And I know its my computer or my browser because my sister that lives with me, she has a MacbookPro which is what I use, and it works fine on hers. So I know its not CNN, Its my computer or browser.
    I hope with these new pictures, someone will be able to help me.
    Thank you all again who spends your time going through this. I really appreciate it.
    Francisco Neto.

    software update not working
    https://discussions.apple.com/thread/3967755?start=0&tstart=0

  • Firefox froze a webpage, and I want to recover the text I wrote in the comment box on the page.

    I wrote a long thing in a comment box at the www.rollingstone.com website using Firefox for macbook as the browser. Typing into the comment box was going slowly and a then a window popped up saying "WARNING: Unresponsive script" in bold and then below it it says "A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue." Then below that it says: "Script: http://www.rollingstone.com/assets/js/built/desktop.bundle.js:185" Then there are 3 buttons:"Debug script", "Stop script", or "Continue", none of which respond. I think the text I entered is still there on the page if I could break this window. I am wondering if it is possible to recover the text I wrote in the box?
    The Debugger came on at the bottom of the page, but the window of the rollingstone page won't move so I can't bring it up to see most of the debugger. It looks like the script is some "RubiconAdServing."
    I downloaded a hxD editor, but I just get stuff on the right about the URL. In the advice I was given on another site, it says that I should be able to recover the text this way. Maybe I am clicking on the wrong thing to open with the Hex editor.
    There were no things in the upper left of my macbook window like 'file' for Firefox, but now they are there but not responding. Firefox is totally not responding, but there are a lot of other firefox browser windows minimized that are open and still at the bottom of the screen, but also not responding. How do you get into Firefox and recover the text? While I was writing the text on the Rolling Stone website, the writing within the tab would show that it had to connect to the internet to enter the text. When I went to the site I entered the text, it was not saved on the site. I can see some of the text I wrote on the frozen Firefox screen, but nothing moves. I am sure the text I wrote it still there if I could get through. How do I get into the Firefox webpage? All the other applications are working on my MacBook.

    Try the following:
    #Open the Mac Activity Monitor
    #End the plugin-container process(es)
    Now the page should respond again, but you will need to reload the page in order for it to work again, so copy your comment.

  • How to open a 'Save As' Dialog box in JSP?

    Hi all, i need to export a CSV file. A button is provided to the user to choose the directory to save the file. My problem is how to open a 'Save As' dialog box in JSP?
    Thanks in advance

    Hi,
    Below is my full code to download fiel but still the Save Dialog box still not show..
    <%@ taglib prefix="cs" uri="futuretense_cs/ftcs1_0.tld"
    %><%@ taglib prefix="asset" uri="futuretense_cs/asset.tld"
    %><%@ taglib prefix="assetset" uri="futuretense_cs/assetset.tld"
    %><%@ taglib prefix="commercecontext" uri="futuretense_cs/commercecontext.tld"
    %><%@ taglib prefix="ics" uri="futuretense_cs/ics.tld"
    %><%@ taglib prefix="listobject" uri="futuretense_cs/listobject.tld"
    %><%@ taglib prefix="render" uri="futuretense_cs/render.tld"
    %><%@ taglib prefix="siteplan" uri="futuretense_cs/siteplan.tld"
    %><%@ taglib prefix="searchstate" uri="futuretense_cs/searchstate.tld"
    %><%@ taglib prefix="locale" uri="futuretense_cs/locale1.tld"
    %><%@ taglib prefix="dateformat" uri="futuretense_cs/dateformat.tld"
    %><%@ taglib prefix="blobservice" uri="futuretense_cs/blobservice.tld"
    %><%@ taglib prefix="satellite" uri="futuretense_cs/satellite.tld"     
    %><%@ taglib prefix="date" uri="futuretense_cs/date.tld"
    %><%@ page import="COM.FutureTense.Interfaces.*,
    COM.FutureTense.Util.ftMessage,
    COM.FutureTense.Util.ftErrors"
    %><%@ page import="COM.FutureTense.Interfaces.*,
    COM.FutureTense.Util.ftMessage,
    COM.FutureTense.Util.ftErrors"
    %>
    <%@ page language="java" contentType="text/html;charset=UTF-8" %>
    <%@ page import="java.io.File" %>
    <%@ page import="java.io.OutputStream" %>
    <%@ page import="java.io.FileInputStream" %>
    <cs:ftcs><%-- france/test_template
    INPUT
    OUTPUT
    --%>
    <%-- Record dependencies for the Template --%>
    <ics:if condition='<%=ics.GetVar("tid")!=null%>'><ics:then><render:logdep cid='<%=ics.GetVar("tid")%>' c="Template"/></ics:then></ics:if>
    <%
    String fileToFind = request.getParameter("file");
    if(fileToFind == null) return;
    File fname = new File(fileToFind);
    System.out.println("Save As: "+fname.getName() );
    if(!fname.exists()) return;
    FileInputStream istr = null;
    response.setContentType("application/octet-stream;charset=ISO-8859-1");
    response.setHeader("Content-Disposition", "attachment; filename=\"" + fname.getName() + "\";");
    try {
    istr = new FileInputStream(fname);
    int curByte=-1;
    while( (curByte=istr.read()) !=-1){
    out.write(curByte);
    out.flush();
    } catch(Exception ex){
    ex.printStackTrace(System.out);
    } finally{
    try {
    if(istr!=null) istr.close();
    } catch(Exception ex){
    System.out.println("Major Error Releasing Streams: "+ex.toString());
    try {
    response.flushBuffer();
    } catch(Exception ex){
    System.out.println("Error flushing the Response: "+ex.toString());
    %>
    </cs:ftcs>
    Can anybody help me with this???
    Thank you in advance.

  • Is there any way to find text highlighted in adobe reader and automatically copy it to comment boxes?

    If I use a pdf highlighted in Adobe Reader (metro) in another PDF reading program, one with functionality to retrieve and list various annotations on the PDF, it simply finds "sticky note" as Adobe Reader highlights the text but fails to copy and paste it into a 'highlight' comment box. I intend to use another program with this feature automatic, from this point forward, but is there any way I can retroactively and automatically do this same task to all the other work I've done with Adobe Reader? It is, as I understand, a standard function of PDF annotation.
    Of course, ideally, I would also like this to be automatic in the future, as the Adobe Reader Metro App is generally well-designed, touch-interface wise. But this lacking feature makes finding my comments a much greater hassle than it should be (as I can see where I highlighted, but not what without traveling directly to the page)
    Also on a side note, I apparently can't delete a sticky note from within the app, what the hell

    You cannot enforce something like that. You have some options when the field is set up to allow rich text formatting, but the user can always change it.

  • I'm having the oddest situation...  On my 13" MBP, when trying to enter text into a Facebook comment box; my delete key is totally non-functional.  I works just fine everywhere else, just not in the comment box.  Cannot delete characters.

    I'm having the oddest situation.  When I attempt to enter text into a Facebook comment box, my "delete" key doesn't work.
    It's just fine EVERYWHERE else, I just cannot delete characters from a comment box.
    What might I be missing?  I don't know what's up.
    JP
    MacBook Pro Retina 13"
    Safari 8.0.2
    Yosemite 10.10.1

    I'm having the oddest situation.  When I attempt to enter text into a Facebook comment box, my "delete" key doesn't work.
    It's just fine EVERYWHERE else, I just cannot delete characters from a comment box.
    What might I be missing?  I don't know what's up.
    JP
    MacBook Pro Retina 13"
    Safari 8.0.2
    Yosemite 10.10.1

  • I used a GarageBand loop in a video I made for youtube. I want to submit this video for revenue. First, is this legal? Second, youtube requires written permission to use songs, and provides a comment box for proof of permission. What do I put in this box?

    I used a GarageBand loop in a video I made for youtube. I want to submit this video for revenue. First, is this legal? Second, youtube requires written permission to use songs, and provides a comment box for proof of permission. What do I put in this box to prove It's ok for me to make ad revenue from my video?

    Yes, you can use GarageBand loops for commercial purposes. Here's the Apple Doc:
    http://support.apple.com/kb/HT2931
    (Basically the only thing it excludes is to re-distribute the loops as loops.)
    I don't know about the YouTube form, maybe you just fill in "Apple Loops", they certainly have come across this before.

  • HTML Comments in a JSP Document

    I am writing a JSP Document that has a number of comments. Some I want to be server-side such as version history and some I want to be client-side.
    Using a JSP page this is easily achieved using JSP comments <%-- JSP comment for server-side --%> and HTML Comments<!-- HTML comment client-side -->.
    Using XML syntax a number of things are apparent:
    1. There is no XML equivalent of a JSP comment (this has been well doc'd for a long time).
    2. In the Java EE tutorials the recommended alternative to a JSP coomment is a HTML comment.
    3. Using HTML comments in a JSP document the web container omits these in the page output - and so they are server-side only just like a JSP comment.
    Code Snippet:
    <template xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" version="1.2">
    <!-- this comment will not appear in the generated source on the client browser -->
    </template>
    <!-- JSP fragment for no caching policy -->
    So, my question is how do I generate a client-side comment in a JSP Document?
    Thanks
    Edited by: DJT on Mar 3, 2008 4:28 AM
    Edited by: DJT on Mar 3, 2008 4:30 AM

    I found this ....
    http://www.javaworld.com/javaworld/jw-07-2003/jw-0725-morejsp.html
    One significant disadvantage of JSP documents is that no XML-compliant version of JSP comments exists. A JSP document developer can use client-side (HTML-/XML-style) comments or embed Java comments in scriptlets, but there is no JSP document equivalent to <%-- -->. This is a disadvantage because the other two commenting styles JSP documents can use have their own drawbacks. You can see the client-side comments in the rendered page using the browser's View Source option. The Java comments in scriptlets require placing Java code directly in the JSP document.
    So try to embed the HTML comment inside scriptlet tags...
    <%
    <!-- HTML comment here -->
    %>

  • Combo box in jsp : implemented by struts tiles

    Hi,
    I have few problems with JSP...
    we have devided the body part in the tiles into two parts
    initially..................
    body1: jsp with combo box
    body2: a blank jsp
    if the user selects an option from the combo box..in onchange function ..iam getting the value of the selected option..and iam doing form.action="action selected by user" ... so that it will go the struts-config then inturn will call the action then by forwarding success..will go to the struts-config file again ..then by have name="seccess".. it will call path="somedefinition"....this definition is defined in the tiles-definition file...
    where again...extending some standard definition by overriding ..
    body1:jsp with combo box
    body2:jsp related to the selected option..in the combo box
    second time.. in body1: again we r calling original jsp na..it will show default select only na??
    so how to get the selected option and how i can give that option as selected when it is loading second time.
    Hope you got my problem...
    Please help me out...
    Waiting for ur kind reply
    Thanks & Regards
    Kranti Kiran Kumar Parisa
    Software Engineer [ e-Biz ]
    [email protected]

    It's not nice to highjack someone elses thread. I posted a reply http://forum.java.sun.com/thread.jsp?forum=45&thread=552915 (though I shouldn't have, shoulda done it here). if you have questions post them to this thread instead. Leave the other one to the OP's question.

Maybe you are looking for

  • Size of Drop down by key

    Hi, when i built value set for the first time for drop down by key, values( texts ) are displayed correctly, however when it is re-built based on other drop down instead of showing texts it is showing the key value in drop down, however if select dro

  • Uploading Opening Balances for GL, Vendor & Customer Accounts

    Hi Gurus, We are currently on the verge of going live for a client and we need to upload the opening balances. I am really not sure how to uploaded the opening balances... Can anyone guide me in process/procedure to be followed... Request you to prov

  • Java.io.NotSerializableException: com.citibank.lms.logger.Logger

    hi i have added a logger file to my application in the package com.citibank. after i run it..i get the following error. <Dec 14, 2004 11:13:38 PM IST> <Error> <HTTP Session> <BEA-100028> <Could not deserialize session data. java.io.NotSerializableExc

  • How to enable archive at table level

    Hello Everyone, We are having performance issue when timesheet transfer job runs since the no of records in CATSDB table is more(4,013,039 Entries). I would like to know how to enable archiving at table level.so that timesheet transfer job doesnt run

  • PDF Pages to Artboards error

    So, I searched the forums on opening a multi-page pdf with all the pages on art boards, found a link to download a script "PDF Pages to Artboards". Once i downloaded it on my desktop i placed it in my dock (Mac), then dragged the multi-page pdf file