1

here is my struts-config.xml

<action input="/jsp/admin/DocumentDetail.jsp" name="documentDetailForm" parameter="pageAction" path="/documentDetails" scope="request" type="com.company.product.web.admin.DocumentDetailsAction" validate="false">
      <set-property property="moduleCode" value="documentsAdmin"/>
      <forward name="saveDocDetails" path="/documentSave.do?pageAction=save"/>
      <forward name="openAddTagPage" path="/jsp/admin/DocumentTagList.jsp"/>
      <forward name="cancel" path="/documentList.do?pageAction=search"/>
      <forward name="success" path="/documentList.do?pageAction=search"/>
    </action>

Because this help generates the DocumentDetails.jsp, i am interested in editing the original file that help create the jsp. My guess is that the java file is com.company.product.web.admin.DocumentDetailsAction but i have trouble finding it in my workspace in Eclipse.

The DocumentDetails.jsp is

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<tr>
<td width="25%" class="label">&nbsp;&nbsp;<bean:message key="documentReqSign" /></td>
        <td>
            <html:checkbox property="requiredSign" /> 
                </td>
</tr>

Btw, this is my first time using Struts, thanks!

bouncingHippo
  • 5,940
  • 21
  • 67
  • 107

2 Answers2

0

Ctrl + Shift + R -> DocumentDetailsAction or Ctrl + Shift + O -> com.company.product.web.admin.DocumentDetailsAction doesn't work??

Pradeep Simha
  • 17,683
  • 18
  • 56
  • 107
0

look for : company/product/web/admin/documentDetailsAction.java in your project

So as you stated the file in question that is the right action, usually in struts all actions classes are grouped under one directory, you could try and use @pradeepsimha shortcuts or you could ctrl+h to search workspace for DocumentDetails then select the file in question.

Lucian Enache
  • 2,510
  • 5
  • 34
  • 59
  • yeah, i tried looking for `DocumentDetails.java` and `documentDetailsAction.java` and i can't find it..but at least its reassuring to know I'm on the right track – bouncingHippo Dec 07 '12 at 15:48
  • @bouncingHippo, if you can't find how does code even compile? is your code compiling successfully? – Pradeep Simha Dec 07 '12 at 15:51
  • 1
    maybe you are looking under the wrong path or maybe you have only the compiled classes and not the source code of the actions. – Lucian Enache Dec 07 '12 at 15:52
  • i realize i have to download my sources through maven as they are compiled but appear as a `jar` file in my workspace. – bouncingHippo Dec 07 '12 at 16:05
  • I'm not using Eclipse to develop and I rely on ECL downloader for this but I suppose it's possible to import the jar file as source otherwise just extract it with winrar and add the src folder to your project – Lucian Enache Dec 07 '12 at 16:10