Selecting the Folders in JSP page??

Hello
Iam developing a e mail application.I have written some beans to render the directories and files of file system. Now I want to select a particular folder(directory) in the JSP page, so that I can rename it, delete it or move it to another place.How can I select a particular folder and how can I delegate this information to another page.
I tried generating "radio" buttons for each folder.But since the contents of file system will be dynamically changing, I was not able to track the selected directory.
Please help me in this regard.Is there any "Html-Only " solution to this.Or we have to use"JavaScript" to acieve this???Any taglibraries??Any JavaBeans??
waiting for your generous replies.
regards

I think this you can do using JavaScript only. Because one of my friend involved development of document management. That also your sort of application. He use to told me that he used Javascript for creating directoried, swaping files, deleting files etc...
Try in that way.. all the best

Similar Messages

  • How to enable the EL in jsp page

    hi can u tell 'how to enable the EL in jsp page'?

    *I am getting below exception in tomcat when i inclued +<%@ page isScriptingEnabled="true" isELEnabled="true"%>+*
    org.apache.jasper.JasperException: /index.jsp(1,1) Page directive has invalid attribute: isScriptingEnabled
         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)
         org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java:311)
         org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:106)
         org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:590)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
         org.apache.jasper.compiler.Validator.validate(Validator.java:1700)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

  • How to Hightlight the Data in Jsp Page

    How to Hightlight the Data in Jsp Page,
    I am doing doing search page,based on values given search page those are sent to servlet,in servlet based on some conditions if particuler id i am getting then i am redirecting to Respective jsp page with highlight the data from database..
    Thanks in advance...

    "Highlighting data in JSP sounds strange".
    Without looking at your search specific algorithms I feel you are finally going to display a page (HTML content) to user which contains highlighted text. Highlighting is not directly related to server side language you use (JSP, ASP, PHP etc.). This is purely HTML and CSS. However, server side script (such as JSP) should generate HTML content for getting highlight effect.
    Following HTML shows highlighted text using background-color property on span element.
    <html>
      <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
      </head>
      <body>
          <p style="font-size:1.1em">This is a long paragraph which contains <span style="background-color: yellow;">highlighted text</span> and non highlighted text.</p>
      </body>
    </html>Thanks,
    Mrityunjoy
    Edited by: mrityunjoy on 14 Jun, 2010 3:30 AM

  • HT2480 When I am setting up exchange / outlook mail, I am not getting option to select the folders for syncing, can you please help me to solve this problem

    In outlook mail mails are not getting downloaded and option to select the folders to sync is not visible in the exchange setup

    See:
    * http://www.ehow.com/how_6609141_remove-bearshare-spyware.html
    * http://www.fanhow.com/answers/question-77222-how-to-delete-bearshare-search-from-firefox
    You can look for a "Mediabar" program under "Control Panel > Programs and features"
    See also this forum thread about BearShare:
    *[[/questions/792580]]
    If the menu bar is hidden then press the F10 key or hold down the Alt key to make the menu bar appear.
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    *Open the Customize window via "View > Toolbars > Customize"
    *Check that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette in the customize window to the Bookmarks Toolbar
    *If missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • How to halt the execution of JSP page..

    Hello all,
    I want to halt the execution of JSP page suppose for 10 seconds
    can anyone tell me how to do this
    Thanks
    Uttam

    ok
    thanks
    but this code will refresh the page after every 10 seconds.
    what i want that when click on a button on a page it will wait for 10 seconds
    then it should get refreshed only once i mean whenever i click on button
    not in ever 10 seconds
    thanks
    Uttam

  • How to process the HTMLs or JSP pages?

    Hi all. my program need to process the HTML or JSP pages. But they are different from the XML. When I use SAXParser or something like that to process the HTML, Exception will always occur. Especially for processing the element "<% .... %>". So can anyone teach me the way to processing the HTML or JSP pages?

    These are from a Page Layout document. If you are using Word Processing, the button is called Sections instead of Pages but has the same icon.

  • How to declare value null to object at the end of jsp page.

    Hi
    I have two doubts.
    1. Im getting request from request.getParameter() method. i stored that value in one object. after process completion i have set null value to object at the end of jsp page.
    2. I declare jsp scriptlet within the javascript. in that jsp scriptlet i set session.setAttribute() values. i want to get the session.getAttribute value after javascript code completion.
    i tried but i got jasperException.
    please help me to solve this problem
    Thank u in advance

    Hai Sundaram,
    when ever u got the param from request at that time only u set the same parameter to null..
    i am not sure abt this is my idea only

  • How to set the default login jsp page?

    i have written a jsp page called Login.jsp. i want it to be the default jsp page when i type the url "http://localhost:8080" , instead of the index.html of tomcat . how to make it ?

    It's in web.xml, eg. :
    <web-app>
      <welcome-file-list>
        <welcome-file>Login.jsp</welcome-file>
      </welcome-file-list>
    </web-app>

  • Form Authenticating the portal or jsp page

    Before accessing a jsp page, I want the user to authenticate using login.jsp using the user role I created in console.
    But when I hit the page, its not going to login.jsp. Instead its going directly to it. Please find the web.xml and weblogic.xml that I changed below,
    --web.xml
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>webtest</web-resource-name>
    <url-pattern>/portlets/tools/wnxinterface/wnxInterface.jsp</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>wnuser</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <!--turn on identity assertion-->
    <login-config>
    <auth-method>CLIENT-CERT,FORM</auth-method>
              <realm-name>myrealm</realm-name>
    <form-login-config>
    <form-login-page>login.jsp</form-login-page>
    <form-error-page>error.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
              <role-name>AuthenticatedUserRole</role-name>
    </security-role>
    <security-role>
              <role-name>wnuser</role-name>
    </security-role>
    --weblogic.xml
    <wls:security-role-assignment>
    <wls:role-name>AuthenticatedUserRole</wls:role-name>
    <wls:principal-name>AuthenticatedUsers</wls:principal-name>
    </wls:security-role-assignment>
    <wls:security-role-assignment>
         <wls:role-name>wnuser</wls:role-name>
         <wls:principal-name>wngroup</wls:principal-name>
    </wls:security-role-assignment>
    I created the wnuser in myrealm in my console. So I am trying to password protect the wnxInterface.jsp page.
    Actually I have this wnxInterface.jsp as a portlet inside my portal. Is it similarly possible to authenticate the portal itself?
    Thanks in advance

    1. yes: URL u = new URL(this.getCodeBase(),"../relativeFolder/file.whatever");
    http://javaalmanac.com/cgi-bin/search/find.pl?words=URL
    2. yes: using JSObject you can call javaScript methods that can do it for you or retreive the
    componenet directly.
    http://forum.java.sun.com/thread.jspa?threadID=598123&messageID=3180053

  • Is it possible for Backing Bean to drive  the rendering of  JSP page ?

    Any thoughts on this ......
    "Backing Beans should drive the rendering of first jsp page in the application " and not jsp page driving the backing bean or not to put some kind of hard coding in jsp page to see if its admin user then display certain set of UI Components or certain set of other UI components for other users.
    As we have atleast 10 different Roles and there can be Composite Roles i.e. combination of two roles. In this case how does the Backing Bean drives the rendering just the first jsp page in the application?
    Regards
    Bansi

    You can connect to it with file sharing, but you won't be able to use it as an installation source. In other words, you won't be able to reboot the G4 and see that drive over the network to boot from it.
    If your G4's optical drive is consistently problematic, you could replace it quite easily and cheaply (if it's a desktop), or you might look at external optical drives.
    Matt

  • Html select change to make JSP page forward keeping the exsting field value

    Hello, All,
    I am trying to make the change of a selection box in HTML form to reload the page and populate the second selection box based on the value in the first selection box. The content of the second selection box is from database....
    i used a javascript funtion and called it by the onChange(), the onChange redirect the page to the same page. However all my previous input is lost and the second selection box is not populated based on the first selection box.
    The question is how do I keep the current input and reload the page based on the change of a selection box?
    Please help..
    Thanks..
    Here is the code
    <script language=javascript type="text/javascript">
    function forward(){
    location.href="trdCapDetail.jsp";
    </script>
    <select name=vehicle onChange="forward()">
    <%for(int i = 0; i < Vehicle.getAll().size(); i++){
         Vehicle vehicle = (Vehicle)(Vehicle.getAll().elementAt(i));     
         out.write("<option value=" + vehicle.getKey()+" >" + vehicle.getCode() + "</option>");
    %>

    Ok two things.
    1 - you need to submit the value which was selected.
    2 - you need to repopulate the select box with it.
    1 - you need to submit the value which was selected.
    You do this by either appending the parameter to the url, or calling form.submit().
    <script language=javascript type="text/javascript">
    // either set parameter on url manually
    function forward(control){
    var param = control.value;
    location.href="trdCapDetail.jsp?vehicle=" + param;
    // or submit the form:
    function forward(control){
      control.form.submit();
    <% pageContext.setAttribute("vehicles", Vehicle.getAll() ) ; %>
    <form name="myForm" action="trdCapDetail.jsp"> 
      <select name="vehicle" onchange="forward(this)">
          <c:forEach var="vehicle" items="${vehicles}">
            <option value="<c:out value="${vehicle.key}"/>"> <c:out value="${vehicle.code}"/> </option>
          </c:forEach>
       </select>   
    </form>2: populating the control
    One way is to use javascript again:
    <c:if test="${not empty param.vehicle}">
      <script language="javascript">
        document.myForm.vehicle.value = "<c:out value="${param.vehicle}"/>";
      </script>
      </c:if>
    // or scriptlet code if you must
    <%
    String selectedVehicle = request.getParameter("vehicle");
    if (selectedVehicle != null){  %>
      <script language="javascript">
        document.myForm.vehicle.value = "<%= selectedVehicle%>";
      </script>
    <%
    %>The other way to keep the current input is to generate the string "selected" inside the option tag for the selected item. In your loop, check if the current id equals the submitted id, and print "selected" if it is.
    Hope this helps,
    evnafets

  • Designing the structure of jsp pages using xml

    how can i design the structure of the jsp using xml file?

    The structure of the JSP? I don't know what that means. Perhaps you can explain why you thought using XML for that would be a good idea, that might help us comprehend the question.

  • How to send the data from jsp page to excel ???

    hi all,
    i want to send the data from my jsp form to excel sheet. any one can help me ??

    Hope this sample code might help :
    StringBuffer data = new StringBuffer();
    OutputStream ostream = response.getOutputStream();
    response.setContentType("application/vnd.ms-excel");
    response.setHeader( "Content-Disposition",
    "attachment; filename=sample.xls" );
    ostream.write(data.toString().getBytes());
    ostream.flush();
    Try it out.
    Swathi

  • Please tell the right tool for managing the Version of JSP pages

    Hello Friends
    We are developing a software for hospital, we need to maintain versioning of the software. Can you give information about the open source version management software
    Thanking You
    Ajit Saha

    subversion is an excellent choice.
    %

  • How to select the right JSP for a locale

    This may be a very stupid question but someone please help me out. I've
    looked at the JSP spec and the Weblogic documentation and even browsed the
    newsgroup and I still can't figure this out. Perhaps I'm just being dense
    (more than likely).
    What we want to do is support multiple locals from one server. My idea is
    that we'd write the JSP in English then hire translation companies to
    convert the JSP to French,German, Japanese, etc.(We've moved all the java
    code out of the JSPs using taglibs/java beans to make this easier). What
    we'd like to do is have all the languages on the server at once and based on
    the local of the client select the right JSP. We'd still like the URL to
    remain constant. What I can't seem to figure out is how to have one URL
    (like http:/www.myserver.com/example.JSP) and have the server select the
    right real JSP for the local (like example-en.JSP, example-fr.JSP, etc).
    I had hoped I could find a deployment descriptor (J2EE or Weblogic specific)
    directive that mapped a URL to a set of JSP based on locale but I don't see
    one.
    How does one make this happen or is the wrong way to do it". If it the
    "wrong way" what is the right way? Any links or example someone can point
    me to would be great.
    Kent

    We use a Servlet "filter" (not the Servlet 2.3 sense, but a 2.2 servlet that
    does a RequestDispatch.forward())
    This filter selects the most appropriate JSP page (using a similar naming
    convention to the one you indicate), then server-side forwards to it. Works
    quite well.
    j
    "Kent Mitchell" <[email protected]> wrote in message
    news:[email protected]...
    So has anybody come up with other solutions that work better. I was
    thinking about having a "main" jsp that all it did was check the local and
    then forward the request to the right internationalized jsp. So forexample
    I'd have the three files:
    someMain.jsp
    someMain-EN.jsp
    someMain-FR.jsp
    The main check the local and forwards to EN for English and FRfor French.
    etc.. Has anyone done anything like this? Is so what were the pros and
    cons?
    Kent
    "Mettu Kumar" <[email protected]> wrote in message
    news:[email protected]...
    Completely Agree. Once you start using TAG's get Internationalized
    Strings
    tools
    are less useful.
    Kumar.
    Kent Mitchell wrote:
    O.K. but doesn't this sort of make JSP editing tools like dreamweaver
    pretty
    much useless because of all the embedded Java code or and I missing
    something.
    "Mettu Kumar" <[email protected]> wrote in message
    news:[email protected]...
    Kent,
    Most common way of doing this is having one jsp where All the
    Textual
    messages in the page are read from properties file based on Locale.
    Kumar.
    Kent Mitchell wrote:
    This may be a very stupid question but someone please help me out.
    I've
    looked at the JSP spec and the Weblogic documentation and evenbrowsed
    the
    newsgroup and I still can't figure this out. Perhaps I'm just
    being
    dense
    (more than likely).
    What we want to do is support multiple locals from one server. My
    idea
    is
    that we'd write the JSP in English then hire translation companies
    to
    convert the JSP to French,German, Japanese, etc.(We've moved all
    the
    java
    code out of the JSPs using taglibs/java beans to make this
    easier).
    What
    we'd like to do is have all the languages on the server at once
    and
    based on
    the local of the client select the right JSP. We'd still like the
    URL
    to
    remain constant. What I can't seem to figure out is how to have
    one
    URL
    (like http:/www.myserver.com/example.JSP) and have the server
    select
    the
    right real JSP for the local (like example-en.JSP, example-fr.JSP,etc).
    I had hoped I could find a deployment descriptor (J2EE or Weblogicspecific)
    directive that mapped a URL to a set of JSP based on locale but I
    don't
    see
    one.
    How does one make this happen or is the wrong way to do it". If
    it
    the
    "wrong way" what is the right way? Any links or example someone
    can
    point
    me to would be great.
    Kent

Maybe you are looking for

  • Landscape print causes images to be

    Hi. I am developing the printing portion of a Java-based medical imaging application. I need to be able to print a sheet containing several medical images (usually, grayscale images), with different layouts. I am using a code like this to start the p

  • Mac book pro 17 inch purchase

    My wife would like a macbook pro for her birthday on the 29th. Is the 7200rpm hard drive worth upgrading to and what about the high resolution screen? If i remember right apple just did some upgrades to the macbook pro so all should be good for awhil

  • MAX and VISA displays extra COM port

    From the Windows 2000 -> Control Panel -> System, it displayed that there are the following ports: COM1 - Serial port LPT1 - Parallel port COM2 - USB-to-serial port However, when checked with MAX & VISA, it displays an extra port: ASRL1:INSTR (COM1)

  • Scrambling Rule

    Hello, I'm facing one particular challenge trying to scramble HCM data. In this client the unique ID of a person is the PERSONID_EXT Infotype 709. This means that a person has a single PERSONID_EXT, but can have several PERNR's that correspond to a d

  • Contacts disappear on sycing  iphone 6 with Mac

    Hi I have an Iphone 6 and everytime I connect it to my Mac to sync I lose 140 of my contacts. Any ideas?