You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vicky <ja...@yahoo.com> on 2003/08/08 04:57:12 UTC
Applet tree menu or using jsp/struts? URGENT !!
Hello group,
I have tree menu running in applet in one of my applications. Currently i am in the process of evaluating whether to continue with tree menu in applet or to develop tree menu using jsp, struts etc.? what are the pros and cons between these two options. Also i am looking for some example or tutorial for treee menu using jsp/struts. In my case data for tree menu are coming from xml file.
Any help would be appreciated. Also early response would be appreciated highly.
Thanks
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
Re: Applet tree menu or using jsp/struts? URGENT !!
Posted by Paul Thomas <pa...@tmsl.demon.co.uk>.
On 08/08/2003 03:57 Vicky wrote:
> Hello group,
>
> I have tree menu running in applet in one of my applications. Currently i
> am in the process of evaluating whether to continue with tree menu in
> applet or to develop tree menu using jsp, struts etc.? what are the pros
> and cons between these two options. Also i am looking for some example or
> tutorial for treee menu using jsp/struts. In my case data for tree menu
> are coming from xml file.
>
> Any help would be appreciated. Also early response would be appreciated
> highly.
>
> Thanks
>
Take a look at Tomcat's Admin application. It's Struts based and has a
tree menu.
HTH
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Dynamic multimedia content with Struts...
Posted by Alex Shneyderman <al...@law.columbia.edu>.
> Hello everybody : is it possible with struts tag libraries to
> retrive dynamically for example pictures from a database and place
them
> on the jsp page on the fly....
Write an action that will have something like
response.setContentType ("image/jpg");
OutputStream os = response.getOutputStream ();
while (have bytes of picture available) {
os.write (write the byte);
}
response.flush ();
repsonse.close ();
return null;
You just need to serve your JSP page as usual, linking your images to
the action above. Since for each image link browser isssues a separate
request, you should be fine with not mixing up your content types.
> And also another question : I would like a user to be able to select
> from a page certain file names ( dynamicaly generated ) and
> then to press a download button -> I want to fetch the requested files
> from a database, pack them in one unique zip file and push this to the
> user.
> Has any of you done something similar... And if not do you think it is
> feasable????
Same as with pictures practically no difference, except you will need to
change the content type to "application/zip", I think. We do it at my
workplace for packing the reports and it works pretty well.
Alex.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Dynamic multimedia content with Struts...
Posted by Todor Sergueev Petkov <t....@basalmed.uio.no>.
Hello everybody : is it possible with struts tag libraries to
retrive dynamically for example pictures from a database and place them
on the jsp page on the fly....
And also another question : I would like a user to be able to select
from a page certain file names ( dynamicaly generated ) and
then to press a download button -> I want to fetch the requested files
from a database, pack them in one unique zip file and push this to the
user.
Has any of you done something similar... And if not do you think it is
feasable????
Thanks,
Todor
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Newbie question: Testing if collection is != null before iterating
Posted by Alex Shneyderman <al...@law.columbia.edu>.
Check logic:notEmpty tag
> -----Original Message-----
> From: todorp@snapp.uio.no [mailto:todorp@snapp.uio.no] On Behalf Of
Todor
> Sergueev Petkov
> Sent: Saturday, August 09, 2003 12:32 PM
> To: Struts Users Mailing List
> Subject: Newbie question: Testing if collection is != null before
> iterating
>
> How can I test if a collection is not null before iterating through
it?
> Does the <logic:iterate> tag do this ckeck and skip the iteration if
the
> collection is null?
>
> Thanks a lot,
> Todor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Newbie question: Testing if collection is != null before iterating
Posted by Todor Sergueev Petkov <t....@basalmed.uio.no>.
How can I test if a collection is not null before iterating through it?
Does the <logic:iterate> tag do this ckeck and skip the iteration if the
collection is null?
Thanks a lot,
Todor
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Applet tree menu or using jsp/struts? URGENT !!
Posted by Kamalakar Thota <ko...@yahoo.com>.
hello vicky,
Applet is heavy. So, when you use applets, it will take time for loading and also you involve in making clients install plugins. By using jsp and struts, it would be faster as you embed much of html code into the jsp. here, for example, I am attaching 2 of my jsp files
(one jsp has left and right frames, second jsp code for navigation, and for the right side frame do not forget add this to the body attribute i.e.
<body class="common" onload=" parent.perfNavigator.location='/iNetTest/admin/performance/perfNavigator.jsp' " >
).
I am guessing that you will modify this jsp code to your needs and write your own action class. Let me know if you have any problems (you can call me at 435-792-3392),
Kamal.
Vicky <ja...@yahoo.com> wrote:
Hello group,
I have tree menu running in applet in one of my applications. Currently i am in the process of evaluating whether to continue with tree menu in applet or to develop tree menu using jsp, struts etc.? what are the pros and cons between these two options. Also i am looking for some example or tutorial for treee menu using jsp/struts. In my case data for tree menu are coming from xml file.
Any help would be appreciated. Also early response would be appreciated highly.
Thanks
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
RE: Applet tree menu or using jsp/struts? URGENT !!
Posted by Todd Fuller <tf...@metanology.com>.
Tree in the example is generated from a model, but feel free to use the
generated/implemented code as a guide.
http://www2.metanology.com:8080/struts-examples-web/index.jsp
Todd Fuller
Metanology Corporation
4625 Alexander Dr., Ste 105
Alpharetta, GA 30022
770.475.1301 Office
404.561.0294 Cell
www.metanology.com
-----Original Message-----
From: Vicky [mailto:javaxmlsoapdev@yahoo.com]
Sent: Thursday, August 07, 2003 10:57 PM
To: struts-user@jakarta.apache.org
Subject: Applet tree menu or using jsp/struts? URGENT !!
Hello group,
I have tree menu running in applet in one of my applications. Currently i am
in the process of evaluating whether to continue with tree menu in applet or
to develop tree menu using jsp, struts etc.? what are the pros and cons
between these two options. Also i am looking for some example or tutorial
for treee menu using jsp/struts. In my case data for tree menu are coming
from xml file.
Any help would be appreciated. Also early response would be appreciated
highly.
Thanks
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org