You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Amit Shinde <am...@amicontech.com> on 2006/11/27 06:17:55 UTC

Access html file directly without controller

Hello Everyone,

Do you know if we can access html directly in OFBiz without going through
the controller? I am trying to integrate Google Web Toolkit with OFBiz and
when we compile the source code everytime, new html files are created by the
GWT compiler with different names and they are accessed from the client. So
I have to go to the controller and rename the request-map and view-map to
the newly created file. Let me know if there is a way so that I dont have to
edit the controller after every compile.


Thanks in advance,

Amit Shinde



Re: Access html file directly without controller

Posted by David E Jones <jo...@undersunconsulting.com>.
Just put the resources in a directory under the webapp root and then  
add that directory to the "allowedPaths" init-param's list in the  
ContextFilter filter definition.

-David


On Nov 26, 2006, at 10:17 PM, Amit Shinde wrote:

> Hello Everyone,
>
> Do you know if we can access html directly in OFBiz without going  
> through
> the controller? I am trying to integrate Google Web Toolkit with  
> OFBiz and
> when we compile the source code everytime, new html files are  
> created by the
> GWT compiler with different names and they are accessed from the  
> client. So
> I have to go to the controller and rename the request-map and view- 
> map to
> the newly created file. Let me know if there is a way so that I  
> dont have to
> edit the controller after every compile.
>
>
> Thanks in advance,
>
> Amit Shinde
>
>


RE: Access html file directly without controller

Posted by pa...@bt.com.
allowedPaths init param in web.xml might be helpful to you putting it for your reference
 
 <init-param>
  <param-name>allowedPaths</param-name> 
  <param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css</param-value> 
  </init-param>

________________________________

From: Amit Shinde [mailto:amit@amicontech.com]
Sent: Mon 11/27/2006 10:50 AM
To: ofbiz-user@incubator.apache.org
Subject: RE: Access html file directly without controller



Hi David,
               I am basically creating prototypes for evaluating various
AJAX frameworks for a client. I have created a couple prototypes - one based
on JSON and other on GWT. JSON prototype is completed and GWT is almost
completed. There are still a few things like session management, security
and integration in screen widgets etc. that I need to look at in GWT. Have
you worked on GWT before?
           These prototypes might be commited in OFBiz so that the community can
refer and leverage the prototypes. I would like your help in GWT in pretty
much anything you want.

Thanks,
Amit Shinde


----Original Message-----
From: David Goodenough [mailto:david.goodenough@linkchoose.co.uk]
Sent: Monday, November 27, 2006 4:08 PM
To: ofbiz-user@incubator.apache.org
Subject: Re: Access html file directly without controller


On Monday 27 November 2006 05:17, Amit Shinde wrote:
> Hello Everyone,
>
> Do you know if we can access html directly in OFBiz without going through
> the controller? I am trying to integrate Google Web Toolkit with OFBiz and
> when we compile the source code everytime, new html files are created by
> the GWT compiler with different names and they are accessed from the
> client. So I have to go to the controller and rename the request-map and
> view-map to the newly created file. Let me know if there is a way so that
I
> dont have to edit the controller after every compile.
>
>
> Thanks in advance,
>
> Amit Shinde
Nothing to do with your question, but can I ask what you are using GWT
for with Ofbiz?  I am keen on GWT and OfBiz and if you are doing anything
generic I would be interested to help.

David





RE: Access html file directly without controller

Posted by Amit Shinde <am...@amicontech.com>.
David,
           The way I have designed it is - GWT widgets make a RPC call to a
RemoteService which in turn call an OFBiz service and so on. Its nice to
leverage benefits of both GWT and OFBiz. I will let you know how everything
goes. I have worked a lot on JavaScript and using GWT means using all the
JavaScript equivalent in Java. As I havent gone so deep in that yet, I am
not in a position to tell how good of a job Google has done. But of course
Google being Google I can always bet on them anytime.


Amit Shinde

-----Original Message-----
From: David Goodenough [mailto:david.goodenough@linkchoose.co.uk]
Sent: Monday, November 27, 2006 4:32 PM
To: ofbiz-user@incubator.apache.org
Subject: Re: Access html file directly without controller


