Results 1 to 2 of 2
  1. #1
    vector_ever is offline Senior Member
    Join Date
    Jul 2013
    Posts
    187
    Rep Power
    2

    Default print the links just as plain text not as activated links !

    Hello,

    I have small of REST (Jersey) any way this code return string and display it in the web page, any qay i want to print some Links to be able to click on, but the problem i print those links as normal String no as Hyper Link

    Java Code:
    @Path("/v2/serial")
    public class Flat_Serialization {
    @GET
    		@Produces(MediaType.APPLICATION_JSON)
    		public Response returnPlz(
    				@QueryParam("id") String locationId)throws Exception {
    
    				JSONObject jsn = new JSONObject();
    				JSONArray arr = new JSONArray();
    				jsn.put("plantId","URL" + attributes.get(0).get(i));
    		    	jsn.put("distOpId", "http://localhost:8080/de.eumonis/eumonis/v2/powerplant/distop/");
    		    	jsn.put("TransOpId","http://localhost:8080/de.eumonis/eumonis/v2/powerplant/transop/");
    		    	jsn.put("LocationId", "http://localhost:8080/de.eumonis/eumonis/v2/location/id/");
    		    	jsn.put("StateId","http://localhost:8080/de.eumonis/eumonis/v2/location/id/");
    		    	jsn.put("LevelId", "http://localhost:8080/de.eumonis/eumonis/v2/location/id/");
    		    	jsn.put("SourceId","http://localhost:8080/de.eumonis/eumonis/v2/location/id/");
    		    	arr.put(jsn);
    
    return Response.ok(arr).build();
    The result will be Json arry contain String not activated link just plaint text, so i can't click on, how to make them as hyper links?

  2. #2
    vector_ever is offline Senior Member
    Join Date
    Jul 2013
    Posts
    187
    Rep Power
    2

    Default Re: print the links just as plain text not as activated links !

    I also tried to solve it by using <A HREF="URL"> < /A> from HTML, but it doesn't work, any help please

Similar Threads

  1. Store links in text file and read into variables
    By africanhacker in forum New To Java
    Replies: 1
    Last Post: 03-31-2011, 05:18 PM
  2. FTP by web links
    By yap_1991 in forum New To Java
    Replies: 1
    Last Post: 07-12-2010, 04:23 PM
  3. Skipping links!!!
    By jvh in forum New To Java
    Replies: 2
    Last Post: 03-04-2010, 12:11 AM
  4. browser and links
    By toker in forum New To Java
    Replies: 2
    Last Post: 02-21-2010, 01:27 AM
  5. Finding web links
    By ishdevil in forum New To Java
    Replies: 2
    Last Post: 02-11-2010, 11:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •