Developing JSP pages using Eclipse 3.6

i want to build a web application using JSP pages and oracle 11i databse, so i install and configure eclipse 3.2.2 and i installed the plugin to support creating a dynamic web project and i have installed jboss 6 to be the server.
so on the eclipse i clikc new "dynamic web project" , then inside this new project i create a new JSP pages , then i write a simple code inside the jsp and i run the project using jboss and every thing went smootly.
but let say now that i want to develop a more complicated pages to add buttons , to have tabs on my page.
1. so my question is does eclipse provide a visual develpment tools ot plug-in for developing JSP?
2. where i can find some good tutorilas regarding developing JSP using eclipse 3.2.2
Thanks
Edited by: 812643 on 20-Nov-2010 17:42

Confusing isn't it? You can post questions here for specific problems you need to solve and usually get an answer (eventually). However, asking for which technologies are better will probably only provide you with biased opinions. There are many alternatives, each providing its own trade offs. I suggest searching google for articles from respected sources such as 'theserverside' rather than depend on individuals. Also, limit your search to articles that are no older than about 1 year. Lastly, try to stick with technologies that are used by the bulk of the developers and are considered almost an industry standard. No point learning some good yet obscure technology.
As far as not considering a career as a developer, I suggest you stick to it no matter what. Anything you want to be good at takes years of practice and study
(http://365pwords.wordpress.com/2009/01/25/practice-practice-practice-the-theory-of-10000-hours).
No one has a 'knack' or is born good at it (even if they claim to be), and everyone experiences frustration (20 years later, I'm still frustrated!). You advance by making countless mistakes, and refactoring over and over again. Ignore anyone who discourages you no matter what.
I think your quest should be limited to what you should learn when just starting out and not what is the best technologies for experienced users. Personally, I think learning JSP/Servlets is foundation that you should know well before considering alternatives. Also, many alternatives are based on extending JSPs and therefore you should know them well. I've always used JSP and not alternatives, so I can't comment further on that topic.
If your just starting out in web design, here are my recommendations (in roughly this order):
java -book (search amazon.com for books and reviews of what others have said in them).
practice compiling java classes from the book on the dos command line and using a text editor before moving on to
an IDE.
Eclipse IDE - just an on-line tutorial may be ok. Learn to compile code, run it, debug it.
JSP - book
Servlets - book
JUnit - just an on-line tutorial may be ok
JSTL - just an on-line tutorial may be ok (use JSTL with JSP, not scriptlets)
XHTML - just an on-line tutorial may be ok
Javascript - book
CSS - on line tutorial may be ok
Tomcat - just an on-line tutorial may be ok. You can move onto JBoss, etc later.
JDBC - book
A free database such as Oracle Lite or MySql installed. Learn how to create tables.
MVC design - read up on separation of concerns on a design (presentation,control,business, and database layer).
SQL - book
JQuery - book
Hibernate -book
Spring framework - book (only after creating an MVC web application with a single servlet as the control layer)
AJax

Similar Messages

  • Unable get complete filepath from jsp page using request.getParameter()

    Hey all,
    i am actually trying to get the selected file path value using request.getParameter into the servlet where i will read the (csv or txt) file but i dont get the full path but only the file name(test.txt) not the complete path(C:\\Temp\\test.txt) i selected in JSP page using browse file.
    Output :
    FILE NAME : TEST
    FILE PATH : test.txt
    Error : java.io.FileNotFoundException: test.txt (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileReader.<init>(FileReader.java:55)
    at com.test.TestServlet.processRequest(TestServlet.java:39)
    at com.test.TestServlet.doPost(TestServlet.java:75)
    JSP CODE:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>DEMO SERVLET</title>
    </script>
    </head>
    <body>
    <h2>Hello World!</h2>
    <form name="myform" action="TestServlet" method="POST"
    FILE NAME : <input type="text" name="filename" value="" size="25" /><br><br>
    FILE SELECT : <input type="file" name="myfile" value="" width="25" /><br><br>
    <input type="submit" value="Submit" name="submit" />
    </form>
    </body>
    </html>
    Servlet Code :
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException, FileNotFoundException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try {
    String filename = request.getParameter("filename");
    out.println(filename);
    String filepath = request.getParameter("myfile");
    out.println(filepath);
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet TestServlet</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("<h1>Servlet TestServlet at " + request.getContextPath() + "</h1>");
    if (filepath != null) {
    File f = new File(filepath);
    BufferedReader br = new BufferedReader(new FileReader(f));
    String strLine;
    String[] tokens;
    while ((strLine = br.readLine()) != null) {
    tokens = strLine.split(",");
    for (int i = 0; i < tokens.length; i++) {
    out.println("<h1>Servlet TestServlet at " + tokens[i] + "</h1>");
    out.println("----------------");
    out.println("</body>");
    out.println("</html>");
    } finally {
    out.close();
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    Needed Output :
    FILE NAME : TEST
    FILE PATH : C:\\Temp\\test.txt
    Any suggestions Plz??

    As the [HTML specification|http://www.w3.org/TR/html401/interact/forms.html] states, you should be setting the enctype to multipart/form-data to be able to upload files to the server. In the server side, you need to process the multipart/form-data binary stream by parsing the HttpServletRequest#getInputStream(). It is a lot of work to get it to work flawlessly. There are 3rd party API's around which can do that for you, such as [Apache Commons FileUpload|http://commons.apache.org/fileupload] (carefully read the User Guide how to use it).
    You can also consider to use a Filter which makes use of the FileUpload API to preprocess the request so that you can continue writing the servlet code as usual. Here is an example: [http://balusc.blogspot.com/2007/11/multipartfilter.html].

  • Insert data into table from JSP page using Entity Beans(EJB 3.0)

    I want to insert data into a database table from JSP page using Entity Beans(EJB 3.0).
    1. I have a table 'FRIENDS', (in Oracle 10g database).
    2. It has two columns, 'NAME' and 'CITY'. Both have datatype strings(varchar2).
    3. Now from a JSP page, having two textfields, 'NAME' and 'CITY', I want to insert data into table 'FRIENDS'.
    4. In between JSP and database is a Entity Bean(EJB 3.0) and a stateless session bean.
    5. I am using JDev as editor.
    Please provide me code ASAP or link with similar example.
    Thank you.
    Anurag

    Hi,
    I am also trying that scenario. So u can
    Post the jsp form data to a Servlet which will act as a Controller.
    In the servlet invoke the business method.
    Similar kind of app is in www.roseindia.net
    Hope this would help u.
    Meanwhile if u get any optimal solution, pls post it.
    Thanks,
    Happy Java Coding.

  • Can we create a pivot table of Excel in a JSP page using POI

    Hello,
    I want to know whether we can create a pivot table of excel sheet in a jsp page using POI package from apache.
    thank you.

    Hi Alex,
    Many thanks for replying.
    I followed the link, but unable to get correct output.. I have shared the template earlier. I can share the template once again.
    It would be grateful if you give me share the working template with table of content.

  • Help needed to create a master-detail JSP page using OAF.

    I like to create a master-detail JSP page using OAF. If any help or guide will be appreciate.
    - Kausik

    A Master Detail Page is a basically a game between two VOs(Master and Detail mostly connected through a View Link). You can also have a look at the View Link section in the Dev guide. Page Layouts is one thing which you can take a call yourself.
    Regards
    Sumit

  • How to do transactions in jsp pages using Java & MySQL ?

    Hi,
    I'm a newbie..
    I'd like to know "How to do transactions in jsp pages using Java & MySQL ?"
    Platform: Windows XP, Apache Tomcat 5.5, MySQL 5, Java bean without EJB
    what are the the different types of transactions? Differences between them?Pls provide examples?
    Which among them is the best method to implement a transaction?
    Pls help me...
    thnx in advance...

    http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html

  • Developing SIP Servlet using Eclipse

    Dear all,
    In the BEA documentation "developing SIP Servlet using Eclipse", it says:
    WebLogic SIP Server 3.0
    JDK 1.4.2
    Ant (installed with WebLogic SIP Server 3.0)
    Eclipse version 3.1
    CVS client and server (required only for version control)
    I want to kown it should be JDK 1.4.2 but not 1.5.0?
    And how to set Ant which installed with Weblogic SIP Server in Eclipse? Because I checked that Eclipse use the Ant by defaut.
    I really have problem with setting up Eclipse for developping SIP Servlet, Thanks for your help!
    li

    Dear all,
    I have resolved it.
    The path is not correct in the ant build file.
    Thanks

  • Problem with displaying BLOB images on JSP page using a servlet

    hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that servlet, that is http://localhost:8080/ImageServlet. It doesn't work when i try to use that servlet to display my image on my JSP page (my JSP page displays only a broken-image icon ) I tried several coding approaches with my servlet (used both Blob and BLOB objects), and they work just fine as long as i display images explicitly using only the servlet.
    Here's what i use : ORACLE 10g XE , Eclipse 3.1.2, Tomcat 5.5.16 , JDK 1.5
    here is one of my image servlet's working versions (the essential part of it) :
                   BLOB blob=null;
              rset=st.executeQuery("SELECT * FROM IMAGES WHERE ID=1");
              while (rset.next())
                   blob=((OracleResultSet)rset).getBLOB(2);
              response.reset();
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition","filename=42.jpeg");
                    ServletOutputStream ostr=response.getOutputStream();
                   InputStream istr=blob.getBinaryStream(1L);
                    int size=blob.getBufferSize();
              int len=-1;
                    byte[] buff = new byte[size];
                         while ((len=istr.read( buff ))!=-1 ) {
                   ostr.write(buff,0,len);
             response.flushBuffer();
             ostr.close(); and my JSP page code :
    <img src="/ImageServlet" border="0"  > If you could just tell me what i'm doing wrong here , or if you could show me your own solutions to that problem , i would be very greatful ,cos i'm realy stuck here , and i'm rather pressed for time too. Hope someone can help.

    I turns out that it wasn't that big of a problem after all. All i had to do was to take the above code and place it into another JSP page instead of into a servlet like i did before. Then i just used that page as a source for my IMG tag in my first JSP. It works perfectly well. Why this doesn't work for servlets i still don't know, but it's not a problem form me anymore . Ofcourse if someone knows the answer , go ahead and write. I would still appriceatte it.
    here's the magic tag : <img src="ImageJSP.jsp" border="0"  > enjoy : )

  • Problem launching a jsp page with eclipse and tomcat

    Hi,
    I have just started using eclipse and tomcat for creating dynamic web pages. I tried to launch a jsp page after starting the tomcat server with the URL: http://locahost:8080/HelloWorld/, an error page was displayed as below:
    HTTP Status 404 -/
    type Status report
    message /_
    description The requested resource (-) is not available
    Apache Tomcat/5.5.17
    I didn't get any error at the console and when i just typed http://localhost, a pop up menu saying that the connection was refused when attempting to contact localhost.
    I'm not sure what is the problem here. Could it be the permssion to the localhost is not granted by the system as the eclipse IDE is running using linux?
    Hope someone can help.
    Thanks.

    http://www-128.ibm.com/developerworks/library/os-ectom/

  • How to embed a .swf file to my jsp page in eclipse

    I had a swf file which i want to include in my jsp page.
    To embed it i m using this code
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
    WIDTH="550" HEIGHT="400" id="Main">
    <PARAM NAME=movie VALUE="Main.swf">
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=bgcolor VALUE=#FFFFFF>
    <EMBED src="images/Main.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400"
    NAME="Main" ALIGN="" TYPE="application/x-shockwave-flash"
    PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
    </EMBED>
    </OBJECT>
    but its not working i had also checked the path of the swf.
    I am using eclipse 3.1
    Thanks,
    Leozeo
    Edited by: leozeo on Mar 27, 2008 4:22 AM

    Hi,
    Did you try Object-> insert HTML, see if that helps

  • Urgent: Unable to run JSP pages(using JRun Custom Tags) in Weblogic 5.1

    Hi,
    I am using JRun Custom tags to bulid JSP pages.
    Could not run the jsp page on Weblogic 5.1.
    I could run the same on JRun Server but not on Weblogic?.
    Had placed JRuntags.jar in the web_inf directory.
    What/where i need to update in properties file?.
    Please reply..
    Best Wishes.
    Satish k.Yalamaddi.

    javax.servlet.ServletException: com/sun/tools/javac/Main (Unsupported major.minor version 49.0)
    This is your problem either your tomcat or eclipse is pointing to a wrong jre
    here the problem is you are trying to run a code that was compiled using j2sdk1.5 in j2sdk1.4

  • How to Develop Static page using JSF/Creator

    Hi,
    I am a newbie trying to understand how one develops static pages in JSF. I fear I am going to require a hybrid development environment; that is, I will need two IDE's. For example, Dreamweaver AND Creator.
    I'd like to just use one as it is more convenient, and the static pages will be configured as necessary as fully integrated pages. But I'm not sure how to use JSF/Creator to develop "plain vanilla" HTML/JSP pages.
    I appreciate any feedback and "education". :-)
    Sam

    I dont use it much, but im pretty sure there is a tabbed pane allowing you to swith between a HTML/JSF code view and a visual view, a little like dreamweaver. I currently hand code my JSF pages in a standard IDE, its not too tricky once you understand the tags, and it gives you flexible control which I like. Maybe this approach will work for you

  • Posting huge data on to JSP page using JSTL tags

    Hi,
    I have one application where I have to post huge data (approximately 2000 rows of data) into JSP page. I am using JSTL tags and running on Tomcat 5.
    It is taking almost 20 to 25 seconds to load the entire page.
    Is it the optimal time to load or it could be improved?
    Please let me know.
    Thanks,
    --Subbu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Evnafets,
    Thank you for the response.
    Here are the tasks I am doing to display the data on JSP.
    0. We are running on Tomcat 5 and the memory size is 1024MB (1GB).
    1. Getting the data - I am not performing any database queries. The data is stored in the static cache memory. So the server side response is so quick - less than a milli second.
    2. Using Java beans to pass data to the presentation layer (JSP).
    3. 10 'if' conditions and 2 'for' loops and 2 'choose' statements are being used in the JSP page while displaying the data.
    4. Along with the above, there are 4 javascript files are being used.
    5. The jsp file size after rendering the data, is aprox. 160 kb
    Hope this information helps you to understand the problem.
    Thanks,
    --Subbu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Render information into a jsp page using netui tags

    Hi,
    Using netui tag in JSP, how can I display data that is stored in a array list or collection object? For example, the collection object has a list of href links. What is the appropriate netui tag that I can use to display the content in the jsp page?
    Any suggestions on this?
    Thanks,
    Latha

    look at the netui:data repeater tags.

  • Cant find bean class from jsp page using Tomcat 4

    Hi
    I have searched numerpus forums and seen many posts from people who seem to have the same problem however none of the solutions seem to work for me.
    I have a jsp page which is trying to call a bean method however I get an error
    saying that the class for the bean cannot be found. I have :
    1. put the class in a package called kolaBean under
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\begjsp-ch01\WEB-INF\classes\kolaPackage
    2. included the package statement in the java file for the bean
    3. included an empty constructor in the java file for the bean
    4. I have declared the above constructor as public (is this necessary?)
    5. used the full package name:
    kolaPackage.kolaBean bakedBean = new kolaPackage.kolaBean();
    6. imported import java.beans.*; (is this necessary ?)
    7. still got the same error...
    Any pointers really really appreciated
    Thanks
    Kola

    in reply to David Rons email:
    Is this a fresh install of tomcat? If so, it could be a configuration
    problem.Yes it is
    Is the class public in the package (I forget that all the time)?Yes it is. I have also declared the constructor to be public is this
    necessary?
    What's the error message?here is the error message:
    An error occurred between lines: 11 and 14 in the jsp file:
    /begjsp-ch01/kolaBean.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat
    4.0\work\localhost\_\begjsp-ch01\kolaBean$jsp.java:59: Class
    kolaPackage.kolaBean not found.
         kolaPackage.kolaBean bakedBean = new
    kolaPackage.kolaBean();
         ^
    2 errors
    Thanks in advance
    Kola

Maybe you are looking for

  • Application works no WTK but not on phone

    I created a very simple application, with a form, some textfields, nothing fancy, no images, no menus, etc. It works fine on the WTK simulator, and it installs on the phone, but when I execute it I get "Application Error" and it doesn't even open. I'

  • Kernel crash many times a day

    Hi, I have a iMac 14,2 model which crashes several times every day. Below is last crash report from the machine. Any clue from below what could be causing this? Anonymous UUID: E25BF6EE-F557-7B6E-B2A6-FA2AA0AE3C00 Wed Aug 13 09:18:42 2014 panic(cpu 1

  • Plugin not working correctly

    Hi, Im having trouble with the Gmail manager plugin. I recently upgraded to the latest version of firefox and after i did this for some reason the gmail manager plugin decided not to log into my account any more. It did say that it was compatible wit

  • InDesign CS6 crashes during PDF export

    I have been attempting to export a magazine design to PDF using the dialogue in InDesign CS6 (for Mac). The PDF gets to around 90% in the background tasks panel and crashes every time. I have removed preferences, reinstalled InDesign, upgraded to Sui

  • Hide column in Excel output?

    I have a .cfm file generating Excel output using CFContent. The client want to have certain data in a hidden column. I am already using XML to freeze the header and I tried hiding the column by using a <LeftColumnVisible> tag within the WorkSheetOpti