This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help! struts in Borland JBuilder8.0" Watch "help! struts in Borland JBuilder8.0" New topic
Author

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:
href="/listCustomer.do"
in struts-config.xml:
<path = "/listCustomer.do" 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)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: help! struts in Borland JBuilder8.0
 
Similar Threads
General IDE Question. about Borand, Oracle Please Help if you can!
JBuilder8.0+WebLogic7.0
integrate Jbuilder8.0 with weblogic8.1
how to do ,update jbuilder8.0 struts1.02 to struts1.1
Struts tutorial for JBuilder 2006