返回信息流我建了个Dynamic Web Project,进行一下sitemesh的tutorial,整个项目run on server(Tomcat7),想用内置的浏览器看看menu.jsp,出现如图所示结果
这是一条镜像帖。来源:北邮人论坛 / java / #36543同步于 2014/11/21
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Java机器人发帖
sts Embedded browser not available
byrdezyp
2014/11/21镜像同步3 回复
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
sts跟eclipse应该是差不多的吧。在eclipse上面找到了一个browser支持方面的问题,内容如下:
Q: Which platforms support the SWT Browser, and which native renderers do they use?A: The SWT Browser is currently available on the platforms listed below. By default, Browser instances created with style SWT.NONE use the following native renderers: oWindows 2000 and newer (Internet Explorer 5.5 and newer)
oMac OS X 10.5 and newer (WebKit)
oLinux GTK (details)
oSolaris-x86 and Solaris 10 SPARC (details)
Browsers should typically be created with style SWT.NONE as this will attempt to use a native renderer that should not require additional software installation. However for clients with specific native browser requirements, the type of native renderer to use can be specified on a per-instance basis, see How do I explicity use WebKit as the Browser's underlying renderer? and How do I explicitly use Mozilla as the Browser's underlying renderer?.
Also note that as of Eclipse/SWT 3.7 it is possible to override the default native renderer that is used for SWT.NONE-style Browsers, see How do I specify the default type of native renderer that is used by the Browser?.
如果不行的话,去eclipse帮助页面看看吧,或者可以参考一下 关于linux下browser打开问题的报告?
个人来说,我是不太建议用自带的浏览器的。我刚才写servlet的时候,发现对于<error-page>404</error-page>这样的,无法显示到我指向的404错误页面,而是显示Tomcat自带的404页面,而我在FF上面打开就是可以打开我指向的error_404.html的。
【 在 byrdezyp 的大作中提到: 】
: 我建了个Dynamic Web Project,进行一下sitemesh的tutorial,整个项目run on server(Tomcat7),想用内置的浏览器看看menu.jsp,出现如图所示结果[upload=1][/upload]