Page 2 of 4 FirstFirst 1234 LastLast
Results 21 to 40 of 67
  1. #21
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

  2. #22
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Hei Lema,
    Can You please, brief what error you are getting, While running
    this application?

  3. #23
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    when click on button it gives an error on browser like:

    The requested resource (/example/${pageContext.request.contextPath}/LoginServlet.class) is not available.

  4. #24
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    no toher errors, anywhere

  5. #25
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Hei Lema,
    Just Change This from your login.jsp "${pageContext.request.contextPath}/LoginServlet.class" to The Url Pattern What you have given for this LoginServlet. Url Pattern Is The Logical Name For Your Servlet. It Will Be Available In Web.xml

  6. #26
    game is offline Member
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    0

    Default

    Quote Originally Posted by lema View Post
    when click on button it gives an error on browser like:

    The requested resource (/example/${pageContext.request.contextPath}/LoginServlet.class) is not available.
    I dont see any reason why this path should work. This should be LoginSerlvet.java. Check the mapping that you've done.

  7. #27
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    this is what i have in my web.xml

    <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <servlet-class>smd.server.LoginServlet</servlet-class>
    </servlet>

    <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/application</url-pattern>
    </servlet-mapping>

    i changed in jsp this:

    <..... action="/application/LoginServlet">

    error says

    The requested resource (/application/LoginServlet) is not available

  8. #28
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Lema,
    No Need Of /application/LoginServlet, just give /application.

  9. #29
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    Quote Originally Posted by game View Post
    I dont see any reason why this path should work. This should be LoginSerlvet.java. Check the mapping that you've done.
    the same happens

  10. #30
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    This Time What It Gives Errors?

  11. #31
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    javarishi, i did what u said last, but the same happens, mean error "The requested resource (/application) is not available." appears

  12. #32
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Location
    Jaipur(India)
    Posts
    318
    Rep Power
    7

    Default

    lema,

    try to use this :

    action=yourapp/servlet/ServletName'> // ServletName.class

  13. #33
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Location
    Jaipur(India)
    Posts
    318
    Rep Power
    7

    Default

    give this only

    <..... action="application/LoginServlet">

  14. #34
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Hei Lema,
    Try Like This,

    "application"

    That is without a back slash

  15. #35
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    for <..... action="application/LoginServlet">
    The requested resource (smd/application/LoginServlet.java) is not available.

  16. #36
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Hei Lema try with "application"

  17. #37
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    this is what i get on log when trying the variant from 36thpost (i'm using SmsDeliveryServiceImpl instead of LoginServlet.. )

    2008-04-09 17:31:13,267 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sms-delivery]] Exception while dispatching incoming RPC call
    javax.servlet.ServletException: Content-Type must be 'text/plain' with 'charset=utf-8' (or unspecified charset)
    at com.google.gwt.user.server.rpc.RemoteServiceServle t.readPayloadAsUtf8(RemoteServiceServlet.java:119)
    at com.google.gwt.user.server.rpc.RemoteServiceServle t.doPost(RemoteServiceServlet.java:178)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread .run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:619)

  18. #38
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    and "The page cannot be displayed" on the browser

  19. #39
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    i think there is smth wrong in what i wrote there in 19th post.. isn there

  20. #40
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    can it be cause of this

    public class LoginServlet extends RemoteServiceServlet
    implements LoginService
    {

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. get data from servlet to html
    By lema in forum Java Servlet
    Replies: 7
    Last Post: 05-22-2008, 04:00 PM
  2. Replies: 0
    Last Post: 04-04-2008, 09:36 AM
  3. Getting HTML form values in Servlet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-17-2007, 08:13 PM
  4. How to retrieve data from servlet
    By valery in forum Java Servlet
    Replies: 1
    Last Post: 08-06-2007, 08:25 PM
  5. how to upload a file along with html form data
    By pranith in forum Java Servlet
    Replies: 3
    Last Post: 07-30-2007, 02:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •