Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <%!
  2. int getImagefileId(String docid){
  3. int imagefileid = -1;
  4.  
  5. if(docid.equals("")){
  6. return imagefileid;
  7. }
  8.  
  9. RecordSet rs = new RecordSet();
  10. rs.execute("select imagefileid from docimagefile where docid=" + docid);
  11. if(rs.next()){
  12. imagefileid = Util.getIntValue(rs.getString("imagefileid"), 0);
  13. }
  14.  
  15. return imagefileid;
  16. }
  17. %>
  18.  
  19. <%
  20. int imagefileid_ = getImagefileId(docid);
  21. %>
  22. <img src="/weaver/weaver.file.FileDownload?fileid=<%=imagefileid_%>" width="100%" height="100%">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement