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.

Similar Messages

  • A litle problem with rename method.

    Hi everybody..
    I have a little problem with renaming files..
    I can rename files but it puts the new renamed files to BIN directory (where my program runs) whereever the path I opened the old-original image. I want to pu the "renamed file" where it belongs to,the orginal path, How can I handle with it?
    My code is like this..
    String renamestring = JOptionPane.showInputDialog ("Enter new name for image");
    File file2=new File(renamestring+".gif");
    boolean success = f.renameTo(file2);
    I have another question if you do not mind..How can I rename files with their orginal extensions?? for example in the above code ı rename all file with .gif extension, (if I Dont do that, it does not give any extension to the new renamed file..)
    thanks so much..

    Now, I'm a bit shaky on files, I've only used them to store dummy data, but here's my two cents.
    It's putting the files there because, as it appears from what you've cited as your code, you're using a relative filename. something like pic1.gif. This will be put whereever the program is running. What you want is to make your file using...
    String PATH_NAME = "<Directory you want it stored in>";
    File file2=new File(PATH_NAME + renamestring + ".gif");There are a few ways of getting where it should be saved, but since I'm not sure what system you're on, I'm not going to go into it. Simply put, I think you can just search from the back to the String (originalFile.getPath()) for the last folder deliminator (i.e. "\"), then take that and everything before it as the PATH_NAME.
    As for original extension, you can try the same thing. Start at the end of the file name using the String's lastIndexOf() function, and find the period. Then take the period and everything until the end of the string as a new String fileExtension.
    String PATH_NAME = "<Directory you want it stored in>";
    File file2=new File(PATH_NAME + renamestring + fileExtension);

  • Problem with Crystal reports for Eclipse and Postgres-databases

    Hi,
    Is there a known problem when using a PostgreSQL-database to create a report with Crystal reports Plugin? When I drag a table, then occurs a error-windows, that the object can't  created.
    I have found a workaround for solving the problem. After new installing Eclipse Platform Version: 3.4.1 Build id: M20080911-1700 and Crystal reports Plugin 11.8.6.v1371 with JRE 1.6.0_01 the error message allways occurs, when I select a table from a PostgreSQL database (Version 8.2). After restarting eclipse you see the last selected tables in the field explorer and you can drag the table fields in the report. A repeated choice of the same table causes aliases for the table in the field explorer after restarting eclipse.
    Error.log:
    eclipse.buildId=M20080911-1700
    java.version=1.6.0_01
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE Command-line arguments:  -os win32 -ws win32 -arch x86
    Error
    Tue Dec 16 14:03:53 CET 2008
    Verursacht durch: java.lang.IllegalArgumentException
    com.businessobjects.crystalreports.designer.core.ReportException: java.lang.IllegalArgumentException
    at com.businessobjects.crystalreports.designer.core.ExceptionFactory.B(Unknown Source) at com.businessobjects.crystalreports.designer.core.ExceptionFactory.create(Unknown Source) at com.businessobjects.crystalreports.designer.core.elements.data.TableElement.add(Unknown Source) at com.businessobjects.crystalreports.designer.core.commands.AddCommand.doCommand(Unknown Source) at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.C(Unknown Source) at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.execute(Unknown Source) at com.businessobjects.crystalreports.designer.CoreCommand.execute(Unknown Source) at com.businessobjects.crystalreports.designer.dseintegration.DSEDropHandler.drop(Unknown Source) at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:211)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:880)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:209)
    at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
    at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:455)
    at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:257)
    at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
    at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method) at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:362)
    at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:288)
    at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:171)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.IllegalArgumentException---- Error code:-2147467259 Error code name:failed at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source) at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source) at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.ag.a(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.bu.if(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.bu.void(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.a6.for(Unknown Source) at com.crystaldecisions.proxy.remoteagent.u.performDo(Unknown Source)
    Best Regards
    Arnold

    Your issue appears to be a Crystal Reports for Eclipse report designer thing, and not a JRC runtime thing.  The JRC runtime does support Type 4 JDBC drivers, but all modern PostgreSQL drivers are Type 4.
    The current report designer is more restrictive than the JRC runtime - and PostgreSQL, being not on the supported platforms list, has never been tested with the embedded designer.
    Unless there's anybody out there with experience with PostgreSQL and CR4E designer, who would be willing to share their experiences.
    Sincerely,
    Ted Ueda

  • Little problem with rename view

    Hej, I've been having a problem an small problem with this... so far i'm changing the position of the tree of and Active Directory account... the major problem is that if i move this account 3 times the accountId fot that resurce is still the original one.
    <set name='newViews.newAccountId'>
                    <ref>myIdentity</ref>
                  </set> 
                  <set name='newViews.accounts[AD].newAccountId'>
                    <ref>myIdentity</ref>
                  </set>
                  <set name='newViews.resourceAccounts.selectAll'>
                    <s>false</s>
                  </set>
                  <set name='newViews.accounts[AD].identity'>
                    <ref>myIdentity</ref>
                  </set>
                  <set name='newViews.accounts[AD].newAccountId'>
                    <ref>myIdentity</ref>
                  </set>
                  <set name='newViews.resourceAccounts.currentResourceAccounts[AD].identity'>
                    <ref>myIdentity</ref>
                  </set>
                  <set name='newViews.resourceAccounts.currentResourceAccounts[AD].selected'>
                    <s>true</s>
                  </set>
                  <set name='newViews.resourceAccounts.currentResourceAccounts[Lighthouse].selected'>
                    <s>false</s>
                  </set>myIdentity is the new value for the account basically cn=..,ou=.. etc.. and all works fine but the first given accountId when the account is created always remains and is never changed during the rename action....

    Hi,
    I had the same problem. The move operation in AD functioned perfectly but the displayed account information kept showing the old DN. The problem was, I had the move activity inserted in the update user workflow BEFORE the Provision activity. I moved my custom rename activity to AFTER Provision (and right before notification) and now the new DN is showing on the account information screen. It appears that if you do the rename before provision, the old information will overwrite the new stuff. But if you do it after provision the new stuff will overwrite the old stuff.
    I hope this helps :-)

  • Problem with rename command in ftp_command

    hi all ,
    i am facing a problem in renaming a file by rename command...
    this is how i am calling the fm ftp_command
    CALL FUNCTION 'FTP_COMMAND'
        EXPORTING
          handle        = g_handle
          command       = 'RENAME l_templine_file l_templine_file1'
        TABLES
          data          = l_i_temp_line
        EXCEPTIONS
          tcpip_error   = 1
          command_error = 2
          data_error    = 3
          OTHERS        = 4.
      IF sy-subrc <> 0.
    here l_templine_file   - dev00227.header.tmp  
    l_templine_file1 - dev00227.header.txt
    the fm is failing that the error meassage is FTP subcommand  error
    can u suggest where i am going wrong in this...

    hi,
    May be the command you are passing is incorrect syntax..
    Pass the values like this..
    l_templine_file =  'c:\dev00227.header.tmp' " this should be with path'
    l_templine_file1 = 'dev00227.header.txt'" this is just the name of file
    If not worked..then Try writing in small letters//
    write
    command = 'rename l_templinefile l_templine1'.
    rewards if useful
    Hope this solves..
    regards,
    nazeer
    Message was edited by:
            nazeer shaik
    Message was edited by:
            nazeer shaik
    Message was edited by:
            nazeer shaik

  • Remote debugging problem with Weblogic 9 in Eclipse

    Hi,
    I'm trying to test out debugging a test app using Eclipse as the IDE and the Weblogic 9.0 server. Debugging with 8.1 worked fine. No problems. When I start the 9.0 server, I get "Error launching remote debugging for external server, changing to non-debugging mode. Please check the debug port setting and ensure that the specified "start" executable launches the server with debugging enabled."
    Any ideas where to start?
    -Eric

    Try this:
    1. Login with administrator user
    2. Security Realms > myrealm > Providers > DefaultAuthenticator > Migration > Export
    3. Click on save button to get /DOMAINHOME/DefaultAuthenticator.dat file 4. Backup /DOMAIN_HOME/security/DefaultAuthenticator.ldift file
    5. Move /DOMAINHOME/DefaultAuthenticator.dat file to /DOMAIN_HOME/security/ directory
    6. Rename /DOMAIN_HOME/security/DefaultAuthenticator.dat to /DOMAIN_HOME/security/DefaultAuthenticator.ldift
    7. Shutdown all servers
    8. Delete LDAP directory in each server
    9. Start up all servers
    Good luck !
    Octavio

  • Problem with login jsp

    I made a login.jsp with the help of a bean. the bean holds a string[] as a property where it stores user and pass, then those values are checked in my database, and a boolean bean property is set to true. The problem is I want to do an if statement in my JSP using that boolean, but I can't seem to get the jsp working, can anyone help me?
    I'm doing
    <%if (<jsp:getProperty name="auth" property="truth"/>) do something else something else%>
    I've also tried
    <%! boolean it = <jsp:getProperty name="auth" property="truth"/> %>
    <%if (it) do something else something else%>
    both give me compile errors.

    <jsp:getProperty name="auth" property="truth"/> is roughly equivalent to
    <% out.print(your_bean.getTruth()); %> or <%=your_bean.getTruth()%>
    Once you understand this, you'll see why your code cannot possibly work...
    Below is a simple solution to your problem.
    <jsp:useBean   class="YourBean"  id="auth"  etc.. >
    <% if auth.getTruth() {
          something; // don-t forget the semi-colon
       else {
          some other thing; // ditto
    %>If you don't want any java code inside your jsp, consult the JSTL tag lib to construct an xml-like if-else statement.

  • Problems with include jsp

    Hi... my english are not good enough but im trying to explain.
    I wanna include a url using <jsp:include tag, but my url have params.... so i know i have to use <jsp:param 4 each param.... So i did a little scriptlet that takes the url and separe each param to put it in a bidimensional array then i make a string with all the result... i mean... <jsp:inlcude page="relative URL" flush="true"><jsp:param name="hi" value="2"/>... next param... next param... </jsp:inlcude>.... i write the string at the jsp but it seems doesnt work.. this i made it with a document.write...
    the problem here is... the string its ok coz if i cut and paste the result i work great... but... if i make it dynamically ... nothing happens....
    Either i did put it the bidimensional array at the request.setAttribute for catch it at the next jsp and make a bucle for... but the same trouble... nothings happen...
    Some idea? :(

    You definitely want to use a jsp include action, not a directive. The directive
    happens at translation time and does not process the requested page. An action
    happens at request time and treats the requested page as a new request, thus
    including the results of the invoked jsp.
    BTW, the include action is the tags that looks line <jsp:inculde
    page="included_page.jsp" flush="true"/> or something similar (parameters can
    also be specified).
    The JSP 1.1 spec has more details. See sections 2.7.5 & 2.7.6 (for the include
    directive and a quick comparison of the directive vs the action) and 2.13.4 (for
    the include action).
    Matt
    Gurjit wrote:
    Hi ,
    I have a typical problem. The iplanet server doesn't interpret the code
    from a jsp which is included in another jsp. For eg.
    code for main jsp
    request.getParameter("username");
    <%@ include file="/jsp/ui/left_nav.jsp" %>
    processing code.
    Now when I start the server and the first time I load this page I get a
    dearranged page which has the code of the left_nav.jsp present in the html
    output.
    On opening this page to edit, when a small modification is made and the file
    is saved, a reload of the same page gives the proper output with all the
    jsp's interpreted.
    Thanks to one and all,
    Regards,
    Gurjit

  • Problem with the jsp printing

    Can anyone help me please with jsp i have the following problem can you help me.
    This is my console printing:
    null16-08-2006 REPLY TIME: 14:34:32
    REPLY : Hinknff
    null16-08-2006 REPLY TIME: 14:36:34
    REPLY : Hu jjdfgf
    null16-08-2006 REPLY TIME: 14:39:57
    REPLY : ffffffffffffffffff
    but this is my webpriniting:
    null16-08-2006 REPLY TIME: 14:34:32 REPLY : Hinknff null16-08-2006 REPLY TIME: 14:36:34 REPLY : Hu jjdfgf null16-08-2006 REPLY TIME: 14:39:57 REPLY : ffffffffffffffffff null16-08-2006 REPLY TIME: 14:44:58 REPLY : nnnnngf REPLY DATE:16-08-2006 REPLY TIME: 15:45:18 REPLY : Replughjfgjgf REPLY DATE:16-08-2006 REPLY TIME: 15:47:39 REPLY : Rn,kgdfg REPLY DATE:16-08-2006 REPLY TIME: 15:49:48 REPLY : Rngm,ng,df
    that is i am not getting it in web as i get in console can you please help me how can i do that.
    below is the partial code for printing in which i have used vector,strings only.
    String qu = nn2.elementAt(j)+"";
    String re = nn3.elementAt(j)+"";
    String b= qu;
    String b1 = re
    System.out.println(b1);
    String redt1 = nn4.elementAt(j)+"";
    if(redt1.equals("No Reply")){
    redt.append(redt1);
    retime.append(redt1);
    else
    String redtt=redt1.substring(8,10);
              String remonth=redt1.substring(5,7);
              String reyear=redt1.substring(0,4);
              String rehh=redt1.substring(11,13);
              String remm=redt1.substring(14,16);
              String ress=redt1.substring(17,19);
    redt.append(redtt+"-"+remonth+"-"+reyear);
    retime.append(rehh+":"+remm+":"+ress);
    } %>
    <br>
    <table>      
    <tr">
    <td>
    <b>Query Posted Date</b>
    <%out.println(qudt);%>
    <b>Query Posted Time :</b>
    <%out.println(qutime);%>
    <br>
    <b style="font-family:verdana;font-size:80%;color:green">Query :</b>
    <%out.println(b);
    %>
    </td>
    </tr>
    </table>
    <br>
    <table>
    <tr bgcolor="rgb(174,174,250)">
    <td>
    <b>Last Reply Posted Date</b>
    <%out.println(redt);%>
    <b>Last Reply Posted Time :</b>
    <%out.println(retime);%>
    <br>
    <b style="font-family:comicscans;font-size:80%;color:Red">Reply :</b>
    <%
    out.println(b1);
    int qudtsize = qudt.length();
    qudt.delete(0,qudtsize);
    int qutimesize = qutime.length();
    qutime.delete(0,qutimesize);
    int redtsize = redt.length();
    redt.delete(0,redtsize);
    int retimesize = retime.length();
    retime.delete(0,retimesize);
    %>
    <br>
    </td>
    </tr>
    </table>
    <br>
    <% }
    connection.close();
    }catch(SQLException e)
    e.printStackTrace();
    %>
    <input type="submit" value="Back" onClick="calljsp1()"/>
    </form>
    </body>
    </html>

    Hi.
    Even i am getting the similar exception. The JSP report works fine on Oracle 9iDS. But throws following exception in Oracle 9iAS. I have already tried recompiling, etc but to no avail.
    Any help in this regard is highly appreciated.
    javax.servlet.jsp.JspException: rwlib-1: REP-1247: Report contains uncompiled PL/SQL.
    javax.servlet.jsp.JspException: rwlib-1: REP-1247: Report contains uncompiled PL/SQL.
    at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
    at examples.tools._fapsreports._StudentReimbursementScheduleExcelReport._jspService(_StudentReimbursementScheduleExcelReport.java:80)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:535)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:766)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:152)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
    at java.lang.Thread.run(Thread.java:484)

  • Having Problem with IFRAME (JSP) Netscape!HELP!!!

    Hi ppl :)
    I�m having problems working out with netscape. If i use a script with one iframe(and i must use it...) at I.Explorer it works but with netscape, no way, the "box" doesn�t appear. :( I need HELP!!
    tHIS IS THE CODE :)
    <html>
    <head>
    <!--fd002_captura_dados_POR.jsp-->
    <title>BBVA - Fundos - Subscri&ccedil;&atilde;o de Fundos</title>
    <LINK rel=STYLESHEET type='text/css' href="estilos/tablas.css">
    <script language="Javascript" src="js/fd001_captura_dados.js"></script>
    <script language="javascript" src="js/limpar.js"></script>
    <script language="javascript" src="js/tiempo.js"></script>
    </HEAD>
    <body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" class="pag-contenido" onLoad="controlSesion();">
    <%@ include file="includecbtf.jsp" %>
    <%
    out.println("<form method=\"post\" name=\"captura\" action=\"" + urls.get("action") + "\"> ");
    %>
    <br>
    <center>
    <table border="0" cellpadding="0" cellspacing="0" width="500">
    <tr>
    <td colspan="3" ><img src="images/linea1.gif" border="0"></td>
    </tr>
    <tr>
    <td width="250"><img src="images/fundos.gif" border="0"></td>
    <td width="82"><img src="images/titular.gif" border="0"></td>
    <td width="169" class="fondotitular"><font class="texttitular"><%=datos.get("usuario")%></font></td>
    </tr>
    <tr>
    <td colspan="3"><img src="images/linea1.gif" border="0"></td>
    </tr>
    </table>
    <br><br>
    </center>
    <center>
    <table cellpadding="3" cellspacing="1" border="0" width="535">
    <tr>
    <td class="cabeceratitulo" colspan="4"><p class="titulotabla">Inten&ccedil;&atilde;o de Subscri&ccedil;&atilde;o do Fundo <%=datos.get("CodigoFundos")%></p></td>
         </tr>
         </td>     
    <table>
    <tr>
    <td class="cabeceratitulo" colspan="4"><p class="titulotabla">Condi&ccedil;&otilde;es</p></td>
    </tr>
    <tr>
    <td class=altas colspan="2" >
    <%
    java.lang.String selec1 = (java.lang.String)datos.get("CodigoFundos");
         String selec= selec1;
         String sel="";
         if(selec.equals("ACC"))
         sel= "fundo1.txt";
         if(selec.equals("APL"))
         sel= "fundo1.txt";
         if(selec.equals("BBVD"))
         sel= "fundo1.txt";
    if(selec.equals("BBVO"))
         sel= "fundo1.txt";
         if(selec.equals("BIT"))
         sel= "fundo1.txt";
         if(selec.equals("BON"))
         sel= "fundo1.txt";
    if(selec.equals("CAS"))
         sel= "fundo1.txt";
         if(selec.equals("CPZ"))
         sel= "fundo1.txt";
         if(selec.equals("EXT"))
         sel= "fundo1.txt";
         if(selec.equals("FINVEST"))
         sel= "fundo1.txt";
         if(selec.equals("GLO"))
         sel= "fundo1.txt";
         if(selec.equals("MIX30"))
         sel= "fundo1.txt";
         if(selec.equals("MIX60"))
         sel= "fundo1.txt";
         if(selec.equals("MI3"))
         sel= "fundo1.txt";
         if(selec.equals("MI6"))
         sel= "fundo1.txt";
         if(selec.equals("PPA"))
         sel= "fundo1.txt";          
    if(selec.equals("PPR"))
         sel= "fundo1.txt";
         if(selec.equals("TXV"))
         sel= "fundo1.txt";          
         %>
    <iframe width=500 height=300 src=js/<%=sel%>></iframe>
    </tr>
    <tr>
    <td align="right">
         <img src="images/aceito.gif" border="0" alt="Aceito">
    </td>
    <td>
         <img src="images/naceito.gif" border="0" alt="N�o Aceito">
    </td>
    </tr>
    </table>
    <br>
    </center>
    <center>
    <table cellpadding="3" cellspacing="1" border="0" width="535">
    <tr>
    <td class="cabeceratitulo" colspan="4"><p class="titulotabla">Inten&ccedil;&atilde;o de Subscri&ccedil;&atilde;o de Fundos</p></td>
         </tr>
    <tr>
    <td class="formgrisosc" width="120"><p class="dato">Seleccione Conta:     </p></td>
    <%
    java.util.Vector v = (java.util.Vector)(datos.get("ListaCuentas"));
    java.util.Hashtable elem;
    java.util.Enumeration e = v.elements();
    %>
                   <td class="formgrisosc" colspan="3">
    <select name="conta" size="1" class="formgrisosc">
    <%
    while (e.hasMoreElements()){
    elem = (com.ibm.dse.base.Hashtable)(e.nextElement());
    String cuenta = ((String)elem.get("s_banco")).trim()+"-"+((String)elem.get("s_oficina")).trim()+((String)elem.get("s_dcontrol")).trim()+((String)elem.get("s_num_cuenta")).trim();
    out.println("<option value=\"" + cuenta + "\">" + cuenta + "</option>");
    %>
    </select>
    </td>
    <tr>
    <td class="formgriscla" width="120"><p class="dato">Tipo de Subscri��o:</p></td>
    <td class="formgriscla" colspan="3">
              <select name="tiposubs" size="1" class="formgriscla">
    <option>Eventual</option>
    </select>
    </td>
    </tr-->
    <tr>
    <td class="cabecera" colspan="4"><img src="images/1x1.gif" width=1 height=3 border="0"></td>
    </tr>
    </table>
    <br><br>
    <table cellpadding="3" cellspacing="1" border="0" width="535">
    <tr>
    <td class="cabeceratitulo" colspan="4"><p class="titulotabla">Preencha um dos seguintes campos</p></td>
         </tr>
    <tr>
    <td class="formgrisosc" width="120"><p class="dato">N�mero de Up's:</p></td>
    <td class="formgrisosc" colspan="3">
    <input type="text" name="numero" size="15" maxlength="15" class="formgrisosc">
    </td>
    </tr>
    <tr>
    <td class="formgriscla" width="120"><p class="dato">Montante:</p></td>
    <td class="formgriscla" width="80"><input type="text" name="montante" size="15" maxlength="15" class="formgriscla"></td>
    <td class="formgriscla" width="50"><p class="dato">Moeda:</p></td>
    <td class="formgriscla">
    <select name="moeda" size="1" class="formgriscla">
    <option value="Escudos" selected>Escudos</option>
    <option value="Euro" >Euros</option>
    </select>
    </td>
    </tr>
    <tr>
    <td class="cabecera" colspan="4"><img src="images/1x1.gif" width=1 height=3 border="0"></td>
    </tr>
    </table>
    </center>
    <center>
    <table border="0" cellpadding="0" cellspacing="2">
    <tr>
    <td valign="top"><img src="images/limpar.gif" border="0" alt="Apagar"></td>
    <td valign="top"><img src="images/continuar.gif" border="0" alt="Continuar"></td>
    </tr>
    </table>
    </form>
    </center>
    <br><br>
    </body></html>
    Please help me out, because the iframes are terrible!
    thanks,
    Alex

    The <IFRAME> tag is IE specific; Netscape doesn't
    recognize it.
    Netscape uses the <LAYER> and <ILAYER> tags to
    accomplish the same thing; if you need to have a
    page-internal frame that has its own source, you'll
    need to use one of these tags.
    If you need to work with both browsers, you'll need to
    write out your tag based on the browser being used.
    Have fun!hello!
    I need one way to call another page, like you see in the code, a extension.txt, how can i do that?? can you make a sugestion?
    The <ilayer> doesn�t work :(

  • Problems with tabbed JSPs

    Hi ,
    I have a JSP which is a tabbed one . I need to have common values in all the 5 tab pages of a single JSP . The problem im facing is , the common values entered in the first tab page only gets carried forward to the subsequent tab pages . In case if i directly go to the second tab page and enter these values they are not carried on to any of the other tab screen .
    Has any one encountered such a situation ? Can come one provide me a solution .
    Thanks
    Varada

    Hi Linxpda ,
    Yeah , iam making use of a JS file to include tabs in my JSPs . All it does is to give each Tab of the JSP page a name . But for that its the conventional MVC flow.
    I have a JSP called LoanDetails.jsp and i have a formBean associated to it [ LoanView.java ] .. Iam making use of Struts1.1 to bind the controls in JSP to foem bean . If i have two tabs TAB1 and TAB2 in LoanDetails.jsp and i have some common controls for both the Tab pages , say accountId . If i fill in any value for account Id in TAB1 , it is seen in TAB2 also . On the other hand if i fill in the same value in TAB2 , it is neither retained in TAB2 nor seen in TAB1 .
    Can you help me with a sugggestion ?
    varada

  • Problems with renaming device under Windows 7's "Portable Devices"

    I recently purchased an iPod touch 4g 32gb unit from ebay which still has about 3 months of warranty left on it.  The touch came with the previous 4.3.3 iOS installed on it and also jailbroken, so I upgraded to 5.0.1.  After installing the cord and setting up my new iPod through iTunes, I noticed under My Computer through Windows 7, under Portable Devices that the ipod Touch came up labeled as "AEIPOD TOUCH 4 4.3.3.3 32gb".
    I tried going into the properties and renaming it, and couldn't, but through iTunes, I was able to successfully rename it.  I would appreciate any help/feedback as to what I can do fix it, or if I might have to send it to Apple.
    Thanks!
    bti182

    i have the same problem. i had an old ipod touch and it had my name under portable devices. then my sister got a newer ipod touch and so under portable devices i put her name. BUT recently i got the newest ipod and when i connected it to my laptop it just automatically got my sisters name. i tried to change it under my computer and i even right clicked on it and click on Properties, but even through there i cannot change the name -_-

  • Problems with custom JSP Tag, can someone offer some advice?

    Greetings,
    I have a problem here that I am stumped on. I am trying to create a custom JSP tag, I created a simple "Hello World" JSP, however, I am coming up a bit short. I am running Apache Tomcat 6.0 on a Win XP environment.
    The code I have is as follows:
    TLDTest.tld:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>1.2</jspversion>
         <shortname>firstTag</shortname>
         <info>My First Tag</info>
    <!-- Here goes nothing!!! -->
    <tag>
         <name>hola</name>
         <tagclass>Hola</tagclass>
         <bodycontent>empty</bodycontent>
         <info>a simple hello tag</info>
    <!-- attributes -->
    <!-- Personalize the name -->
    <attribute>
         <name>name</name>
         <required>false</required>
         <rtexpvalue>false</rtexpvalue>
    </attribute>
    </tag>
    </taglib>
    The Hola.jsp is:
    <%@ taglib uri="/Hola" prefix="test" %>
    <html>
         <head>Just a little test on tags</head>
         <body>
              <hr />
              <test:Hola name="Woot Master" />
              <hr />
         </body>
    </html>
    And the source code for the .class file (named Hola) is:
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class Hola extends TagSupport
         private String name = null;
         public void setName(String value)
              name = value;
         public String getName()
              return(name);
    /* doStartTag is called and defined below here for the java tag */
         public int doStartTag()
              try
                   JspWriter out = pageContext.getOut();
                   out.println("<table border=1>");
                        if (name != null)
                             out.println("<tr><td> Hola " + name + "!" + "</td></tr>");
                        else
                             out.println("<tr><td> Hola! Porque tu es una piquito perra? </td></tr>");
              catch (Exception ex)
                   throw new Error("Dio's Mio!, Esta No Va!, tu problema es en la StartTag!!!");
              return SKIP_BODY;
    /* doEndTag is defined here. */
         public int doEndTag()
              try
                   final JspWriter out = pageContext.getOut();
                   out.println("</table>");
              catch (final Exception ex)
                   throw new Error("Oops, it's broken, check your coding in the End tag!!!");
    What I keep getting is the following error:
    org.apache.jasper.JasperException: /Hola/Hola.jsp(6,2) No tag "Hola" defined in tag library imported with prefix "test"
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
    I've been back and forth on this, but I am lost. Obviously I am missing something, but what is it? It wouldn't be in the web.xml file would it? I am running a vanilla tomcat install. Any help that anyone can provide would be greatly appreciated.
    Sincerely,
    - Josh

    Ok
    1 - In the JSP, your tag should be "hola" not "Hola". Yes case matters.
      <test:hola name="Woot Master" />2 - Importing the taglibrary correctly.
    Either reference its tld <%@ taglib uri="/WEB-INF/Hola.tld" prefix="test" %>
    (and have the tld file sitting in /WEB-INF/Hola.tld )
    or
    Define a uri for it in the tld...
    <taglib>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.2</jspversion>
    <shortname>firstTag</shortname>
    <uri>http://mytag/hola</uri>
    ...and then use that uri to import it in your JSP
    <%@ taglib uri="http://mytag/hola" prefix="test" %>
    3 - Put your tag class in a package. Classes not in packages have a way of not being found.
    package mypackage
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class Hola extends TagSupport {
    ...That will move it in your folder structure to be /mypackage/Hola.java
    You would also need to update the tagclass element in the tld to reflect the change:
    <tagclass>mypackage.Hola</tagclass>4 - Mistake in your tld: You are missing an "r" in "rtexprvalue". <rtexpvalue> should be <rtexp*r*value>
    5 - In your Tag class, you should return something from the "doEndTag()" method.
    return super.doEndTag(); or maybe return EVAL_PAGE;
    Revised code:
    WEB-INF/hola.tld
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>1.2</jspversion>
         <shortname>firstTag</shortname>
         <uri>http://mytag/hola</uri>
         <info>My First Tag</info>
         <!-- Here goes nothing!!! -->
         <tag>
              <name>hola</name>
              <tagclass>mypackage.Hola</tagclass>
              <bodycontent>empty</bodycontent>
              <info>a simple hello tag</info>
              <!-- attributes -->
              <!-- Personalize the name -->
              <attribute>
                   <name>name</name>
                   <required>false</required>
                   <rtexprvalue>false</rtexprvalue>
              </attribute>
         </tag>
    </taglib>hola.jsp:
    <%@ taglib uri="http://mytag/hola" prefix="test"%>
    <html>
      <head>Just a little test on tags</head>
      <body>
        <hr />
        <test:hola name="Woot Master" />
        <hr />
      </body>
    </html>Hola.java. Compiles into WEB-INF/classes/mypackage/Hola.class
    package mypackage;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class Hola extends TagSupport {
         private String name = null;
         public void setName(String value) {
              name = value;
         public String getName() {
              return (name);
         /* doStartTag is called and defined below here for the java tag */
         public int doStartTag() {
              try {
                   JspWriter out = pageContext.getOut();
                   out.println("<table border=1>");
                   if (name != null)
                        out.println("<tr><td> Hola " + name + "!" + "</td></tr>");
                   else
                        out.println("<tr><td> Hola! Porque tu es una piquito perra? </td></tr>");
              } catch (Exception ex) {
                   throw new Error("Dio's Mio!, Esta No Va!, tu problema es en la StartTag!!!");
              return SKIP_BODY;
         /* doEndTag is defined here. */
         public int doEndTag() {
              try {
                   final JspWriter out = pageContext.getOut();
                   out.println("</table>");
                   return super.doEndTag();
              } catch (final Exception ex) {
                   throw new Error("Oops, it's broken, check your coding in the End tag!!!");
    }Cheers,
    evnafets

  • Problem with javascript jsp

    Hi,
    I am using following htl in my jsp.
    <INPUT type=CHECKBOX name='markets' value='911|6' >
    I am using the following javascript in on submit event
    alert(document.form.markets.length );But i am getting "undefined" in my alert box.However if there are more such checkboxes named market...i am getting the length as output.
    what may be the problem?
    Thanks
    Vivek

    i tried this and its working fine:
    alert(document.forms[0].markets.length );
    <form>
    <INPUT type=CHECKBOX name='markets' value='911|6' >
    <INPUT type=CHECKBOX name='markets' value='911|6' >
    <INPUT type=CHECKBOX name='markets' value='911|6' >
    <INPUT type=CHECKBOX name='markets' value='911|6' >
    <INPUT type=CHECKBOX name='markets' value='911|6' >
    <INPUT type=CHECKBOX name='markets' value='911|6' >
    </form>

  • Problem with index.jsp and JSF

    hi all
    I have an index page "index.jsp" in the root directory of deployed project and in that page there is just a <jsp:forward> tag:
    <jsp:forward page="pages/mainPage.jsf" />I am using facelets and I have a template.xhtml
    when I run the browser nothing will be desplayed. by looking at Tomcat console, it seems that it renders the template.xml. if I place the path of the page directly in the address bar of browser, everything is OK
    http://localhost:8080/myproject/pages/mainPage.jsf
    but if I put following, it doesnt work.
    http://localhost:8080/myproject/
    I set the welcome-page to index.jsp in web.xml, and my pages are located in a directory namely "pages"
    any help will be appreciated.
    regards
    Mohammad

    I'm not sure what the problem is exactly. This topic might help though:
    http://forum.java.sun.com/thread.jspa?threadID=696586
    Be sure to read right to the bottom. You may be able to try a couple other things.
    Hope this helps,
    CowKing

Maybe you are looking for

  • Calculation of VAT on PO Sub Total

    Hi Friends,   We have requirement to calculate VAT on Basic+Customs Duty, As per TAXID (TAx Calculation Procedure for Indonesia) system is VAT on Basic Amount (First condition record) in PO. But we want on Basic +Customs, Can anybody suggest if way o

  • Update Master Data From SAP R/3

    Hi , Im new for CRM. How to upload the Master data ( Customer , Material ) to CRM. Any configuration possible .. pls let me know Prakash

  • Trying to sort by rating for whole project

    I am a photographer working on several different series, and I am just setting up Aperture. I have one project that has up to 30 different albums contained within it. I plan to keep adding to this project (is that not a good idea?) as I do more shoot

  • Jumps to previous page both within current application and other applications

    when using any application, facebook, banking, etc it jumps back to previous pages both in and out of the application. Ex will go back to home or sign in then out of application and back to previous application without prompting. Started after last f

  • Preview Build Section gone from Windows Tech Preview

    So, I noticed that after updating to Windows Tech Preview Build 9860, the preview build section is gone from my settings in zPC settings. Is this a glitch or did Microsoft temporally remove it? Thanks.