Creating drop down menus in JSP using custom tags
Hi, i am working on a JSP which has custom tags for displaying menubar and menus, now i want to have these menus converted into drop down menus, and the submenus displayed onmouseover event. I am getting solutions with pure html page calling javascript functions.But i dont need this, i want the work done by my TagHandler class which sends the output to output stream, which in turn is transformed in to actual HTML by a XSLT embedded in my JSP.
Please help as i am new to custom tags, and desperately in need of help.
If possible give some sample code or useful links.
I will be highly grateful.
Thankx in advance
that's fine, but the tag has to, ultimately, generate the HTML/Javascript stuff like you've already seen.
Similar Messages
-
What's the best way of creating drop down menus on CS3?
Hi people,
I'm using CS3 now. I used to build drop down menus in
fireworks, but now with CS3 theyre a bit glitchy and I have
problems centering the page, as fireworks CS3 now generates CSS for
each menu - (dreamweaver also gets confused which CSS to use?)
Is SPRY menus the way to go now? It looks quite time
consuming styling them with CSS? I quite like using rollover
images, is this going to make life hard doing it the SPRY way?
Any tips or advice would be appreciated before I start.
Whats your experience of SPRY shall I go for that or stick to
something more tradional?"BeardedFlipFlop" <[email protected]> wrote
in message
news:f73k74$ko4
>
> Is SPRY menus the way to go now? It looks quite time
consuming styling
> them
> with CSS? I quite like using rollover images, is this
going to make life
> hard
> doing it the SPRY way?
It's not really all that time consuming if you have an
understanding of
CSS... the stylesheet that is used for the Spry menus is
fully commented
(thought it could be better explained in some cases), but
once you
understand what each section does and how to make the style
change it's not
that difficult.
Otherwise, go with the tutorial already posted.
Nadia
Adobe® Community Expert : Dreamweaver
CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
~ Customisation Service Available ~
http://www.csstemplates.com.au
Spry Widget Examples
http://www.dreamweaverresources.com/spry-widgets/ -
Is there a way to create drop down menus in IWeb
I want to have drop down menus from the main ones on my website.
How do I do that?This is the code I use in the html snipet
<script language="JavaScript">
<!--
function getSelect(s) {
return s.options[s.selectedIndex].value
//-->
</script>
<select name="list" size="1" onChange="window.top.location=getSelect(this)">
<option value="#">Select A Year</option>
<option value="http://web.mac.com/gartside1104/Photoyears/1960.html">1960</option>
<option value="http://web.mac.com/gartside1104/Photoyears/2008.html">2008</option>
</select>
Obviously you'll need to change certain parameters for your own use. -
I want to know how to make the drop down menus for my
navigation bar. I really want the menus to pop out to the right. Do
I have to buy a java script to do this. I am a relativly new
developer. I know some HTML and am just learning CSS. I am using
Dreamweaver to construct my pages. I dont know java scripting and
dont know how hard it is to do so don't know if this is something I
can make on my own or if I can copy one from a free source or buy
one. Thanks for any help. aekpCheck the uberlink and MacFly tutorials at PVII
http://www.projectseven.com/)
and the Navbar tutorial/articles at Thierry's place
http://tjkdesign.com/articles/dropdown/)
Or this one (more recent article):
http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp)
Or to get it done fast, go here -
http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"aekp" <[email protected]> wrote in message
news:en12bl$25c$[email protected]..
>I want to know how to make the drop down menus for my
navigation bar. I
>really
> want the menus to pop out to the right. Do I have to buy
a java script to
> do
> this. I am a relativly new developer. I know some HTML
and am just
> learning
> CSS. I am using Dreamweaver to construct my pages. I
dont know java
> scripting and dont know how hard it is to do so don't
know if this is
> something
> I can make on my own or if I can copy one from a free
source or buy one.
> Thanks for any help. aekp
> -
JSPs using Custom Tag with Boolean attribute cannot compile
Hi,
In Oracle9iAS(9.0.3), a jsp using a tag extension, which has a Boolean attribute, caused the following compile error, although the jsp is valid in other web containers.
ERROR:
/opt/oracle/j2ee/home/application-deployments/simple/simple/persistence/_pages/_test.java:56: Method toBoolean(java.lang.Boolean) not found in class _test.
__jsp_taghandler_1.setExists( OracleJspRuntime.toBooleanObject( toBoolean( b)));
JSP:
<%@ page language="java" %>
<%@ page errorPage="error.jsp" %>
<%@ taglib prefix="jnpr" uri="/WEB-INF/testtag.tld" %>
<%
Boolean b = Boolean.valueOf("true");
%>
<jnpr:TestTag exists="<%= b%>"/>
The boolean value is <%= b %>
Tag Handler:
package defaultpak;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
public class TestTag extends TagSupport{
private Boolean exists = null;
private java.lang.Boolean getExists() {
return exists;
public void setExists(java.lang.Boolean newExists) {
exists = newExists;
public int doStartTag() throws JspException {
return super.doStartTag();
Is this a known problem? Is there a way to get around this?
Thanks in advance.
FredThis is a known issue with 903, fixed in coming 904.
In 903 the workaround is to use primitive type "boolean" instead of Object type "java.lang.Boolean" in user's getter and setter code for the taglib.
-Prasad -
Dynamically create drop down box with JSP
Hi,
I hope this is not a repeat post, I have search the forum and a posting has not jumped out at me. I am making a jsp that dynamically constructs a custom SQL query.
I have a number of text boxes with an id, my jsp page calls a servlet, the servlet reads the contorl id and the value to build the query - this works great. However, there's a large text input box which receives a number of extra conditions - this text box receives the input in the following format:
searchAttributeName1,searchAttributeValue1;searchAttributeName2,searchAttributeValue2
This is functional, however, it's a bit rubbish as the user has to know the special recognised attributeNames. What I would like to have is some sort of criteria control. This would consist of a drop down box populated from the servlet, a text input for the value and a button to add another criteria control. so the user could build up the number of query criteria. The drop down box ensures they cannot select the wrong keyword, pressing the add criteria button adds a new drop down box and text box pair to the screen.
An example of this I recently saw was at Intel's jobs search web site https://jobs.intel.com/jobs/jobs.iccw - see that for example.
Has anyone got any ideas on how to achieve this? I initially thought use jsp scripting (there is no restriction against this) but I need to use javascript I'm guessing as the button click triggers adding a new combo box. Another idea was to use styles and tables to hide the other drop down boxes but this seems like a real hack that I'd like to avoid. I can do with with .NET i hope java can deliver!
Any ideas are much appreciated - I am a novice with java web development so please, any examples thoroughly explain (no need to explain populating the drop down box - there seem to be plenty of posts on this).
Thanks for any help or ideas on this issue -Gina,
Here is some sample code for using a ComboBox in a JSP from an EditCurrentRecord bean. This particular example uses a query, you can also populate combo boxes, list boxes, radio buttons and checkboxes from a static list. See the JavaDocs for the EditCurrentRecord bean.
<jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
<%
RowEditor.initialize(application, session , request, response, out, "wt_bc_WT_bcModule.WalkthroughEngineSlidesView");
RowEditor.setTargetUrl("WalkthroughEngineSlidesView_SubmitInsertForm.jsp");
RowEditor.createNewRow();
RowEditor.setReleaseApplicationResources(true);
RowEditor.useComboBox("Presname","select pres_name,pres_name from wt_info","PRES_NAME","PRES_NAME");
RowEditor.render();
%>
</jsp:useBean>
null -
Since Flash catalyst does not have a drop down component, does any one know how to create one.
For example a horizontal menu you get in a application?
Would be most grateful for any advice.
Regards
Josh.Hi Chris
I have created the first custom combo box which has a button and a datalist. This show's my file drop down menu. Now I want to create custom components for each menu item: Edit menu, View menu and so on... that will be a total of 9 custom drop down menu components. Is it now possible to put all these components within another custom component to create a navigation bar, for eaxmple the Microsoft word top menu?
Then with the datalist items in each component transitions to a state to show content in the main window.
Is it possible to do this interface in Flash catalyst.
Regards
Josh. -
Creating drop down menus that change dependant upon previous menu
I need to create a drop down menu and then have the next drop down change its content based on the selection in the previous menu
Would anybody have any code that I could play around with that would help me achieve this?
Thanks!!
MarkHi Mark,
This should get you close:
Create a .cfc call it product, as in save as product.cfc
You'll need to change the datasource name and the FROM clause below on both queries.
<cfcomponent output="false">
<cffunction name="getProduct" access="remote" returnType="query">
<cfset var data="" />
<cfquery datasource="yourdb" name="data">
SELECT product_uid,product_title
FROM yourtable
</cfquery>
<cfreturn data>
</cffunction>
<cffunction name="getSubProduct" access="remote" returnType="query">
<cfargument name="product_uid" type="numeric" required="true">
<cfset var data="" />
<cfquery datasource="yourdb" name="data">
SELECT sub_uid,sub_title
FROM yourtable
WHERE sub_product_uid = #ARGUMENTS.product_uid#
</cfquery>
<cfreturn data>
</cffunction>
</cfcomponent>
Imbed this in your your cfm page:
<cfselect
name="Product"
bind="cfc:product.getProduct()"
style="width:387px;"
size="1"
multiple="No"
required="No"
display="product_title"
value="product_uid"
bindonLoad="True">
</cfselect>
<cfselect
name="Sub Product"
bind="cfc:product.getSubProduct({product_uid})"
style="width:387px;"
size="1"
multiple="No"
required="No"
display="sub_title"
value="sub_product_uid">
</cfselect> -
Help creating drop down menus identical to this site
http://www.nike.com/us/en_us/
My client wants the drop downs on their site to be the identical look and feel as http://www.nike.com/us/en_us/
Can Muse accomplish this and how?Sure, here you go this widget from Musegrid will get you going.
http://www.musegrid.com/adobe-muse-widgets/menu-pack-one -
Create drop-down menus in Captivate 4
I need your help!
I need to create a dropdown menu in Captivate! It's supposed to be used in a simulation, not a quiz! Is it possible to create this in a Captivate simulation?
Thanks!Hi there
Normally we pause slides by inserting a Click Box. You may configure them with no action if you like.
My own experience shows that the widget does set variables. But how they work is a bit on the iffy side. Perhaps another author will offer more insight on this aspect.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Drop Down Menus on different browsers
Hi. I am a teacher and I'm making a website for my school. I just learned how to create drop down menus using html code. I checked the website on Firefox, Safari, and even Opera. Everything looks great, except for Internet Explorer. The menu at the top looks totally funky! It's in the wrong direction, the pictures are missing, etc. In addition, other things look messed up as well. Please check it out...
http://nestleweb.com
Why is this happening? I know that many people use IE, so it has to look right on this browser. Any suggestions?I did the same thing. I provided links on the homepage so users would not use IE. But the problem is... once a user goes to IE and sees the menus and the page all messed up, he/she might just give up and not even scroll to the bottom to see the browser recommendations. I just received an email telling me that the website was messed up for a visitor.
Just venting...I am a teacher that's making the school website. Now, in my own classroom, I can tell and train my students and parents to use FF, but it's out of my control for the rest of the school and any other visitors. I'm just frustrated with the situation because everything takes so much time to make and then it looks horrible on IE! Thanks for your post. It helps to know I'm not the only one! -
To be specific, would these drop down menus on this page
http://www.flashden.net/category/flash/menus-buttons/horizontal-menus
work in CS4?
Cam Flash CS4 create drop down menus without getting into
scripting? If so, is it like DW? Want to do a site like this
http://www.theswag.com/about.htm
Thanks.
SHshoutzager wrote:
> Was wondering if Flash CS4 can create drop down menus
without getting into scripting? If so, is it like DW? Want to do a
site like this
http://www.theswag.com/about.htm
Thanks.
>
> SH
No it can't.
It's just like regular flash with the ability to design every
single element from scratch,
it is not Power Point ;)
The new features are more for Time line oriented design but
nothing too major. I have been
playing for a while and with all honesty, because I don't
code in AS 3.0, I don't find it useful
and I move back to Flash 8 Pro.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
I have Dreamweaver MX, can I create drop-down menus without
an outside extention or software? If not, what is a good one to
use? In CS4, can Spry do that for you?> can I create drop-down menus without an outside
extention or software?
Yes, but only if you know how to do it without using this -
http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
Check the uberlink and MacFly tutorials at PVII -
http://www.projectseven.com/
and the Navbar tutorial/articles at Thierry's place
http://tjkdesign.com/articles/dropdown/
Or this one (more recent article):
http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
Or to get it done fast, go here -
http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
If your needs are more robust than that simple tool provides,
then you will
not go wrong with others of the menu systems provided there.
I use
PopMenuMagic on about 90% of the sites I build. The only
reasons that
number is not 100% is a) some simple sites just don't need
them, and b) some
sites require a different approach. Again, for what it's
worth, for those
sites that require a different approach, I just use a
different PVII
menu....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"sbruem" <[email protected]> wrote in
message
news:gogvfm$nlr$[email protected]..
>I have Dreamweaver MX, can I create drop-down menus
without an outside
>extention or software? If not, what is a good one to use?
In CS4, can Spry
>do that for you? -
Drop down menus contribute 6.5
How do I create drop down menus for my website in contribute 6.5?
This can be achieved through the new feature of Contribute "Insert Widget from Adobe Widget Browser". Please refer to http://help.adobe.com/en_US/contribute/using/WS7aa5ed367710fbce-151564b8137e61c07b9-8000.h tml
-
Photoshop CS6. Windows and Mac pop-up/drop down menus
Hi guys!
I have a problem with pop-up menus in CS6 (13.0.5) and ACR (white balance) under Mac OS 10.8.5.
I have been working with photoshop on PC under Windows for the years. I recently had to switch to CS6 on Mac.
I can no longer place my cursor in the Photo Filter preset mode (or ACR white balance presets) field and use arrow keys to quickly toggle through different presets/modes to find the ideal mode.
I know that with Shift+ an Shift- one can toggle between blend modes (Layers). But these keyboard combinations do not work for Photo Filter and other pop-up/drop down menus.
I used to be able to preview a lot of filters (or other modes) in seconds to choose the optimal. Now I have to click this button and click again on each photo filter. This is lengthening enormous the process.
On my Mac, I can certainly click in the menu and use the arrow key to go up and down but what that does not do is apply the blend mode, unless I also press Return. But pressing Return kicks you out of the menu so you have to start the click/arrow/Enter cycle again, which is a long way just to try the next blend mode.
It is very annoying. Please help! Thank you very much!Hi guys!
I have a problem with pop-up menus in CS6 (13.0.5) and ACR (white balance) under Mac OS 10.8.5.
I have been working with photoshop on PC under Windows for the years. I recently had to switch to CS6 on Mac.
I can no longer place my cursor in the Photo Filter preset mode (or ACR white balance presets) field and use arrow keys to quickly toggle through different presets/modes to find the ideal mode.
I know that with Shift+ an Shift- one can toggle between blend modes (Layers). But these keyboard combinations do not work for Photo Filter and other pop-up/drop down menus.
I used to be able to preview a lot of filters (or other modes) in seconds to choose the optimal. Now I have to click this button and click again on each photo filter. This is lengthening enormous the process.
On my Mac, I can certainly click in the menu and use the arrow key to go up and down but what that does not do is apply the blend mode, unless I also press Return. But pressing Return kicks you out of the menu so you have to start the click/arrow/Enter cycle again, which is a long way just to try the next blend mode.
It is very annoying. Please help! Thank you very much!
Maybe you are looking for
-
There are three iphone users in my household but only one main computer. I am the primary users and have all my business contacts on my iphone and computerr. The other two in the household also have iphones with their own contact lists. is there a
-
ITunes 10.6.3 and iOS 6.0
I have an older Power Mac G4 Quicksilver which, I just came to find out, will not be able to run iTunes 10.7. Looks like I'm stuck with 10.6.3 until I buy a new computer. However, I have a new 4th generation iPod touch which, from what I understand,
-
Video ipod wont add any more MP4 video files?
i have well over 23 GB left on my 30 GB video ipod and for some reason stupid itunes will not add the files to my movies setion of my library. I have the videos in my documents, and i click add file to library, that doesnt work, and when i double clc
-
Macbook pro13.rocketfish.mdp.to.hdmi
My problem: mbp13 does not detect lcd tv I'm using the hdmi cable from the hddvr, works macbook pro 13in late 2011 rocketfish mdp to hdmi adapter hdmi cable brand unknown samsung lcd tv 52in
-
IPhoto issues, won't open, says its damaged.. help me please!
I am in desperate need of help. I bought my mac book pro june 19th 2011, and it is already failing. I would not have spent so much money on an Apple, if only i knew 6 months later, it would fall apart. My iphoto is not working. When I try to open iph