ÎÒµÄJSPÖ»ÄÜͨ¹ýACTION·ÃÎÊ£¿
Ö±½Ó·ÃÎÊXXX.JSP±¨´í£º
org.apache.jasper.JasperException: The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]
ͨ¹ýACTIONµÄ <action name="regist" class="accountAction" method="regist">
<result name="regist">/pages/register.jsp </result>
</action>
ûÈκÎÎÊÌ⣡Õâ´ó¸ÅÊÇʲôÔÒò£¿class="accountAction"ÊÇͨ¹ýspringµÄ
<bean name="accountAction" class="com.jnlan.accmanage.action.AccountAction" scope="prototype">
<property name="passPortBO">
<ref bean="passPortBOImpl" />
</property>
</bean>
µÃµ½µÄ¡£ÅäÖ÷½ÃæÈ·ÐÅûʲôÒì³£¡£
ûÓÐÕÒµ½strutsת·¢Æ÷£¬ÄãûÓÐÌí¼Óstruts jar°ü°É,»¹ÓÐÔÚweb.xmlÒ²ÓÐÌí¼ÓdispatcherµÄÅäÖõÄ
¿Ï¶¨ÓÐÁË¡£²»È»SSI¿ò¼ÜÅܲ»ÆðÀ´
ÏÖÔÚÊÇ×öºÃµÄ×¢²á¡¢µÇ¼¶¼ÊÇOKµÄ¡£µ«JSP²»ÄÜÖ±½ÓÔÚµØÖ·ÀïÓÉXXX.JSP´ò¿ª- -!ÄѵÀÊÇ <%@ taglib uri="/struts-tags" prefix="s"%>ÕÒ²»µ½£¿ÎÒ°Ñstruts-default.xmlÄóöÀ´·ÅÔÚSRCĿ¼Ï¡£
Ŷ£¿
°ïż¿´ÏÂ
XML code
Code highlighting produced by Actipro Cod
Ïà¹ØÎÊ´ð£º
ÎÒÊÇÓÃSTRUTS £¬×öÁËÒ»¸öJSPÒ³Ãæ£¬Ìá½»ºóûÓдæÈëÊý¾Ý¿â¡£
JSP´úÂëÈçÏ£º
aa.jsp´úÂë
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ taglib uri=" ......
jsÖеķ½·¨£¬²»ÄÜÔÚjspÖе÷ÓÃÔõô½â¾ö£¿¼±£¡£¡!
²»Ã÷°×Òâ˼
ºÃºÃ¼ì²éÊDz»ÊÇ·¾¶µÄÎÊÌ⣬ºÜÓпÉÄÜ·¾¶²»¶Ôµ¼Öµ÷Óò»µ½
Ìùһϵ÷ÓõĴúÂë¿´¿´°¡~~
ÓÐûÓÐÕýÈ·ÒýÓÃjs£¿º¯ÊýÓÐûÓгõʼ»¯£¿....
jsp´úÂë±¾À´¾ ......
ÎҵijÌÐòÈçÏ£º
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv=&q ......
<html><head><title>[@title]</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<script language='javascript'>
function diyCheck ......