Visualizzazione dei risultati da 1 a 7 su 7

Visualizzazione discussione

  1. #6
    yesss!!!! che belle che sono le pagine jsp!

    Grazie andbin credo di aver capito bene tutto il codice a parte questa riga qui che non so a cosa serva e cosa dica:

    codice:
    private static final long serialVersionUID = 1L;
    e queste:

    codice:
    <url-pattern>/potenze-di-due</url-pattern>
    codice:
    <form action="<c:url value='/potenze-di-due'/>" method="post">
    che non contengolo la varola view (come fa Eclipse a capire che potenze-di-due.jsp è dentro view?!?

    Inoltre il mio file xml è leggermente diverso:

    codice:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>EsempioJSP</display-name>
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
      <servlet>
        <description></description>
        <display-name>PotenzeDiDueServlet</display-name>
        <servlet-name>PotenzeDiDueServlet</servlet-name>
        <servlet-class>com.esempio.PotenzeDiDueServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>PotenzeDiDueServlet</servlet-name>
        <url-pattern>/PotenzeDiDueServlet</url-pattern>
        <url-pattern>/potenze-di-due</url-pattern>
      </servlet-mapping>
    </web-app>
    E' stato scritto interamente da Eclipse tranne questa riga aggiunta da me:

    <url-pattern>/potenze-di-due</url-pattern>
    Questi sono gli errori in Problems

    codice:
    Description    Resource    Path    Location    Type
    Element (center) is obsolete. Its use is discouraged in HTML5 documents.    ColorGetServlet.html    /SitoProvaLinux/WebContent    line 3    HTML Problem
    The serializable class MaxWD does not declare a static final serialVersionUID field of type long    MaxWD.java    /RegPay/src/contenitore    line 15    Java Problem
    No end tag (</center>).    ColorGetServlet.html    /SitoProvaLinux/WebContent    line 3    HTML Problem
    The serializable class InitInv does not declare a static final serialVersionUID field of type long    InitInv.java    /RegPay/src/contenitore    line 14    Java Problem
    The serializable class Annuity does not declare a static final serialVersionUID field of type long    Annuity.java    /RegPay/src/contenitore    line 17    Java Problem
    No end tag (</center>).    PostParameters.html    /SitoProvaLinux/WebContent    line 3    HTML Problem
    Undefined attribute value (textbox).    servletfinanziarie.html    /ServletFinanziarie/WebContent    line 7    HTML Problem
    Element (center) is obsolete. Its use is discouraged in HTML5 documents.    PostParameters.html    /SitoProvaLinux/WebContent    line 3    HTML Problem
    No end tag (</B>).    PostParameters.html    /SitoProvaLinux/WebContent    line 9    HTML Problem
    No end tag (</form>).    PostParameters.html    /SitoProvaLinux/WebContent    line 4    HTML Problem
    The serializable class ColorGetServlet does not declare a static final serialVersionUID field of type long    ColorGetServlet.java    /SitoProvaLinux/src/contenitore    line 7    Java Problem
    Undefined attribute value (textbox).    servletfinanziarie.html    /ServletFinanziarie/WebContent    line 16    HTML Problem
    No end tag (</B>).    PostParameters.html    /SitoProvaLinux/WebContent    line 13    HTML Problem
    Undefined attribute value (textbox).    PostParameters.html    /SitoProvaLinux/WebContent    line 10    HTML Problem
    Undefined attribute value (textbox).    servletfinanziarie.html    /ServletFinanziarie/WebContent    line 10    HTML Problem
    Undefined attribute value (textbox).    servletfinanziarie.html    /ServletFinanziarie/WebContent    line 13    HTML Problem
    Undefined attribute value (textbox).    PostParameters.html    /SitoProvaLinux/WebContent    line 14    HTML Problem
    The serializable class RegPayS does not declare a static final serialVersionUID field of type long    RegPayS.java    /ServletFinanziarie/src/servlet    line 9    Java Problem
    The serializable class AddCookieServlet does not declare a static final serialVersionUID field of type long    AddCookieServlet.java    /SitoProvaLinux/src/contenitore    line 7    Java Problem
    The serializable class FutVal does not declare a static final serialVersionUID field of type long    FutVal.java    /RegPay/src/contenitore    line 13    Java Problem
    Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized    PostParametersServlet.java    /SitoProvaLinux/src/contenitore    line 18    Java Problem
    The serializable class PostParametersServlet does not declare a static final serialVersionUID field of type long    PostParametersServlet.java    /SitoProvaLinux/src/contenitore    line 7    Java Problem
    The serializable class ProgressRenderer does not declare a static final serialVersionUID field of type long    ProgressRenderer.java    /DownloadManager/src/contenitore    line 8    Java Problem
    The project cannot be built until build path errors are resolved    SitoProva        Unknown    Java Problem
    Class is a raw type. References to generic type Class<T> should be parameterized    DownloadsTableModel.java    /DownloadManager/src/contenitore    line 16    Java Problem
    The serializable class DownloadsTableModel does not declare a static final serialVersionUID field of type long    DownloadsTableModel.java    /DownloadManager/src/contenitore    line 8    Java Problem
    The serializable class DownloadManager does not declare a static final serialVersionUID field of type long    DownloadManager.java    /DownloadManager/src/contenitore    line 11    Java Problem
    The serializable class RegPay does not declare a static final serialVersionUID field of type long    RegPay.java    /RegPay/src/contenitore    line 13    Java Problem
    The serializable class DateServlet does not declare a static final serialVersionUID field of type long    DateServlet.java    /SitoProvaLinux/src/contenitore    line 8    Java Problem
    Undefined attribute value (textbox).    AddCookieServlet.html    /SitoProvaLinux/WebContent    line 8    HTML Problem
    The serializable class ColorPostServlet does not declare a static final serialVersionUID field of type long    ColorPostServlet.java    /SitoProvaLinux/src/contenitore    line 7    Java Problem
    No end tag (</center>).    AddCookieServlet.html    /SitoProvaLinux/WebContent    line 3    HTML Problem
    Element (center) is obsolete. Its use is discouraged in HTML5 documents.    AddCookieServlet.html    /SitoProvaLinux/WebContent    line 3    HTML Problem
    Undefined attribute value (textbox).    PostParameters.html    /SitoProva/WebContent    line 15    HTML Problem
    No end tag (</B>).    PostParameters.html    /SitoProva/WebContent    line 14    HTML Problem
    Undefined attribute value (textbox).    PostParameters.html    /SitoProva/WebContent    line 19    HTML Problem
    No end tag (</B>).    PostParameters.html    /SitoProva/WebContent    line 18    HTML Problem
    Element (center) is obsolete. Its use is discouraged in HTML5 documents.    PostParameters.html    /SitoProva/WebContent    line 8    HTML Problem
    No end tag (</center>).    ColorPostServlet.html    /SitoProvaLinux/WebContent    line 3    HTML Problem
    Element (center) is obsolete. Its use is discouraged in HTML5 documents.    ColorPostServlet.html    /SitoProvaLinux/WebContent    line 3    HTML Problem
    Unbound classpath container: 'JRE System Library [jre7]' in project 'SitoProva'    SitoProva        Build path    Build Path Problem
    No end tag (</form>).    PostParameters.html    /SitoProva/WebContent    line 9    HTML Problem
    The serializable class GetCookiesServlet does not declare a static final serialVersionUID field of type long    GetCookiesServlet.java    /SitoProvaLinux/src/contenitore    line 7    Java Problem
    No end tag (</center>).    PostParameters.html    /SitoProva/WebContent    line 8    HTML Problem
    Questo invece quello che vedo dopo la renderizzazione:

    HTTP Status 404 -

    type Status report

    message

    description The requested resource is not available.

    Apache Tomcat/6.0.37
    ho anche provato ad aggiungere views al codice ma nulla...

    P.S.: Come faccio su Eclipse ad andare a modificare quel valore di tomcat (2.4 o 2.5) di cui parlavamo in precedenza?
    Ultima modifica di giannino1995; 02-01-2014 a 14:20

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.