weblogic 6.1 and 8.1

Hi All,

would appreciate help pls

I don't know this is problem with settings we have here or is it specific to WL 8.1 SP3.

i HAVE A JSP which i multiple page directives example as below:
<%@ taglib uri='struts/bean-el' prefix='bean' %>
<%@ taglib uri='struts/html-el' prefix='html' %>
<%@ taglib uri='struts/logic-el' prefix='logic' %>
<%@ taglib uri='jstl/c' prefix='c' %>

<%@ page language="java" import="java.text.SimpleDateFormat,java.util.Date"%>
<%@ page language="java" import="com.citi.soft.util.BusinessDate"%>

<SCRIPT language="javascript1.2"  src="/docs/js/global.js"></SCRIPT>

This JSP when I try to bring on web throws an Exception as below:

<Error> <HTTP> <webweia60d> <isoftNode1> <ExecuteThread: '23' for queue: 'default'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=8566885,name=isoft,context-path=/isoft/iSoft)] Servlet failed with Exception
weblogic.servlet.jsp.JspException: (line 7): page directive language at /jsp/trades/searchform.jsp:7 previously defined at /jsp/trades/searchform.jsp:6


If I change my jsp to have only one page directive as

<%@ page language="java" import="java.text.SimpleDateFormat,java.util.Date, com.citi.soft.util.BusinessDate"%>


It seems to work fine.

This is happening only in 8.1. Same jsp with multiple page directives is working fin in 6.1.

anything changed in 8.1? or anything i am doing wrong?

would appreciate urgent help pls

regards
narravAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

petmagdyCommented:
not only weblogic 8.1 I think all new versions of Application servers, the import attribute in the page directive is not allowed twice, I think this is to be compatibl with the J2EE specifications
0
narravAuthor Commented:
so 6.1, it was allowed right?


Can you please forward me documentation link of 8.1 where it says that or J2EE specification where it says it? Because I am finding on all web-sites that page directive with import attribute is the only one allowed multiple times in jsp..

regards
0
petmagdyCommented:
u r right import can be repeated but language is not ur directives should be:

<%@ page language="java" import="java.text.SimpleDateFormat,java.util.Date"%>
<%@ page import="com.citi.soft.util.BusinessDate"%>
0
narravAuthor Commented:
But why is my this thing working in 6.1 but doesn't work in 8.1?

<%@ page language="java" import="java.text.SimpleDateFormat,java.util.Date"%>
<%@ page language="java" import="com.citi.soft.util.BusinessDate"%>
0
petmagdyCommented:
according to JSP specification 2.0 it seems weblogic 8.1 is more compliant than 6.1, import can be repeated but language is not
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.