Editing JSPs in eclipse

the editor that came with my version of eclipse (3.2.0) for JSP is crap. it finds errors where there are none. does anyone know of a good plugin for this ?

yeah the "not free" part is not cool, also it would
be bad to use a different configuration then the rest
of the team."Not free" appears to be IRO $50 p/a though. But yeh, keeping consistent with your team is important.

Similar Messages

  • JDeveloper editing JSP with Struts tags terribly, terribly slow!?

    I use JDeveloper 10.1.2 and I do not know the reason but it started to take 15min just to change/edit JSP containing Struts tags. RAM memory is 1GB and there is more than 0.5 GB available, but processor usage shows 100% allocated to JDeveloper!? As soon as I do even slight change in a JSP file JDeveloper starts some computations and I have no idea of what it is doing.
    What is JDeveloper computing? It seems it tries to produce some drop-down lists "helping" me to do the editing, add tags and instead I am spending days to just change one small JSP page!
    How can I stop and PREVENT JDeveloper doing ANY "help" during editing of ANY file?
    There must be an option to switch off whatever JDeveloper is doing?
    Many thanks,

    I did that but it is still very slow, it looks like Jdev is doing some intensive calculations whenever I click somewhere on JSP page with tags. Maybe this is related with my other question I posted before this one? Maybe JDev automatically searches for tag libraries it cannot find and copies them to /WEB-INF directory? (other IDEs used in same environment, like Eclipse and IntelliJ, and they do not have this problem)
    Some other strange things: struts-config.xml seems not integrated with CVS from JDev (other files like tiles-config.xml, web.xml etc. are integrated, I can right click and get CVS info on particular file, except struts-config.xml). When I want to check in/out struts-config.xml I have to do it with external tool like WinCVS etc., cannot do that from JDev!

  • The edit JSP page does not appear...

    Hi!
    I make a simple JSF application, I would like to show a DB table in a h:dataTable component and edit a given row after click, but the edit JSP page does not appear. I click the on link in the table, but the list is loaded again and not the edit page...:(
    (no exception in application server console)
    Please help me!
    my code:
    **************************************** listmydata.jsp***************************
                   <h:dataTable
                             value="#{myBean.myDataList}"
                             var="myDataItem"
                             binding="#{myBean.myDataTable}"
                   >
                        <h:column>
                             <f:facet name="header">
                                  <h:outputText value="Ajdi"/>
                             </f:facet>
                             <h:commandLink action="#{myBean.editMyData}">
                                  <h:outputText value="#{myDataItem.id}"/>
                             </h:commandLink>
                        </h:column>
    ********************************* MyBean.java *******************************
    package bean;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.html.HtmlDataTable;
    import javax.faces.context.FacesContext;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    import wrapper.MyData;
    public class MyBean {
         private List myDataList;
         private HtmlDataTable myDataTable;
         private MyData myDataItem;
         protected Connection Conn;
         // *********************** actions ***********************
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
         public String saveMyData() {
              try {
                   updateDataInDB();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              return "listmydata";
         // *********************** setter ***********************
         public void setMyDataList(List myDataList) {
              this.myDataList = myDataList;
         public void setMyDataTable(HtmlDataTable myDataTable) {
              this.myDataTable = myDataTable;
         public void setMyDataItem(MyData myDataItem) {
              this.myDataItem = myDataItem;
         // *********************** getter ***********************
         public List getMyDataList() {
              if (myDataList == null || FacesContext.getCurrentInstance().getRenderResponse()) {
                   loadMyDataList();
              return myDataList;
         public HtmlDataTable getMyDataTable() {
              return myDataTable;
         public MyData getMyDataItem() {
              return myDataItem;
         // *********************** others ***********************
         public void loadMyDataList() {
              try {
                   getDataFromDB();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
         void getDataFromDB() throws NamingException, SQLException {
              myDataList = new ArrayList();
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement("SELECT id, name, value FROM BEA_JSF_SAMPLE");
              PreStat.execute();
              java.sql.ResultSet Rs = PreStat.getResultSet();
              while(Rs.next()) {
                   MyData OneRecord = new MyData();
                   OneRecord.setId(Rs.getLong(1));
                   OneRecord.setName(Rs.getString(2));
                   OneRecord.setValue(Rs.getString(3));
                   myDataList.add(OneRecord);
         void updateDataInDB() throws SQLException, NamingException {
              String sql = new String("UPDATE BEA_JSF_SAMPLE SET name=?,value=? WHERE id=?");
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement(sql);
              PreStat.setString(1,myDataItem.getName());
              PreStat.setString(2,myDataItem.getValue());
              PreStat.setLong(3,myDataItem.getId().longValue());
              PreStat.execute();
              ownGetConnection().commit();
         Connection ownGetConnection() throws SQLException, NamingException {
              if (Conn == null) {
                   InitialContext IniCtx = new InitialContext();
                   DataSource Ds = (DataSource)IniCtx.lookup("JDBCConnectToLocalhost_CRS");
                   Conn = Ds.getConnection();
              return Conn;
    ******************************* editmydata.jsp *****************************
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
    <body>
    <f:view>
    <h:form>
         <h:panelGrid columns="2">
              <h:outputText value="Name"/>
              <h:inputText id="name" value="#{myBean.myDataItem.name}"/>
              <h:outputText value="Value"/>
              <h:inputText id="value" value="#{myBean.myDataItem.value}"/>
         </h:panelGrid>
         <h:commandButton action="#{myBean.saveMyData}" value="Save"/>
    </h:form>
    </f:view>
    </body>
    </html>

    I have put his lines in the faces-config.xml and now it works:
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>editmydata</from-outcome>
                   <to-view-id>editmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>listmydata</from-outcome>
                   <to-view-id>listmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    I don't understand, that I define the next JSP page in the bean java file, which must be shown, but I must define this in the faces-config.xml as well.
    for example:
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
    is it right or Do I make a mistake somewhere?

  • Help using DataTags on Edit JSP Form

    I costumized the Edit JSP page using DataTags but I don`t know how to edit the current record.
    I have the source code of the first page:
    //Kssegtroles.jsp
    <%@ page language = "java" errorPage="errorpage.jsp" import = "java.util.*, oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*, oracle.jbo.html.databeans.*" contentType="text/html;charset=ISO-8859-1" %>
    <%
    // make sure the application is registered
    oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session , "PrjSegJSP_PkgSeg_PkgSegModule");
    %>
    <HTML>
    <HEAD>
    <TITLE>INSTITUTO ECUATORIANO DE SEGURIDAD SOCIAL</TITLE>
    <LINK href="estilo/estilo.sty" rel=stylesheet type=text/css>
    </HEAD>
    <BODY class="clbody" aLink=#800000 bgColor=#ffffff leftMargin=0 link=#808000 text=#000000 topMargin=0 vLink=#c0c0c0>
    <jsp:useBean class="oracle.jbo.html.databeans.NavigatorBar" id="tb" scope="request" >
    <%
    tb.setTargetUrl("KssegtrolesView.jsp");
    tb.initialize(application,session, request,response,out,"PrjSegJSP_PkgSeg_PkgSegModule.KssegtrolesView");
    String sImageBase = "/webapp/images";
    tb.setImageDir(sImageBase);
    tb.addButton(tb.NAVIGATE_FINDFORM , "KssegtrolesView_Query.jsp");
    tb.addButton(tb.NAVIGATE_BROWSE , "KssegtrolesView_Browse.jsp");
    tb.addButton(tb.NAVIGATE_INSERT , "KssegtrolesView_Insert.jsp");
    tb.addButton(tb.NAVIGATE_EDIT , "KssegtrolesView_Edit.jsp");
    tb.render();
    %>
    </jsp:useBean>
    <br>
    <jsp:useBean id="RowViewer" class="oracle.jbo.html.databeans.ViewCurrentRecord" scope="request">
    <%
    RowViewer.initialize(pageContext, "PrjSegJSP_PkgSeg_PkgSegModule.KssegtrolesView");
    RowViewer.setReleaseApplicationResources(true);
    RowViewer.render();
    %>
    </jsp:useBean>
    </BODY></HTML>
    This is the code for the Edit Page:
    //KssegtrolesView_Edit.jsp
    <%@ page language = "java" errorPage="errorpage.jsp" import = "java.util.*, oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*, oracle.jbo.html.databeans.*" contentType="text/html;charset=ISO-8859-1"%>
    <%
    // make sure the application is registered
    oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session , "PrjSegJSP_PkgSeg_PkgSegModule");
    %>
    <HTML>
    <HEAD>
    <TITLE>INSTITUTO ECUATORIANO DE SEGURIDAD SOCIAL</TITLE>
    <LINK href="estilo/estilo.sty" rel=stylesheet type=text/css>
    </HEAD>
    <BODY class="clbody" aLink=#800000 bgColor=#ffffff leftMargin=0 link=#808000 text=#000000 topMargin=0 vLink=#c0c0c0>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule configname="PkgSeg.PkgSegModule.PkgSegModuleLocal" id="PkgSegModule" username="iessuser" password="iess" />
    <jbo:DataSource id="dtsRoles" appid="PkgSegModule" viewobject="KssegtrolesView" ></jbo:DataSource>
    <jbo:Row id="Row" datasource="dtsRoles" action="Current" ></jbo:Row>
    <form name="KssegtrolesView_form" action="KssegtrolesView_SubmitEditForm.jsp">
    <table border="0">
    <tr>
    <td>Codigo de rol</td>
    <td>
    <jbo:InputText datasource="dtsRoles" dataitem="Codrol"/>
    </td>
    </tr>
    <tr>
    <td>Descripcisn del rol</td>
    <td>
    <jbo:InputText datasource="dtsRoles" dataitem="Desrol"/>
    </td>
    </tr>
    <tr>
    <td>Creacisn de Usuario</td>
    <td>
    <jbo:InputText datasource="dtsRoles" dataitem="Creusuper"/>
    </td>
    </tr>
    </table>
    <input name="MyRowKey" type="hidden" value="<jbo:ShowValue datasource="dtsRoles" dataitem="RowKey"/>" />
    <br>
    <input type="submit" value="Update"/>
    <input type="reset" value="Reset"/>
    </form>
    </BODY>
    </HTML>
    <jbo:ReleasePageResources releasemode="Stateless" />
    When I execute this, I am not in the current record that I edit, it returns me the information of the first record.
    Could you help me please?
    null

    I suppose that your two pages don't use same application module instance. It's the matter of mixing use of DataTags and WebBeans. Search this forum with these search words; "DataTag" and "WebBean".

  • JSP in Eclipse

    Hi,
    Can anybody please tell me how to compile JSP using Eclipse. I had MyEclipse installed and Tomcat Plugged into Eclipse.
    Thanks in advance.

    Download the Web tools Project. It come bundled with Eclipse.Plug in Tomcat and u r done!
    http://www.eclipse.org/webtools/
    I've never seen a way to precompile JSPs nor have I found any documentation about it. What's the trick ?

  • How to run servlet,jsp in eclipse software

    can any one tell me how to run servlet ,jsp in eclipse
    and how to start tomcat server in eclipse
    reply me
    regards
    saravana

    Can anybody help me as I wanted to know how to run servlet,jsp in eclipse software...
    If somebody can forward me the screenshots than it would be of great help....
    Thanks

  • How to work jsp in Eclipse using Tomcat5.1

    Hi
    I want to work JSP, Servlet by using Eclipse IDE.
    I worked on eclipse but only core java.
    Plz anybody tell me how i will work JSP in Eclipse.
    tell me the whole steps.
    Thankx
    Jharana

    I want to work JSP, Servlet by using Eclipse IDE.
    I worked on eclipse but only core java.
    Plz anybody tell me how i will work JSP in Eclipse.
    tell me the whole steps.Go to Google. Look for "eclipse j2ee plugin". Find and install one.
    Eclipse doesn't support J2EE by itself.

  • Wat are all needed to be impoted to run ,deploy servlet,jsp in eclipse

    i want to know what are all needed to be impoted
    to run ,deploy servlet,jsp in eclipse
    reply me
    regards
    saravanakumar

    http://www.eclipse.org/webtools/

  • Problem with renaming JSPs in Eclipse

    Has anyone experienced problem with Eclipse WTP failing to locate JSP after they are named? I've been able to reproduce this consistently, where if I rename a JSP after it's created (e.g. Transactions.jsp -> transactions.jsp), I get the following error when I attempt to access that JSP within the browser:
    javax.servlet.ServletException: org/apache/jsp/transactions_jsp (wrong name: org/apache/jsp/Transactions_jsp)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    It seems the internal state of the translated JSP Java class is messed up.
    Johnny

    I've found the solution!
    It turns out, on case sensitive system like Mac OS X, Eclipse has trouble recognizing a renamed JSP if you only change the capitalization of the file name. The way to fix it is to delete the JSP from Eclipse (doesn't work if you delete it from the file system), which I think clears Eclipse's corrupt memory of the file, and add the file back in.
    I'll report this bug and see if others can reproduce the same problem.
    Repro:
    (Observed on Mac OS X)
    1. Create a JSP, name it "home.jsp"
    2. Verify home.jsp can be accessed in the browser.
    3. Rename "home.jsp" to "Home.jsp"
    4. Now, neither "home.jsp" nor "Home.jsp" could be accessed. In order to fix this, you have to delete "Home.jsp" and add it back into Eclipse.

  • Unable to edit JSP files in a JAR file

    Hi,
    I am trying to edit biller direct screens and I am not able to open any JSP or XML file in NWDS editor. I get this below error whenever I try to edit a JSP file
    cannot open default editor on content_custExtension_html.jsp. Unsupported editor input type org.eclipse.jdt.internal.ui.javaeditor.JarEntryEditorInput
    any help will be rewarded for sure
    Thanks and regards,
    Nrisimhanadh Yandamuri

    Was mistaken... have to edit similar source in another DC.

  • Could not run JSP in eclipse

    Hi,
    I installed the eclipse and it is running fine with the .java files.
    I installed the Tomcat4.1 and configured it with eclipse. now iam able to run and stop the Tomcat server from the elcipse.
    I created a Tomcat project and trying to run Helloworld Jsp file but when i open a JSP file it is automatically openning Windows Media player.
    i will appreciate if any one can help me run and create a new JSP file in eclipse3.0
    Thanks,
    Ranga

    but when i open a JSP file it is automatically openning Windows Media playerSounds like you need to change the associations.
    In Eclipse, go to Window:Preferences
    Open the "Workbench" submenu
    Select "File Associations"
    Find "jsp" in the list, and add/remove handlers for it.

  • Edited Theme through Eclipse doesn't have UR folder

    Hi All ,
    I have edited a standard SAP theme through Eclipse tool . I have made some color changes in that and
    downloaded the theme . After checking the portal.zip folder ..... UR folder is missing in that theme ,
    So how to do that one ?
    Please help me. ( I dont have much knowledge in Java )
    Thanks in advance .

    Thanks Sebastian for ur time .
    As I have to upload the theme in R/3 not in portal , the first suggestion is not useful for me.
    If we come to second point , you mean to say using BSP_UPDATE_MIMEREPOS program i have to upload
    my edited theme to MIME repository in this path /SAP/PUBLIC/BC/UR/CustomerThemes/<my theme> ?
    If I upload without 'UR' folder is it will work fine ??
    Please tell me.
    Thanks & Regards,
    G.  Anil kumar .

  • Editing JSP pages

    I'm trying to customize a quoting screen which is a JSP page that takes numerical input and calculates a quote for the user. What's the best way of editing that page. There seems to be so many embedded JSPs that I don't know where to start looking. Thanks.

    It may help to make a copy of the page. Strip out all the embedded JSPs and add them back in one at a time so you can see what each one does. Some may make no immediately obvious changes (such as includeding a CSS when there's no content to alter).
    Write down your notes as documentation for the next person.
    Patrick.

  • Debugging JSP with Eclipse

    Hi, how to connect to Oracle Database 9i R2 with Eclipse?

    Hi, I didn't get an email notifying me of a response to this. Just happened to check myself.
              But basically you want to point the weblogic server directly to your workspace (src code) so it can detect a change. THis is from our doc below. You may also write an ant script specific to weblogic that redeploys the app and reloads the xml and prop files without restarting the server.
              1.     Start up your Weblogic domain server (i.e., C:\Domains\devDomain\startWebLogic.cmd).
              2.     Go to url, http://localhost:7001/console and log in (weblogic, weblogic).
              3.     On the left menu, click Deployments, then Lock & Edit button above it, and then the Install button in the main panel.
              4.     Change the location to the web folder in your project workspace (C:\Eclipse\workspace\<projectname>\web) Click Next.
              5.     Leave checked the Install this deployment as an application and click Next.
              6.     Put name for Name of deployment. . From here you can click Finish.
              7.     Click Activate Changes. Then check the deployment box and click Start button and Servicing all requests (in Deployments panel). Then click Yes to start it on the next page
              8.     Enter the URL of the application. This example is
              http://localhost:7001/web/index.htm
              The ?web? was the name of the web folder we deployed from. In the future you could name this something different if deploying from this console so the url?s do not conflict.
              Edited by mwooten77 at 01/18/2007 9:34 AM
              Edited by mwooten77 at 01/18/2007 9:35 AM

  • How to run servlet and jsp in Eclipse

    i am trying to run a jsp and servlet file in Eclipse its showing error in editor its self.

    yep, eclipse can do that. I've never done it, but
    Tomcat needs to have remote debugging enabled, which
    means you need to use the tomcat that WASN'T
    installed by an installer. don't ask me why, ask the
    boys at Jakarta! eclipse attaches itself to the
    debugger in some way or other. I dunno. there's a
    book called Eclipse Distilled that only costs about
    ?10 or so and has a chapter on doing exactly this, if
    you're using Eclipse for fairly advanced stuff like
    this, I'd invest in a copy of that. well worth the
    moneyTry [url http://www.eclipse.org/webtools/]WTP&#9733; plugin (Web Tools Platform). I am using this plugin, and as far as I know it is free. You just have to install Tomcat normally, and configure WTP plugin to pointing that Tomcat. You can run, debug, do everything you want.

Maybe you are looking for