facebook

Struts Editor custom ActionMapping class [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #208209 Reply

    sabujo2000
    Member

    My action uses another than standard Struts ActionMapping class. Actually is a class who extends ActionMapping. So, when I try to import my projects to ME 2.8.0 beta 1 the MyEclipse Struts Editor doesnt recognise the “className” attribute present on the action TAG.
    Is there a workaround to solve this problem? Maybe a patch or som XML file to edit….

    Thanks in advance,

    Clayton

    I send a sample code for you guys understand my problem. You can try do open it in the editor!

         <action path="/paramgeral" name="paramGeralForm" 
               type="com.powerlogic.ecompanyadm.controle.ParamGeralAction"
               className="com.powerlogic.jcompany.controle.PlcActionMapping"
               validate="false" parameter="evento" input="def.pagina.ancestral">
              <description id="paramDoc">
                 Ação para marcação dos parâmetros gerais para clientes
              </description>
            <set-property property="logicaPlc" value="umregistro#simples"></set-property>
            <set-property property="valueObject" value="com.powerlogic.ecompany.vo.ParamGeral"></set-property>
            <set-property property="tabFolder" value="S"></set-property>
            <!-- set-property property="urlAjuda" value="/doc/paramgeral/paramgeral_viewlet_swf.html"></set-property -->
            <forward name="mesmaPagina" path="def.pagina.ancestral"/>
            <forward name="edita" path="def.pagina.ancestral"/>
            <forward name="inicial" path="/inicial.do?evento=x&selected=3" redirect="true"/>
            <forward name="personalizaPele" path="/personalizaPele.do?evento=x&selected=1" redirect="true"/>
            <forward name="personalizaLayout" path="/personalizaLayout.do?evento=x&selected=2" redirect="true"/>
            <forward name="prefs" path="/inicial.do?evento=x&selected=3" redirect="true"/>
        </action>
    #208211 Reply

    Riyad Kalla
    Member

    Clayton,
    Please post your system information that we ask for in the posting guidelines (hit Post Reply, then hit Insert and answer the questions). Also please describe what error you are seeing or what problem specifically that you are having.

    #208212 Reply

    sabujo2000
    Member

    @support-rkalla wrote:

    Clayton,
    Please post your system information that we ask for in the posting guidelines (hit Post Reply, then hit Insert and answer the questions). Also please describe what error you are seeing or what problem specifically that you are having.

    Hi there!
    I´m sending more details about my system. I hope it helps. The problem is related when I try to open a struts-config.xml who has the className attribute under the action tag.
    The className attribute defines another class to act as mapping.

    Thank you again!

    Operating System: Microsoft Windows 2000 [Version 5.00.2195]
    Eclipse and build id: Version: 2.1.3 Build id: 200403101828
    – Was Eclipse freshly installed for MyEclipse? YES
    – Are any other external plugins installed? NO
    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*: 7 (seven)
    What MyEclipse version are you using? Version: 2.7.101 Build id: 200405181900-2.8-Beta1
    What JDK version are you using to run Eclipse?
    java version “1.4.1_02”
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
    Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)

    What JDK version are you using to launch your application server? (same as above)
    What steps did you take that resulted in the issue? (copy and pasted a action already defined in some of my struts-config.xml files to the new fresh struts-config.xml – added by “Add Webproject Capabilities”- and saved. I´ve closed de myEclipse Struts Editor and tried to open the file again. I´ve already tested and realized that className atribute (like example above) crashs the editor. The following message is presented: “Unable to create part: MyEclipse Struts Editor” and then “An error has occurred when activating this view”, and finally “An error has occurred when creating this editor”

    What application server are you using? Jboss 3.2.1

    #208213 Reply

    Scott Anderson
    Participant

    Clayton,

    Thank you for taking the time to report this problem. With the information and test case you’ve provided we were able to reproduce it and a fix will be included in 3.8 Beta 2. We apologize for the inconvenience, but at present the only work around is to open your struts file with our XML editor (rt-click > Open With… > MyEclipse XML Editor) instead of the struts editor.

    #209813 Reply

    Riyad Kalla
    Member

    Fixed in 3.8Beta2.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Struts Editor custom ActionMapping class [Closed]

You must be logged in to post in the forum log in