jsp转到servlet有没有不点击submit按钮的办法 我做一个程序,想从浏览器直接打开servelet的action文件,但是我不会直接打开,所以就做了个jsp文件点击按钮转到.action,其实这个jsp文件一点用都没有。我想问下有没有什么办法,直接打开action文件,或者不做按钮,直接从jsp跳到。action 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你直接在地址栏上打action不就得了吗 直接配servlet映射,就可以用啊 对呀 配置web.xml文件 里的 servlet 映像表 <%@ page language="java" pageEncoding="gbk"%><%@ taglib uri="/struts-tags" prefix="s" %><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <base href="<%=basePath%>"> <title>欢迎访问网站</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <meta http-equiv="refresh" content="1;url=befindex.action"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> 正在进入,请稍候...... </body></html> 求助,线程池的例子,如何监控线程? 调用JS RTX与NOVELL LDAP目录人员同步程序 struts问题 关于struts里action的配置问题 Tomcat不能自动更新jsp了。求助! 大家来讨论讨论,struts怎么不做一些和asp.net中的广告,分页控件相似的控件呢? 奇怪的struts问题,HELP ME!!! Hibernate中one-to-many的例子,出问题了(请进,贴出了错误和源程序) Tomcat4.0.5+j2sdk1.3如何配置servlet? el表达式调用自定义函数的问题。。。 关于ejb的简单问题
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>欢迎访问网站</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta http-equiv="refresh" content="1;url=befindex.action">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
正在进入,请稍候......
</body>
</html>