想请问ACTION里得URL该怎漾设置比较好

afacd 2007-03-22
因我目前是利用table在做自动更新的动作,页面一进入预设是先进入一个方法,把全部资料抓出来放在ecside table显示,更新也是再看全部资料的
我目前action是这要设置的

action="${pageContext.request.contextPath}/xxxxDispatcher?xxx=com.aaa.bbb.ccc.test&state=test"

更新是都没有问题,但若是user 想看某一个县市里得资料,并监看那县市的资料
那user第一次看到的是查询出来的结果,页面一更新不就又回到了全部的?

想问大家该怎漾设action,就是我不理会url里所带的一些查询叁数,类似user=xxxx,县市=yyy
就是更新还是会照查询出来的结果,做更新动作,谢谢!

afacd 2007-03-22
@@刚用1.3的跑,发现在换页的时候会发生错误
原因应该是在我设定的action

若我设成action="${pageContext.request.contextPath}/test.jsp
换页就不会错误,若带有一些叁数,换个几页後页面就出错了
希望知道的人,告知小弟该怎漾设action,谢谢
fins 2007-03-22
发生js错误还是其他什么 错误??
afacd 2007-03-22
fins 写道
发生js错误还是其他什么 错误??


Error 500: 頁面發生錯誤 null
[2007/3/22   16:32:51:766 CST] 0000003b WebApp        E   SRVE0026E: [Servlet 錯誤]-[TrxDispatcher]: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: 頁面發生錯誤  null
	at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:600)
	at com.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:865)
	at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:152)
	at com.pic.ext.service.PresentationManager.executeRedirect(PresentationManager.java:149)
	at com.pic.common.servlet.TrxDispatcher.doTrx(TrxDispatcher.java:120)
	at com.pic.common.servlet.TrxDispatcher.doPost(TrxDispatcher.java:53)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
	at org.ecside.filter.ECSideFilter.doAjaxFilter(ECSideFilter.java:285)
	at org.ecside.filter.ECSideFilter.doFilter(ECSideFilter.java:215)
	at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
	at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:89)
	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1924)
	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:98)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
	at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)


我把ACTION设定成test.jsp,没有什麽叁数就不会换页错误了
但这样我就不能自动更新了,故想问大家该怎漾设置action,不会影响换页
还有就是能用新的查询条件继续更新,谢谢
fins 2007-03-22
这些错误信息没什么参考价值啊


如果是ecside 或者你写的代码的错误 应该能跟踪到 的
你再想想办法 弄些有用的错误信息来
afacd 2007-03-22
fins 写道
这些错误信息没什么参考价值啊


如果是ecside 或者你写的代码的错误 应该能跟踪到 的
你再想想办法 弄些有用的错误信息来


还有一段
[2007/3/22   21:56:29:984 CST] 0000002b ECSideFilter  E org.ecside.common.log.LogHandler errorLog java.lang.IllegalStateException: SRVE0209E: 已取得寫出器
	at com.ibm.ws.webcontainer.srt.SRTServletResponse.getOutputStream(SRTServletResponse.java:463)
	at org.ecside.filter.ECSideFilter.doAjaxFilter(ECSideFilter.java:295)
	at org.ecside.filter.ECSideFilter.doFilter(ECSideFilter.java:215)
	at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
	at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:89)
	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1924)
	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:98)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
	at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))


我再看看有没办法收集到更多错误讯息,真的没办法我就只能把换页拿掉
不让客户去换页了~= =
fins 2007-03-23
把你的jsp发上来吧
Global site tag (gtag.js) - Google Analytics