Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Struts support for netbeans

843838Dec 18 2005 — edited Dec 19 2005
Hi
Can some one please guide me through the steps for adding struts support to Netbeans 4.1.

Thanks

Comments

807588
Google found this.

[http://java.sun.com/developer/technicalArticles/javame/add_ons/]
807588
re,

I found this too but there you need the Java Web Server ... and I don't use this.
I got a Tomcat server who I want to connect to using webdav and Netbeans...

thanks anyway ...

Olek
807588
Olek wrote:
I got a Tomcat server who I want to connect to using webdav and Netbeans...
It would've been a lot easier if you said that in your first post.
thanks anyway ...
You're welcome.
807588
re again,

I found now the dialog "mobility deployment" at the tools menu.
There I setup the webdav instance but what next???
I don't be able to store a class via webdav at this server ...

Anyone know how to use this webdav instance?

regards,

Olek
807588
Hi Olek

I Have a working WebDAV setup with tomcat 6.0
the only problem is this only works on windows XP

anyway here is the code,
    <servlet>
    <servlet-name>webdav</servlet-name>
    <servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
    <init-param>
      <param-name>debug</param-name>
      <param-value>0</param-value>
    </init-param>
    <init-param>
      <param-name>listings</param-name>
      <param-value>true</param-value>
    </init-param>
    <!-- Uncomment this to enable read and write access -->

    <init-param>
      <param-name>readonly</param-name>
      <param-value>false</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <!-- The mapping for the webdav servlet -->
  <!-- Using /* as the mapping ensures that jasper, welcome files etc are
       over-ridden and all requests are processed by the webdav servlet.
       This also overcomes a number of issues with some webdav clients
       (including MS Webfolders) that do not respond correctly
 to the
       redirects (302) that result from using a mapping of / -->
  <servlet-mapping>
    <servlet-name>webdav</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>
put that in your web.xml file
and here is a basic example of how to use it in a jsp.
<%
String networkPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/";
%>
<body onload="document.getElementById('anchor').click();">
    <a id="anchor" href="<%= networkPath %>Temp/Test/file.doc" folder= "<%= networkPath/Temp/Test/">
           Open in Web Folder View
    </a>
</body>
Hope this helps you
807588
hi epoch,

Thanks for your help. I guess this work ...
The problem is, that I don't want to edit any file ...
I want to click on a file in the file tree of netbeans and then export this
via WebDav into the server... like its possible via eclipse ...
If its possible there it should be possible in netbeans too !?

thanks,

Olek
807588
ok I registerd at the netbeans forum ... hope they know a solution...

Olek
1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 16 2006
Added on Dec 18 2005
2 comments
115 views