Creating a  a java Program which Displays a POP UP in a JSF Web Page!

Hi Folks,
I wrote a java program which checks the user credentials against the Active Directory, and if it exists displays a URL (of Web Application) with useri nfo filled automatically in the page deployed on Tomcat ver 6.x.
Now My Problem is just that I have a Pop up in the User Login page which has 3 buttons and according to that the Logic ,Navigation flows. Earlier i was just filling the info directly from Active Directory and Landed into the User Info Page. But now the functionality has changed so I have to modify it. I am not able to find how to Display the Pop up. in that page.
If anybody can help me with that I would be really greatful.
Thanks in Advance ,
Somil

Thank you for the quick response George. I guess a better way communicate what I need to accomplish is "how"
I went to the toolbar on the right, then "javascript", then "Document Java Scripts". That opened a window that had me name the script, then add it, then put in the scripting (see below). I do not know how to "place it in a document-level JavaScript (outside of a function definition) or in the initial page's Page Open event."
This is the script I am attempting to use.
var message = "When you have completed filling out the Tax Organizer, click on the purple "SUBMIT" button at the top of the page. This will automaticall submit your Tax Organizer for you. Be sure to print a copy for your files"
app.alert(msg,3);
If you could provide some step by steps that would be super.
I am wanting this pop-up box to open and the client will have to then click on the "ok" button to make it dissapear so that they can then fill out the PDF.
The "Submit" button is auto created for me when I choose to distribute the form, I am unaware of any way to move it.
I feel that my issue is a elementary one, I am currently working through the Adobe Classroom in a Book lessons as all my acrobat skills have been self taught.

