starrman777

Greenhorn
+ Follow
since Mar 23, 2005
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 starrman777

I have a JFrame that contains a couple of images. The problem is that the images appear as though they have been covered up.

Here is a cropped screenshot of the JFrame with 2 images. One of the images is the JFrame IconImage (in the blue bar at the top) and the other image is simply the company logo. The company logo is placed on top of a green background. You can see in the screenshot that where the logo is supposed to appear the green is a shade lighter.



This same JFrame and images appear perfectly when I run it inside of Eclipse but when I run it from the command line all the images appear to be covered up... could this be a painting/repainting issue.

I am a Java programmer of many years but haven't done Swing (Java/UI) programming in forever so I have a feeling that this is a basic problem and was hoping that someone would immediately know what I am probably doing wrong.

Thank You.
16 years ago
I guess the JSTL symbol got translated into an emoticon...
18 years ago
JSP
I posted this question on another forum and the advice that I received was to find out what class the the Map's value actually is by doing this:

<c ut value="${anArrayList.class.name}"/>

Here is the post at the other forum
http://forum.java.sun.com/thread.jspa?threadID=633265&tstart=0

I tried that and figured out what to do from there.
Thanks!
18 years ago
JSP
I am passing a ViewBean into a JSP page.
The ViewBean Contains a Map
The Key for the Map is a String
The Value for the Map is an ArrayList of Car objects

The viewBean is accessed using useBean.
<jsp:useBean id="viewBean"
class="com.whatever.MyViewBean"
scope="request" />

<c:forEach var="mapEntry" items="${viewBean.map}">
<c:set var="theKey" value="${mapEntry.key}" />
<c:set var="anArrayList" value="${mapEntry.value}" />

<c:forEach var="car" items="${anArrayList}" >
.
.
.
</c:forEach>
</c:forEach>

I am receiving an exception at this point: "javax.servlet.ServletException: Don't know how to iterate over supplied "items" in <forEach>"

I believe that the problem is the "anArrayList" and that it doesn't know that it is an ArrayList that can be iterated over.

Any Ideas what the problem is???
18 years ago
JSP
Thank You. Very helpful.

The -d is what I was missing.

Now my checkout command looks like this:
<cvs cvsRoot="${cvs.root}"
package="home/dev/myapp/src/com"
command="checkout -d 'com' -r ${cvs.branch.name}"
dest="${src}"/>

Thanks Again!
Eric
19 years ago
I have a CVS directory structure like this:

home
dev
myapp
src
com
companyname
(etc... )

I have set up a local src directory

<property name="build" location="build" />
<property name="src" location="${build}/src" />

<mkdir dir="${build}" />
<mkdir dir="${src}" />

I would like to checkout from CVS only the com directory on down so that the local directory structure would be

build
src
com
companyname
(etc... )

Here is what I have so far

<input message="Enter the name of the branch that you want to get from CVS"
addproperty="cvs.branch.name" />

<cvs cvsRoot="${cvs.root}"
package="home/dev/myapp/src/com"
command="checkout -r ${cvs.branch.name}"
dest="${src}"/>


I'm using ANT 1.6.2...

Any ideas?
19 years ago