How to get file from server while click on link
Hi,
i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
following is the Destination url that i gave for the item.
/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
please tell me how to get file from server while click on link.
Ok I got your requirement now.
If you are getting file names from view attribute then you should not be adding destination URI property for the link.
Instead you can use OADataBoundValueViewObject API.
Try below code in your controller processRequest method:
I am assuming that you are using classic table.
Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
OATableBean tableBean =
(OATableBean)webBean.findChildRecursive("<table item id>");
OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
Regards,
Sandeep M.
Similar Messages
-
How to Get file from Server (via AL11)
Hi Team
I have a requirements like getting the file from the server if Application server is check.
Once i have press F4 button on the file parameter, shown dump .
i am using FM /SAPDMC/LSM_F4_SERVER_FILE under AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apath.when i am pressing F4 button to findout the file directory it shown dump like
MESSAGE E019(/SAPDMC/LSMW).
My system is ECC 6.0 Develoment .
Please have a look and let me other alternatives to get the file from application server.
In Advanced Thank you.
Thanks & regards.
Puneet.Hi Gautam,
i have tried as per given FM but problem is that while reading the file it gives sy-subrc 4. file is already situated correct directory then gives error.
So please give me other function module which is similar functionality as
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = c_space
IMPORTING
serverfile = p_w_file
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
Thanks.
Puneet. -
How to get file from FTP Server using File Control
Hi,
Any one did getting file from FTP Server?
Please let me know any one help me.
I would need to get file from FTP Server.
Thanks,
MadhuYes I have done that. But In FTP Server I cannt read file, because no previliges. Only I need to copy file from FTP Server to local server then only I can read that file.
I tried all options using FileConrol(getFiles(),read()).
getFiles() - It wont copy the file, it give information about file.
read() - I dont have previliges to read the file.
Please tell me any other procedure would be there for getting file from FTPServer.
Thanks,
Madhu -
How to copy file from server to another machine in network through JSP
Hello!
any body can solve my problem.
i m working in JSP. i want to copy a file from server on which JSP engine is running to another computer in the same network.
i used Java File Object to copy file from one machine to another in network. and its working fine on network. but the problem is when i used the same code in web page there is exception which is Access is Denied. what i should do now.
i m writing the code i m using in my JSP page
String fileToCopy = "C:/oracle/Apache/Apache/htdocs/FAO/FAO_MiddleFrame.jsp";
String destinationDir = "\\\\af09\\c";
File source = new File(fileToCopy);
String fileName1 = source.getName();
if ((!destinationDir.endsWith("\\")) && (!destinationDir.endsWith("/"))) {
destinationDir = destinationDir + "\\";
File destination = new File(destinationDir + fileName1);
if (!destination.exists()) {
if (!destination.createNewFile()) {
//throw new IOException("Unable to create file. May be you don't have permissions.");
byte[] buffer = new byte[1024];
FileInputStream in = new FileInputStream(source);
FileOutputStream outStream = new FileOutputStream(destination);
int bytesRead = 0;
while ((bytesRead = in.read(buffer)) != -1) {
outStream.write(buffer, 0, bytesRead);
out.println("File copied successfully ....");
plz reply me as soon as possible.
i will be very thankful
SaadThats the way it works. Cause servlet contaner doesnot allow other machines in the network to access other than machine which it came from as in case of applets. What you can do is if the other machine is also based on webserver or app server .. you can upload the file as it gets to that page do the process.
I would like to hear more on my comments..
Suggestions ??
Ban -
How to read file from server if I have a logical file path?
Hi guys,
I'm having a pretty "on the run" question,
My program is currently reading a file from server using "open dataset" with file path like this (just example)
/usr/interface/abc/bcd/testfile.dat
Now I got a requirement to make it more consistent to read files, instead of reading that physical file name, I should read the files from a specific folder using logical path.
So I go to T code "FILE" and created a logical path called ZABC_FILE_PATH, unix compatible, with physical path is (for example),
/usr/interface/<sysid>/<client>/<filename>
My question is, can I still use open dataset statement to read this? if yes, how do I do that? If no, there should be alternative way, please let me know what you think. Thanks,Thanks all, I figured it out.
ONe thing is that typo double quote
The other thing is the importing part, I need the full file path.
CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
EXPORTING
CLIENT = SY-MANDT
logical_path = 'ZABC_MY_LOGICAL_FILE_PATH'
* OPERATING_SYSTEM = SY-OPSYS
* PARAMETER_1 = ' '
* PARAMETER_2 = ' '
* PARAMETER_3 = ' '
* USE_BUFFER = ' '
file_name = v_1
* USE_PRESENTATION_SERVER = ' '
* ELEMINATE_BLANKS = 'X'
IMPORTING
FILE_NAME_WITH_PATH = v_what_I_need
* EXCEPTIONS
* PATH_NOT_FOUND = 1
* MISSING_PARAMETER = 2
* OPERATING_SYSTEM_NOT_FOUND = 3
* FILE_SYSTEM_NOT_FOUND = 4
* OTHERS = 5
I really appreciate your contributions, thanks again! -
Hi,
When i try to read file from server,the following message is displayed .
ORA-29532: Java call terminated by uncaught Java exception: java.security.AccessControlException: the Permission (java.io.FilePermission /tmp read) has not been granted to EWMTRACKTEST. The PL/SQL to grant this is dbms_java.grant_permission( 'EWMTRACKTEST', 'SYS:java.io.FilePermission', ' /tmp', 'read' )
ORA-06512: at "EWMTRACKTEST.GET_DIRLIST_EWM", line 1
ORA-06512: at line 1
thanks and regards
P Prakashit seems obvious, user EWMTRACKTEST doesn`t have access to directory /tmp and the file under that.
try to give read permission and try again.
you could use command line like 'chmod' to grant permissions. -
How to get files from application server
Hi
I got a requirement like i have some n number of file in application server at specified path now i want to get that files from application server to presentation server.
Please help me out.
Thanks in advance.
Regards
KrishnaHI.
Use this Unix script. Give IP and other details as ur requirment.
Setup variables. #
Input Directory > #
Output Directory > #
Source System > #
Target System > #
Files FTPed > lxxxxx* #
set -x
DATE="`date +%y%m%d%H%M%S`"
FTP destination details.
ftp_host=""
ftp_user=" "
ftp_pass="a"
ftp_remote_dir=" "
File path and names
host_dir=""
ftp_local_file="lxxxx"
ftp_local_file_dir=" "
ftp_arch_dir=" "
ftp_output=" "
FTP
if -f $ftp_local_file_dir ; then
ftp -i -n -d -v $ftp_host<<EOINPUT >$ftp_output
user $ftp_user $ftp_pass
cd $ftp_remote_dir
lcd $host_dir
mget $ftp_local_file
bye
EOINPUT
mv $ftp_local_file_dir $ftp_arch_dir$ftp_remote_file_name
else
echo "ERROR: Local $ftp_local_file_dir does not exist.">>$ftp_output;
fi
exit;
Edited by: Jay on Feb 14, 2008 5:36 PM -
How to download file from server to client's local ??
How to download a file from the server to the client's local machine in a particular folder without users intervention ie. 'Save As" prompt of the browser should be avoided and if the client clicks on "Download" button, the file should get automaticaly downloaded to say, "c:/reports/' on his/her local machine. This is for Java based web appliaction.
http://jguru.com/faq/view.jsp?EID=10646
-
Sudden loss of link after "getting" file from server
I have used the "get" feature to modify one of my files from my site. While I was saving my changes, I noticed that I had lost all the page's styles -- no style, no background, only html structures! I've tried to repeat the "get" feature to replace the effected page, but instead of replacing the unstyled page, there was no change. The unstyled page remained unstyled. I was able to use the "get" feature to to place the page in question in another folder. My question is, can I just delete the unstyled page and merely upload the very same page that's in a different folder to the server? Any help will be greatly appreciated. I might add that I'm still very much a novice in web design, learning every day.
Allamistakeo wrote:
Hi there,
Since I upgraded to 10.6.5, I sometimes suffer very weird partial losses of connectivity after waking up from sleep. I am wondering if other people have witnessed the same thing.
When this happens (and it doesn't happen every time), HTTP still works, but:
- HTTPS doesn't work anymore,
- Mail is unable to retrieve emails (neither with MobileMe using SSL on port 993, nor with my university IMAP server also with SSL on port 993)
- Adium X (IM client) is unable to connect to any IM server (including MobileMe, GTalk, AIM, Hotmail, and Yahoo!)
Worth mentioning: I am using Privoxy as a local HTTP proxy.
I looked at the logs in the Console, and I haven't seen any suspicious messages. In the Network pane of the System Preferences, everything looks normal.
When I unplug the ethernet cable and immediately plug it back in, everything goes back to normal.
Any ideas?... What do you suggest I should check, next time it happens, to narrow down the source of the problem?
Hello!
Same problem with me but i´m not using the mentioned tool (privoxy) at all. No connection with imap, ichat and some google calendars in ical. Web browsing works without problem. I assume that this happened after upgrading to 10.6.5. One thing to mention: i am using accounts with low privileges, same with you, Allamistakeo?
regards
ulberbast -
How to transfer file from server to client
I am making a server printer where all the system can take print out from the Printer installed on the server
i am not able to send file from the client to the Server. I am Attaching the code Please Help me it is my college project.
Server.java*
import java.io.*;
import java.lang.*;
import java.net.*;
import java.util.*;
import java.io.File;
class Server
static final int PORT = 26548; //Server Listening port
static String path;
public static void main(String args[])
System.out.println("Starting Server");
receive();
public static void receive()
while ( true )
try
//Create a socket
ServerSocket srvr = new ServerSocket(PORT);
Socket skt = srvr.accept();
String clientname= skt.getInetAddress().getHostAddress();
int clientport=skt.getPort();
long time = System.currentTimeMillis();
path= "C:\\Ankit Gupta\\Programs\\"+clientname+"\\"+time+" test.pdf";
System.out.println("File Recieved from : "+clientname+" : "+clientport);
//HttpServletRequest req;
//String remoteHost = req.getRemoteHost();
//String adr = getRemoteUser();
FileOutputStream fos = new FileOutputStream(path);
BufferedOutputStream out = new BufferedOutputStream(fos);
BufferedInputStream in = new BufferedInputStream( skt.getInputStream() );
//Read, and write the file to the socket
int i;
System.out.println("Receiving data...");
while ((i = in.read()) != -1)
out.write(i);
out.flush();
in.close();
out.close();
skt.close();
srvr.close();
System.out.println("Transfer complete.");
printfile();
catch(Exception e)
System.out.print("Error! It didn't work! " + e + "\n");
try
Thread.sleep(1000);
catch (InterruptedException ie)
System.err.println("Interrupted");
} //end infinite while loop
public static void printfile()
delete();
public static void delete()
try
Thread.sleep(5000);
catch (InterruptedException ie)
System.err.println("Interrupted");
System.out.println("Deleting file");
File f = new File(path);
// Make sure the file or directory exists and isn't write protected
if (!f.exists())
throw new IllegalArgumentException("Delete: no such file or directory: " + path);
if (!f.canWrite())
throw new IllegalArgumentException("Delete: write protected: "+ path);
// If it is a directory, make sure it is empty
if (f.isDirectory())
String[] files = f.list();
if (files.length > 0)
throw new IllegalArgumentException("Delete: directory not empty: " + path);
// Attempt to delete it
boolean success = f.delete();
if (!success)
throw new IllegalArgumentException("Delete: deletion failed");
Client.java_
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.util.*;
import java.net.*;
public class Client extends JFrame {
static final int PORT = 26548; //Server Listening Port
static File file;
static final String HOST = "10.35.9.152";//Server Address
JTextField m_fileNameTF = new JTextField(25);
JFileChooser m_fileChooser = new JFileChooser();
Client() {
m_fileNameTF.setEditable(false);
JButton openButton = new JButton("Open");
openButton.addActionListener(new OpenAction());
JPanel content = new JPanel();
content.setLayout(new FlowLayout());
content.add(openButton);
content.add(m_fileNameTF);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setContentPane(content);
this.setSize(400,200);
class OpenAction implements ActionListener {
public void actionPerformed(ActionEvent ae) {
int retval = m_fileChooser.showOpenDialog(Client.this);
if (retval == JFileChooser.APPROVE_OPTION) {
file = m_fileChooser.getSelectedFile();
m_fileNameTF.setText(file.getAbsolutePath());
send(file.getAbsolutePath());
public static void main(String[] args) {
JFrame window = new Client();
window.setVisible(true);
public static boolean send( String filename )
try
System.out.println("Connecting to Server");
Socket skt = new Socket(HOST, PORT);
//Create a file input stream and a buffered input stream.
FileInputStream fis = new FileInputStream(filename);
BufferedInputStream in = new BufferedInputStream(fis);
BufferedOutputStream out = new BufferedOutputStream( skt.getOutputStream() );
//Read, and write the file to the socket
int i;
System.out.println("Connected to Server");
System.out.println("Sending data...\n");
while ((i = in.read()) != -1)
out.write(i);
//System.out.println(i);
System.out.println("Transfer complete.");
//Close the socket and the file
out.flush();
out.close();
in.close();
skt.close();
return true;
catch( Exception e )
send(file.getAbsolutePath());
return false;
}I am making a server printer where all the system can take print out from the Printer installed on the server
i am not able to send file from the client to the Server. I am Attaching the code Please Help me it is my college project.
Server.java*
import java.io.*;
import java.lang.*;
import java.net.*;
import java.util.*;
import java.io.File;
class Server
static final int PORT = 26548; //Server Listening port
static String path;
public static void main(String args[])
System.out.println("Starting Server");
receive();
public static void receive()
while ( true )
try
//Create a socket
ServerSocket srvr = new ServerSocket(PORT);
Socket skt = srvr.accept();
String clientname= skt.getInetAddress().getHostAddress();
int clientport=skt.getPort();
long time = System.currentTimeMillis();
path= "C:\\Ankit Gupta\\Programs\\"+clientname+"\\"+time+" test.pdf";
System.out.println("File Recieved from : "+clientname+" : "+clientport);
//HttpServletRequest req;
//String remoteHost = req.getRemoteHost();
//String adr = getRemoteUser();
FileOutputStream fos = new FileOutputStream(path);
BufferedOutputStream out = new BufferedOutputStream(fos);
BufferedInputStream in = new BufferedInputStream( skt.getInputStream() );
//Read, and write the file to the socket
int i;
System.out.println("Receiving data...");
while ((i = in.read()) != -1)
out.write(i);
out.flush();
in.close();
out.close();
skt.close();
srvr.close();
System.out.println("Transfer complete.");
printfile();
catch(Exception e)
System.out.print("Error! It didn't work! " + e + "\n");
try
Thread.sleep(1000);
catch (InterruptedException ie)
System.err.println("Interrupted");
} //end infinite while loop
public static void printfile()
delete();
public static void delete()
try
Thread.sleep(5000);
catch (InterruptedException ie)
System.err.println("Interrupted");
System.out.println("Deleting file");
File f = new File(path);
// Make sure the file or directory exists and isn't write protected
if (!f.exists())
throw new IllegalArgumentException("Delete: no such file or directory: " + path);
if (!f.canWrite())
throw new IllegalArgumentException("Delete: write protected: "+ path);
// If it is a directory, make sure it is empty
if (f.isDirectory())
String[] files = f.list();
if (files.length > 0)
throw new IllegalArgumentException("Delete: directory not empty: " + path);
// Attempt to delete it
boolean success = f.delete();
if (!success)
throw new IllegalArgumentException("Delete: deletion failed");
Client.java_
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.util.*;
import java.net.*;
public class Client extends JFrame {
static final int PORT = 26548; //Server Listening Port
static File file;
static final String HOST = "10.35.9.152";//Server Address
JTextField m_fileNameTF = new JTextField(25);
JFileChooser m_fileChooser = new JFileChooser();
Client() {
m_fileNameTF.setEditable(false);
JButton openButton = new JButton("Open");
openButton.addActionListener(new OpenAction());
JPanel content = new JPanel();
content.setLayout(new FlowLayout());
content.add(openButton);
content.add(m_fileNameTF);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setContentPane(content);
this.setSize(400,200);
class OpenAction implements ActionListener {
public void actionPerformed(ActionEvent ae) {
int retval = m_fileChooser.showOpenDialog(Client.this);
if (retval == JFileChooser.APPROVE_OPTION) {
file = m_fileChooser.getSelectedFile();
m_fileNameTF.setText(file.getAbsolutePath());
send(file.getAbsolutePath());
public static void main(String[] args) {
JFrame window = new Client();
window.setVisible(true);
public static boolean send( String filename )
try
System.out.println("Connecting to Server");
Socket skt = new Socket(HOST, PORT);
//Create a file input stream and a buffered input stream.
FileInputStream fis = new FileInputStream(filename);
BufferedInputStream in = new BufferedInputStream(fis);
BufferedOutputStream out = new BufferedOutputStream( skt.getOutputStream() );
//Read, and write the file to the socket
int i;
System.out.println("Connected to Server");
System.out.println("Sending data...\n");
while ((i = in.read()) != -1)
out.write(i);
//System.out.println(i);
System.out.println("Transfer complete.");
//Close the socket and the file
out.flush();
out.close();
in.close();
skt.close();
return true;
catch( Exception e )
send(file.getAbsolutePath());
return false;
} -
HT201304 how to get files from my stolen iphone4
how do i get my files from my iphone that was stolen
Hi,
It depends on what files, what you had synced to Itunes or Icloud and when you last did a sync.
If the phone is gone and or wiped you can forget that. You next chance is from sync sessions and backups.
Do you have a new Iphone yet?
Cheers! -
How to save file from server to client machine
Hi,
By using POI library i'm writing values to the existing excel sheet which is available in server. After i written values to the excel, i want to save the same file to the client machine.
How to achieve this.
I googled about this, but still i didn't get any clear idea.
Thanks in advance,
SANSameera,
No, i can't understand what is the meaning of the following code:
public void doDownload(FacesContext facesContext, OutputStream outputStream) {
// write the neccessary code to get the download data from the Model
String data = getDownloadData();
// save to the output stream
try {
OutputStreamWriter writer = new OutputStreamWriter(outputStream,"UTF-8");
writer.write(data);
writer.close();
outputStream.close();
} catch (IOException e) {
// handle I/O exceptions
can you please explain this code little more.
Edited by: san-717 on Feb 29, 2012 2:30 PM -
How to delete file from server with space in name
I am a novice, learned a little several years ago, but have to start all over again.
I have set up the remote server (upload.comcast.net) without problems. I am unable to delete a file (file error:). I was able to upload the file, but cannot delete it. I figured out that that filename has a leading space. Now it's up on the server, but I cannot access it.
Experiment:
On the local folder, I deleted the leading space, and was able to upload, and delete it successfully. The original file remains unaccessible on the remote server.
Thanks,
SonnyThanks for getting back so fast.
Here is the error:
/_4230151.ORF - error occurred - An FTP error occurred - cannot delete remote file _4230151.ORF. Access denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured
As I mentioned before, I don't think that there is an authorization problem, as the changed name works fine, as does index.html
What I do find interesting is that I was able to upload the file with the leading space. If I remember from several years ago, such a file would not even upload.
I shutter to think of contacting Comcast. I think that they just give us the space with internet cable, but we are on our own with the website. Do you think that there might be some way to erase everything? I have only index.html up there, and don't mind starting over again.
Sonny -
hello, i am new to coldfusion, and i am trying to figure out
how to write a cfm function that calls the date from the server (I
want the copyright date in my site's footer to update
automatically).
in php, i wrote this as:
<?php
$curr_year = date('Y', mktime());
?>
Copyright © 1999
<?php
echo ( $curr_year > 1999) ? "-".$curr_year : '';
?>
however, i can't seem to include a php file in a cfm page.
How to do that would be my second question--
thank you for your help!Or to more closely copy your PHP function.
<cfset curr_year = year(now())>
Copyright ©
<cfif curr_year GT 1999>- <cfoutput>#curr_year#</cfoutput></cfif>
OR
Copyright © <cfoutput>#iif(year(now()) GT 1999,DE("- " & year(now())),DE(""))#
OR
<cfscript>
documentWrite("Copyright ©");
if (year(now() > 1999) {
documentWrite("-" & year(now());
Among other methods. -
I've set up a form, but don't know how to get data from server?
Hi
I've set up a form using Dreamweaver to get peoples names and email addresses but i am unsure how i can get the information to send to my server...and then how i retrieve it?
This is the code that Dreamweaver wrote;
<form action="" method="post" enctype="text/p[lain" name="FirstName" target="_blank" id="FirstName">
<label>First Name
<input name="First Name" type="text" id="First Name" value="" size="16" />
</label>
<label>Second Name
<input type="text" name="Second Name" id="Second Name" />
<br />
email address
<input name="email address" type="text" id="email address" size="40" />
</label>
<input type="submit" name="submit" id="submit" value="Submit" />
</p>
</form>
Any ideas would be greatly welcome!
Thanks
FionaForms do nothing by themselves. You'll need a script to process the form data. Ask your host which form to email processing script you can use on your server. Often they will point you to one. If they don't, there are some services or 3rd party scripts you can use to collect data from your site.
WuFoo
http://Wufoo.com
Forms to Go
http://www.bebosoft.com/products/formstogo/ove
PHP Formmailer script from DB Masters can be configured to process all the forms on your domain. It conceals your email address from prying eye email harvesters and it has several spam controls built into its script including hidden field (honeypot), "sorta captcha," and time limits on submissions to keep robots from exploiting your forms. Free to use if you credit the author; $20 if you don't.
http://dbmasters.net/index.php?id=4
Q&A Forum - http://dbmasters.net/forum.php?id=3&fid=9
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com
Maybe you are looking for
-
I need advise on whether to upgrade my iBookG4 or get a new computer?
Hi everyone! This is my first post here, and after reading through some of the other posts I realize that many people are having the same problems as me with my OS 10.3.9. I have been having issues with my computer for a while, and keep spending mone
-
hi firstly i am not a very technical person so was really pleased when i downloaded the music on my windows media player to my new nokia.. worked wekk for about 2 hours but now when i try to play the music it says system error and wont play any of th
-
ECC 6.0 dialog installation error
Hi I am getting following error while trying to install ECC 6.0 dialog instance on UNIX with oracle database. FJS-00003 TypeError: nw.getJavaHome() has no properties (in script NW_DI|ind|ind|ind|ind, line 50430: ???) ERROR [sixxcstepexecute.cpp
-
What is it with the keyboard?
I've heard so much about the keyboard on the Macbook being new. Can someone point me to a link that talks about the keyboard or tell me what it is all about? I have a Macbook Pro on the way, but I'm curious.
-
Adobe acrobat 9 pro download link
Where can I find the download link for acrobat 9 pro. I still have the code I purchased.