Similar Messages

  • Error while running Java program which call a file upload servlet

    Hi all,
    I have a java program which calls a servlet and sends the file to be uploaded by the servlet. I used Jbuilder to create java program and servlet program. I compiled both the programs and compilation suceeded and my class files are avaialbe in
    WEB-INF/classes/content directory. But now I am trying to run the Java program(this contains main method) from the command prompt, which should inturn call my servlet.(I have web.xml file inside WEB-INF dir). But I receive the following error
    C:\tomcat5.5.15\apache-tomcat-5.5.16\webapps\content\WEB-INF\classes\content>java MultiContentSender
    Exception in thread "main" java.lang.NoClassDefFoundError: MultiContentSender (w
    rong name: content/MultiContentSender)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    My dir strcture is as below
    TOMCAT_HOME/webapps/content/WEB-INF/classes/content/*.class
    I am not able to figure out the error, can anyone throw some light on this issue.

    You are trying to invoke the class from the command prompt. My guess is that MultiContentSender contains a package, which means that you'll need to add your WEB-INF\classes directory to the classpath before it will work. Classes stored in this directory are expected to be invoked through tomcat, which builds it's own classpath.

  • How Can we stop the execution of java program which contain infinite loop

    Dear All,
    I create one .bat file which which execute the simple java program
    I write one java program which execute above .bat file using instance of Runtime Class of java
    It's work fine if java program which is executed by .bat file is simple(Which has normal termination)
    But if that program contain inifinte loop then that file will goes on executing untill I close it manually
    So i want a solution in java which close that bat file (command window ) which is in running condtion
    If there any solution please replay me
    I try to close that .bat file using destroy() ,stop() method of Process and Runtime , Thread Class
    but it did not give me correct output
    .bat file still running !!!!!!!!!
    Thanks in advance

    Why not use javaw.exe to make the app run so you don't need the dos window (which is presumably what you are actually talking about when you say bat file).

  • Embedding a java program which requires one parameter to an applet

    I have a java program which requires one parameter for running it such as;
    "java program.java 34"
    .I must use this program as an applet. How can I send this parameter during running the applet.
    "appletviewer program.html"
    ???

    Now, for your specific problem - the likelihood of them actually having created / initialized the components in a constructor is 1 in about 10-ba-friggity-zillion. So - here is how you get around that: make a direct call to the init() method:
    import javax.swing.*;
         class Turd extends JApplet {
              private JTextArea jta;
              private JScrollPane jsp;
              public void init() {
                   jta = new JTextArea(10, 30);
                   jsp = new JScrollPane(jta);
                   this.add(jsp);
         public class Burglar extends JFrame {
              private Turd turd;
              public Burglar() {
                   turd = new Turd();
                   turd.init();
                   this.getContentPane().add(turd);
                   this.pack();
                   this.setTitle("Turd-->Burglar");
                   this.setDefaultCloseOperation(EXIT_ON_CLOSE);
                   this.setLocationRelativeTo(null);
              public static void main(String[] argv) { new Burglar().setVisible(true); }
         }See how I did that? Made a "Turd" object, then manually called the "init()" method. And - voila! See how purty?

  • How to create reports for java programs?

    Hi,
    I have planned to do a project using java,that will help to create reports for java programs. To create reports for java programs i used two options.
    1)Crystal reports
    2)Write the code to produce reports for each java programs
    The second one little cumbersome.SO i planned to develop a software that is compatible for creating java reports.
    I would like to know how i will do the project?Can you help me to made it a successful project.Hope you can help me.
    Expecting your reply
    PreethiRenjith

    Uggg... Crystal reports...
    I would personally write a generic report generator, It would probably be easier than fighting w/
    crystal reports (CR is popular, but painful :) )
    Anyhow, I've written report generators for many different applications. It is one of the simplest projects you
    can take on, and the results make you feel special --
    If your need nicely formated, portable, printable reports, you could have your report generator make PDF files (the format is open, and VERY simple, plus people like pdf files) you can get the pdf spec from adobe or from wotsit.org (the famous wotsit file format archive).
    enjoy!

  • To run a java program via a batch file,when called from a web server

    REM This batch file runs the Spider with the [-v] option.
    REM Lines 51 through 54 are simple DOS commands..they call the Spider
    REM The location of the Spider package is the important piece of information here...
    REM a batch file has access to the whole computer where the server resides.
    setlocal
    set JDK=C:\j2sdk1.4.1_01
    set PATH=%JDK%\bin;.;%PATH%
    CLASSPATH=%JDK%\jre\lib\*.jar;.;%JDK%\jre\lib\ext\*.jar;.;%CLASSPATH%
    java spiderpackage.EntryPoint -v
    endlocal
    I am trying to run this batch file from my web server.I can see nothing on my browser.I can run the same program from my machine but unable to run from web server.what should I do?

    I am making my question more clear...
    I have a Windows batch (*.bat) file that echoes some html, then calls a java program the output of which is html as well, then echoes the final html.
    To make sure that the java program gets properly executed, I set the necessary environment variables (e.g., JDK, PATH, CLASSPATH, etc.). The script looks something like this:
    setlocal
    set JDK=path_to_JDK
    set PATH=path_to_java
    set CLASSPATH=path_to_java_classes
    echo ^<html^>^<body^>
    call java foo
    echo ^</body^>^</html^>
    endlocal
    The idea, of course, is to call this script through a browser, on a web server.
    Curiously, both echo lines return to the browser just fine, but any output from
    the java program (which just writes html to STDOUT) does not make it back.
    Can someone explain to me why this is happening? How do I set things up so that the output (STDOUT and STDERROR) from the java program make it back to the browser?

  • My Safari displays text in certains spots on a web page as mixed characters

    My Safari displays text in certains spots on a web page as mixed characters. Is there a fix for this or does anyone have an idea what may be going on? I have looked at my fonts and everything seems to be working just fine. I can't quite figure out why this only happens to certain text and not others. But I can't read half of the pages on the web because of this. I can copy the mixed up text out of Safari and past it in another application and the copy is in perfect english then.
    an example of what I am talking about is below:
    (Kvg"Urgekhkeu"/Crmg"/"Crmg"Fgumvqru
    Here is what it says when I copy the same characters out of Safari and paste them below:
    (Item Specifics - Apple Desktops)
    Any help or advice will be greatly appreciated

    I work as a graphic designer so I keep a very clsoe eye on my font library. In fact I don't use font Book, I use Suitcase Fusion. But i went to font book and double checked and I don't have any duplicae fonts in there. Would you have any other ideas?
    thanks for your help!

  • Acessing objects created by another java program

    ok ill give a higher level view of the problem.....
    i think this is a fundamental problem
    I have 3 java programms which take information and store it. all the type of information is the same so I created a class DataStructure....just to store information. this class i put in a package DataStruts and i call the class in the java programs by " import DataStruts.* ; "
    In the java prog. i create instances of DataStructure like
    eds = new DataStructure();
    in the first java prog i create an instance "eds", in 2nd "ads" and in third "pds".
    now in third prog i want to print all the information so i try to retrieve the data stored in the objects "eds" and "ads" by the previous 2 java programs.
    however the third prog does not recognise the variables eds and ads. i think this is because their instances have been created by the first 2 java programs.
    how do i make these instances of DataStructure available to the last program.??plese let me know.
    thankyou in advance.

    Can someone help me make the connection between the
    statements
    I thought a class's public methods were available
    to any other class that has access to the first
    class.
    and
    They are, but only to code running in the same
    VM.
    The first means that when you're writing a program, if class Foo has a bar() method that's declared public, then the compiler will allow you to call bar() on an in instance of a Foo. That's all it means.
    The second means that if I start two different VMs (two separate Java program's) the publicness that made it legal to call Foo's bar() doesn't automagically give the first program a way to know about or see or call a Foo's bar() in the second one.

  • Creating an executable java program

    hello every body
    i have finished my java program
    and i want to ask if there is some software that create a .exe of your project or make your projecte installable.
    for the moment i use javaexe but it's not really good
    do someone have an idea.

    That's the question most people ask.Actually this
    proccess is againts the goal of java for being a
    platform independent programing lang,That's an urban legend I haven't heard in a while -:)
    How can the generation of a native executable out of a Java source be against the goals of Java? Has the source code been contaminated in any way in the process? Is it now less portable than before? The native executable itself isn't portable of course but that's kind of the point of producing one, and it doesn't restrict the portability of the program itself.

  • How to reach Java program which is run as individual process

    Hi There .
    My question is if I run a java program as individual process using Runtime , can I reach this process and change some variables up there, like set a boolean variable to false , or stopping running thread properly. whatever. till now I figure out two ways , either kill the PID of my program (if I want to stop it ), or touching a new file and when the program sense that the is been created he will take an action ,like exit or do the things that I want to do, I tried and I googled it but I ends up with nothing , what I understand it's like it's irreversible thing when it's run there is no way back. Thanks in Advance

    No you can't interact with a process you start as if it were just other Java code.
    What you can is interact with it in the same ways you can interact with any other process. For example through the process input and output stream. Or perhaps through Sockets.

  • Java programs which require a specific version of java won't work

    So I'm running 10.4 on my macbook pro, and when I try to run a java program that requires any version of java, I get an error saying I don't have that version. Java works fine from the command line when I run programs I wrote, and java -version outputs:
    java version "1.5.0_16"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-275)
    Java HotSpot(TM) Client VM (build 1.5.0_16-132, mixed mode, sharing)
    When I try to run something (say, some java applet), I get the message:
    Could not launch the application because it requires a version of Java that is not installed.
    (in smaller print):
    This application requires Java 1.4 or later, but only the following Java versions are installed: . Updating to a newer version of Mac OS X may resolve this.
    The message makes me think that in some text file or some preference somewhere, the thing that tells the system what version of Java I have got deleted. Anyone have any ideas of something I can do to fix it?

    I usually use Win 7 and lately have been playing with the Win 10 preview. I like Win 7.

  • Calling an unix command from a java program which runs on windows

    Hello All
    I have an Java Application which is run on windows server (I)
    I have another Sun Server (II)
    I want to call an unix command on server(II) from java application which is on server(I)
    I am using Samba Server in order to share files between Windows Server and Unix Server
    Can I use samba in order to call command
    or is there any way to open an telnet session within java application
    I will be grateful if you give me some suggestion on this issue
    Regards
    BEKIR BALCIK
    J2EE Application Developer
    Argela Technologies ...

    cross post
    http://forum.java.sun.com/thread.jspa?threadID=624601&messageID=3553626#3553626

  • Fast command-line program which displays connectivity

    Hi
    I'm looking for a command-line program which can show whether or not my network interface has an IP address or not. It could use "ifconfig" to extract the information, I don't really care, but it has to be *fast* and it cannot require root access.
    Thanks

    Thanks, but if someone knows some sed/awk magic to get only the interface's IP address, that would be great!
    EDIT:
    Using the little "sed" I know, this is what I came up with:
    ifconfig wlan0 | grep -w inet | sed "s/^\\s*//" | sed "s/^inet addr://" | sed "s/\\s.*//"
    EDIT2:
    Now I have this reasonable command:
    ifconfig wlan0 | grep -w inet | sed "s/.*inet addr:\([^ ]*\).*.*/\1/"
    Last edited by skorpan (2009-06-07 16:44:19)

  • Help, java programs cannot display properly

    Hello,
    I installed redhat 8.0 on my laptop ( Compaq Presario 1120, video
    card ATI Mobility Radeon 9000, not sure, how to check?). Then I
    installed j2re1.4.1, but when I run java program, it can only show
    the frame, just a frame.
    In the terminal, it gave the following message:
    java.lang.InternalError: not implemented yet
    at sun.awt.X11SurfaceData.getRaster(X11SurfaceData.java:155)
    at sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(CustomComponent.java:67)
    at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:451)
    at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:186)
    at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:749)
    at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2803)
    at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2793)
    If somebody knows what's the problem, please tell me, thanks!

    I had exactly the same problem with RH8.
    I fixed the swing problem by editing /etc/X11/XF86Config and adding
    the following line in the Screen section:
    DefaultFbBpp     32I restarted X (telinit 3; telinit 5 from root) and SwingSet2
    ran perfectly without any console exceptions.
    Thanks to Juergen Kreileder, Blackdown Java-Linux Team for this

  • Retina display - blurry office for mac 2011 and web pages?

    Hi everyone,
    I was planning on making a trip to my uni tomorrow to make the purchase of the macbook pro 13 inch 8GB RAM and 256 GB SSD (for student discount) but while doing some final research I came across several disadvantages of the RD.
    For the next 3 months, the macbook will be used for report/thesis writing which means ill be using office for mac 2011 and adobe reader heavily as well as the internet. I have read many articles saying office for mac 2011 even after applying the update is still blurry and grainy as are the majority of web pages and this has put me off buying and made me think id be better off with the non retina display model, meaning I'd save £200 too.
    Can anyone offer any advice on this and confirm whether or not this is true, and whether you would recommend going ahead with the purchase? A screenshot of office for mac 2011 on a retina display would be perfect
    Thanks!

    I agree with BobTheFisterman.  I have Pages 5, Pages '09 and Office for Mac 2011.  I really like the Pages programs - each of the versions in their own way - but I don't like using Word on Office for Mac.  It's not the same as Office 10 when used on a Windows machine.  Not close at all in fact.  I use it because I have it, and emailing documents between my Mac and work where we use Windows makes it easy.  "Easy" is not the same as liking the software though.
    The point of this, is that I would not recommend buying it.  I've heard that Open Office and Libre Office are very credible alternatives, and work very much like Word on Windows.  Both are free and get very good reviews.  I've not used either so can't speak from personal experience, but what I would say after buying Office for Mac is that I wish I had tried the free alternatives first.
    The other alternative to consider of course of Google Drive.  I use that for non-confidential documents, but I wouldn't trust it for storage of any confidential work related stuff.

Maybe you are looking for

  • Price of PO/Contract

    Hi Experts I want to know in which tables the price of PO/Contract is stored in SAP. Regards Raja

  • Login keychain going crazy

    My login keychain is set (via Keychain first aid) to "always remain unlocked". However, it seems to lock itself from time to time anyway. (I've set the machine to require a password to unlock the screen saver.) Even when the menu bar shows it to be u

  • Webservice proxy detail

    Hi,      I want to import the webservice created in ABAP in webdynpro.For that need proxy setting like destination name,destination type,custom URL.system id,client etc. Can anyone explain which system detail we have to provide here ABAP or EP.What s

  • Saved images appear as 72dpi Photoshop CS3 Extended

    Hi Suddenly my images which have been saved at 300dpi are coming up as 72dpi when I re-open them in Photoshop CS3 Extended. I create a psd file at 300dpi, work on it, save it as a maximum quality jpeg/png etc, but when I open it up in Photoshop again

  • Change iview's layout of Appraisal Self-service

    Hi everyone. Do you know if is possible change de layout, text, of the iviews? Regards. Eduardo Campos