how to use flex in jsp

43 views
Skip to first unread message

chan

unread,
Sep 18, 2008, 1:53:49 AM9/18/08
to Flex India Community
Hi All,

We are planning to use the flex(mxml and action scripts) in our j2ee
application. Our j2ee application is developed in JSP and struts. I am
totally new to flex technology.
After doing investigation search on flex , I cam to know that we can
use flex tag in the jsp.
Could any body let me know what is to be done to use flex in jsp?

1) what will be the entry in web.xml.
2) From where to download flex related jars and where to copy in my
application?

After investigation, I found something like this,

<taglib>
<taglib-uri>FlexTagLib</taglib-uri>
<taglib-location>/WEB-INF/lib/flex-bootstrap-jsp.jar</taglib-location>
</taglib>

From where to download flex-bootstrap-jsp.jar and is the right syntax?
as we use tld in taglib location.


What other jars I need to download?

Could you please let us know or provide the pointer?

Your response will be highly appriciated and this is urgent
requirement in our project?

Thanks,
Chandan

Sathish Kumar

unread,
Sep 18, 2008, 4:14:58 AM9/18/08
to flex_...@googlegroups.com
Hi Chandran,

          Download Adobe LCDS ( Life Cycle Data Services ). It will have a war file named flex.war. Unzip this file. Now refer following items
  • Web.xml ( It will have web descriptor level details ) .. merge this with your Application's web.xml.
  • 'WEB-INF\flex' folder will have flex related jars and swcs. copy this folder to your WEB-INF directory.
          Also, Check for a Open Source Project 'FxStruts'. That can help you to understand flex from struts perspective. ( Note : This Project does not Support Struts 2.0 ).

         For Any other Help, Mail me separately. We can discuss off line.

Thanks & Regards,
Sathish Kumar T


--
Warm Regards,
Sathish Kumar T

HISSAM

unread,
Sep 18, 2008, 4:52:45 AM9/18/08
to flex_...@googlegroups.com
hey any suggestions for deploying the flex project with asp.net??

I'm using .net as the server and dont know how to go-about
please some one help me


Sathish Kumar

unread,
Sep 18, 2008, 9:06:11 AM9/18/08
to flex_...@googlegroups.com
Whats is your Data Service Part ?!!

If you are using Webservice or HTTPService then you can use ur swf directly without server side settings .....

Anand Kothalkar

unread,
Sep 18, 2008, 12:13:05 PM9/18/08
to flex_...@googlegroups.com
Hi Hassim,

Here is how you can deploy your application on .Net server.
http://www.themidnightcoders.com/articles/flextodotnet.htm

Best Regards,
Anand Kothalkar

kutti

unread,
Sep 19, 2008, 1:40:46 PM9/19/08
to Flex India Community
Dear chand......

Already i have develped in jsp and struts application.

this is folder structure of j2ee application.

Flex/Struts Directory Lookup files:-
--------------------------------------------
/application root/WEB-INF/classes
/application root/WEB-INF/flex
/application root/WEB-INF/lib

/application root/WEB-INF/web.xml
/application root/WEB-INF/struts-config.xml

/application_root/WEB-INF/struts-bean.tld
/application_root/WEB-INF/struts-html.tld
/application_root/WEB-INF/struts-logic.tld
/application_root/WEB-INF/struts-nested.tld
/application_root/WEB-INF/struts-tiles.tld
/application_root/WEB-INF/struts-template.tld

Copy the following Flex files /application root/WEB-INF/flex
directory:

/application root/WEB-INF/flex /hotfixes/*
/application root/WEB-INF/flex /jars/*
/application root/WEB-INF/flex /libs/*
/application root/WEB-INF/flex /locale/*
/application root/WEB-INF/flex /logs/*
/application root/WEB-INF/flex /user_classes/*

/application root/WEB-INF/flex /cache.dep
/application root/WEB-INF/flex /data-management-config.xml
/application root/WEB-INF/flex /flash-unicode-table.xml
/application root/WEB-INF/flex /flex-config.xml
/application root/WEB-INF/flex /flex-sdk-description.xml
/application root/WEB-INF/flex /flex-webtier-config.xml
/application root/WEB-INF/flex /jgroups-default.xml
/application root/WEB-INF/flex /messaging-config.xml
/application root/WEB-INF/flex /mxml-manifest.xml
/application root/WEB-INF/flex /proxy-config.xml
/application root/WEB-INF/flex /remoting-config.xml
/application root/WEB-INF/flex /services-config.xml

/application root/WEB-INF/flex /global.css
/application root/WEB-INF/flex /license.properties
/application root/WEB-INF/flex /localFonts.ser
/application root/WEB-INF/flex /macFonts.ser
/application root/WEB-INF/flex /winFonts.ser



Copy the following JAR files, extracted from the Jakarta Struts
archive, to the
/application root/WEB-INF/lib directory:

struts. jar
commons -beanutils.jar
commons -collections. jar
commons-dbcp.jar
commons-digester.jar
commons-logging.jar
commons-pool.jar
commons-services.jar
commons- validator.jar

servlet.jar
servlet-api.jar

Copy the following Flex JAR files /application root/WEB-INF/lib
directory:

flex-bootstrap.jar
flex-bootstrap-jsp.jar
flex-messaging.jar
flex-messaging-common.jar
flex-messaging-opt.jar
flex-messaging-req.jar
flex-acrobat.jar
.......
.
.
.


plz download this other jar file

http://svn.riaforge.org/weeki/trunk/WeekiServer/WEB-INF/

bye

chan

unread,
Sep 29, 2008, 4:41:56 AM9/29/08
to Flex India Community
Hi All,

Thanks a lot for your responses.
First of all, I am really sorry that I am replying very late.


I have gone through post. But could you please give me the sample
application so that I can deploy that in jboss and extract the
necessory folder in my existing application.

I am totally new to this technology. so could you please let me know
what is difference LCDS and SDK.
How can I configure SDK in jboss or Latest LCDS in jboss?

Regards,
Chandan
> On Sep 18, 10:53 am,chan<chandanmaha...@gmail.com> wrote:
>
>
>
> > Hi All,
>
> > We are planning to use the flex(mxml and action scripts) in our j2ee
> > application. Our j2ee application is developed in JSP and struts. I am
> > totally new to flex technology.
> > After doing investigation search on flex , I cam to know that we can
> > use flex tag in the jsp.
> > Could any body let me know what is to be done to use flex in jsp?
>
> > 1) what will be the entry in web.xml.
> > 2) From where to download flex related jars  and where to copy in my
> > application?
>
> > After investigation, I found something like this,
>
> > <taglib>
> > <taglib-uri>FlexTagLib</taglib-uri>
> > <taglib-location>/WEB-INF/lib/flex-bootstrap-jsp.jar</taglib-location>
> > </taglib>
>
> > From where to download flex-bootstrap-jsp.jar and is the right syntax?
> > as we use tld in taglib location.
>
> > What other jars I need to download?
>
> > Could you please let us know or provide the pointer?
>
> > Your response will be highly appriciated and this is urgent
> > requirement in our project?
>
> > Thanks,
> > Chandan- Hide quoted text -
>
> - Show quoted text -

chan

unread,
Oct 15, 2008, 5:31:48 AM10/15/08
to Flex India Community
Hi Kutti,

Thanks for your last reponse.

I just wanted confirm some license issue. Could you please let me know
the structure which you provided is free from license ?

Do we need to purchase these jars , etc ?

We want to use it for commercial purpose. we are having our j2ee
project in which we will replace all jsp code by embeding the flex/
mxml code in the jsp. For this we need to add the structure which you
provided in your last post.Is it right that this sturcture is called
LCDS? if yes, do i need to purchase it?

Also if i run any charting program in the this it shows me watermark.
so if I have to purchase charting license how to get it or what
setting do i need to do? From google, I came to know that it comes
with flexbuilder 3 professional. But i really do not know how to use
it in j2ee application?

This is really a urgent requirement so early response will be really
appriciated/

Thanks,
chandan



On Sep 19, 10:40 pm, kutti <kutti.ku...@gmail.com> wrote:

<mx:AnandVardhan/>

unread,
Oct 15, 2008, 6:28:48 AM10/15/08
to Flex India Community
Chandan,
LCDS is an Adobe product and you have to purchase it however a smaller
version of the same called BlazeDS is free and opensource.

You can leverage its capabilities if it suits your requirment.

Anand

chan

unread,
Oct 17, 2008, 8:51:08 AM10/17/08
to Flex India Community
Hi Anand,

Thanks for your response, It means it need to purchase the LCDS.

Just wanted to confirm, in our j2ee project, the flex folder under WEB-
INF folder is called LCDS or what?

And if i.e. is called as LCDS, If i need to get chart licesne also ,
how to add it in LCDS?

Could you reply for this immediately?

Thanks,
chandan




On Oct 15, 3:28 pm, "<mx:AnandVardhan/>" <vardhanan...@gmail.com>
wrote:
> > > - Show quoted text -- Hide quoted text -

Venkat Viswanathan

unread,
Oct 17, 2008, 11:48:50 AM10/17/08
to flex_...@googlegroups.com
Hi Chandan,

I did not get your first question... Both in BlazeDS and LCDS, the folder inside WEB-APPS will be called "flex" only.

And for putting the charting information, inside the "flex" folder, there is a file called "license.properties". Put the license information in this file and restart the server.

Regards,
Venkat
www.venkatv.com

chan

unread,
Oct 20, 2008, 1:10:06 AM10/20/08
to Flex India Community
Hi Venket,

Thanks a lot for your quick response.

Could you please explain me what is LCDS? Does it require license?
and For charting you have already told us that pur the license key in
license.properties.

Also possible tell me what is difference between LCDS and BlazeDS?

I do not know how to configure it in j2ee application. I have
downloaded the sample program from google and came to know that there
is something folder called as flex that has to be included in web-inf
folder of our project?

Could you please reply in detail for this? that will solve my this
query totally?

Regards,
Chandan








On Oct 17, 8:48 pm, "Venkat Viswanathan" <helloven...@gmail.com>
wrote:

Venkat Viswanathan

unread,
Oct 21, 2008, 1:06:09 PM10/21/08
to flex_...@googlegroups.com
Hi Chandan,

The basic difference between BlazeDS and LCDS is that BlazeDS is open-source and LCDS is a paid application. It has a  lot of extra features which are not present in BlazeDS. However, if you are not going to use those features, you can undoubtedly go ahead with BlazeDS.

Here is an exhaustive list of differences between the two software:
http://sujitreddyg.wordpress.com/2008/01/31/blazeds-and-lcds-feature-difference/

Here are a few tutorials for configuring BlazeDS:
http://daveturner.greatwideweb.com/wiki/index.php?title=Installing_BlazeDS
http://www.flexlive.net/?p=90

Regards,
Venkat

HISSAM

unread,
Oct 21, 2008, 1:16:39 PM10/21/08
to flex_...@googlegroups.com

can we trail version pf LCDS??
--
-----------------------------
Warm Regards,
 HISSAM,
 Soft Engg,
 iThinkLabs Pvt Ltd.
 India.
website:http://www.ithink-labs.com
           http://www.yureekah.com
------------------------------

Venkat Viswanathan

unread,
Oct 21, 2008, 9:24:23 PM10/21/08
to flex_...@googlegroups.com
Yes, in fact a single-user developer license is free.. You can download and try it for free. The restriction is that you cannot use it commercially in distributed servers. Its called LiveCycle Data Services ES Express.

Regards,
Venkat
www.venkatv.com

chan

unread,
Oct 23, 2008, 2:47:05 AM10/23/08
to Flex India Community
Hi Venkat,

Thanks a lot. Nice to see the details in the response.
I need some suggestion from your side. We are working in j2ee project.
Currently our requirement is to show charts.
For this we are writting some mxml file and action script. Currently
we have created static data in action script which we render in mxml
to show the chart. But actual requirement is to fetch the data from
backend which comes in javascript object in our project and plan is to
call the action script from java script so that we can pass the java
script object to the action script which will be then called from
mxml.

Now thing is that we are including mxml files in our jsp, so that when
this jsp is invoked, corrosponding chart will be displayed. In such
scenario do you think we should go for LCDS? or BlazeDS is sufficient
for us?

Yes, as the charting is paid, we have to get the charting license and
include the licnese key in BlazeDS or LCDS.

Could you please guide on this?

Let me know if you need more information on this.

Thanks,

Chandan



On Oct 22, 6:24 am, "Venkat Viswanathan" <helloven...@gmail.com>
wrote:
> > ------------------------------- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages