facebook

J2EE Specification Level

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #314884 Reply

    ssquire
    Member

    I’m writing an app that I would like to be cross browser compliant. Which J2EE Specification do you recommend?

    #314888

    Brian Fernandes
    Moderator

    ssquire,

    If you want a cross browser solution, the J2EE spec really would not matter that much (that is something you would consider for support across multiple servers). What would matter is what UI framework, what J2EE *framework* (Struts, JSF, etc) you wish to use and what sort of app do you want to develop?

    #314900

    ssquire
    Member

    The app is going to be heavy MySQL5. I’m new to this development so, to be honest with you, I’m just examining what the differences are between the various Frameworks. I’m reading about Struts now. Any suggestions or links are welcomed.

    #314905

    Brian Fernandes
    Moderator

    You can use JPA for your interface to the MySQL database – that will be your backend. You can choose either JPA 1 or JPA 2 – MyEclipse 9 supports both.

    Struts 2 is what I would suggest for the front end / presentation layer – Struts 1 is rather old; but still, both technologies supported by MyEclipse.

    #314922

    ssquire
    Member

    Thanks!

    #314926

    ssquire
    Member

    OK – I created a new Web Project (following the tutorial) creating a jsp file using the JSP advanced template. In the JSP Wizard, I select ‘Standard JSP using Struts 1.2/1.3’ for the ‘Template to use’, and when I click Finish the following lines are flagged as “cannot find the tag library descriptor for http://struts.apache.org/tags-bean”.
    <%@ taglib uri=”http://struts.apache.org/tags-bean&#8221; prefix=”bean” %>
    <%@ taglib uri=”http://struts.apache.org/tags-html&#8221; prefix=”html” %>
    <%@ taglib uri=”http://struts.apache.org/tags-logic&#8221; prefix=”logic” %>
    <%@ taglib uri=”http://struts.apache.org/tags-tiles&#8221; prefix=”tiles” %>
    and
    Unknow tag (html:html), (html:base).

    Am I missing something in the setup? (The full JSP file is pasted below)

    JSP File

    <%@ page language=”java” pageEncoding=”ISO-8859-1″%>

    <%@ taglib uri=”http://struts.apache.org/tags-bean&#8221; prefix=”bean” %>
    <%@ taglib uri=”http://struts.apache.org/tags-html&#8221; prefix=”html” %>
    <%@ taglib uri=”http://struts.apache.org/tags-logic&#8221; prefix=”logic” %>
    <%@ taglib uri=”http://struts.apache.org/tags-tiles&#8221; prefix=”tiles” %>

    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
    <html:html lang=”true”>
    <head>
    <html:base />

    <title>MyJsp.jsp</title>

    <meta http-equiv=”pragma” content=”no-cache”>
    <meta http-equiv=”cache-control” content=”no-cache”>
    <meta http-equiv=”expires” content=”0″>
    <meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
    <meta http-equiv=”description” content=”This is my page”>
    <!–
    <link rel=”stylesheet” type=”text/css” href=”styles.css”>
    –>

    </head>

    <body>
    This a struts page. <br>
    </body>
    </html:html>

    #314928

    Brian Fernandes
    Moderator

    You need to add Struts 1.x capabilities to the project for those items to be available. Do have a look at the Struts tutorial as well.

    #314931

    ssquire
    Member

    Thanks Brian. Just a quick question remaining (might be stupid) – Will Struts affect how it runs when it is eventually deployed?

    #314932

    ssquire
    Member

    Brian, it also seems to be running my index.jsp file and not my EHHC_JSP.jsp file, which is the file that was created when I right clicked on the webroot and selected JSP (Advanced Template). How do I run that file?

    #314937

    Brian Fernandes
    Moderator

    ssquire, yes – Struts is a big part of how the app will function on deployment. You need to edit the web.xml’s welcome-file element to change it from index to ehhc_jsp.jsp. I would recommend buying a book on Struts development (or Struts 2 development) – best way to learn as opposed to bits and snippets from online tutorials.

    #314954

    ssquire
    Member

    It should be delivered today. And thanks again for the help, I really appreciate it. I just need a jump start on Web Development.

    #314962

    Brian Fernandes
    Moderator

    No, problem – I hope you enjoy it!

    #314963

    Brian Fernandes
    Moderator

    No, problem – I hope you enjoy it!

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: J2EE Specification Level

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