Need help to get JS variable from JSP???i have partial soultion

Hi everyBody
here a littil desciption about wht i need:
the user should Input value by (prompt) in javascript, then the value will be assigned to JS variable
and i need the value which the user input but in JSP
so i do like this
<script>
var gg;
function getF(){
  gg = prompt("yes","input name"); 
</script>JSP+JS,, both in same page
now JSP code
String newname = "<script>document.writeln(gg)</script>";now the problem is->
i need pass the newname variable to the method renameTo() which belong to FILE class
but i face problem with it cuz newname variable will not be assigned, it will execute the statment each time i use newname varible????
while renameTo() method should take parameter type File.
i hope i put al the details about my problem
any help please???

BalusC:
i've tried ur way:
this is the JS function
<script>
var userInput;
function getF(){
userInput = prompt("yes","input name");
return userInput;
</script>and here where i call the JS function and then pass the returned value
out.print("<a href = index.jsp?'newName=javascript:getF()'><img src = folder.jpeg width = 48 height = 48 /></a>");i got the parameter here
String newPath = request.getParameter("newName");
out.print("newnameObject = "+newPath);but it return null????
any explain???!!!!
bst rgds
Edited by: Mr.Carlito on Jan 8, 2008 3:53 AM

Similar Messages

  • Need help in fetching requested data from JSP

    Hello,
    I really need help in fecthing requested data from JSP to servlet. Can anyone assist me as soon
    as possible because I must finish my program by today.....( 20/02/2002).
    Thanks in advance.

    It is very likely that somebody can help you, if you say what your problem is. In fact somebody might already have helped you. What is your problem?

  • Need help in getting a report from SAP!

    Hi,
    I'm in charge of a manufacturing operation. I need your help to find a report of OPEN PLANNED ORDERS. I'm using spreadsheets to control the production but I need to get this information from SAP directly. NO MORE EXCEL!!!
    Can somebody help?
    JB

    you may not be able to avoid the excel part, but I guess it is worth a try. Take a look at using a query tool to look at the table name PLAF, you could additionally join this table to MAKT for the full material description and perhaps VBAK if you need sales order related header data which may be tied to your planned orders

  • My iPad was stolen - need help with getting my stuff from the icloud

    My iPad was stolen two days ago. I did the remote "lock this device" within ten minutes of it being stolen, but I cannot see any of my pics, etc in my iCloud.
    Any help or advice would be really appreciated

    Photos are not on icloud.com.  You could set up iCloud on your computer and enable photo stream to get back photo stream photos from the last 30 days (see http://www.apple.com/icloud/setup/).  To access your camera roll photos and other data and settings, you will need to restore your backup to another iPad.  If your backup is in iCloud, be sure to do this before it is 180 days old or Apple will delete it.
    It sounds like you already put it in lost mode, but you may want to read through this anyway: http://support.apple.com/kb/HT5668.

  • Need help  to get the dID from a Webcenter TaskFlow

    Hi everyone,
    Here is a description of my need.
    I would like, in an ADF Fusion Web Application, to be able to browse the UCM content and then locate a file to get its dID. I saw that multiple ADF Task Flows exist for that, such as Documents - Document Explorer, Documents - Document Navigator, etc. None of them seems to offer this feature.
    The big picture here, is I want to select a file, within the UCM, to then link this file to a specific project in my application.
    For example :
    ProjectID 1, dID 3254234545
    ProjectID 2, dID 5465434564
    Does someone know a way for me to obtain the dID of a selected item on a "Documents - Document Explorer" taskflow?
    I have looked into taskflow customization but I don't think this could be the solution to my problem.

    I'm afraid the best available documentation is the one already provided. It is true that it does not mention explicitly if the parameter is input or output (unlike all the others it could be both), but searching for some more info and thinking about it I assume it must be an input one.
    What I found is this: http://docs.oracle.com/cd/E23943_01/web.1111/b31974/taskflows.htm
    In the text it states that: "An ADF bounded task flow consists of its own set of private control flow rules, activities, and managed beans. A caller requires no internal knowledge of such things as page names, method calls, child bounded task flows, managed beans, and control flow rules within the bounded task flow boundary. Input parameters can be passed into the bounded task flow, and output parameters can be passed out on exit of the bounded task flow. Data controls can be shared between task flows."
    This means, you could use either an output parameter (if the task flow is somehow exited - which it does not do at the moment; that's why I think the current param is an input one), or a data control.
    Read on in the document, and it seems that a data control might be a better option here. I'm afraid it leads more to the realm of ADF, so it might be better to search the ADF forum - even though, some forum users might be able to help even here.
    Another question is how to fill in this parameter. If it is not implemented, you will have to analyse the insides of the task flow. I think WebCenter Portal uses the RIDC Java API, so you will have to search where a DOC_INFO service is called (via RIDC or Web Services - note that there are few DOC_INFO services). See this link http://docs.oracle.com/cd/E23943_01/doc.1111/e11011/c04_core.htm#BABBCIEB and on for details. These services return result sets, particularly one called DOC_INFO where you can find dID to be copied to your output parameter/data control.
    I've been also thinking if dDocName would not be more appropriate - dDocName marks a content item, dID marks a revision (there might be more for one content item), but you seem to know what you need.

  • NEED HELP IN GETTING MY APPs from my ACCOUNT!! PLZ **** :(

    i have made a back up of my itunes in my hard drive since i had to reformat it 2months ago!
    i restored it in my computer the same day and everything was just like before and working fine! i started downloading bunch of apps for a while and did not make another back up and my computer hard drive died 2nights ago! so i fixed it and restored my itunes again! BUT the problem is i dont have a back up of all the files that i downloaded and bought after the first backup! and right after i synced my phone all the newly downloaded programs were gone and deleted! is there a way that i can get them back?? i only see the apps from my first backup (2months ago)! i dont see anything that i downloaded in the past week or month!!

    You can re-download purchased apps for free:
    http://support.apple.com/kb/ht2519

  • Hi need help on getting customer open  items

    hi all,
    i need help regarding getting open items for customers in the previous
    ie. if i give current date,
    i want to get the open items for past 30 days from current date
    help me to get this ...
    thanks a lot
    regards,
    selvi

    or else ,
    use table BSID.
    Regards
    Peram

  • I need help transferring Bootcamp (Windows XP) from my old Macbook Pro to the new one. How do I make bootable clone of Bootcamp?

    Hi I just got a new MacBook Pro I need help transferring Bootcamp (Windows XP) from my old Macbook Pro to my new Macbook Pro  Mac OS X 10.7.4  2.6 Ghz Intel Core 17. How do I make bootable clone of Bootcamp?

    you can't just move XP even if you took the hard drive and have Windows boot and function.
    Apparently there are Windows tools to sanitize the OS and strip all the motherboard drivers and services.
    Time to get a supported OS. Don't want to pay, then use 8 for the time until it goes on sale.
    There are no drivers for even Vista on 2011 and later Macs.

  • I need help in getting my software options in CS5 Photoshop Student version. We have registered the product but don't have print preview or Adjust Auto Levels for example?

    I need help in getting my software options in CS5 Photoshop Student version. We have registered the product but don't have print preview or Adjust Auto Levels for example?

    <moved from Downloading, Installing, Setting Up to Photoshop General Discussion>

  • I need help in getting my reponses

    I need help in getting my responses back, or I am sending out the form wrong and people aren't getting it. Either way I need help, as I am getting very frustrated.  Thanks Dori

    <moved from Downloading, Installing, Setting Up to Photoshop General Discussion>

  • I changed my password i forgot what it is need help to get back in

    i need help i changed my passwordand i forgot it now i need help to get back in it keeps saying disabled?? help me plz

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                          
    If recovery mode does not work try DFU mode.                         
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings         
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I need help moving my Photoshop 7 from my old laptop to my new laptop which is running Windows 7 Enterprise.  I've tried two routes unsuccessfully.  I install the CD, it does not autoplay.  I execute Autoplay.exe at the root directory, I am welcomed, I ch

    I need help moving my Photoshop 7 from my old laptop to my new laptop which is running Windows 7 Enterprise. I’ve tried two routes unsuccessfully. I install the CD, it does not autoplay. I execute Autoplay.exe at the root directory, I am welcomed, I choose English, I accept the EULA, I get the Install/Explore choices window, with the Install button already selected, I click the Photoshop button, the CD spins, and nothing happens.  In the 2nd attempt I execute Setup.exe in the Photoshop directory, and nothing happens at all.  I’m never even offered the opportunity to enter my product code. What should I do?

    There could is likely a compatibility problem between the old software and the newer operating system.

  • Need help in getting 'RoleApprover' and 'Manager of RoleApprover'

    We are developing a Custom Role Approval Process using SOA composite.
    A manager or a delegated admin will be raising a Role Approval request for a beneficiary. We need to assign the Approval task to beneficiaries' manager or Role Approver.
    If the RoleApprover does not Approve the task in stipulated time, the task needs to get escalated to RoleApprover's manager.
    I'm new to OIM APIs, i was folllowing the tutorial "developing_oim_custom_approval_process_for_role_request.pdf". This needs an user defined field 'RoleApprover' created in the Role request form. We cannot create user defined field in the role request form.
    I need help in getting the 'RoleApprover' and the 'Manager of RoleApprover' programmatically.
    Payload from the OIM Approval request follows:
    <ns2:process>
    <RequestID>176</RequestID>
    <RequestModel>Assign Roles</RequestModel>
    <RequestTarget>Onhand Quantity</RequestTarget>
    <RequesterDetails>
    <FirstName>Steve</FirstName>
    <LastName>Waugh</LastName>
    <Login>STEVEWAUGH</Login>
    <DisplayName>Steve Waugh</DisplayName>
    <ManagerLogin>XELSYSADM</ManagerLogin>
    <OrganizationName>Test</OrganizationName>
    <Email>[email protected]</Email>
    <Status>Active</Status>
    <XellerateType>End-User</XellerateType>
    <UserType>Full-Time</UserType>
    <Role>ALL USERS</Role>
    <Role>Primavera P6 - Global</Role>
    <Role>iProcurement Catalog Administrator</Role>
    <Role>Onhand Quantity</Role>
    <Role>Test Purchasing Super User</Role>
    <Role>Test Delegated Administrator</Role>
    <Role>HELPDESK ADMINISTRATORS</Role>
    <Role>Test e-Commerce Gateway Super User</Role>
    <Role>eBusiness Finance</Role>
    <Role>Test Line Manager</Role>
    <Role>Test_ApplicationApprover</Role>
    </RequesterDetails>
    <BeneficiaryDetails>
    <FirstName>David</FirstName>
    <LastName>Boon</LastName>
    <Login>DAVIDBOON</Login>
    <DisplayName>David Boon</DisplayName>
    <ManagerLogin>STEVEWAUGH</ManagerLogin>
    <OrganizationName>TestCO</OrganizationName>
    <Email>[email protected]</Email>
    <Status>Active</Status>
    <XellerateType>End-User</XellerateType>
    <UserType>Full-Time</UserType>
    <Role>ALL USERS</Role>
    <Role>Hyperion</Role>
    <Role>Test Purchasing Administrator</Role>
    <Role>Test Internet Expenses Audit Manager</Role>
    <Role>Test Internet Expenses Auditor</Role>
    </BeneficiaryDetails>
    <ObjectDetails>
    <name>Test Onhand Quantity</name>
    <attributes/>
    </ObjectDetails>
    <url>
    http://host:port/workflowservice/CallbackService
    </url>
    <OtherDetails/>
    </ns2:process>
    Edited by: rajesh on Feb 13, 2011 9:00 AM

    Choose Xerces2.4 to serialize the DOM object is an option.
    javac XercesTest.java -classpath xmlParserAPIs.jar;xercesImpl.jar;.
    java -classpath xmlParserAPIs.jar;xercesImpl.jar;. XercesTest test.xml
    below is the source file: XercesTest.java
    //JAXP
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    //APACHE SERIALIZE FUNCTION
    import org.apache.xml.serialize.*;
    class XercesTest
    public static void main(String[] args) throws Exception
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document doc = builder.parse( new File( args[0] ) );
    File f = new File( "copy_of_"+ args[0] );
    OutputFormat format = new OutputFormat("xml","UTF-8",true ) ;
    FileOutputStream fout = new FileOutputStream( f );
    XMLSerializer ser = new XMLSerializer(fout, format );
    ser.serialize( doc );
    maybe it's helpful
    land

  • I Need Help Syncing All My Music From My Desktop To My IPhone 5 Helllllllllllp Please

    Hi can someone help me please I have a IPhone5 64g I need help syncing all my music from my I tunes library. I have a total of 3600 songs on my I tunes library which is 26g on my desktop all the boxes are checked on each song when I hit sync im only getting 1400 songs wich is only 10g of music I want all 26g of musicon my IPhone 5 when i hit sync all my music are not syncing and I need helping syncing all my music can someone help me please?

    Are you upgrading from an existing iPhone? Back up old phone, then restore new phone with the cable. I had to do this a number of time to get all my purchases across.

  • Hello need help I download a game from 4shared and it an iPhone game . It show up and my iTunes but I can't sync it to my phone I need help

    Hello need help I download a game from 4shared and it an iPhone game . It show up and my iTunes but I can't sync it to my phone I need help

    Wowowowow I was told I can get any app from the net and it will work thank

Maybe you are looking for

  • 0HR_PT_3 Load is taking too much time when i execute the Info package

    Dear All, i am working on HR Module. i am extracting data from 0HR_PT_3 from R/3 PRD system through info package its taking long time to load data. I have checked in RSA3 in R/3 PRD system whenever i extract "0HR_PT_3"  instead of showing records  it

  • Basic questions, (I think)

    Hi... I've had my Blackbook for about three months and I'm somewhat satisfied. This is my first mac product after my PC laptop was stolen. Anyway... question 1: my desktop is clutter with mpkg and dmg files... is it ok to just throws these in the tra

  • Show Pop Up Menu

    I'm having trouble accessing the "show pop up menu" option in the behaviors + palette. It's greyed out. I am just trying to create a pop-up menu for some links. Here's what I'm doing: 1. highlight the word that will be the link 2. type # in the link

  • SCM 2007 Post Install Steps - Questions

    Hello, I'm installing SCM 2007 and have a questions on a coulpe of the post steps. 1. 5.18 BI-Specific Post-Installation Steps (pg 107 of install guide).  Has anyone done these steps and can you explain them to me?  It looks like it's wanting me to d

  • I found a picture of My iPhone screen saver in iTunes. How?

    I'm not sure how it happened, but my phone took a picture of itself. I was uploading some pictures into iPhoto and there was a picture of my iPhone screen saver. It shows the phone was on Airplane mode at the time. Any of you have an explanation for