小编Buc*_*cks的帖子

在GWT中添加外部jar

我有一个包含源代码的jar文件.

我在war/WEB-INF/lib/xxx.jar中插入jar添加到构建路径

但是当我运行该项目时,我收到了一个错误

编辑添加了gwt.xml

  <module rename-to='bookmanagementsystem'>

  <inherits name='com.google.gwt.user.User'/>
  <inherits name='com.google.gwt.user.theme.standard.Standard'/>
  <inherits name='com.example.Book'></inherits>
  <entry-point class='com.example.Book.client.Index'/>  

</module>
Run Code Online (Sandbox Code Playgroud)

编辑

我解决了 插件无法连接到127.0.0.1:9997的开发模式服务器

现在我遇到了问题

Loading inherited module 'com.example.book'
         [ERROR] Unable to find 'com/example/book.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
      [ERROR] Line 6: Unexpected exception while processing element 'inherits'
Run Code Online (Sandbox Code Playgroud)

gwt

8
推荐指数
1
解决办法
1万
查看次数

此服务器上没有上下文匹配

这是我的index.jsp代码:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Index JSP File</title>
</head>
<body>
<form action="/IndexController" method="get">
<table>
<tr><td>Enter Your Name :</td> <td><input type="text" name="name"/></td></tr>
<tr><td><input type="submit" value="Submit" /></td></tr>
</table>
</form>
</body>
</html>   
Run Code Online (Sandbox Code Playgroud)

这是我的IndexControllerServlet代码:

public class IndexController extends HttpServlet {

    protected void doProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String uname = request.getParameter("name");
        response.sendRedirect("welcome.jsp?name="+uname);
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doProcess(request, response);
    }


    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException …
Run Code Online (Sandbox Code Playgroud)

java jsp servlets

5
推荐指数
1
解决办法
2万
查看次数

外部硬件信息

是否有可能检查计算机中连接的外部硬件是什么

获取每个硬件的状态是在线还是离线

java android android-ndk usb-otg

5
推荐指数
1
解决办法
826
查看次数

标签 统计

java ×2

android ×1

android-ndk ×1

gwt ×1

jsp ×1

servlets ×1

usb-otg ×1