• Post Reply Bookmark Topic Watch Topic
  • New Topic

diplaying a list in HTML  RSS feed

 
vijay javaranch
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys!

I have a list which contains user accounts,I want to display it in HTML.Kindly help me understand the process.

Below is the code.
Identity identity = context.getObjectById(Identity.class,selectIdentity);
List appList = new ArrayList();
List appName = new ArrayList();
List applist=identity.getLinks();
for(Link l:applist){
String name=l.getApplicationName();
appName.add(name);
}
return appName;


 
Omkar Shetkar
Ranch Hand
Posts: 100
2
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Since question is not obvious, you can do one of the following:
  • Create a file with extension ".html" and write your list content to the file. While writing to HTML file, you can use appropriate HTML tags. OR
  • To use Java as part of your web server application, you need to understand Servlets and JSP.



  •  
    vijay javaranch
    Greenhorn
    Posts: 3
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Omkar Shetkar wrote:
    Since question is not obvious, you can do one of the following:
  • Create a file with extension ".html" and write your list content to the file. While writing to HTML file, you can use appropriate HTML tags. OR
  • To use Java as part of your web server application, you need to understand Servlets and JSP.





  • How can I display values in the list ?for example list has gmail,yahoo,whatsapp etc it should be displayed as
    >gmail
    >yahoo
    >whatsapp
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!