I'm building a web app with sitebricks and until now I was just using HTML with templating (as explained on the sitebricks website).
In the template and pages I use the @ShowIf annotation. But now that I am converting my pages to JSP's I was wondering if I could still use them?
What I'm seeing now is that they just get printed on the screen, should I do something else maybe?
The JSP usage is not really explained on the website...
Thx for the help!
Dirk
--
You received this message because you are subscribed to a topic in the Google Groups "Google Sitebricks" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-sitebricks/KCOr4c9fZyk/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to google-sitebricks+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<mailto:eric.umg.charles@gmail.com>>
  Hi Dirk,
  sitebricks does not support mixed html/jsp systems.
  The jsp rendering template is implemented more like a hack and
  delegates to the jsp compiler the responsibility to compile the jsp
  page, so it will not take into consideration the specific html (or
  other) template annotations.
  That's something you loose, on the other hand, you can use any jsp
  taglib and function you like.
  About the documentation, jsp support is quite new and I will try to
  create a pull-request explaining this.
  Thx, Eric
  On 19/04/2013 09:38, dirkvra...@gmail.com
an email to google-sitebricks+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Sitebricks" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-sitebricks/KCOr4c9fZyk/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to google-sitebricks+unsubscribe@googlegroups.com.
Problem accessing /user/register. Reason:
Could not include the JSP response for path=WEB-INF/pages/register.jspjava.lang.RuntimeException: Could not include the JSP response for path=WEB-INF/pages/register.jsp
at com.google.sitebricks.compiler.JspTemplateCompiler$1.render(JspTemplateCompiler.java:49)
at com.google.sitebricks.routing.WidgetRoutingDispatcher.bindAndRespond(WidgetRoutingDispatcher.java:121)
at com.google.sitebricks.routing.WidgetRoutingDispatcher.dispatch(WidgetRoutingDispatcher.java:75)
at com.google.sitebricks.DebugModeRoutingDispatcher.dispatch(DebugModeRoutingDispatcher.java:56)
...
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: javax.servlet.ServletException: File "/user/WEB-INF/pages/register.jsp" not found
at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:335)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23)
...
at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:94)
at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
at com.google.sitebricks.compiler.JspTemplateCompiler$1.render(JspTemplateCompiler.java:47)
... 46 more
javax.servlet.ServletException: File "/user/WEB-INF/pages/register.jsp" not found at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:335) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23) at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57) ... at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
The easiest would be that you provide a have a small repo to checkout to test your config and maybe provide a fix to map your goal.
For a pure jsp templating system, apache tiles or sitemesh?
(I hope we don't confuse here the sitebricks templating system with the pure jsp templating taglibs)
Thx, Eric
On 19/04/2013 11:18, Dirk Vranckaert wrote:
I must correct you when you say 'Anyway, even if you have one, the
template.jsp will not be rendered.'
In fact it's only the template.jsp that get's rendered. The home.jsp
does not.
And yes my home.jsp has an at, show and decorated annotation.
I've been looking into that (different templating) also but I don't see
how I can plug in another templating framework.
Any help with that?
Kr,
Dirk
2013/4/19 Eric Charles (GMail) <eric.umg...@gmail.com
<mailto:eric.umg.charles@gmail.com>>
    <mailto:eric.umg.charles@__gmail.com    <mailto:eric.umg.charles@gmail.com>
    <mailto:eric.umg.charles@gmail.com>>>
       Hi Dirk,
       sitebricks does not support mixed html/jsp systems.
       The jsp rendering template is implemented more like a hack and
       delegates to the jsp compiler the responsibility to compile
    the jsp
       page, so it will not take into consideration the specific
    html (or
       other) template annotations.
       That's something you loose, on the other hand, you can use
    any jsp
       taglib and function you like.
       About the documentation, jsp support is quite new and I
    will try to
       create a pull-request explaining this.
       Thx, Eric
       On 19/04/2013 09:38, dirkvra...@gmail.com
    <mailto:dirkvranckaert@gmail.com>       <mailto:dirkvranckaert@gmail.__com
       <mailto:google-sitebricks%__2Bunsu...@googlegroups.com
    <mailto:google-sitebricks%252Bunsubscribe@googlegroups.com>__>.
an email to google-sitebricks+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Sitebricks" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-sitebricks/KCOr4c9fZyk/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to google-sitebricks+unsubscribe@googlegroups.com.
Hi Dirk,
<mailto:eric.umg.charles@gmail.com>>
  The easiest would be that you provide a have a small repo to
  checkout to test your config and maybe provide a fix to map your goal.
  For a pure jsp templating system, apache tiles or sitemesh?
  (I hope we don't confuse here the sitebricks templating system with
  the pure jsp templating taglibs)
  Thx, Eric
  On 19/04/2013 11:18, Dirk Vranckaert wrote:
    I must correct you when you say 'Anyway, even if you have one, the
    template.jsp will not be rendered.'
    In fact it's only the template.jsp that get's rendered. The home.jsp
    does not.
    And yes my home.jsp has an at, show and decorated annotation.
    I've been looking into that (different templating) also but I
    don't see
    how I can plug in another templating framework.
    Any help with that?
    Kr,
    Dirk
    2013/4/19 Eric Charles (GMail) <eric.umg...@gmail.com
    <mailto:eric.umg.charles@gmail.com>    <mailto:eric.umg.charles@__gmail.com
    <eric.umg...@gmail.com <mailto:eric.umg.charles@gmail.com>
         <mailto:eric.umg.charles@__gmail.com
    <mailto:eric.umg.charles@gmail.com>>
         <mailto:eric.umg.charles@
    <mailto:eric.umg.charles@>__gma__il.com <http://gmail.com>
         <mailto:eric.umg.charles@__gmail.com
    <mailto:eric.umg.charles@gmail.com>>>>
           Hi Dirk,
           sitebricks does not support mixed html/jsp systems.
           The jsp rendering template is implemented more
    like a hack and
           delegates to the jsp compiler the responsibility
    to compile
         the jsp
           page, so it will not take into consideration the
    specific
         html (or
           other) template annotations.
           That's something you loose, on the other hand, you
    can use
         any jsp
           taglib and function you like.
           About the documentation, jsp support is quite new
    and I
         will try to
           create a pull-request explaining this.
           Thx, Eric
           On 19/04/2013 09:38, dirkvra...@gmail.com
    <mailto:dirkvranckaert@gmail.com>
         <mailto:dirkvranckaert@gmail.__com
    <mailto:dirkvranckaert@gmail.com>>
           <mailto:dirkvranckaert@gmail.
    <mailto:dirkvranckaert@gmail.>____com
     <mailto:google-sitebricks%____2Bunsu...@googlegroups.com
    <mailto:google-sitebricks%25__2Bunsu...@googlegroups.com>
    <mailto:google-sitebricks%__252Bunsubscribe@googlegroups.__com
    <mailto:google-sitebricks%25252Bunsubscribe@googlegroups.com>>__>.
           For more options, visit
    https://groups.google.com/______groups/opt_out
    <https://groups.google.com/____groups/opt_out>
         <https://groups.google.com/____groups/opt_out
    <https://groups.google.com/__groups/opt_out>>
           <https://groups.google.com/____groups/opt_out
    <https://groups.google.com/__groups/opt_out>
         <https://groups.google.com/__groups/opt_out
    <https://groups.google.com/groups/opt_out>>>.
         --
         You received this message because you are subscribed to
    the Google
         Groups "Google Sitebricks" group.
         To unsubscribe from this group and stop receiving
    emails from
         it, send
         an email to
    google-sitebricks+unsubscribe@____googlegroups.com
    <http://googlegroups.com>
    <mailto:google-sitebricks%__2Bunsu...@googlegroups.com
    <mailto:google-sitebricks%252Bunsubscribe@googlegroups.com>__>.
         For more options, visit
    https://groups.google.com/____groups/opt_out
    <https://groups.google.com/__groups/opt_out>
         <https://groups.google.com/__groups/opt_out
    <https://groups.google.com/groups/opt_out>>.
       --
       You received this message because you are subscribed to a
    topic in
       the Google Groups "Google Sitebricks" group.
       To unsubscribe from this topic, visit
    https://groups.google.com/d/____topic/google-sitebricks/____KCOr4c9fZyk/unsubscribe?hl=en-____US
    <https://groups.google.com/d/__topic/google-sitebricks/__KCOr4c9fZyk/unsubscribe?hl=en-__US>
    <https://groups.google.com/d/__topic/google-sitebricks/__KCOr4c9fZyk/unsubscribe?hl=en-__US
    <https://groups.google.com/d/topic/google-sitebricks/KCOr4c9fZyk/unsubscribe?hl=en-US>>.
       To unsubscribe from this group and all its topics, send an
    email to
       google-sitebricks+unsubscribe@____googlegroups.com
    <http://googlegroups.com>
       <mailto:google-sitebricks%__2Bunsu...@googlegroups.com
    <mailto:google-sitebricks%252Bunsubscribe@googlegroups.com>__>.
an email to google-sitebricks+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Sitebricks" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-sitebricks/KCOr4c9fZyk/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to google-sitebricks+unsubscribe@googlegroups.com.