Remoted control a Struts web server

Not sure where is the correct forum for this question.
Can URL or URLConnection class remoted control a Struts web server?
If a user input "http://localhost:8080/project/computation.do?para=3" in the browser, then press "Enter" key on the keyboard, the Struts application will perform a series of computation.
Now I am implement an stand-alone application on the client side to give Web Server the instrution to perform the same computation. I donot want to fetch any page from the server.
URL url = new URL("http://localhost:8080/project/computation.do");
URLConnection con = url.openConnection();
con.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(con.getOutputStream());
String data = URLEncoder.encode("para", "UTF-8") + "=" + URLEncoder.encode("3", "UTF-8");
wr.write(data);
wr.flush();
con.coneect();
The Server didnot do anything after running this piece of code.
Can anyone help, thanks very much.

Sorry, please ignore my message,
the code is correct. There is a spelling error in the server code.

Similar Messages

  • Selective Cache-control in the web server

    I am using weblogic 8.1 as the app server and Sun one 6.1 as the web server
    In my obj.conf of the web server we have this
    PathCheck fn="set-cache-control" control="private"
    This caches all the pages.
    But I don't want some pages to be cached in our site.
    For this, I tried setting "no-cache" for the "Cache-control " of the response hedear, in corresponding jsps. But the webserver configuration is overriding this.
    This configuration set in the webserver should be applicable for all the modules except for some urls .
    can anybody tell me how to make this selective cache-control configuration in the obj.conf of sun one web server.
    or if there is any way to prevent the set up in jsp from being overridden this webserver ?
    Also it would be great if anybody can explain, what are the services handled by the web server and the the app-server and how they interact with each other....

    It's unfortunate that JSPs running in WebLogic can't override the default Cache-Control directives in Web Server. That's probably a bug in the WebLogic plugin. (It is possible for JSPs running directly on Web Server to override the default Cache-Control directives.)
    As with any obj.conf directive, you can configure Cache-Control directives on a path-by-path basis. For example, the following would set Cache-Control: no-cache for /foo/*.jsp and Cache-Control: private for all other URIs:<Object ppath="/foo/*.jsp">
    PathCheck fn="set-cache-control" control="no-cache"
    </Object>
    <Object name="default">
    PathCheck fn="set-cache-control" control="private"
    </Object>Information on obj.conf syntax, including how to configure separate objects for separate paths, can be found in the Syntax and use of obj.conf chapter of the NSAPI Programmer's Guide at http://docs.sun.com/source/817-6252/npgobjcn.html.
    I'm not sure what you mean by "what are the services handled by the web server and the the app-server and how they interact with each other". However, it's worth noting that Sun ONE Web Server 6.1 is fully capable of running JSPs by itself; there's no need for a separate WebLogic server.

  • ZENWSbrowser or C1 - Remote Control on a terminal server

    When launching ZENWSBrowser or C1 Remote Control on a terminal server Step 1
    I login as user "A" and am able to successfully Remote Control, View, ETC...
    any workstation. But while user "A" is logged in to the terminal server,
    User "B" or any Other user that logs into the Terminal Server and tries to
    remote control, after selecting the WS then selecting Remote Control, View,
    ETC... this user "B" gets nothing however User "A" who is still logged in
    gets User "B" requested remote control session. Any Ideas?

    I could write a small wrapper that killed Java.exe when Desktop4.exe was
    launched.
    I don't know if that would help you.
    If you want me to do that, drop me at note at my email craig_d_wilson at
    yahoo.
    It would take me all of about 5 minutes.
    Craig Wilson
    Novell Product Support Forum Sysop
    Master CNE, MCSE 2003, CCNA
    Editor - http://www.ithowto.com
    (Seeking Full-Time Expert? Drop me a note :> )
    "Toby LeBlanc" <[email protected]> wrote in message
    news:[email protected]...
    > OK here's what we believe to be the issue. It seems that desktop4.exe
    > when run independently or through ZENWSbrowser lauches it kicks off
    > Java.exe but doesn't release it. If we kill java.exe process then all is
    > well. This does not happen with Console1. I have upgraded to the latest
    > C1, Snapins and even tried copying the latest release of Java over the jre
    > dir inside the C1 directory. So is Java.exe launched by desktop4.exe in
    > server or client mode? There appears to be a switch (-client) for
    > java.exe that allows you to launch it in client mode that may resolve this
    > issue.
    >
    > We are going to attempt to upgrade the terminal server to Windows 2003
    > so that we can set it to kill java.exe if it is running for more than 15
    > seconds or so but this is obviously not a good solution. Besides I hate
    > to allow the Microsoft Funkies here to fix my Novell problem with a
    > Microsoft solution, it would give them way too much pleasure. Anyone have
    > any thoughts?????
    >
    >
    >
    > "Toby LeBlanc" <[email protected]> wrote in message
    > news:[email protected]...
    >> When launching ZENWSBrowser or C1 Remote Control on a terminal server
    >> Step 1 I login as user "A" and am able to successfully Remote Control,
    >> View, ETC... any workstation. But while user "A" is logged in to the
    >> terminal server, User "B" or any Other user that logs into the Terminal
    >> Server and tries to remote control, after selecting the WS then selecting
    >> Remote Control, View, ETC... this user "B" gets nothing however User "A"
    >> who is still logged in gets User "B" requested remote control session.
    >> Any Ideas?
    >>
    >
    >

  • I am a newer about LabVIEW.How can I realize a remote control in a Web brower.

    "To transform your application into a remote laboratory, make sure the VI that you want to publish is loaded into LabVIEW memory. Next, select the Web Publishing Tool option from the Tools menu. This window is the main window for interactively creating and publishing your remote laboratory
    The Web publishing tool will automatically load in the Document Title and VI Name text fields. As the sample image in Figure 6 illustrates, the Document Title, Text 1, and Text 2 are all text fields that you can use to customize the Web page created with the publishing tool.
    The second step necessary to enable a remote laboratory is to select the Start Web Server button. When pressed, this button activates the built-in LabVIEW Web server, which will publish and control your front panel images from the Internet.
    Once the Web server is activated, the actual HTML document needs to be created and saved so it can be accessed remotely. Clicking on Save to Disk places an HTML file called Document Title.htm into the LabVIEW file folder called WWW by default. Saving your Remote Panels HTML documents into this folder will ensure that the LabVIEW Web server can find them. Either keep the default name, or assign a new name and save the file. Once saved, a new panel entitled Document URL pops up with a message box containing the URL address of your enabled LabVIEW application.
    Click on OK in the Document URL window and then click on Done in the Web Publishing Tool window. Your lab is now ready for remote visitors
    Required Software
    To operate a LabVIEW program using remote panels, it is necessary to have the free LabVIEW run-time engine installed on the client computer. When a remote viewer logs onto the lab with the appropriate URL address, the LabVIEW front panel will appear in the browser, or reroute the user to install the run-time engine from the National Instruments Web site.
    Application Control
    Once connected to the remote laboratory, the client connection will automatically be in a monitor state. If another client is controlling the remote laboratory, the user will be able to monitor the actions of the controlling client. To request control of the program, right click on the front panel and select Request Control. Once selected, one of two possible messages will appear. Either the user will be granted control (Control Granted), or the user will see a message indicating that control is currently granted to another user (Waiting for control: Either the server is locked or another client has control). If another client has control, the controlling client will be notified that control time has now become limited. Once the timeout occurs or the controlling client has released control, application control is automatically switched to the requesting client (Control Granted). Once the user has been granted control, all icons and controls will become active and running the LabVIEW application is exactly like running the application from the local environment.
    Releasing Control
    When the remote viewer either moves on to a different URL address or relinquishes control by right clicking and selecting (Release Control), or when the remote laboratory times out, the remote laboratory is available to the next visitor."
    The above is what I read from a text of ni.com,
    but I can not obtain the result.
    Thanks a lot!
    ^^

    Hi
    I don't see which LV version you are using. It's important to know, that you need the FDS or PDS package of LV 6.1 to work with remote control. This feature is not supported in the LV base package of LV 6.1.
    If you have LV 6.1 FDS or PDS, which of the described steps are not working?
    Luca P.
    Regards,
    Luca

  • Remote control in a W2012 server R2 in workgroup

    Hello,
    In order to meet the needs of a client,
    we set up a server 2012 R2
    in workgroup with the service remote desktop.
    We installed the role through the installation of
    basic roles and non scenarios
    (available only in domain).
    However, the remote control doesn't work.
    We suddenly tried to export the
    console TSAdmin on a 2008
    to a 2012 (by changing a few rules
    in the register as well as copying a few
    files from a windows server 2008)
    this work well, nevertheless remote control
    returns me "Access is Denied".
    Do you have a solution to operate the
    remote control on a 2012 R2 server
    in a workgroup ?
    Thanks
    ps : sorry for my bad english, if you don't understand me i can explain more.

    If you're only trying to enable remote desktop on the server to enable administration of the server then you don't need to install the remote desktop role. The Remote Desktop Role is used when you want to enable terminal services, to allow multiple users
    to connect to the server and use it using their own domain login details (eg running their applications on the server rather than on their local machine).
    For remote administration, all you need to do it open an explorer window, right click on "This PC", select Properties, and then in the window that opens, click "Remote settings" on the left hand side. Click the option for "Allow remote connections to this
    computer" and then click Select Users... to set which users are allowed to connect to the server. You'll find that administrator is already enabled by default, so if you're only going to be logging in as administrator then you don't need to add any other users.

  • Access Control for SunOne Web Server 6.0.5 vs. 6.0.4

    This question is about bypassing an appserver by specifying an alias without the appserver vitual host so as to download a class or jar file. With only the default ACL on the 6.0.4 version of the Sunone web server I found that .class and .jar files were not downloadable. However, on version 6.0.5 they are. For example, the URL:
    https://myhost/appserv/alias/path/file.jsp
    would return the html resulting from that file.jsp file being processed by my application server. But by contrast, the URL:
    https://myhost/alias/path/file.jsp
    will prompt the user as to where they want to save the file. Specifying the alias immediately after the hostname (omitting appserv) will allow free access to any files under that aliases target directory. This is a problem especially for .class and .jar files which contain server side programs. I have created an ACL as described in the administrators guide and this does solve the problem (thank goodness for that). My question is, why didn't I experience this problem before?

    To Disable directory listing : http://www.sun.com/bigadmin/features/hub_techtips/dir_list_web_srvr.jsp

  • Remote-control of a Mac server from Windows

    What is the Apple recommended way to logging into a Mac Server from a Windows PC so that I can manage it? I have an iMac on my desk but that's for creating/testing images. My main PC is an HP laptop running Windows 7. I've got Real VNC setup but the number of times it just stops working and I have to reconnect is not funny. Logging in is a chore, too. 1st password to control screen, then login to server, VNC gets kicked out during screen refresh, have to enter 1st password again to get back in.
    Is there an official RDP program like Windows has for managing Windows servers?

    Hi
    +"What is the Apple recommended way to logging into a Mac Server from a Windows PC"+
    AFAIK there isn't one? Why would there be? Putting the shoe on the other foot Microsoft offers RDC for mac to control PCs. I don't see anything on the site stating it's the 'recommended' way?
    +"Is there an official RDP program like Windows has for managing Windows servers?"+
    Yes. It's called Apple Remote Desktop. You can't install it on a PC. Since 10.5 VNC Server and Client are 'built-in' for Server and Client OS as you already know. The protocol is actually VNC. RDP is Microsoft's proprietary name for it.
    I've never had problems controlling any mac (server or client) using TightVNC, RealVNC or UltraVNC - there are others you could use and experiment with? Depending on the Windows OS and network environment you may have to experiment with all three before settling on one that works consistently. Perhaps the problems you're having are due to a misconfiguration? On the mac side enable Remote Management - not Screen Sharing. Go into the VNC options and enable the "Control Screen with Password Setting". Create a password but don't make it the same as the Administrator one.
    AFAIK the logging in behaviour you describe is normal in my experience. I've not found it a chore on either a platform.
    HTH?
    Tony

  • Remote Control and Windows 2000 Server

    Does anyone know if it is possible to use Zenworks for Desktops to remote
    Contol on a Windows 2000/2003 server ?
    Regards
    Johann Folkestad

    OK, thanks.
    Johann F
    "Marcus Breiden" <[email protected]> skrev i melding
    news:19gl0uyoxzfhl$.[email protected]. .
    > On Mon, 27 Sep 2004 08:43:58 GMT, Johann Folkestad wrote:
    >
    >> Does anyone know if it is possible to use Zenworks for Desktops to remote
    >> Contol on a Windows 2000/2003 server ?
    >
    > ZFD will not support RM of a server... you need ZFS for that...
    > --
    >
    > Marcus Breiden
    >
    > Please change -- to - to mail me.
    > The content of this mail is my private and personal opinion.
    > http://www.edu-magic.net

  • Newbie, How Do you transfer a site from Remote Host to Local Web Server

    already exists to my local IIS server. I cannot figure it
    out. I keep going in circles with Manage Sites, creating the folder
    in the Inetpub/wwwroot folder and I need some help to get the whole
    site locally so I can work on it. I use to use Frontpage but my
    developers cannot stand the extra code it puts in and it's not
    google friendly. So I decided to use Dreamweaver to create and
    manage my sites.
    Thanks for all the help in advance.

    In the file panel, view the remote site and select the top
    level folder. Then right click and select get.

  • Use remote panel on the web after bulid executable applicatio​n(*.exe)

    Dear All
    i have a vi with using remote control on the web.
    But how can i use remote control on the web after bulid executable application(*.exe)
    maybe add someting to installer or ............

    A simple search for "executable LabVIEW web" should generate some relevant results.
    Try to take over the world!

  • VMM 2013 R2 Manager - Remote Control issue

    Hello Everyone,
    Looks like Im having a remote control to the VMM server issue. Everytime I try to connect to console of the VM machine, I get this error:
    "An authentication error has occurred Code: 0x80004005" Remote computer: servername.mydomain.com"
    The VMM server has been added to our domain and I'm logged in as the Domain Admin. Is there a permissions group I might be missing or is it something else?
    Please Let me know
    Thank you
    Devon

    The 'first' VMM administrator is the domain user account of the logged on user that installed VMM.
    If the domain admin performed the install of VMM, then they would be the first administrator by default.  If someone else did, than that user is the first administrator and they have to add the domain admin as an SCVMM administrator within SCVMM.
    Also, you cannot move an SCVMM server from one domain to another.  You will end up with broken security.  You have to re-install SCVMM.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • File Dialog's using Remote Panels (via web server)

    I am aware that the web server remote panel access will not allow us to open a file dialog box on a remote computer.  I have read people comment that you should create your own file dialog box, using LabVIEW to use instead of the file dialog box.
    Has anyone actually done this?  I would like know if anybody has source code for this, rather than re-inventing the wheel.  Also, will the sub-vi actually just appear on the webserver? i.e. will it actually work?
    Thanks for any help
    Slade

    Hi Emilie,
    I have a program that I run on an industrial PC, with no keyboard, video or mouse.  We currently control the application using the web server.  We have a button to load and a button to save settings.  If the files are missing for the load & save, it pops up a file open dialog to choose the file to import.  However, while we are viewing the page this way, these dialog boxes do not work.
    I would like to know if anyone has made up a file dialog box that I could use, that would display correctly in the web server's remote control.
    Regards,
    Slade

  • How to remotely control WebAS

    Hi,
    I'm using NetWeaver 2004S, NewYork 711 and NewYork 720, I want to find a solution to remotely control the server, such as remotely re-start WebAS or a specified service, (these WebAS cover windows, Linux, and unix platforms), it would be better if just a command, and I onlyneed to provide the connection parameters.
    I know there must be a solution, but I haven't idea how to do this, anyone can help me?
    thanks in advance!
    Regards,
    Qinzhu

    Hi,
    maybe a standard webservice could help you, with this address :
    http://<hostname>:port+13/?wsdl
    it provides several monitoring function, and also a "restart" one.
    Also you can use the Visual Administrator to connect to a distant server, and reboot from here, also a SAP MMC can be used to reference differents servers.
    Fabien.
    Edited by: Fabien REVOL on Sep 29, 2009 4:22 PM, reason: completion of the answer.

  • Programmalically disconect a user from Remote Panel Web Server

    If a Web client is accessing to my Web Server for a long time, how can I Programmatically disconnet it?

    Hi,
    in LV 6.1 you can't progammatically disconnect a client that holds control of a remote vi panel.
    But you can limit the time the client can hold control:
    go on Tools\Options\Web Server:Visible Vis, here you have the control time limit which
    specifies the amount of time in seconds a client is allowed to control a VI front panel in the Visible VIs list.
    Alberto

  • Remote panel / Web server. II part ?

    Hi all
    There has been some activity about remote panels / web server in this forum.
    Basically, NI documentation states LV run time, at least, must be intalled in client PC to use that feature.
    In this link to post
    a post from NI engenier Jeremy L. says that just to monitor a remote panel vi, NI soft is not necessary in the client PC. That option looks very interesting.
    So, my questions are:
    1- Somebody got to monitor a remote vi if LabView or run time is not installed in client PC.?
    2- Can NI peo
    ple clarify this option?
    3- What is, if anything, the minimun NI soft required in client PC to monitor a remote vi front panel?
    Thanks in advance
    Alipio
    "Qod natura non dat, Salmantica non praestat"

    alipio wrote:
    > Thanks. I got last Jeremy´s post after posting my question.
    > Now I can monitor remote vi without NI soft.
    > About 3rd question, what I mean is if it is neccesary the full run
    > time or one only needs some dll or other small plugin from NI to get
    > control of remote vi.
    Well as I said for monitoring, NO NI software is necessary. For Remote
    Control you basically need the lvrt.dll runtime and some supporting
    files such as lvapp.rsc.
    As the runtime gets more and more complex it is not a good idea to try
    to install individual files. Eventhough the lvrt.dll contains up to now
    all the code necessary to execute simple LabVIEW programs there is more
    necessary to be able to for instance display the LabVIEW 6.x 3D controls
    (all of the
    models directory is then necessary) or in the case of the
    web plugin I would assume the lvpng.dll and lvjpeg.dll will be also
    necessary.
    Also some registry settings have to be set so that the plugin or LabVIEW
    application can find the appropriate runtime engine, unless you want to
    copy all the necessary files into the same directory as your application.
    In view of this I would not even consider getting a LabVIEW runtime
    system onto a computer other than by adding it through the application
    builder to my executable, or running the official NI runtime installer.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • HP Laserjet P1005 print in Text Edit but nor in Word or Adobe Reader

    I just bought a HP LaserJet P1005 printer, it does print in all the aplications that camed with the operating system Mac OS X 10.4.10 ( Text Edit, Ical, Iweb, Sherlock, etc) but It does not print in any other aplication ( Open Office, Microsoft Offic

  • Looking for some advice on CEP HA and Coherence cache

    We are looking for some advice or recommendation on CEP architecture. We need to build a CEP application that conforms to the following: • HA with no loss of events or duplicate events when failing over to the backup server. • We have some aggregativ

  • Set Default Tab For A Step

    We have a system that has been installed at a couple of affiliate sites in Japan and Romania (we've been developing in Australia).  It runs on TestStand 4.2 with supporting code written in LabVIEW 8.6 (although the Romanian site uses TS4.2.1 and LV20

  • TS3274 the battery of ipad is not charging, what could be the reason?

    My ipad is showing' not charging' message after i plugged it in the AC socket, what could be the reason? How can i solve it?

  • Inspire TD7700 and Audigy 4 Pro connection problem

    I have a problem connecting the speaker system Inspire TD7700 with the soundcard SoundBlaster Audigy 4 Pro. The soundcard has a hub that is placed outside the computer, and it is connected to the soundcard inside the computer via two AD_LINK inputs/o