• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

java/JSP?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all, i am new in using JSP and java. I am using eclipse and tomcat in running my project.
I want to create a webpage (JSP&HTML?) which contain textbox and button. if I press the button, i want to process it using java/JSP? and then return it back to be displayed in the webpage.

THank you all in advance for helping.
[ May 13, 2007: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

Now that you've told us what you are wanting to accomplish, what do you need help with? You didn't really ask a question.

Thanks.
 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Nichole and Marco ,
First welcome to JavaRanch. beerchug:
MVC is the design pattern that you can follow in order to write the code for JSP. You can get tons of data for MVC on net. That pattern will clarify your doubts like where to write which code.
Regards
Samir
 
marco ries
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you all for the reply. My question is how to create the button for an action to retrieve input in textbox. Maybe i need a reference book or link also.
I am really rushed by the deadline and i am getting frustated.

Thank you

best regards,

marcories
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Marco,
I hope help you with this code.
  • Page 1 (send informations):

  • <form action="page2.jsp" method="get">
    <p>First Name: <input type="text" name="firstName"/></p>
    <p>Last Name: <input type="text" name="lastName"/></p>
    <p><input type="submit" value="Send!" /></p>
    </form>
  • On Page 2 (get and write de informations):

  • <h1>Your is: ${param.lastName}, ${param.firstName}</h1>

    In JSP you can retrieve the informations from an form using the "Expression language (EL)": ${param.xxx}

    See more about EL and JSP Standard Tag Library (JSTL):
    http://www-128.ibm.com/developerworks/java/library/j-jstl0211.html
    http://www-128.ibm.com/developerworks/java/library/j-jstl0318/

    Good Lucky
     
    marco ries
    Greenhorn
    Posts: 13
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    sorry to have ask this. I want to ask how to run and compile the code i've typed? (i want to create 2 pages which connected each other) if i use notepad, do i need extra web.xml? if i use eclipse, do i need the web-inf folder?

    by any chance, is there extra library if i want to combine jsp, java and NLP (natural language processing)?

    Thank you all, i am sorry to ask such a question, i am really a noob in using this. thank you.
     
    Sheriff
    Posts: 67597
    173
    Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    This thread had taken a tangent and followed some red herrings, that I was guilty of participating in. In fairness to the original poster, the tangents have been removed and we can now deal with the original topic. My apologies to the original poster for not keeping this on track better.
     
    Bear Bibeault
    Sheriff
    Posts: 67597
    173
    Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Originally posted by marco ries:
    sorry to have ask this. I want to ask how to run and compile the code i've typed? (i want to create 2 pages which connected each other) if i use notepad, do i need extra web.xml? if i use eclipse, do i need the web-inf folder?



    Yes, you will need a web.xml in WEB-INF (case counts!) in order to map your servlets.

    by any chance, is there extra library if i want to combine jsp, java and NLP (natural language processing)?



    What library are you using for NLP?
     
    You showed up just in time for the waffles! And this tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    reply
      Bookmark Topic Watch Topic
    • New Topic