You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by kelvin pang <ke...@gmail.com> on 2006/08/16 16:48:00 UTC

does Roller Weblogger 2.3-incubating use Velocity to present the VIEW layer instead of JSP ?

hi,
does Roller Weblogger 2.3-incubating use Velocity to present the VIEW
layer instead of JSP ??
for example, where is the template file of the following address?
http://host:8888/roller/editor/categoryEdit.do?parentId=402881870cd73b57010cd73d0554000b


-- 
kevin

Re: does Roller Weblogger 2.3-incubating use Velocity to present the VIEW layer instead of JSP ?

Posted by kelvin pang <ke...@gmail.com>.
many thanks!
now I want to add a new textarea in /weblog/CategoryForm.jsp,but after
I add the following lines:
    <tr>
        <td>Test</td>
        <td><html:textarea property="testfrm" rows="5" cols="50" /></td>
    </tr>
and add the testfrm field to  class WeblogCategoryForm and class
WeblogCategoryData.

after that, go to visit:
http://hostname/roller/editor/categoryEdit.do?parentId=402881870cd73b57010cd73d0554000b
that page can't display the form! only displays:
 ....
"Add Category"

and then shows blank.
why can't add the new form element to that page? pls advise,thanks!


2006/8/17, Dave Johnson <sn...@gmail.com>:
> On 8/16/06, kelvin pang <ke...@gmail.com> wrote:
> > > Look here :
> > > org.apache.roller.presentation.weblog.actions.CategoryEditAction
> > This is just the Action class,i meant where's the jsp input page? how
> > to add a new
> > form element to that .CategoryEdit page?
>
> Take a look at the Tiles XML file, it maps the dot names to JSP files
>
> - Dave
>


-- 
kevin

Re: does Roller Weblogger 2.3-incubating use Velocity to present the VIEW layer instead of JSP ?

Posted by Dave Johnson <sn...@gmail.com>.
On 8/16/06, kelvin pang <ke...@gmail.com> wrote:
> > Look here :
> > org.apache.roller.presentation.weblog.actions.CategoryEditAction
> This is just the Action class,i meant where's the jsp input page? how
> to add a new
> form element to that .CategoryEdit page?

Take a look at the Tiles XML file, it maps the dot names to JSP files

- Dave

Re: does Roller Weblogger 2.3-incubating use Velocity to present the VIEW layer instead of JSP ?

Posted by kelvin pang <ke...@gmail.com>.
> Look here :
> org.apache.roller.presentation.weblog.actions.CategoryEditAction
This is just the Action class,i meant where's the jsp input page? how
to add a new
form element to that .CategoryEdit page?

2006/8/16, Eric.Bardoux@sanofipasteur.com <Er...@sanofipasteur.com>:
> Look here :
> org.apache.roller.presentation.weblog.actions.CategoryEditAction
>
> Maybe you should read some documentation about Struts before going into Roller ;)
>
> Eric
>
> -----Message d'origine-----
> De : kelvin pang [mailto:kevindig@gmail.com]
> Envoyé : mercredi 16 août 2006 17:28
> À : roller-user@incubator.apache.org
> Objet : Re: does Roller Weblogger 2.3-incubating use Velocity to present the VIEW layer instead of JSP ?
>
> thanks! so where is the categoryEdit.do's corresponding JSP? can't find from the struts-config.xml
>
> 2006/8/16, Dave Johnson <sn...@gmail.com>:
> > On 8/16/06, kelvin pang <ke...@gmail.com> wrote:
> > > hi,
> > > does Roller Weblogger 2.3-incubating use Velocity to present the
> > > VIEW layer instead of JSP ??
> > > for example, where is the template file of the following address?
> > > http://host:8888/roller/editor/categoryEdit.do?parentId=402881870cd7
> > > 3b57010cd73d0554000b
> >
> > No. Roller uses Velocity to display all blog pages and feeds, Roller
> > uses Struts/JSP for the author/admin UI. So categoryEdit.do is a
> > Struts action.
> >
> > - Dave
> >
> >
> >
> >
> >
> > >
> > >
> > > --
> > > kevin
> > >
> >
>
>
> --
> kevin
> -------------------------------------------------------------------------------------------
> "Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci.
> This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you."
> **********************************************************************
>
>


-- 
kevin

RE: does Roller Weblogger 2.3-incubating use Velocity to present the VIEW layer instead of JSP ?

Posted by Er...@sanofipasteur.com.
Look here :
org.apache.roller.presentation.weblog.actions.CategoryEditAction

Maybe you should read some documentation about Struts before going into Roller ;)

Eric 

-----Message d'origine-----
De : kelvin pang [mailto:kevindig@gmail.com] 
Envoyé : mercredi 16 août 2006 17:28
À : roller-user@incubator.apache.org
Objet : Re: does Roller Weblogger 2.3-incubating use Velocity to present the VIEW layer instead of JSP ?

thanks! so where is the categoryEdit.do's corresponding JSP? can't find from the struts-config.xml

2006/8/16, Dave Johnson <sn...@gmail.com>:
> On 8/16/06, kelvin pang <ke...@gmail.com> wrote:
> > hi,
> > does Roller Weblogger 2.3-incubating use Velocity to present the 
> > VIEW layer instead of JSP ??
> > for example, where is the template file of the following address?
> > http://host:8888/roller/editor/categoryEdit.do?parentId=402881870cd7
> > 3b57010cd73d0554000b
>
> No. Roller uses Velocity to display all blog pages and feeds, Roller 
> uses Struts/JSP for the author/admin UI. So categoryEdit.do is a 
> Struts action.
>
> - Dave
>
>
>
>
>
> >
> >
> > --
> > kevin
> >
>


--
kevin
-------------------------------------------------------------------------------------------
"Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci.
This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you."
**********************************************************************


Re: does Roller Weblogger 2.3-incubating use Velocity to present the VIEW layer instead of JSP ?

Posted by kelvin pang <ke...@gmail.com>.
thanks! so where is the categoryEdit.do's corresponding JSP? can't
find from the struts-config.xml

2006/8/16, Dave Johnson <sn...@gmail.com>:
> On 8/16/06, kelvin pang <ke...@gmail.com> wrote:
> > hi,
> > does Roller Weblogger 2.3-incubating use Velocity to present the VIEW
> > layer instead of JSP ??
> > for example, where is the template file of the following address?
> > http://host:8888/roller/editor/categoryEdit.do?parentId=402881870cd73b57010cd73d0554000b
>
> No. Roller uses Velocity to display all blog pages and feeds, Roller
> uses Struts/JSP for the author/admin UI. So categoryEdit.do is a
> Struts action.
>
> - Dave
>
>
>
>
>
> >
> >
> > --
> > kevin
> >
>


-- 
kevin

Re: does Roller Weblogger 2.3-incubating use Velocity to present the VIEW layer instead of JSP ?

Posted by Dave Johnson <sn...@gmail.com>.
On 8/16/06, kelvin pang <ke...@gmail.com> wrote:
> hi,
> does Roller Weblogger 2.3-incubating use Velocity to present the VIEW
> layer instead of JSP ??
> for example, where is the template file of the following address?
> http://host:8888/roller/editor/categoryEdit.do?parentId=402881870cd73b57010cd73d0554000b

No. Roller uses Velocity to display all blog pages and feeds, Roller
uses Struts/JSP for the author/admin UI. So categoryEdit.do is a
Struts action.

- Dave





>
>
> --
> kevin
>