RE: PLEASE HELP - struts-tiles no longer work
Micael, Thanks for your help! I corrected my mistake by using the String equals() method, and it works fine. Tuan -Original Message- From: micael [mailto:caraunltd;harbornet.com] Sent: Saturday, October 19, 2002 12:21 AM To: Struts Users Mailing List Subject: Re: PLEASE HELP - struts-tiles no longer work I don't know, but my guess is that you meant to use someString.equals(someOtherString) rather than someString == someOtherString, unless you somehow are using a hidden myString.intern() in there. My guess, in other words, is that you are getting nothing because all your == tests yield false. Try sticking a ! or two in there and see if something miraculously appears. Debuggers are not very clever at finding the real problems, like this one, if this is right. At 12:03 AM 10/19/2002 -0700, you wrote: Why don't you look at the source? My guess is that if you are looking at a blank page, the page, except for tags, is blank. At 08:41 PM 10/18/2002 -0700, you wrote: Hi, My app was working fine using struts-tiles with frameset. But since this afternoon, it does not work any more. It displays a blank page (NOT a 404 error). I have tried with debug code, but couldn't figure out. The action forward seems to work fine after the user login. I tested and it forwarded to the right View (JSP) which is the MainMenu.jsp. I have been debugging this issue for the last 5 hrs, and I ran out of idea where to look for a solution to this problem. Please help! Thanks, Tuan ** MainMenu.jsp *** % page import=com.phs.ezhr.constant.IConstants % % taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % % // get the user's selected navigation String selTab = (String)session.getAttribute( IConstants.USER_SEL_TAB_KEY ); String selSubTab = (String)session.getAttribute( IConstants.USER_SEL_SUBTAB_KEY ); % % if ( selTab == IConstants.MANAGER_SUMMARY_TAB ) { % tiles:insert definition=summaryLayout flush=true / % } ** Layout.jsp % page language=java % % taglib uri=/WEB-INF/struts-html.tld prefix=html % % taglib uri=/WEB-INF/struts-bean.tld prefix=bean % % taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % % taglib uri=/WEB-INF/struts-logic.tld prefix=logic % % page import=com.phs.ezhr.constant.IConstants % % // get the user's selected navigation String selTab = (String)session.getAttribute( IConstants.USER_SEL_TAB_KEY ); String selSubTab = (String)session.getAttribute( IConstants.USER_SEL_SUBTAB_KEY ); // set the frameset row heights for each tab header String rh1 = null; String rh2 = *; String rh3 = null; String cw1 = null; String cw2 = *; if ( selTab == IConstants.MANAGER_SUMMARY_TAB ) { rh1 = 99; rh3 = 55; cw1 = 95%; } else if ( selTab == IConstants.SALARY_TAB ) { rh1 = 201; rh3 = 125; cw1 = 97%; } else if ( selTab == IConstants.BONUS_TAB ) { rh1 = 229; rh3 = 125; cw1 = 95%; } % !-- FOR DEBUG PURPOSE ONLY == GOT CORRECT DATA RETURNED HERE -- %=request.getContextPath()%tiles:getAsString name=header /BR %=request.getContextPath()%tiles:getAsString name=body /BR %=request.getContextPath()%tiles:getAsString name=rightSide /BR %=request.getContextPath()%tiles:getAsString name=footer /BR Select Tab = %= selTab %BR !-- END DEBUG -- !-- frame -- ' name=header id=top frameborder=0 scrolling=no noresize marginwidth=0 marginheight=0 framespacing=0 ' name=body marginwidth=0 marginheight=0 scrolling=yes frameborder=0 noresize framespacing=0 ' name=rightSide marginwidth=10 marginheight=10 scrolling=no frameborder=0 noresize framespacing=0 ' name=footer id=bottom frameborder=0 scrolling=no marginwidth=0 marginheight=0 noresize framespacing=0 *** tiles-definitions.xml * ?xml version=1.0 encoding=ISO-8859-1 ? -- To unsubscribe, e-mail: For additional commands, e-mail: Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org Micael --- This electronic mail transmission and any accompanying documents contain
RE: PLEASE HELP - struts-tiles no longer work
The debug code below returned the correct paths to JSP pages for header, body, rightside and footer, but none of them get displayed. It returns a blank page. %=request.getContextPath()%tiles:getAsString name=header /BR %=request.getContextPath()%tiles:getAsString name=body /BR %=request.getContextPath()%tiles:getAsString name=rightSide /BR %=request.getContextPath()%tiles:getAsString name=footer /BR Thanks! Tuan -Original Message- From: Tuan H. Le Sent: Friday, October 18, 2002 8:41 PM To: Struts Users Mailing List (E-mail) Subject: PLEASE HELP - struts-tiles no longer work Hi, My app was working fine using struts-tiles with frameset. But since this afternoon, it does not work any more. It displays a blank page (NOT a 404 error). I have tried with debug code, but couldn't figure out. The action forward seems to work fine after the user login. I tested and it forwarded to the right View (JSP) which is the MainMenu.jsp. I have been debugging this issue for the last 5 hrs, and I ran out of idea where to look for a solution to this problem. Please help! Thanks, Tuan ** MainMenu.jsp *** % page import=com.phs.ezhr.constant.IConstants % % taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % % // get the user's selected navigation String selTab = (String)session.getAttribute( IConstants.USER_SEL_TAB_KEY ); String selSubTab = (String)session.getAttribute( IConstants.USER_SEL_SUBTAB_KEY ); % % if ( selTab == IConstants.MANAGER_SUMMARY_TAB ) { % tiles:insert definition=summaryLayout flush=true / % } ** Layout.jsp % page language=java % % taglib uri=/WEB-INF/struts-html.tld prefix=html % % taglib uri=/WEB-INF/struts-bean.tld prefix=bean % % taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % % taglib uri=/WEB-INF/struts-logic.tld prefix=logic % % page import=com.phs.ezhr.constant.IConstants % % // get the user's selected navigation String selTab = (String)session.getAttribute( IConstants.USER_SEL_TAB_KEY ); String selSubTab = (String)session.getAttribute( IConstants.USER_SEL_SUBTAB_KEY ); // set the frameset row heights for each tab header String rh1 = null; String rh2 = *; String rh3 = null; String cw1 = null; String cw2 = *; if ( selTab == IConstants.MANAGER_SUMMARY_TAB ) { rh1 = 99; rh3 = 55; cw1 = 95%; } else if ( selTab == IConstants.SALARY_TAB ) { rh1 = 201; rh3 = 125; cw1 = 97%; } else if ( selTab == IConstants.BONUS_TAB ) { rh1 = 229; rh3 = 125; cw1 = 95%; } % !-- FOR DEBUG PURPOSE ONLY == GOT CORRECT DATA RETURNED HERE -- %=request.getContextPath()%tiles:getAsString name=header /BR %=request.getContextPath()%tiles:getAsString name=body /BR %=request.getContextPath()%tiles:getAsString name=rightSide /BR %=request.getContextPath()%tiles:getAsString name=footer /BR Select Tab = %= selTab %BR !-- END DEBUG -- !-- frame -- html:html HEAD html:base/ TITLEbean:message key=app.label.title //TITLE /HEAD frameset rows=%=rh1%,%=rh2%,%=rh3% frameborder=0 noresize framespacing=0 frame src='%=request.getContextPath()%tiles:getAsString name=header/' name=header id=top frameborder=0 scrolling=no noresize marginwidth=0 marginheight=0 framespacing=0 frameset cols=%=cw1%,%=cw2% framespacing=0 frame src='%=request.getContextPath()%tiles:getAsString name=body/' name=body marginwidth=0 marginheight=0 scrolling=yes frameborder=0 noresize framespacing=0 frame src='%=request.getContextPath()%tiles:getAsString name=rightSide/' name=rightSide marginwidth=10 marginheight=10 scrolling=no frameborder=0 noresize framespacing=0 /frameset frame src='%=request.getContextPath()%tiles:getAsString name=footer/' name=footer id=bottom frameborder=0 scrolling=no marginwidth=0 marginheight=0 noresize framespacing=0 /frameset noframes bean:message key=app.msg.noframe / /noframes /html:html *** tiles-definitions.xml * ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD Tiles Configuration//EN http://jakarta.apache.org/struts/dtds/tiles-config.dtd; !-- Definitions for Tiles documentation -- tiles-definitions !-- === -- !-- Master definition -- !-- === -- definition name=summaryLayout path=/Layout.jsp put name=title value=Online Focal Tool Application/ put name=header value=/Header.jsp/ put name=footer value=/Footer.jsp/ put name=body value=/ManagerSummaryContent.jsp/ put name=rightSide
Re: PLEASE HELP - struts-tiles no longer work
Why don't you look at the source? My guess is that if you are looking at a blank page, the page, except for tags, is blank. At 08:41 PM 10/18/2002 -0700, you wrote: Hi, My app was working fine using struts-tiles with frameset. But since this afternoon, it does not work any more. It displays a blank page (NOT a 404 error). I have tried with debug code, but couldn't figure out. The action forward seems to work fine after the user login. I tested and it forwarded to the right View (JSP) which is the MainMenu.jsp. I have been debugging this issue for the last 5 hrs, and I ran out of idea where to look for a solution to this problem. Please help! Thanks, Tuan ** MainMenu.jsp *** % page import=com.phs.ezhr.constant.IConstants % % taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % % // get the user's selected navigation String selTab = (String)session.getAttribute( IConstants.USER_SEL_TAB_KEY ); String selSubTab = (String)session.getAttribute( IConstants.USER_SEL_SUBTAB_KEY ); % % if ( selTab == IConstants.MANAGER_SUMMARY_TAB ) { % tiles:insert definition=summaryLayout flush=true / % } ** Layout.jsp % page language=java % % taglib uri=/WEB-INF/struts-html.tld prefix=html % % taglib uri=/WEB-INF/struts-bean.tld prefix=bean % % taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % % taglib uri=/WEB-INF/struts-logic.tld prefix=logic % % page import=com.phs.ezhr.constant.IConstants % % // get the user's selected navigation String selTab = (String)session.getAttribute( IConstants.USER_SEL_TAB_KEY ); String selSubTab = (String)session.getAttribute( IConstants.USER_SEL_SUBTAB_KEY ); // set the frameset row heights for each tab header String rh1 = null; String rh2 = *; String rh3 = null; String cw1 = null; String cw2 = *; if ( selTab == IConstants.MANAGER_SUMMARY_TAB ) { rh1 = 99; rh3 = 55; cw1 = 95%; } else if ( selTab == IConstants.SALARY_TAB ) { rh1 = 201; rh3 = 125; cw1 = 97%; } else if ( selTab == IConstants.BONUS_TAB ) { rh1 = 229; rh3 = 125; cw1 = 95%; } % !-- FOR DEBUG PURPOSE ONLY == GOT CORRECT DATA RETURNED HERE -- %=request.getContextPath()%tiles:getAsString name=header /BR %=request.getContextPath()%tiles:getAsString name=body /BR %=request.getContextPath()%tiles:getAsString name=rightSide /BR %=request.getContextPath()%tiles:getAsString name=footer /BR Select Tab = %= selTab %BR !-- END DEBUG -- !-- frame -- ' name=header id=top frameborder=0 scrolling=no noresize marginwidth=0 marginheight=0 framespacing=0 ' name=body marginwidth=0 marginheight=0 scrolling=yes frameborder=0 noresize framespacing=0 ' name=rightSide marginwidth=10 marginheight=10 scrolling=no frameborder=0 noresize framespacing=0 ' name=footer id=bottom frameborder=0 scrolling=no marginwidth=0 marginheight=0 noresize framespacing=0 *** tiles-definitions.xml * ?xml version=1.0 encoding=ISO-8859-1 ? -- To unsubscribe, e-mail: For additional commands, e-mail: Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: PLEASE HELP - struts-tiles no longer work
I don't know, but my guess is that you meant to use someString.equals(someOtherString) rather than someString == someOtherString, unless you somehow are using a hidden myString.intern() in there. My guess, in other words, is that you are getting nothing because all your == tests yield false. Try sticking a ! or two in there and see if something miraculously appears. Debuggers are not very clever at finding the real problems, like this one, if this is right. At 12:03 AM 10/19/2002 -0700, you wrote: Why don't you look at the source? My guess is that if you are looking at a blank page, the page, except for tags, is blank. At 08:41 PM 10/18/2002 -0700, you wrote: Hi, My app was working fine using struts-tiles with frameset. But since this afternoon, it does not work any more. It displays a blank page (NOT a 404 error). I have tried with debug code, but couldn't figure out. The action forward seems to work fine after the user login. I tested and it forwarded to the right View (JSP) which is the MainMenu.jsp. I have been debugging this issue for the last 5 hrs, and I ran out of idea where to look for a solution to this problem. Please help! Thanks, Tuan ** MainMenu.jsp *** % page import=com.phs.ezhr.constant.IConstants % % taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % % // get the user's selected navigation String selTab = (String)session.getAttribute( IConstants.USER_SEL_TAB_KEY ); String selSubTab = (String)session.getAttribute( IConstants.USER_SEL_SUBTAB_KEY ); % % if ( selTab == IConstants.MANAGER_SUMMARY_TAB ) { % tiles:insert definition=summaryLayout flush=true / % } ** Layout.jsp % page language=java % % taglib uri=/WEB-INF/struts-html.tld prefix=html % % taglib uri=/WEB-INF/struts-bean.tld prefix=bean % % taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % % taglib uri=/WEB-INF/struts-logic.tld prefix=logic % % page import=com.phs.ezhr.constant.IConstants % % // get the user's selected navigation String selTab = (String)session.getAttribute( IConstants.USER_SEL_TAB_KEY ); String selSubTab = (String)session.getAttribute( IConstants.USER_SEL_SUBTAB_KEY ); // set the frameset row heights for each tab header String rh1 = null; String rh2 = *; String rh3 = null; String cw1 = null; String cw2 = *; if ( selTab == IConstants.MANAGER_SUMMARY_TAB ) { rh1 = 99; rh3 = 55; cw1 = 95%; } else if ( selTab == IConstants.SALARY_TAB ) { rh1 = 201; rh3 = 125; cw1 = 97%; } else if ( selTab == IConstants.BONUS_TAB ) { rh1 = 229; rh3 = 125; cw1 = 95%; } % !-- FOR DEBUG PURPOSE ONLY == GOT CORRECT DATA RETURNED HERE -- %=request.getContextPath()%tiles:getAsString name=header /BR %=request.getContextPath()%tiles:getAsString name=body /BR %=request.getContextPath()%tiles:getAsString name=rightSide /BR %=request.getContextPath()%tiles:getAsString name=footer /BR Select Tab = %= selTab %BR !-- END DEBUG -- !-- frame -- ' name=header id=top frameborder=0 scrolling=no noresize marginwidth=0 marginheight=0 framespacing=0 ' name=body marginwidth=0 marginheight=0 scrolling=yes frameborder=0 noresize framespacing=0 ' name=rightSide marginwidth=10 marginheight=10 scrolling=no frameborder=0 noresize framespacing=0 ' name=footer id=bottom frameborder=0 scrolling=no marginwidth=0 marginheight=0 noresize framespacing=0 *** tiles-definitions.xml * ?xml version=1.0 encoding=ISO-8859-1 ? -- To unsubscribe, e-mail: For additional commands, e-mail: Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the