On Monday 27 November 2006 10:50, Amit Shinde wrote:
> Hi David,
>                I am basically creating prototypes for evaluating various
> AJAX frameworks for a client. I have created a couple prototypes - one
> based on JSON and other on GWT. JSON prototype is completed and GWT is
> almost completed. There are still a few things like session management,
> security and integration in screen widgets etc. that I need to look at in
> GWT. Have you worked on GWT before?
I have been using GWT for a project for a client, and am very pleased with
the results (they are not publically visible I am afraid).

The project involved an existing XML based set of servlets, which used to
have a JSP front end.  This I replaced with a GWT one, and managed to
improve the functionality and ease of use.

As OfBiz has (as I understand it) a native XML format I had looked at (but
not
got anywhere with) using that directly.  Ofbiz is the bit of this I know
least
about.  But I have an interest in being able to use OfBiz (and opentaps) for
other clients as well.

I feel comfortable doing everything in Java (although Javascript is a great
language it is not easy to validate before you run it, GWT solves that
problem for me).

David
> 	   These prototypes might be commited in OFBiz so that the community can
> refer and leverage the prototypes. I would like your help in GWT in pretty
> much anything you want.
>
> Thanks,
> Amit Shinde
>
>
> ----Original Message-----
> From: David Goodenough [mailto:david.goodenough@linkchoose.co.uk]
> Sent: Monday, November 27, 2006 4:08 PM
> To: ofbiz-user@incubator.apache.org
> Subject: Re: Access html file directly without controller
>
> On Monday 27 November 2006 05:17, Amit Shinde wrote:
> > Hello Everyone,
> >
> > Do you know if we can access html directly in OFBiz without going
through
> > the controller? I am trying to integrate Google Web Toolkit with OFBiz
> > and when we compile the source code everytime, new html files are
created
> > by the GWT compiler with different names and they are accessed from the
> > client. So I have to go to the controller and rename the request-map and
> > view-map to the newly created file. Let me know if there is a way so
that
>
> I
>
> > dont have to edit the controller after every compile.
> >
> >
> > Thanks in advance,
> >
> > Amit Shinde
>
> Nothing to do with your question, but can I ask what you are using GWT
> for with Ofbiz?  I am keen on GWT and OfBiz and if you are doing anything
> generic I would be interested to help.
>
> David



Re: Access html file directly without controller

Posted by David Goodenough <da...@linkchoose.co.uk>.
On Monday 27 November 2006 10:50, Amit Shinde wrote:
> Hi David,
>                I am basically creating prototypes for evaluating various
> AJAX frameworks for a client. I have created a couple prototypes - one
> based on JSON and other on GWT. JSON prototype is completed and GWT is
> almost completed. There are still a few things like session management,
> security and integration in screen widgets etc. that I need to look at in
> GWT. Have you worked on GWT before?
I have been using GWT for a project for a client, and am very pleased with 
the results (they are not publically visible I am afraid).

The project involved an existing XML based set of servlets, which used to
have a JSP front end.  This I replaced with a GWT one, and managed to 
improve the functionality and ease of use.

As OfBiz has (as I understand it) a native XML format I had looked at (but not
got anywhere with) using that directly.  Ofbiz is the bit of this I know least
about.  But I have an interest in being able to use OfBiz (and opentaps) for 
other clients as well.

I feel comfortable doing everything in Java (although Javascript is a great
language it is not easy to validate before you run it, GWT solves that 
problem for me).

David
> 	   These prototypes might be commited in OFBiz so that the community can
> refer and leverage the prototypes. I would like your help in GWT in pretty
> much anything you want.
>
> Thanks,
> Amit Shinde
>
>
> ----Original Message-----
> From: David Goodenough [mailto:david.goodenough@linkchoose.co.uk]
> Sent: Monday, November 27, 2006 4:08 PM
> To: ofbiz-user@incubator.apache.org
> Subject: Re: Access html file directly without controller
>
> On Monday 27 November 2006 05:17, Amit Shinde wrote:
> > Hello Everyone,
> >
> > Do you know if we can access html directly in OFBiz without going through
> > the controller? I am trying to integrate Google Web Toolkit with OFBiz
> > and when we compile the source code everytime, new html files are created
> > by the GWT compiler with different names and they are accessed from the
> > client. So I have to go to the controller and rename the request-map and
> > view-map to the newly created file. Let me know if there is a way so that
>
> I
>
> > dont have to edit the controller after every compile.
> >
> >
> > Thanks in advance,
> >
> > Amit Shinde
>
> Nothing to do with your question, but can I ask what you are using GWT
> for with Ofbiz?  I am keen on GWT and OfBiz and if you are doing anything
> generic I would be interested to help.
>
> David

RE: Access html file directly without controller

Posted by Amit Shinde <am...@amicontech.com>.
Hi David,
               I am basically creating prototypes for evaluating various
AJAX frameworks for a client. I have created a couple prototypes - one based
on JSON and other on GWT. JSON prototype is completed and GWT is almost
completed. There are still a few things like session management, security
and integration in screen widgets etc. that I need to look at in GWT. Have
you worked on GWT before?
	   These prototypes might be commited in OFBiz so that the community can
refer and leverage the prototypes. I would like your help in GWT in pretty
much anything you want.

Thanks,
Amit Shinde


----Original Message-----
From: David Goodenough [mailto:david.goodenough@linkchoose.co.uk]
Sent: Monday, November 27, 2006 4:08 PM
To: ofbiz-user@incubator.apache.org
Subject: Re: Access html file directly without controller


On Monday 27 November 2006 05:17, Amit Shinde wrote:
> Hello Everyone,
>
> Do you know if we can access html directly in OFBiz without going through
> the controller? I am trying to integrate Google Web Toolkit with OFBiz and
> when we compile the source code everytime, new html files are created by
> the GWT compiler with different names and they are accessed from the
> client. So I have to go to the controller and rename the request-map and
> view-map to the newly created file. Let me know if there is a way so that
I
> dont have to edit the controller after every compile.
>
>
> Thanks in advance,
>
> Amit Shinde
Nothing to do with your question, but can I ask what you are using GWT
for with Ofbiz?  I am keen on GWT and OfBiz and if you are doing anything
generic I would be interested to help.

David



Re: Access html file directly without controller

Posted by David Goodenough <da...@linkchoose.co.uk>.
On Monday 27 November 2006 05:17, Amit Shinde wrote:
> Hello Everyone,
>
> Do you know if we can access html directly in OFBiz without going through
> the controller? I am trying to integrate Google Web Toolkit with OFBiz and
> when we compile the source code everytime, new html files are created by
> the GWT compiler with different names and they are accessed from the
> client. So I have to go to the controller and rename the request-map and
> view-map to the newly created file. Let me know if there is a way so that I
> dont have to edit the controller after every compile.
>
>
> Thanks in advance,
>
> Amit Shinde
Nothing to do with your question, but can I ask what you are using GWT
for with Ofbiz?  I am keen on GWT and OfBiz and if you are doing anything
generic I would be interested to help.

David

Re: Access html file directly without controller

Posted by Chris Howe <cj...@yahoo.com>.
Your /WEB-INF/web.xml file in each webapp dictates how
things are served to the controller (or elsewhere). 
If you don't want to learn all the nuances there, just
stick your html in framework/images/webapp/ and they
will be served as is by
http://yourdomain/images/yourhtml.html

--- Amit Shinde <am...@amicontech.com> wrote:

> Hello Everyone,
> 
> Do you know if we can access html directly in OFBiz
> without going through
> the controller? I am trying to integrate Google Web
> Toolkit with OFBiz and
> when we compile the source code everytime, new html
> files are created by the
> GWT compiler with different names and they are
> accessed from the client. So
> I have to go to the controller and rename the
> request-map and view-map to
> the newly created file. Let me know if there is a
> way so that I dont have to
> edit the controller after every compile.
> 
> 
> Thanks in advance,
> 
> Amit Shinde
> 
> 
>