• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts with weblogic8.2

 
chetan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying strut application to deploy on weblogic8.2.I am using jakarta-struts-1.2.4 (struts.jar).
I am using <logic:forward name="c4news"/> in my weocme.jsp in which i am trying to forward to c4news page.But I am getting the below error i dont know why?..I have already added servlet.jar,weblogic.jar and struts.jar in classpath.

D:\bea\user_projects\domains\c4manager\.\myserver\.wlnotdelete\extract\myserver_c4manager_c4manager\jsp_servlet\__welcome.java:147: cannot resolve symbol
probably occurred due to an error in /Welcome.jsp line 3:
<logic:forward name="c4news"/>


--------------------------------------------------------------------------------
Full compiler error(s):
D:\bea\user_projects\domains\c4manager\.\myserver\.wlnotdelete\extract\myserver_c4manager_c4manager\jsp_servlet\__welcome.java:147: cannot resolve symbol
symbol : variable EVAL_BODY_BUFFERED
location: interface javax.servlet.jsp.tagext.BodyTag
if (_int0 == BodyTag.EVAL_BODY_BUFFERED) { //[ /Welcome.jsp; Line: 3]
^

Please let me know what may be the problem?..

Thanks In Advance...

Regards
Chetan
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you put your logic:forward tag inside of another custom tag or something?

Would you mind posting the jsp?
 
Junilu Lacar
Bartender
Pie
Posts: 7465
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy "chetandurg",

Welcome to JavaRanch! We don't have a lot of rules in these here parts but one that we're kind of particular about is the JavaRanch Naming Policy (the other one's the "Be Nice" rule). We'd be much obliged to you if you would take a minute to edit your profile and make your publicly displayed name comply with the rule. Hope to see you around the Ranch!

---

As for your problem, you might want to check the JSP spec version that your container supports. The EVAL_BODY_BUFFERED superceded EVAL_BODY_TAG since JSP 1.2. I suspect your container only supports JSP 1.1
 
chetan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marc/Junilu,

Below is my Welocme.jsp,taglibs.jsp,struts-config.xml and tiles.xml.
The same pages works perfectly with tomcat server but i am unable to deploy on weblogic8.2.

Welocome.jsp
----------------
<%@ include file="pages/common/taglibs.jsp" %>

<logic:forward name="c4news"/>


taglibs.jsp
---------------
<%@ 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"%>

struts-config.xml
--------------------

<global-forwards>
<!-- Welcome.jsp forwarded to this path -->
<forward name="c4news" path="/c4news.do" redirect="false" />
<forward name="welcome" path="/Welcome.do" redirect="false" />
</global-forwards>

tiles-defs.xml
----------------
<tiles-definitions>
<definition name="c4news" path="/pages/layout/c4OnlyBodyTemplate.jsp">
<put name="title" value="C4 News" />
<put name="body-content" value="/pages/body/News.jsp" />
</definition>
</tiles-definitions>

SO please let me know if any changes needs to be done.
Thanks In advance...

Regards
Chetan
[ January 11, 2005: Message edited by: chetandurg ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic