Marina Popova

Greenhorn
+ Follow
since Jul 20, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marina Popova

For those who is interested - I have fixed it (or, rather, got a good answer from the JSTL mailing list and it worked!).
The problem was that I used the DTD 2.3 for my web app web.xml file where it should've been DTD2.4:

Marina
20 years ago
JSP
Hi, Bear,
Thanks for the response and sorry about the smileys - I realized that after the message got posted only...
Yes, I do use c.tld, as this is the library that is supposed to support EL. I have the c.tld file in my app's WEB-INF directory.
Any other ideas?
20 years ago
JSP
Hello!
I am trying to write a simple test web application using JSTL and encountered the following problem:
JSTL core tags are working fine (like <c ut ...>, <c:forEach...> but the EL expressions are not evaluated. Below is a simple test page that demonstrates the problem:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
<title>JSTL WISS Preview</title>
</head>
<body bgcolor="#FFFFFF">
<jsp:useBean id="directory"
class="test_wiss_JSTL.WISSDirectoryDataBean" />
<br>
Total number of Files (JSTL): <c ut value="${directory.totalNumFiles}"/>
<br>
Total number of Files (JSP):
<jsp:getProperty name="directory" property="totalNumFiles"/>
<br>
<c:forEach var="i" begin="1" end="5">
<c ut value="${i}"/><br>
</c:forEach>
<c:forEach var="file" items="${directory.fileList}">
<c ut value="${file}"/><br>
</c:forEach>
</body>
</html>
The result (in the browser) is:
Total number of Files (JSTL): ${directory.totalNumFiles}
Total number of Files (JSP): 2
${i}
${i}
${i}
${i}
${i}
${file}
So, as you can see, the <c:xxx> tags work correctly , the usual JSP tags work correctly also and the bean's totalNumFiles value is shown correctly too, but when I try to show the same value using the EL expression (${directory.totalNumFiles} ) - it does not work. Nor does a simple integer value ${i} - not a bean's property...
It seems I'm missing something very obvious - just cannot see it just yet. Any ideas?
I use Tomcat5.0.12. I did try to include the JSTL's jar files (standard.jar and jstl.jar) into my web application's WEB-INF/lib directory, even though they are in the $CATALINA/commons/lib - it did not help.
Thanks!
Marina
20 years ago
JSP
Charles,
thanks for the advice. Yes, I did try the "Exclude" feature (and "Import" also) - but when you have to exclude 40 directories that cannot be described by a regular expression (like */*something*) it is quite a pain to exclude them one by one manually. Also, even after I went through this pain once - all "excluded" directories were still sitting happily in my Project's window
As to what I'm used to - it's Xemacs + Ant But I do use JBuilder from time to time for GUI development and more involved EJB projects. I guess I'm perfectly fine spending days researching some elaborate features of IDEs, but I think that simple tasks (at least they are very simple in JBuilder) like setting up source directories for your projects should not require that much time - it's just my opinion, of course.
Other than that - Eclipse looked pretty good and I loved the JFaceDBc plugin!
best,
Marina

Originally posted by Ilja Preuss:

Eclipse doesn't do that. Never did, as far as I know.


(it was said about Eclipse not forcing to use its own directory structures...)
Well, actually it does and this is the main reason why I did not go forward with it. In fact, I have posted questions on two different bulletin boards asking how to map Eclipse projects to complex pre-existing directories and nobody could answer me.
Just in case you are curious what directory structure I am talking about - I have one top level directory, say "level1", and many (about 40) subdirectories, say "sub1 through subNN". All package names are like "level1.subNN". I wanted to create a project for one sub-directory only, say for level1.sub1 - but I could not make Eclipse to ignore all other subdirectories no matter what tricks I tried.
It looks like Eclipse is great when you are flexible about directory structure but is extremely unintuitive when you are trying to make it work with your existing packages/directories.
And this is not the only problem I had with Eclipse . For example, I was not able to change the default value of the WEBLOGIC61 classpath variable on Solaris...
Of course, it is possible that there are some hidden tricks that I have not found yet that would do just what I need - but as somebody said it before I don't want to spend days learning an IDE, I want to be able to start working with it as soon as possible.
Thanks for the advise!
Unfortunately, "Import..." did not help - it imported not only the directory I needed but the whole directory hierarchy also (although I explicitely specified only one directory to include...)
As to the WEBLOGIC610 classpath variable. I'm using Eclipse 2.1.0 version on Solaris, and I think that might be a problem. In my Windows version, there is an option to set the classpath variable in the Lomboz Properties directly, but in the Solaris version there is no such option at all and I have to set it through the Windows -> Java -> Classpath Variables screeen (which does not work for me).
Well, it looks like Eclipse is great when you start new projects and are flexible about source directories, but it is not very intuitive when you have to integrate it with existing projects. At this point I dont' think I can afford spending more time on this and will probably try IDEA or go back to JBuilder and maybe try a later version of Eclipse some time in the future.
Thanks for your help anyway!
Marina
Hi!
I have used JBuilder in the past and decided to try Eclipse as I've heard
very good reviews about it.
I have tried to set up a Project and map it to existing directories as described in the manual on "Overlapping products in a common source tree" .
My directories are organized as described in the above mentioned manual :
src
-- root1
-- a
-- b
...
-- root2
...
-- rootN
I have about 40 subdirectories under "root1", their packages are
"root1.a", "root1.b" and so on. I wanted to create a project for "root1.a"
package only.
One problem I encountered right away is that I had to explicitely add all
40 other subdirectories to the "Exclusion Patterns" list, as well as all
siblings of the root1 dir. No need to say it is very painfull to do that for so
many directories... Why could not I specify just one directory to be included into the project? Even after I did all this exclusion excercise, after opening my project, I still see all other directories in the "Project Explorer" under "src'. Why? Have not I excluded them all just now??
I did try a different approach and tried to specify just one directory "src/root1/a" as the source directory - but then Eclipse complains that my directory and package structure are incompatible. I guess it figured out that the package of all Java files was "root1.a" and tried to append it to the source directory...
After doing this I really appreciated JBuilder's ease of adding directories/files to the projects... You create a new project there and
then just do "Add files..." to your project from any directory and it is smart enough to figure out what package they are in and add the whole
directory to the project...
I still hope that it is rather my inexperience with Eclipse that prevents me from creating projects this way. Could somebody explain what I did wrong in setting up this project?
Another problem I found is when I tried to define the "WEBLOGIC610" classpath variable. It shows the default value of "C:/....". No matter how
many times I tried to edit it - next time I examine the classpath variable the old value is there again, and Lomboz (a J2EE plugin) is using the wrong value in its Server Definitions...
Any help would be greatly appreciated,
thanks,
Marina
Hello!
I'm facing an interesting problem now.
I'm using CMP for my entity beans and I've noticed one thing: if I do an external update to the tables that the beans are mapped to, those updates are not seen by my beans. If, for example, I delete some rows and then try to look up the corresponding entity beans through, say, findByPrimaryKey - the find method succeds though there are no data in the table... Needless to say that whatever I do with the returned "found" bean fails.
Is this a problem with the container (I'm using WLS5.1 + SP9) caching entity beans? It seams as though WLS doesn't call the ejbLoad() methods before findByPrimaryKey() (and others) methods...
I did set up all related properties for the beans, like:
db-is-shared = true
there is no is-modified-method
cache-strategy = read-write
Am I missing something here?
thanks a lot,
Marina
Thanks a lot for your answer!
Yes, I think the only choice here is to create a header as a separate file and concatenate it with the result xml file...
Thanks!
Marina
Thanks a lot for the advise, Mapraputa!
Unfortunately, it won't solve my problem, I'm afraid...
As I understand, the <xsl utput ... > line is hardcoded in the stylesheet file - which means that I have to hard code a name of the DTD file also. The problem is that I need to process many different xml files with this stylesheet and all these files have different DTDs (but they all have this one element that the stylesheet will process...). So that I cannot hardcode the DTD name in the <xsl utput ...> line...
Is there any way to get around this??
Thanks a again!
Marina
Hi!
I guess my question is a beginner one...
I'm trying to modify an XML document slightly, changing a few elements values only and leaving others unchanged. I do this as following: (Sorry, had to delete all angle brackets, as they are not allowed here ...)
xsl:template match="node()"
xsl:copy
xsl:apply-templates/
/xsl:copy
/xsl:template
xsl:template match="//specificElement"
specificElement
xsl:value-of select="newValue"/
/specificElement
/xsl:template
It works fine with one exception: first two lines with XML and DOCTYPE declarations are not copied into the result XML file:
?xml version="1.0" standalone="no"?
!DOCTYPE com SYSTEM "com.dtd"
Is there any way to copy these elements also??
Thank you very much!
Marina