Could I use jstl tag in the JSP page of Creator 2 final release?
I have a JSP page used to work well in Creator 2EA2. The page
has the following code snippets:
<c:forEach items="${SessionBean1.webQuery1.details}" var="item">
<tr>
<td class="detailKey">
<c:out value="${item.key}"/>
</td>
<td class="detailValue">
<c:out value="${item.value}"/>
</td>
</tr>
</c:forEach>
...Basically, it generates a table columns.
After migrating to Creator2 final release, a fatal exception is thrown
when the page is launched :
Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
Exception Details: org.apache.jasper.JasperException
/Page1.jsp(148,132) According to TLD or attribute directive in tag file, attribute items does not accept any expressions
Possible Source of Error:
Class Name: org.apache.jasper.compiler.DefaultErrorHandler
File Name: DefaultErrorHandler.java
Method Name: jspError
Line Number: 43
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack Trace:
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:43)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:414)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:155)
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes Any suggestion, or work around?
Thanks
There is something strange in the HTML for you posedt, so I cannot clearly see what you are trying to do in your JSP page. But either of the following kinds of usage would cause this kind of error:
<h:dropDown ... items="<%= ...some Java expression ...>"/>or
<h:dropDown ... items="${...some JSP EL expression...}"/>This is because JSF component tags allow neither Java runtime expressions nor JSP EL expressions (at least in JSF 1.1, which is what Creator 2 supports). The answer is to use a JSF EL expression instead, like this:
<h:dropDown ... items="#{... some EL expression}"/>Craig
Similar Messages
-
Error in parsing the taglib tag in the JSP page
Hi
We are trying to deploy and run a Web Application in CE 7.1 SP01. We are successful in deploying and running servlet based web pages, but when it comes to JSP's the taglibs are not parsed and we get the following error message
Runtime error in processing of the JSP file E:\usr\sap\CE1\J01\j2ee\cluster\apps\sap.com\TestNWEAR\servlet_jsp\TestNW\root\admin\main.jsp.
The error is: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Error in parsing the taglib tag in the JSP page. Cannot resolve URI: [webwork]. Possible reason - validation failed. Check if your TLD is valid against its scheme.02004C4F4F5000190000004E000013400191D308B45
Processing HTTP request to servlet [jsp] finished with error.
The error is: java.io.FileNotFoundException: E:\usr\sap\CE1\J01\j2ee\cluster\apps\sap.com\TestNWEAR\servlet_jsp\TestNW\root\admin\webwork (The system cannot find the file specified)02004C4F4F50001900000051000013400191D308B45AF1AB
We followed the below weblog to correct the TLD's in JAVA EE 5 @ SAP but it did not work for us.
/people/community.user/blog/2006/10/13/porting-the-java-blueprint-solutions-catalogue-applications-to-sap-netweaver-application-server-java-ee-5-edition
Any immediate help will be rewarded with full points
Thanks in advance
Lakshmi
Edited by: lakshmi N Munnungi on May 5, 2008 11:36 PM
Edited by: lakshmi N Munnungi on May 5, 2008 11:39 PMHi Lakshmi,
I have also the same problem. If you have found the solution please post it thanks,
Thanks,
Tariq -
Are not interpreted JSTL tags in a JSP page including in a servlet.
Hi people,
I have a project where una page (index.jsp) includes a servlet (MyServlet), that consult a persistence class and get a List of objects (Users),
then the servlet passes the List to a Request object and includes another JSP page (showUsers.jsp). And this is conceptually correct, but don´t works, the JSTL tags are not interpreted in showUsers.jsp.
This is my code...
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<c:out value="Show me some things index.jsp"/>
<div style="border-color:red; border:solid; padding-left:60px">
<jsp:include flush="true" page="pepe/MyServlet"/>
</div>
</body>
</html>...and the Servlet...
public class MyServlet extends HttpServlet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
UserManager um = new UserManager();
List users = um.getUsers(); //This use Hibernate to return a Users List
request.setAttribute("users", (ArrayList) um.getUsers());
request.getRequestDispatcher("/showUsers.jsp").forward(request, response);
}...Finally, we have the showUsers.jsp file....
<c:out value="Show me some thing showUsers.jsp"/>
<table>
<tr>
<th>ID</th>
<th>Name</th>
<th>e-Mail</th>
<th>Type</th>
</tr>
<tr>
<c:foreach items="${requestScope.users}" var="user">
<td><c:out value="${user.id}" /></td>
<td><c:out value="${user.name}" /></td>
<td><c:out value="${user.email}" /></td>
<td><c:out value="${user.type}" /></td>
</c:foreach>
</tr>
</table>This i get as result page...
ID Name e-Mail TypeFinally, this is the code of showUsers.jsp...
<c:out value="Show me some thing showUsers.jsp"/>
<table>
<tr>
<th>ID</th>
<th>Name</th>
<th>e-Mail</th>
<th>Type</th>
</tr>
<tr>
<c:foreach items="[src.User@18f729c, src.User@ad97f5, src.User@d38976, src.User@1e5c339, src.User@17414c8, src.User@7a17]" var="user">
<td><c:out value="" /></td>
<td><c:out value="" /></td>
<td><c:out value="" /></td>
<td><c:out value="" /></td>
</c:foreach>
</tr>
</table>Somebody can help me?
Many thanks,
GonzaloThanks you all guys,
I appreciate very much your help. In response to everyone ...
BalusC wrote:
Is JSTL taglib declared in top of that JSP page? I don't see it back in the posted code snippet. In this example I stuck...
request.getRequestDispatcher("/showUsers.jsp").forward(request, response);By mistake, but this is just a test, the original line of my servlet is...
request.getRequestDispatcher("/showUsers.jsp").include(request, response);As you can see, both (the servlet and the showUser.jsp file) are included in the index.jsp file. So the header...
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>...in the index.jsp file should works (I hope so).
njb7ty wrote:
I assume in your web.xml, you have ''pepe/MyServlet' defined as a servlet tag and servlet map tag? Without that, I don't think your JSP will find the servlet. I'm >not sure you need it in web.xml since I never call a servlet from a JSP page.
I suggest putting System.out.println() throughout your servlet code and out.println() in your JSP pages to see exactly what is called and when.
As a general rule, JSP files are to display data only, and submit back to a servlet. The servlet does all the business logic and dispatches to the appropriate >JSP page. The JSP shouldn't have any business logic. Including the servlet looks kinda like including business logic. Actually, in a MVC design, your >presentation, control, busines, and database layers have their own isolated responsibilities.
I suggest the servlet put data as one java bean in request scope via request.setAttribute() and dispatch to the JSP page. The JSP page gets the data via ><useBean> tag. The JSTL gets the variables from the useBean tag and uses the data from there to display it. Really, this is my web.xml file...
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>src.MyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/pepe/MyServlet/*</url-pattern>
</servlet-mapping>
</web-app>Regarding putting System.out.println() and out.println(), i did it and thats works.
Respect of your last comment, I am not a expert in MVC, but I understand that the view layer can make calls to the Controller layer, I am wrong?
evnafets wrote:
It's not. However thats not code, but the generated HTML.
As Balusc pointed out it's the result of running this JSP page without importing the tag library at the top.
Because the tag library is not declared, it treats the <c:forEach> and other tags as template text, and basically ignores them.
It then evaluates the ${items} attribute as an expression in template text, calling toString() on it.
Cheers,
evnafets The file showUsers.jsp are included into the index.jsp page, that's have the header taglib. Could this works?
BalusC wrote:
njb7ty wrote:
By the way, I dont think this is the correct format for the foreach tag:
<c:foreach items="[src.User@18f729c, src.User@ad97f5, src.User@d38976, src.User@1e5c339, src.User@17414c8, src.User@7a17]" var="user">You're right friend.
And that's my problem. Any ideas?
Thanks everyone,
Gonzalo -
How to use jstl variable in a jsp page
Hi all,
I am new to JSTL and i want to access the value of jstl in jsp.
when i use the tag like below it is displaying the value ""
<c:out value="${ack}"/>
But as ack is string, i want to convert it into int. and i have written like
<c:set var="ackvalue" value="${ack}"/>
and int ack = Integer.parseInt(ackvalue);
But it is showing error like varialbe can not be resolved: ackvalue
can anybody please help me regarding this?
Waiting for your warm response.
Thanks in advanceHi,
Thanks for your immediate reply.
I am able to display the ackvalue when i am using
<c:set var="ackvalue" value="${ack}"/>
and <c:out value="${ackvalue}"/>
But my actual requirement is to use the ack value in
switch statement. if i can assign the value to a
String variable, then it si easy for me to proceed.
Please help me in this regard.
Thanks,You can use the c:choose, c:when and c:otherwise tags
<c:choose>
<c:when test = "${ackvalue == 1}">
//do stuff
</c:when>
<c:when test = "${ackvalue == 2}">
//do some other stuff
</c:when>
<c:otherwise>
//stuff
</c:otherwise>
</c:choose>ram. -
How to use Flex tag library in jsp
Hi All,
We are planning to use flex in our J2EE application in order
to show some charts. Our j2ee application is in JSP,Struts. I have
searched on google about this and found that I can include flex 3
tab library in the jsp in order to use mxml tag in the jsp. I have
written a sample program in the jsp which uses flex.
<%@ taglib uri="FlexTagLib" prefix="mm" %>
<SCRIPT LANGUAGE="JavaScript">
function showMessage() {
message.value = "Use this application wisely";
function hideMessage() {
message.value = "";
</SCRIPT>
<mm:mxml border="5" onmouseover="showMessage();"
onmouseout="hideMessage();">
</mm:mxml>
<TABLE>
<TR>
<TD><input type="text" name="message"
size="50"></TD>
</TR>
</TABLE>
I have added entry inweb.xml. See below,
<taglib>
<taglib-uri>FlexTagLib</taglib-uri>
<taglib-location>/WEB-INF/tlds/flex-bootstrap.jar</taglib-location>
</taglib>
Following are the problems that I am currently facing.
1) Could anybody let me know whether the entry of
<taglib> tag is correct in the web.xml. Is it the correct
jar(flex-bootstrap.jar) that I should include?
2) If yes, from where to download it? or
If no, what is correct jar that i should include and how?
your response will be highly appriciated as this is the major
requirement in our project?
Thanks ,
ChandanHi,
Pleas find details at the URL below.
http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP
Hope this helps. -
Posting huge data on to JSP page using JSTL tags
Hi,
I have one application where I have to post huge data (approximately 2000 rows of data) into JSP page. I am using JSTL tags and running on Tomcat 5.
It is taking almost 20 to 25 seconds to load the entire page.
Is it the optimal time to load or it could be improved?
Please let me know.
Thanks,
--Subbu.Hi Evnafets,
Thank you for the response.
Here are the tasks I am doing to display the data on JSP.
0. We are running on Tomcat 5 and the memory size is 1024MB (1GB).
1. Getting the data - I am not performing any database queries. The data is stored in the static cache memory. So the server side response is so quick - less than a milli second.
2. Using Java beans to pass data to the presentation layer (JSP).
3. 10 'if' conditions and 2 'for' loops and 2 'choose' statements are being used in the JSP page while displaying the data.
4. Along with the above, there are 4 javascript files are being used.
5. The jsp file size after rendering the data, is aprox. 160 kb
Hope this information helps you to understand the problem.
Thanks,
--Subbu. -
How to write this java code in jsp using jstl tags?
Can anybody help me on this?
I dont know how to check the containsKey using jstl tags?
<%
LinkedHashMap yearMap = (LinkedHashMap)request.getAttribute("yearMap");
TreeSet nocSet = (TreeSet)request.getAttribute("nocSet");
Iterator yearMapIt = yearMap.keySet().iterator();
while(yearMapIt.hasNext())
int yearValue = (Integer)yearMapIt.next();
%>
<tr>
<td><%=yearValue%></td>
<%
LinkedHashMap monthMap = (LinkedHashMap)yearMap.get(yearValue);
Iterator nocSetIt = nocSet.iterator();
while(nocSetIt.hasNext())
String nCase=(String)nocSetIt.next();
if(monthMap.containsKey(nCase))
String count = (String)monthMap.get(nCase);
%>
<td> <%= count %> </td>
<% }
else
%>
<td> 0 </td>
<%
%>
</tr>
<% } %>Edited by: avn_venki on Feb 18, 2008 11:54 PM<c:forEach var="yearMap" items="${requestScope.yearMap}">
<th> <c:out value="${yearMap.key}"/> </th>
<bean:define id="monthMap" value="${yearMap.value}"/>
<c:forEach var="nocSet" items="${nocSet}">
then how to write containsKey using tags?? -
How to use custome tag lib in the JSP page?
How to use custome tag lib in the JSP page?...with JDeveloper
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtTopicFile.working_with_jsp_pages%7Cjsp_ptagsregistering~html/
-
Problem in using JSTL tag libs
Hi there,
I am trying to use JSTL tag libs in my web app, but i get the following error message:
org.apache.jasper.JasperException: /index.jsp(22,0) According to TLD or attribute directive in tag file, attribute test does not accept any expressions
as it might be clear i am using Tomcat and line 22 of the code for index.jsp is:
<c:if test="${user.role > 0 }">
Please help my identify whats wrong in there. I suspect that it is because of my web.xml file, but i am not sure.
thanx in advance,
Capitan Haddocktry to use gt instead of >
-
Use JSTL tags for ATG droplets and beans
Hi,
I am trying to display profile values in a JSON object in jsp.
<dsp:getvalueof var="json" bean="ProfileFormHandler.ProfileJSON"></dsp:getvalueof>
<c:out value="${json}" />
but instead of using dsp tag is there a way for accessing ProfileFormHandler using JSTL tag
Also how can we use droplets in ATG like ForEach using JSTL tags only
<dsp:droplet name="ForEach">
<dsp:param name="array" param="catalogItems.rootCategories"/>
<dsp:param name="elementName" value="categoryItem"/>I am trying to display profile values in a JSON object in jsp.
<dsp:getvalueof var="json" bean="ProfileFormHandler.ProfileJSON"></dsp:getvalueof>
<c:out value="${json}" />
but instead of using dsp tag is there a way for accessing ProfileFormHandler using JSTL tagIn the <dsp:importbean> use var to give an EL variable name to the component you are importing.You can also set its scope attribute to page, request, session, or application with page scope being the default. You can then access it as a page scoped attribute. So this should do:
<dsp:importbean var="profileFormHandler" bean="/atg/userprofiling/ProfileFormHandler" />
<c:out value="${pageScope.profileFormHandler.ProfileJSON}" />In case you change the scope in importbean you can accordingly use pageScope, requestScope, sessionScope or applicationScope.
Also how can we use droplets in ATG like ForEach using JSTL tags only
<dsp:droplet name="ForEach">
<dsp:param name="array" param="catalogItems.rootCategories"/>
<dsp:param name="elementName" value="categoryItem"/>Any ATG droplet is nothing but a servlet which is also a Nucleus component. So essentially you want to call a servlet from JSTL which as such shouldn't be done in a well written script-less JSP. You can probably try to use the droplet as a bean and use JSTL on top of it but since ATG droplets also have different types of parameters like input, output and open so you will have to specially handle those. -
Is it possible todeclare primitive variable by using JSTL tag
Hi friends..........
I have to use jstl tags in my project , so i have to know how to declare primitive variables with jstl tag. Is it possible with <c:set > jstl tag........
Hope i get the answer...........
Thanks in advance...............JSTL variables are attributes in the page, request, session and application scopes.
As such, they can only be objects, because you can't store a primitive value as an attribute.
However you shouldn't need to declare primitive variables. You should hardly need to declare any variables.
JSTL is not a programming language. It is a language to aid the display of a JSP. Therefore most of its attention is geared towards outputting things, with a much lesser concern on setting them.
Cheers,
evnafets -
How we can use jsf tags in included jsp enclosed in subview tags
Hello everybody,
I am developing web app by using jsf. I am including a jsp page "header.jsp" into another jsp page "main.jsp". The header.jsp page is enclosed in jsf subview tag on main.jsp page. The header.jsp contains some static html code and some jsf tags like "outputText". When i added tag library url in header.jsp then my app was not even not initiating and i was getting following exception
ERROR [UIComponentTag] Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.
16:22:16,890 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
....Now i removed jsf tag library url from included jsp "header.jsp" so now my app is running but only static html data is being displayed but the value in the jsf tag "outputText" is not being printed in the browser
kindly help me. i would be very thankful....Your question has nothing to do with Sun Java System Directory Server.
Please use the right forum(s).
Thanks -
Can I use any Class in a Use Bean Tag of a JSP
I have tried to modify the existing EditForm.java file and created a new Class File which changes the presentation(render method)in the Edit Form.
can I use the new class as a Bean in the use bean tag of a JSP.You can use any class as part of the useBean tag. If you want to add your class to the list of available webbeans, you can add it to <jdev dir>\teamplates\webbeans.xml.
-
I have h:dataTable in each row of which i'd like to output row data as text, inputfield or link depending on row data type
<h:dataTable id="pnlHistory" value="#{UserOrdersBean.orderLineWrappers}" var="wrapper" rendered="#{UserOrdersBean.isBasicUser}"
columnClasses="history_col1, history_col2, history_col3, history_col4, history_col5" width="100%" cellpadding="5" >
<h:column>
<f:facet name="header">
<h:commandLink action="doRefresh" actionListener="#{UserOrdersBean.doSort}">
<h:outputText value="#{msg.userorders_itemName}">
<f:param value="orderLineWrappers"/>
<f:param value="itemName"/>
</h:outputText>
</h:commandLink>
</f:facet>
<h:outputText value="#{wrapper.itemName}" styleClass="itemdescription"/>
</h:column>
<h:column>
<f:facet name="header">
<h:commandLink action="doRefresh" actionListener="#{UserOrdersBean.doSort}">
<h:outputText value="#{msg.userorders_data}">
<f:param value="orderLineWrappers"/>
<f:param value="data"/>
</h:outputText>
</h:commandLink>
</f:facet>
<c_rt:choose>
<c_rt:when test="#{wrapper.type==0}">
<h:outputText value="#{wrapper.data}" styleClass="basic_thin"/>
</c_rt:when>
<c_rt:when test="#{wrapper.type==1}">
<h:inputText value="#{wrapper.data}" styleClass="basic_thin" style="width:160px"/>
</c_rt:when>
<c_rt:when test="#{wrapper.type==2}">
<h:outputLink value="#{wrapper.data}">
<h:outputText value="#{msg.userorders_link}" styleClass="basic_thin"/>
</h:outputLink>
</c_rt:when>
</c_rt:choose>
</h:column>
</h:dataTable>trying to use jstl tags but unsuccessfull. Is it ever possible user jstl tags in jsf tags like listed aboveReplace the c:choose block by<h:outputText value="#{wrapper.data}" styleClass="basic_thin" rendered="#{wrapper.type == 0}" />
<h:inputText value="#{wrapper.data}" styleClass="basic_thin" style="width:160px" rendered="#{wrapper.type == 1}" />
<h:outputLink value="#{wrapper.data}" rendered="#{wrapper.type == 2}">
<h:outputText value="#{msg.userorders_link}" styleClass="basic_thin"/>
</h:outputLink> -
Tags not recognized when compiling the jsp pages through appc
Hi:
I am trying to convert a web application from weblogic 9.1 to weblogic 10.3. However, when I try to build the ear file the page compilation fails with the error:
weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: projectFinancials.jsp:10:2: The tag handler class was not found "jsp_servlet._tags.__projectJobCostingLayout_tag
However, the tag file is there.
The tags are referenced through this declaration:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<taglib>
<taglib-uri>http://name/app/tagfiles</taglib-uri>
<taglib-location>/WEB-INF/tags</taglib-location>
</taglib>
</web-app>
All the declarations in the jsp pages are fine. In weblogic 9.1 I don't have any problem. I also set the <backward-compatible>true</backward-compatible> in weblogic.xml.
Any idea?
Thanks!There is no need to use tld files with tag files when it comes to running the ear file through appc. When I do development I use a tld file that contains references to all the tag files, however my build process replaces that with the tag files directory:
So, during development I have:
web.xml:
<taglib>
<taglib-uri>http://name/cps/tagfiles</taglib-uri>
<taglib-location>/WEB-INF/tld/mytags.tld</taglib-location>
</taglib>
mytags.tld:
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<tlib-version>1.0</tlib-version>
<short-name>mytags</short-name>
<uri>mytaglib</uri>
<tag-file>
<name>agreementDetailsLayout</name>
<path>/WEB-INF/tags/agreementDetailsLayout.tag</path>
</tag-file>
During the build I have:
web.xml:
<taglib>
<taglib-uri>http://name/app/tagfiles</taglib-uri>
<taglib-location>/WEB-INF/tags</taglib-location>
</taglib>
If I don't do this appc will have a fit of even bigger proportions (more error messages etc.)
Maybe you are looking for
-
AIA support for multiple brands implemented in multiple instances of Siebel
Good Day! I would like to ask whether AIA has the capability to support multiple brands in terms of multiple instances of Siebel and BRM. I have a client wherein they have a scenario of: 1.) To launch 4 different brands which contain multiple service
-
Step wise config data for schedule line agreements
DEar All, I need urgently one the foolowing doc: step wise config data for schedule line agreements. thanks regards, s KUMAR
-
Is it possible to run a Labview executable on a Windows 8 Phone?
If I create an executable from Labview,will it be possible to run it on a Windows 8 phone? Solved! Go to Solution.
-
How do I customize the workspace in Captivate 8?
I've just installed Captivate 8. I want to customize the workspace but I can't save my settings. The option that the Help file describes (Window>>Workspace>>New Workspace) isn't in my version of the software. All I see is Workspace>>Reset "Classic"
-
Duplicate folders in iTunes after migrating my library
Hello, I got a new computer, still Windows XP Pro, and install iTunes 9.0.2.25 in it, and import my library, problem is I'm having duplicated folders (Music Videos, My Top Rated, Recently Added, and so on ...)in iTunes. All my music is there and iTun