This week's book giveaway is in the NodeJS forum.
We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line!
See this thread for details.
Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!

Vrajendra Singh Mandloi

Greenhorn
+ Follow
since Apr 01, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vrajendra Singh Mandloi

i have a local file path which i can access via FIXTURE. this is a dynamic file path but the file exists. Now i need to display the file as HYPERLINK on fitnesse page but it is unable to download.

public String printOutputXml() throws ParseException, FileNotFoundException, IOException {
String submissionFileName = baseTestLoader.getReportMetaData().get("submissionFileName");
//String submissionFileName = "auth.012.001.02.549300ZK53CNGEEI6A29.:COB_DATE.0001";
List<String> dates = baseTestLoader.getWorkDatesList(this.startDate, this.endDate);
StringBuilder builder = new StringBuilder();
logger.info("Dates Report Ran"+dates.toString());
for(String cobdate: dates) {
cobdate = cobdate.replace("-", "");
submissionFileName = submissionFileName.replace(":COB_DATE", cobdate);
//String FILE_LOCATION = "/tmp/"+submissionFileName;
String FILE_LOCATION = "C:\\Temp\\tempMMSRFiles\\temp\\"+submissionFileName;
logger.info("File Localtion : "+FILE_LOCATION);
String outputDisplay = "<a href=\""+FILE_LOCATION+"\" download>"+submissionFileName+"?</a><br>";
builder.append(outputDisplay);
}
return "<pre>"+builder.toString()+"</pre>";
}


I have used <pre> bcz other wise the anchor tag was printed as text. right now it is showing as Anchor tag but nothing is happening and no download is enabled. can someone please help
3 weeks ago