Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help! struts in Borland JBuilder8.0

 
Robert Strong
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using struts framework in Borland JBuilder8.0+BEA Weblogic7.0, but I met a problem, that it just didn't invoke the action class from my JSP, no response.
in JSP, I wrote:
href="/listCustomer.do"
in struts-config.xml:
<path = "/listCustomer.do" type="yinxiao.customerAction" ...
any help would be appreciated!!
 
Reid M. Pinchback
Ranch Hand
Posts: 775
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably you don't need the ".do" on the path attribute. Those are only provided to the web server to help it figure out how to map the incoming requests to a servlet for processing.
There are two kinds of places with path attributes: <action> and <forward> XML entities. For actions you don't put .do in the name, for forwards you need to. Confusing, but there is a reason. For the action, it is the value after the .do was stripped off by the container. For the forward, it is the literal value that will be embedded in a request, so the .do needs to be there for the container.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic