wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts with weblogic8.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts with weblogic8.2" Watch "Struts with weblogic8.2" New topic
Author

Struts with weblogic8.2

chetan
Greenhorn

Joined: Aug 13, 2002
Posts: 15
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


Thanks<br />chets
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Did you put your logic:forward tag inside of another custom tag or something?

Would you mind posting the jsp?


A good workman is known by his tools.
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4457
    
    6

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


Junilu - [How to Ask Questions] [How to Answer Questions]
chetan
Greenhorn

Joined: Aug 13, 2002
Posts: 15
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts with weblogic8.2