• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Splitting up JSP containing logic:iterate tag

 
Ranch Hand
Posts: 42
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a JSP file -size issue in my Weblogic server which is not allowing JSPS files of more than 65KB size.
I want to split that file but the issue is the entire file is written in logic:iterate tag .
I want to know how to split this file.

Files contains boolean values along with form-beans which are to be used in the entire scope.

Regards,
Jack
 
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jack,

Cant comment much without having idea of Jsp but have you explore the options for Tiles or Jsp:include. Also , if you are including code in other files it will be executed as it executes in logic:itearte tag.

Regards
Jatan
 
Jack Numen
Ranch Hand
Posts: 42
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lets take the example


Now i want to use the last logic tag


in another JSP reading all the variable like "read" etc without re-declaring them.
 
Ranch Hand
Posts: 133
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please use CODE tag so that it is readable. Pleae refer https://coderanch.com/how-to/java/UseCodeTags.
 
jatan bhavsar
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jack ,

you can take whole the logic:present tag in different file and include that jsp in main jsp. Also you can define the variable in main jsp which will be available in all the included jsp files so definately you can split the jsp and check.
Here,
you can get the changed parameter value of read variable from the included jsp to main jsp. So

can be include in another jsp get the value of read in the main jsp based on which you have put the condition.
Also , I am not aware how complex logic you have written so based on that you can try.

Regards
jatan
 
Jack Numen
Ranch Hand
Posts: 42
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks,
Sorry!!Here i dint explain the issue clearly .

Main .jsp contains a logic:itereate tag in which there are nearly 3000 lines of code.
When i try to run this on my Weblogic server.It gives an error that "File is too large:max filesize allowed in JSP is 65KB"

So i have to spilt the code inside the logic:iterate tag so that each fragmented JSP is <65KB size.
 
jatan bhavsar
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

you need to rewrite the jsp and split it up.Its all depend on you as you have the code and you need to take up the challenge.

Second option you can pre compile the jsp and then put it in to the server.



Also you can check the possibilites of changing the web logic's jsp compiler in web logic server . I am not sure is it allowed or not ,but you can ask it in the web logic server forum.



Regards
Jatan
 
rohit chavan
Ranch Hand
Posts: 133
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Also you can check the possibilites of changing the web logic's jsp compiler in web logic server . I am not sure is it allowed or not ,but you can ask it in the web logic server forum.



I think this should be possible in weblogic.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic