For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 12 replies, 2 voices, and was last updated 14 years, 6 months ago by
Brian Fernandes.
-
AuthorPosts
-
ssquireMemberI’m writing an app that I would like to be cross browser compliant. Which J2EE Specification do you recommend?
March 2, 2011 at 1:01 am #314888
Brian FernandesModeratorssquire,
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?
March 2, 2011 at 8:23 am #314900
ssquireMemberThe 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.
March 2, 2011 at 9:55 am #314905
Brian FernandesModeratorYou 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.
March 2, 2011 at 5:22 pm #314922
ssquireMemberThanks!
March 2, 2011 at 8:21 pm #314926
ssquireMemberOK – 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” prefix=”bean” %>
<%@ taglib uri=”http://struts.apache.org/tags-html” prefix=”html” %>
<%@ taglib uri=”http://struts.apache.org/tags-logic” prefix=”logic” %>
<%@ taglib uri=”http://struts.apache.org/tags-tiles” 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” prefix=”bean” %>
<%@ taglib uri=”http://struts.apache.org/tags-html” prefix=”html” %>
<%@ taglib uri=”http://struts.apache.org/tags-logic” prefix=”logic” %>
<%@ taglib uri=”http://struts.apache.org/tags-tiles” 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>March 2, 2011 at 8:36 pm #314928
Brian FernandesModeratorYou 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.
March 2, 2011 at 9:17 pm #314931
ssquireMemberThanks Brian. Just a quick question remaining (might be stupid) – Will Struts affect how it runs when it is eventually deployed?
March 2, 2011 at 9:44 pm #314932
ssquireMemberBrian, 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?
March 3, 2011 at 12:24 am #314937
Brian FernandesModeratorssquire, 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.
March 3, 2011 at 1:51 pm #314954
ssquireMemberIt should be delivered today. And thanks again for the help, I really appreciate it. I just need a jump start on Web Development.
March 3, 2011 at 3:56 pm #314962
Brian FernandesModeratorNo, problem – I hope you enjoy it!
March 3, 2011 at 3:56 pm #314963
Brian FernandesModeratorNo, problem – I hope you enjoy it!
-
AuthorPosts