File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes help! struts in Borland JBuilder8.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help! struts in Borland JBuilder8.0" Watch "help! struts in Borland JBuilder8.0" New topic

help! struts in Borland JBuilder8.0

Robert Strong
Ranch Hand

Joined: Sep 10, 2002
Posts: 84
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:
in struts-config.xml:
<path = "/" type="yinxiao.customerAction" ...
any help would be appreciated!!
Reid M. Pinchback
Ranch Hand

Joined: Jan 25, 2002
Posts: 775
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.

Reid - SCJP2 (April 2002)
I agree. Here's the link:
subject: help! struts in Borland JBuilder8.0
jQuery in Action, 3rd edition