当前位置: 代码迷 >> Web前端 >> JBPM Designer 部署有关问题记录
  详细解决方案

JBPM Designer 部署有关问题记录

热度:1014   发布时间:2012-08-30 09:55:54.0
JBPM Designer 部署问题记录

在JBPM Designer 部署 的时候,直接在eclipse部署,启动server,然后通过http://localhost:8080/designer/在游览器上进行访问,这个好像在我本机上访问不成功的,同事研究了一下,最后需要输入http://localhost:8080/designer/editor?uuid=1234&profile=default? 才能正常访问

?

每次这样输入不是很方便,容易遗忘,我就想直接在web.xml中直接配,在游览器地址栏输入http://localhost:8080/designer/?就会直接跳转到?http://localhost:8080/designer/editor?uuid=1234&profile=default

?

具体如下:

?

web.xml?

 <welcome-file-list>
 	<welcome-file>index.jsp</welcome-file>
 </welcome-file-list>

?在webRoot下创建index.jsp?

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	System.out.println(path);
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	System.out.println(basePath);
	response.sendRedirect (basePath+"editor?uuid=1234&profile=default");
%>

?

?

  相关解决方案