facebook

Struts 2 project "struts-tags"

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #303429 Reply

    KennyB
    Member

    This message has not been recovered.

    #303443 Reply

    support-joy
    Member

    This message has not been recovered.

    #314729 Reply

    Jhixiaus
    Member

    This is not necessarily true. Simple go into your web.config and change the *.do to /*

    #314754 Reply

    support-swapna
    Moderator

    Jhixiaus,

    Thank you for posting your findings, they will surely help other users.
    Do let us know if you have any other issues.

    #314927 Reply

    Rob Silver
    Participant

    I have been unable to see the http://img694.imageshack.us/i/mestruts2supposed2.jpg
    dd

    instead I ended up with:
    http://img222.imageshack.us/i/mestrutsprojectjars.jpg

    I also had an issue with the J2EE level which supposedly must be 5.0 when
    my compiler compliance level was set at 1.6 or SE 6.0

    Any ideas what went wrong? There wasn’t even a struts2*.jar let alone
    the
    olgn*.jar ” alt=””>

    #314938 Reply

    support-swapna
    Moderator

    rss245b,

    Can you please answer some questions for me to understand the issue better and replicate it at my end?

    1) Copy paste your installation details here from MyEclipse > Installation Summary > Installation Details.

    2) Can you give me detailed steps on how you are creating the project? If you are following a tutorial, please share the link with me.

    3) In the Add Struts capabilities wizard are you choosing Struts 1.2 or Struts 1.3 ?

    4) The compliance level window is just a warning. You can hit yes to update the custom settings.
    Here is a thread which discusses the compliance levels which might help you :
    http://www.myeclipseide.com/PNphpBB2-printview-t-24116-start-0.html

    5) Are you encountering any errors while running your struts project? If yes what are they? Please paste them here for me.

    #314947 Reply

    Rob Silver
    Participant

    (Comment) Is there anyway to expand the text area for messages – Its awful
    Ok I believe I followed step #1:
    MyEclipse 8.6 (Profile)2.0.0.0000000005 com.poweredbypulse.profile-855123-rmb-807905
    Desktop Utilities for MyEclipse 8.6.0.me201011171824-7H7B08bK73534B5E4K5B com.genuitec.myeclipse.desktop.feature.group
    Eclipse CVS Client 1.1.101.R35x_v20100125-7E79FGD9kKF67BPDZ7PKCE1911 org.eclipse.cvs.feature.group
    Eclipse Java Development Tools 3.5.2.r352_v20100108-7r88FEwFI0WTuoBl0iaG0tyhfZH6 org.eclipse.jdt.feature.group
    Eclipse Platform 3.5.2.R35x_v20100210-0800-9hEiFzmFst-TiEn9hNYgDWg1XN8ulH_JvCNGB org.eclipse.platform.feature.group
    Eclipse Plug-in Development Environment 3.5.2.R35x_v20100119-7Z7_FA2FDX-aXQYWqYDBz-z0qufo org.eclipse.pde.feature.group
    Eclipse RCP 3.5.2.R35x_v20100119-9SA0FxwFnoCU5XxWItFdXXb27BA6 org.eclipse.rcp.feature.group
    Geronimo Support for MyEclipse 8.6.0.me201011171824-7P7F09Pz0B5856C8N7PDG com.genuitec.myeclipse.geronimo.feature.group
    Glassfish Support for MyEclipse 8.6.1.me201011171824-7e7Q1B1JJ9E9BKESEmQ_ com.genuitec.myeclipse.glassfish.feature.group
    ICEfaces AJAX and Java EE Tooling for MyEclipse 8.6.0.me201011171824-7m7U0Bpz-NBHBCRDdL_PK com.genuitec.myeclipse.icefaces.feature.feature.group
    Image Editor for MyEclipse 8.6.0.me201011171824-7H7A08bK7353474F6D76 com.genuitec.myeclipse.imageeditor.feature.group
    JavaServer Faces Support for MyEclipse 8.6.0.me201011171824-7P7H09Pz0B5856K9J7SBK com.genuitec.myeclipse.jsf.feature.group
    JBoss Support for MyEclipse 8.6.0.me201011171824-7u7d0CddRDKDEpKmF4Hg com.genuitec.myeclipse.jboss.feature.group
    Jetty Support for MyEclipse 8.6.0.me201011171824-7m7X0Bpz-NBHBCcIgJiPm com.genuitec.myeclipse.jetty.feature.group
    JOnAS Support for MyEclipse 8.6.0.me201011171824-7e7R0B1JJ9E9AUESCqJY com.genuitec.myeclipse.jonas.feature.group
    JRun Support for MyEclipse 8.6.0.me201011171824-7P7F09Pz0B5856C8N7PDG com.genuitec.myeclipse.jrun.feature.group
    Maven Support for MyEclipse 8.6.0.me201011171824-7H7e08mYx8OqZAUoscQcStz01_s com.genuitec.myeclipse.maven.feature.group
    MyEclipse Database Tools 8.6.0.me201011171824-7z877AExfyG8SNOpmX–1FweTaz- com.genuitec.myeclipse.database.feature.group
    MyEclipse Enterprise Workbench 8.6.1.me201011171824-7a7w3A8ryXaFin9z00Bz-9pC88LH com.genuitec.myeclipse.enterprise.workbench.feature.group
    MyEclipse Enterprise Workbench 8.6.0.20100611161242 pulse.com.genuitec.myeclipse.product85.ide.group
    MyEclipse IE JavaScript Debugger 8.6.0.me201011171824-7X7N0ADeF7B78TETCRKW com.genuitec.myeclipse.iedebugger.feature.group
    MyEclipse Reports 8.6.0.me201011171824-7z857JFCsD_9wluTy-z0DJJz0AjY com.genuitec.myeclipse.reports.feature.group
    MyEclipse UML 1 / 2 Visual Design Tools 8.6.0.me201011171824-9wBnBoG0iN2Xjebz0fG36Hx99Alz com.genuitec.myeclipse.uml2.feature.group
    MyEclipse Visual Swing Designer 8.6.0.me201011171824-7P7H09Pz0B5856L8J9HCG com.genuitec.myeclipse.matisse.feature.group
    MyEclipse VisualVM Profiler 8.6.1.me201011171824-7X7M2ADeF7B7ACBQCQFP com.genuitec.myeclipse.visualvm.feature.group
    MyEclipse VisualVM Profiler Server Support 8.6.0.me201011171824-7H7B08bK73534B5E4K5B com.genuitec.myeclipse.visualvm.server.feature.group
    Oracle Server Support for MyEclipse 8.6.0.me201011171824-7X7K0ADeF7B78HBRA_JO com.genuitec.myeclipse.oracle.feature.group
    Orion Support for MyEclipse 8.6.0.me201011171824-7P7F09Pz0B5856C8G8VFK com.genuitec.myeclipse.orion.feature.group
    Pulse Client Services with Drop-ins Support 3.0.3.v201007291200 com.genuitec.pulse2.client.targetcfg.dropins.feature.group
    Pulse Client Services with JDT Integration 3.0.3.v201007291200 com.genuitec.pulse2.client.targetcfg.feature.group
    Resin Support for MyEclipse 8.6.0.me201011171824-7e7P0B1JJ9E9AMEVDkPW com.genuitec.myeclipse.resin.feature.group
    Spring / Hibernate / JPA Support for MyEclipse 8.6.0.me201011171824-8D8L7HFAY09pwfyXeutR7ZjJPfPz com.genuitec.myeclipse.persistence.feature.group
    Struts Support for MyEclipse 8.6.0.me201011171824-7P7H19Pz0B5857E8N7U9E com.genuitec.myeclipse.struts.feature.group
    Sun App Server Support for MyEclipse 8.6.0.me201011171824-7m7V0Bpz-NBHBCVIYHsTb com.genuitec.myeclipse.sun.feature.group
    Tapestry Support for MyEclipse 8.6.0.me201011171824-7u7gA8EFyZHQHIjMrYee_ com.genuitec.myeclipse.tapestry.feature.group
    tc Server Support for MyEclipse 8.6.0.me201011171824-7P7H09Pz0B5856K9I6T9J com.genuitec.myeclipse.tcserver.feature.group
    Tomcat Support for MyEclipse 8.6.0.me201011171824-7e7R0B1JJ9E9AUGQEkRb com.genuitec.myeclipse.tomcat.feature.group
    Web Services Support for MyEclipse 8.6.0.me201011171824-7P7G8a9Pz0B5857C8G8NDJ com.genuitec.myeclipse.ws.feature.group
    WebLogic Support for MyEclipse 8.6.0.me201011171824-7u7d0CddRDKDEpKfGAJk com.genuitec.myeclipse.weblogic.feature.group
    WebSphere Support for MyEclipse 8.6.0.me201011171824-7m7V8_Bpz-NBHBDTHeFrQc com.genuitec.myeclipse.websphere.feature.group
    XFire Web Services Support for MyEclipse 8.6.0.me201011171824-7H7A08bK7353474F6D76 com.genuitec.myeclipse.xfire.feature.group

    Step #2:
    I have been using a .war example which appears to work fine on my Tomcat 6.0 server
    (comment)This message area is awful by the way – It does not even scroll properly when I type
    I got it from 2010 copyright book: Struts2 in action by Manning publishers and while the war file works fine on the server it failed towork in MyEclipse as a developmen environment
    I will send you a copy of the working .war file so you can understand my problem
    Ideally I could just import the war file and a wizard would build my project environment bu this does not appear to work either so

    I tried to build the project after placing the proper .jar files in the Webroot according to the .war file
    I am sending you a separate .war file which I have tested successfully on a Tomcat 6.0 server by jar xvf it into a mystruts2 wabapp folder via
    jar xvf *.war

    the war file does everything expected except I can not find any menu.action file. i wish I knew why
    how does a URL ernd Menu.action and there is no file Menu.action???
    Perhaps my struggle can help others

    #314958 Reply

    Rob Silver
    Participant

    Step #3:
    As I told you in the two image links:
    I will send you an email with the screen shots until I better understand how to imbed images in your forums
    Suffice it to say I followed the tutorial and selected radio box o-Struts 1.3 being the latest option in radio boxes
    then down at the bottom I clicked on the hyper link to view libraries
    off to the left was an option for for Project Capabilities as: Struts 2 and I selected that
    At the botom. The right screen portion of the Preference(Filtered) window showed Struts 2.1.8, Library Modules: Struts 2 Core Libraries
    and a list of appropriate .jar files showed below.
    After clicking on APPLY and OK buttons I got the project screen shots I included in my initial posting

    All seemed to go properly at this point I saw the .jar files I expected and then bam:
    I failed to see them in the project
    I will be sending you the exact sequence in image form to aid your understanding of what is happening here

    Step #4:
    I looked at the URL, but why would a modern Struts 2 Framework be based on Compliance 1.4? how does that effect the project wizard
    more importantly if at all. Why 1.4? or is that because Struts 1.x required 1.4 compliance and anything higher does not work and
    Struts x wizard is the only one we have to work with currently. It is a limitation though but is there a way not to have that limitation in the future?

    Step #5 From within the IDE: I have the following error when I try to run it
    Note the real problem is that there is no easy way to create Projects with the proper set of libraries with the wizard
    as I have to hand copy .jar files in. By the way is there another way to place .jar files into the …/WebRoot/WEB-INF/lib folder??
    Note the whole reason I am contacting you regarding this sample is I have no basis of developing Struts 2 Framework in MyEclipse Pro IDE
    currently. I realize I may have a file out of place but the biggest issue here is how a Struts 2 project is created by the wizard
    Where are those libraries I saw e.g struts2*.jar and ognl*.jar files. Again for clearity see my email with screenshots. Feel free to paste them or create a webinar etc.. from them

    Remember I copied in the Struts 2 libraries by hand to the …/WebRoot/WEB-INF/lib folder
    when I run:
    http://192.168.1.125:8080/Struts2HelloWorld/index.html

    HTTP Status 404 – /Struts2HelloWorld/Menu.action

    ——————————————————————————–

    type Status report

    message /Struts2HelloWorld/Menu.action

    description The requested resource (/Struts2HelloWorld/Menu.action) is not available.

    ——————
    Again the .war files runs fine on an outside Tomcat 6.0 server
    It does everything the book says it should
    Displays: its loading please wait if there is a wait
    shows a menu with HelloWorld link
    Shows a form asking for a Name
    Displays Hello <Name value>

    #314981 Reply

    support-swapna
    Moderator

    rss245b,

    I have attached the latest MyEclipse Struts 2 tutorial for your reference. It explains everything from creating a Struts 2 Project in MyEclipse, the project structure, the different wizards that are supported and XML/Graphical editors that are supported. This should help you get started with the MyEclipse Struts 2 tooling support.

    Secondly, in the HelloWorld sample that you have (downloaded from http://www.manning.com/dbrown/) , the “Menu” action is a default action defined under the root (/) namespace. Please have a look at the “ActionSupport Default” section here – http://struts.apache.org/2.0.14/docs/action-configuration.html.

    The tutorial is present under – MyEclipse Struts2 tutorial/quickstarts/struts2 folder.

    Hope this helps. Let us know if you need any further support.

    Attachments:
    You must be logged in to view attached files.
    #315004 Reply

    Rob Silver
    Participant

    I have made a lot of progress using the struts 2 sample Joy sent me/swana posted but
    the default JSP template is not set properly so the .jsp files generated did not match at all. Note I tried both custom and default compiler levels and the default JSP template still did not match that shown in the tutorial

    I presume it is set by editing a file although I do not know which one to edit
    I should also point out I originally installed 5.5.1 version of MyEcplipse version
    add/remove programs in windows 7 shows no 8.5 or 8.6 version although it clearly installed. I am thinking about re-installing maybe on a linux system to see if that does anything.

    Anyone have similar Default JSP template issues?

    #315014 Reply

    support-swapna
    Moderator

    rss245b,

    The JSP templates in the tutorial are edited.The extra information that gets generated as part of the JSP file, which we don’t need in our tutorial has been removed.

    You can choose any one method to install ME :

    1) Here are the steps to reinstalling using Pulse :
    https://beta.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=25976

    2) Here are the steps to install using the All-In-One installer :
    https://www.genuitec.com/forums/topic/installation-how-do-i-perform-a-clean-myeclipse-install/

    Let me know how this works for you.

    #315049 Reply

    Rob Silver
    Participant

    Swapna,
    Thank you very much for your answers to my questions. I still have more questions:

    Shouldn’t the default JSP file look more like he target file in the MyBlogStruts2Example sample? at least the first few lines perhaps??

    Also Is there a way to put in my own JSP templates?
    If so how would I do that exactly?

    #315087 Reply

    rss245b,
    It is not necessary that the default JSP file should look like the one in the MyBlogStruts2Example. You can use the sample project as a reference to write your application and make changes to the files according to your needs.
    At present you cannot add your customized templates. However, you can always use the default JSP templates as a starting point and edit them based on your needs.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: Struts 2 project "struts-tags"

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