| Expanding on Video Formats |
|
 |
Index ‹ java-programmer
|
- Previous
- 3
- Bug in java.net.Socket close() behavior?According to the API for java.net.Socket close():
"Any thread currently blocked in an I/O operation upon this socket
will throw a SocketException."
http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html#close()
I have observed that java 1.5 on FreeBSD does not follow this while
the Windows and Linux ones I have tested do. On the FreeBSD runtimes
that I have tested, a thread blocked on reading a socket just hangs
forever if the socket is closed.
Attached is a simple program that tests this behavior. It just
connects to a port on one of my servers and has a reader thread
watching input from the socket and closes the socket in a different
thread to see if the reader thread gets an exception.
Java runtimes that I have tested this on:
# java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01)
Java HotSpot(TM) 64-Bit Server VM (build diablo-1.5.0_07-b01, mixed mode)
# java -version
java version "1.5.0-p2"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0-p2-root_07_mar_2006_02_41)
Java HotSpot(TM) 64-Bit Server VM (build
1.5.0-p2-root_07_mar_2006_02_41, mixed mode)
- 3
- In praise of EclipseOn Sat, 16 Jul 2005 20:02:41 GMT, Dale King
<email***@***.com> wrote or quoted :
>As I said, you are actually not pointing to anything because the site
>doesn't exist, Rumsfeld explained nothing, and last I checked even if he
>had he is not a member of the Bush family.
The link has gone stale. The site itself still exists. Last time I
looked, a month or so ago it showed you a C-SPAN video of McKinney
going after Rumsfeld.
I spent 20 minutes unsuccessfully last night trying to find a new
source for it.
For more details on the loss/embezzlements see
http://mindprod.com/politics/iraqeconomics.html
This is not the forum to discuss. Try alt.politics.bush
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
- 8
- Generics and returning specific subclass from methodI have an abstract class called say Base and two subclasses, say Sub1 and
Sub2. Let me define a method in Super which I want to return a new instance
of the superclass itself but I want to access this without having to cast.
IE,
public class Super {
public <E extends Super> E partialCopy() {
return this; // return this for example
}
}
public class Sub1 extends Super { }
Then I want to do this without the cast.
Sub1 s1 = new Sub1();
Sub2 s2 = s1.partialCopy();
Can I do this with generics ?
- 8
- set guarded blockHow I can define, modify, delete a guarded block in NetBeans?
The gaurded block is writen by me (not by IDE).
Where is documentation about writing guarded block?
--
WOJSAL
http://www.wojsal.prv.pl
- 8
- jboss 4.0.3 jboss portal 2.2.1hi
i am a one week newbie to j2ee world ( no java exp )
however i am to deploy application ( that is compiere ) onto existing
platform ( pentaho that is )
as per this date my assumptions are :
= point of integration would be in portal
= compiere application itself, war, would be deployed on jboss /deploy
= jsp be made to enable access from portal to war
could somebody help me on what is the definable steps to do the
integration?
- 9
- Exec() Help!Hi,
I'm trying to start an external applet from an applet I'm writing. I know
Exec() Is the key, but I don't know how to use it. I know how to execute
external native programs (I.e. programs I have written in BASIC and
compiled). But starting an applet from an applet totally throws me. I have
tried searching the net, and that has a lot to say about executing shell
scripts, and natives - which I know how to do.
What classes do I need to import? what line of code invokes an external
applet? I don't need to grab output from the applet I want to execute, or
send input. I just want it to run.
Pleeeeeeez can anyone help, my project has to be handed in soon :-(
Thanks,
Dafydd.
- 9
- AbstractTableModel not compatible with SwingWhat happens when AbstractTableModel is no longer compatible with Swing?
I kinda see how to use it, but don't see how XMLEncoder would work in its
place.
"Warning: Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is appropriate
for short term storage or RMI between applications running the same
version of Swing. As of 1.4, support for long term storage of all
JavaBeansTM has been added to the java.beans package. Please see
XMLEncoder. "
http://java.sun.com/javase/6/docs/api/javax/swing/table/
AbstractTableModel.html
thanks,
Thufir
- 10
- Toward a generic Disk Sort for JavaI was thinking how you might go about writing a sort that could handle
more data than could fit in RAM. It handled the problem is Abundance
by checkpointing the app to disk to free up maximum RAM, then spawning
a copy of Opt-Tech sort. My records were roughly like DataOutputStream
would produce, so I could automatically generate the command script
sort the fields in any way I wanted.
I thought you might pull it off in Java this way.
1. You write a comparator as if you were going to sort Objects in an
ArrayList.
2. the external sort has an add method that also takes collections.
It accepts a "chunk" of records, and sorts them using Sun's sort.
Then it writes them out as SERIALISED objects in heavily buffered
stream. There may be some way to do a partial reset after each object
to speed it up.
Then you repeat collecting, sorting and writing another batch to
another file.
When you have created N files, you recycle, appending. (Optimal N to
be determined by experiment). Ideally each file would be on a
different physical drive.
Then when all the records have been added, you start merging chunks
into longer chunks, and writing out the longer chunks. Each N-way
merge cuts the number of chunks by 1/N and increases the length of the
chunks N times.
on the final merge pass does not happen until the user invokes the
Iterator to hand over the resulting records.
Another way it might be done is the records to be sorted must by byte
arrays, chunks effectively produced by DataOutputStream. You specify
offset, length and key type e.g.
int, byte, short, float, double, String.
This would require a detailed knowledge of the bit structure of the
records, the way you did in the olden days of assembler and C.
This would be clumsier to use, but would avoid the overhead of
pickling and reconstituting records on every pass.
Then of course, there is the possibility someone has already solved
this and done it well.
The universe has a sneaky habit. Problems start out small, and it
looks like a purely in RAM solution is perfectly adequate. Then they
bit by bit grow and grow and start pushing the limits of the RAM
solution. Suddenly you are faced with a major redesign.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
- 10
- J2MEHello,
Are there any newsgroups or forums specifically for J2ME? I would like to
make a game for mobile devices but I don't know where to start.
Thanks in advance,
Steve
- 10
- [J2ME] UI /freezes/ after IOExceptionHi,
I have a MiDlet that starts a Thread through a Runnable, in which
there is IO activity:
Runnable runner = new Runnable() { // some IO stuff there };
Thread thd = new Thread(runner);
thd.start();
The application runs well, until I need to close the IO channels that
are opened in that separate Thread.
Of course, I catch the IOException in my Thread, and the Thread
completes properly (and dies...).
But after this catch, the UI is not responding: if I press a button the
menu will not show, and if I do some programmaticaly changes in the UI
it does not display and the call blocks (i.e. if I add an item in the
current screen, nothing happens and the next line --System.out.println--
doesn't execute).
I know the application didn't die, cause I have another Thread running a
'while' loop and printing "I am alive!" even when the UI freezes.
And also if I don't perform UI changes I can print stuff in the main Thread.
Any idea to help me ? Thank you.
--
JScoobyCed
What about a JScooby snack Shaggy ? ... Shaggy ?!
- 11
- Formatting a string in JavaHi
I am a newby in Java and am trying to format a string into a fixed
number of positions( in this case 5).
So if I have a "5" in should be "00005", and "23" should be "00023".
I hav tried looking at the classes 'import java.text.NumberFormat' and
'import java.text.Format', but I didn't get far.
Can anyone help me how I can do this in java?
Any help will be appreciated.
Regards
- 12
- Sun Wireless Toolkit gives SecurityException - please help.I have a midlet (not written by me), and I would like to analyze how it
works. Unfortunately I am not able to run this midlet. Everything compiles
fine but I receive an runtime exception during running sun WTK emulator.
Incorrect domain name, switching to 'untrusted'
java.lang.SecurityException: untrusted domain is not configured
at com.sun.midp.security.Permissions.forDomain(+98)
at com.sun.midp.dev.DevMIDletSuitImpl.create(+39)
at com.sun.midp.dev.DevMIDletSuitImpl.create(+62)
at com.sun.midp.main.Main.runLocalClass(+20)
at com.sun.midp.main.Main.main(+116)
Exception completed.
14945 bytecodes executed
0 thread switches
738 classes in the system (including system classes)
229 dynamic objects allocated (14588 bytes)
1 garbage collections (0 bytes coolected)
I am not able to fing any solution via google. I hav e found only some not
clear instruction to delete MIDP_HOME environment variable. But I have not
any MIDP_HOME on my system.
I have also found some advices to change something in
java.security and java.policy files.
Unforunately I don't know what to change. Anyone has any idea how to fix my
problem ??
I will be appreciate for any advice. Thanks in advance.
--
RaW
Please fill free to correct my English.
- 12
- JRE installation woesHi All
I have installed the latest version of Sun's JRE on my Windows XP Pro PC.
However, its "performance" is somewhere between abysmally slow and not at
all. If I e.g. open the Java Control Panel module and click on one of the
tabs, it takes over two minutes for that tab to display - this on a 3.4 GHz
dual-processor 4 GB memory PC. Java aplications run no better. It does seem
to "speed up" if I Alt-tab to another program and then Alt-tab back.
CPU load is negligible so clearly, the JRE is waiting for something that
occurs only rarely. But I have no idea where to look.
Any help will be very much appreciated.
Ebbe
- 16
- 16
- Vmx Smalltalk for JavaA Beta version of Vmx Smalltalk for Java is now available for download.
http://vmx-net.com/downloads/downloadjvm.php
Your comments are welcome,
email***@***.com
|
| Author |
Message |
Professor Fate

|
Posted: 2005-1-5 6:29:00 |
Top |
java-programmer, Expanding on Video Formats
I'm wondering if somebody with java knowledge will be able answer my
question.
Would it be within the realms of possibility to create a web-based
video editing suite? (Which media format -- Windows, Quicktime, etc. --
might best lend itself to such a task?)
Also, I imagine that this application may require a desaturation
process to bring down the memory size for the raw footage.
I don't know enough about java programming to even guess about this;
but with the current prevalence of digital editing software, an online
version has convenience written all over it.
Thanks,
|
| |
|
| |
 |
Michael Borgwardt

|
Posted: 2005-1-5 20:35:00 |
Top |
java-programmer >> Expanding on Video Formats
Professor Fate wrote:
> I'm wondering if somebody with java knowledge will be able answer my
> question.
>
>
> Would it be within the realms of possibility to create a web-based
> video editing suite?
Short and simple answer: no. And the answer has nothing to do with
Java, the amounts of data are simply WAY too high.
|
| |
|
| |
 |
Professor Fate

|
Posted: 2005-1-6 3:25:00 |
Top |
java-programmer >> Expanding on Video Formats
Thanks. At least now I'm certain that it hasn't yet been tried. Maybe
in a few years it will be possible, who knows?
kk :)
|
| |
|
| |
 |
Michael Borgwardt

|
Posted: 2005-1-7 1:48:00 |
Top |
java-programmer >> Expanding on Video Formats
Professor Fate wrote:
> Thanks. At least now I'm certain that it hasn't yet been tried. Maybe
> in a few years it will be possible, who knows?
Very unlikely, since video resolutions (i.e. data volume) is going
to grow as well, not just network bandwidth.
Besides, I really don't see the advantage.
|
| |
|
| |
 |
Professor Fate

|
Posted: 2005-1-7 5:38:00 |
Top |
java-programmer >> Expanding on Video Formats
It could be useful to assist in an online edit job without actually
having a program yourself.
Still, if you need to work with large numbers of takes, it might help
to have footage in a lower sized format.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- 2
- Sr. Systems Analyst- National Institutes of Health-JAVA and C++SR. SYSTEMS ANALYST - (Bioinformatics R&D)
Summary:
MSD is an employee-owned company of over 500 professionals who support
the diverse technical, scientific, and administrative needs of the
Federal government. We are currently searching for an experienced Sr.
Systems Analyst to support one of our clients at the National
Institutes of Health. This opportunity is permanent, full-time, and on
site in Bethesda/Rockville, MD.
Job Summary
Our client requires the services of a Sr. Systems Analyst with a strong
background in computer application design and development with a
strength in Java-based client/server applications.
Job Duties
The successful candidate will be responsible for the following:
-Develop production software and perform data processing to support the
alignment and annotation phases of the genome data processing pipeline
within a department at the National Institutes of Health (NIH.) Will
also be responsible for improving data quality, performance,
reliability, and maintainability of the pipeline software and process.
-Develop genomic sequence assembly software in C and C++ for use on
multiple platforms (Windows, Unix, Apple). Will use a C++ Toolkit,
which provides platform-independent modules and APIs for programming
genomic data analysis software
-Will implement QA and reporting activities to reduce errors and avoid
major processing delays to result in a more stable pipeline process.
Will validate and improve data quality using methods such as close
inspection of data samples to identify and categorize annotation
errors.
-Will be responsible for providing continued support with change in the
data management environment using a BerkeleyDB data store with
object-oriented data encapsulation and migrating toward relational
database management using Microsoft SQL Server.
-Organize data flow and configuration management using standardized
procedures across organism-specific builds
-Design, implement, and factor code for incremental migration of
pipeline software from C to C++
-Assist with the factor pipeline processing software executed on
internal compute farm, which is a distributed, load-sharing and
job-scheduling environment using Platform Computing Corporation's
Load Sharing Facility (LSF).
-Employ C++ and Perl for software programming and performs data and
database management using BerkeleyDB and Microsoft SQL Server. This
internal department has recently migrated from Sun to Linux as a
development platform; candidates should be familiar with GNU C++
compiler and tools such as Purify, Quantify, and Valgrind.
REQUIREMENTS;
-4/5+ yrs experience in Java programming
-3 Yrs experience in C and C++ development/ Web applications
development.
-Min. MS in Computer Science or related technical discipline
PREFERRED:
-Biological Database /Statistical Data Analysis
-Candidates should have a preferred background in bioinformatics,
information retrieval and web based knowledge management. Scientific
background, biology a plus
Interested applicants should submit resume and salary requirements to
Monica Lyerly, Technical Recruiter. email***@***.com. We require a
short programming skill assessment completed prior to an interview,
upon receipt of your resume we will be sending you the required
assessment to be completed and returned to the same e mail address.Out
of area candidates will be considered for this opportunity.
EOE, M/F/D/V.
- 3
- Maven2 repository for GlassfishIs anybody know the location of a maven2 repository for Glassfish? I
mean groupId, artifactId and url for javaee and appserv-rt libs (and
maybe another libs)...
- 4
- Question: getting a real path from a mapped drive.My question:
If I have a mapped driver letter g: that referes to
\\servername\d\foldername
How do I get java to convert it from g: to the real path so I can use
it?
I have a script that allows someone to locate a file on the server,
but most will use there mapped drives as they know nothing better.
Although I've tried to standardize the drives, its difficult to
maintain all the time with so many users. So, when they find their
file on the network g:\thisFolder\thisFile.txt...I want the script to
convert it to \\servername\d\foldername\thisFolder\thisFile.txt. Any
help would be greatly appreciated. Thanks!!!
- 5
- Eclipse doesn't behave like built-in help says...Hi,
I'm a Java command line programmer.
I started step-by-step with the tutorial in the built-in help, Europa
release.
>From the Content view:
Workbench User Guide ->Getting started -> Basic Tutorial -> Task and
markers -> Associated Task.
All goes fine until point 7.
It says:
[...]
5. After the new task has been added, click in the editor on the first
line or any other line above the line with which the new task is
associated.
6. Add several lines of text to the file at this point.
7. Notice that as lines of text are added above it, the task marker
moves down in the marker bar in order to remain with the associated
line in the file. The line number in the Tasks view is updated when
the file is saved.
[...]
Actually task marker in the marker bar disappeared, and the line
number in the task view never update...
Now I'm thinking what will happen with brakpoints or something else in
debugging...
- 6
- benchmarks? java vs .net (sin and cos)Jon Harrop wrote:
> Jon Skeet [C# MVP] wrote:
> > Jon Harrop <email***@***.com> wrote:
> >> That is Java outperforming C#, not .NET.
> >
> > No, it's Java outperforming .NET calling a virtual method. It has
> > nothing to do with the code that the IL is generated in: if you have a
> > virtual method which isn't overridden, the .NET CLR will not inline
> > calls to it. The Hotspot VM will inline it until it first sees the
> > method being overridden. The difference here is in the jitting model,
> > not in the language.
> >
> > Try it in F#, ensuring that the method is virtual and actually called
> > each time (consider that the method might be one which has side-
> > effects). I can't see how it would possibly have a different result.
>
> This optimization can obviously be done statically by the compiler.
No - this optimization cannot be done statically for runtimes that
support dynamic code loading, as the CLR and JVM do. If the compiler
tries to replace 'callvirt' with 'call', the assembly will no longer be
verifiable, and if the assembly is dynamically loaded into the context
of another application, the virtual call semantics will be violated.
For example:
---8<---
using System;
public class B
{
public virtual void M()
{
Console.WriteLine("Hello from B");
}
}
public class App
{
static void Main()
{
CallM(new B());
}
public static void CallM(B instance)
{
instance.M();
}
}
--->8---
Compile this App.cs to App.exe, then disassemble with:
ildasm App.exe /out:App.il
Then edit App.il so that CallM is written thusly, applying the
"optimization":
---8<---
.method public hidebysig static void CallM(class B 'instance') cil
managed
{
// Code size 9 (0x9)
.maxstack 8
IL_0000: nop
IL_0001: ldarg.0
IL_0002: call instance void B::M()
// (above was 'callvirt')
IL_0007: nop
IL_0008: ret
} // end of method App::CallM
--->8---
Assemble with:
ilasm App.il
Verify with:
peverify App.exe
Observe error:
---8<---
Microsoft (R) .NET Framework PE Verifier. Version 3.5.21022.8
Copyright (c) Microsoft Corporation. All rights reserved.
[IL]: Error: [c:\proj\cli-callvirt\App.exe : App::CallM][offset
0x00000002] The 'this' parameter to the call must be the calling
method's 'this' parameter.
1 Error Verifying App.exe
--->8---
For a concrete example of virtual method call semantic violation,
consider a second application, App2.cs:
---8<---
using System;
public class D : B
{
public override void M()
{
Console.WriteLine("Hello from D!");
}
}
class App2
{
static void Main()
{
App.CallM(new D());
}
}
--->8---
Compile this with:
csc App2.cs /r:App.exe
Run App2.exe when App.exe is the version assembled from App.il modified
to use call instead of callvirt, and observe:
---8<---
Hello from B
--->8---
Recompile the original App.cs from source, then run App2, and observe:
---8<---
Hello from D!
--->8---
- the "obvious optimization" has broken virtual method call semantics.
Implementing the "optimization" for strictly private classes is not
useful either, as reflection with appropriate permissions, along with
runtime code generation, can see through such visibility constraints.
-- Barry
--
http://barrkel.blogspot.com/
- 7
- Bye Bye Toshiba: Samsung Ships the First Blu-Ray Playeremail***@***.com wrote:
> $1000 versus $500. You really think Toshiba will tank? You don't know
> much
about consumers.
considering these are targeted towards early adopters and the well-off,
and considering blu-ray has significantly greater storage, content, and
other capabilitles - uh, yes toshiba is in trouble. sales of toshiba
hddvd titles are already slow....
- 8
- JAWS failureThis just started happening.
I can run a JAWS app from within the browser.
But when I later go to run from the desktop icon it says I don't have
Java 1.6 installed.
Here is a typical JNLP file after JAWS has normalised it:
<jnlp spec="1.6+" codebase="http://mindprod.com/replicator/"
href="http://mindprod.com/replicator/replicatorreceiverwebsite.jnlp">
<information>
<title>The Replicator 9.6 via website</title>
<vendor>Canadian Mind Products</vendor>
<homepage href="http://www.mindprod.com/"/>
<description>Replicates files via website. Also keeps them up to
date efficiently.</description>
<description kind="short">Replicates files via
website.</description>
<description kind="one-line">Replicates files via
website.</description>
<description kind="tooltip">the Replicator</description>
<icon href="http://mindprod.com/replicator/replicator.gif"
height="64" width="64" kind="default"/>
<icon href="http://mindprod.com/replicator/replicatorsplash.gif"
height="128" width="128" kind="splash"/>
<shortcut online="true">
<desktop/>
<menu submenu="The Replicator"/>
</shortcut>
</information>
<security>
<all-permissions/>
</security>
<update check="timeout" policy="always"/>
<resources>
<java initial-heap-size="134217728" max-heap-size="536870912"
java-vm-args="-ea" href="http://java.sun.com/products/autodl/j2se"
version="1.6+"/>
<jar href="http://mindprod.com/replicator/replicator.jar"
download="eager" main="false"/>
<property name="VIA" value="website"/>
<property name="PROJECT_NAME" value="Mindprod.com"/>
<property name="UNIQUE_PROJECT_NAME"
value="com.mindprod.replicator"/>
<property name="SUGGESTED_RECEIVER_BASE_DIR" value="C:\mindprod"/>
<property name="SUGGESTED_RECEIVER_ZIP_STAGING_DIR"
value="C:\mpstaging"/>
<property name="WEBSITE_ZIP_URL"
value="http://mindprod.com/replicator"/>
<property name="SUGGESTED_LAN_ZIP_URL"
value="http://mindprod.com/replicator"/>
<property name="KEEP_ZIPS" value="false"/>
<property name="UNPACK_ZIPS" value="true"/>
<property name="AUTHENTICATION" value="none"/>
<property name="DEBUGGING" value="true"/>
</resources>
<application-desc main-class="com.mindprod.replicator.Replicator"/>
</jnlp>
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
- 9
- Java and Windows InteractionDoes anyone know a way using Java to find the username of the person
currently logged into Windows? I have thought that I could access the
Windows registry to find the current user, but unfortunately I can't see a
way to access and read the registry. I've had a dig through JavaDocs and the
web but haven't been able to find anything I can use.
I have found, but do not want to use, commercial classes and code. If
someone could just point me in the right direction it would be most
appreciated.
Thanks..
Adam.
- 10
- Show a bean property in jsf....it's so difficult?????Hi....
i'm a simple problem but i don't found a working solution....
I have a jsf application and i have to show a bean value into a jsp
page.
I show you my passes...please correct me where i go wrong,,,
For the first i declare property in backing bean
private String[] arraylinee;
In my application an user clicks a button, the application calls bean's
method and creates this array of string,that's what i want to show in
my jsp page.
I've developed in my backing bean getter and setter methods..
public String[] getarraylinee(){
return arraylinee;
}
public void setarraylinee(String[] arraylinee){
this.arraylinee=arraylinee;
}
1a Question)
It's not needed that bean return property?
That is...my bean's method is
public String retrieveblob()throws
IOException,SQLException,NullPointerException{
Database2 db2 = new Database2("nomeDB","root","shevagol");
if (db2.connetti())
k=1;
else k=0;
//try{
Connection dbo=db2.getConnection();
Statement st = null;
try {
st = dbo.createStatement();
}
catch (NullPointerException exc) {
exc.printStackTrace();
}
ResultSet rs = null;
try {
rs = st.executeQuery("SELECT Data FROM tbl WHERE nome='1' ");
}
catch (NullPointerException exc) {
exc.printStackTrace();
}
try {
rs.first();
}
catch (NullPointerException exc) {
exc.printStackTrace();
}
try {
Blob blob = rs.getBlob("Data");
byte[] read = blob.getBytes(1, (int) blob.length());
st.close();
String lettura=new String(read);
String[] arraylinee=lettura.split(";");
}
catch (NullPointerException exc) {
exc.printStackTrace();
}
return "Result";
}
Result is a string useful for navigation...
Let's go to jsp page
codice:<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"
prefix="c" %>
<jsp:useBean id="myBean" class="giu.MyBean" scope="session"/>
<%@ page import="giu.MyBean" %>
<%-- Instantiate class --%>
<html>
<head>
<title></title>
</head>
<body>
<f:view>
<f:verbatim>
<h:outputText value="#{MyBean.k}"/>
<table>
<c:forEach items="${session.myBean.arraylinee}" var="linea" >
<tr>
<td>
<c:out value="${linea}" />
</td>
</tr>
</c:forEach>
</table>
</f:verbatim>
</f:view>
</body>
</html>
Don't care for MyBean.k, i use it for controlling if db connection
works fine...
In summary i want this jsp page prints my array of string,one for line.
How can i do?
The bean is called MyBean and it's in the package giu.
Can you help me correcting my code directly???
Ah....with my actual application the jsp output is:
1
${linea}
- 11
- 12
- applet signingHey
I'm attempting to sign some applets that will step outside the sandbox by
means of opening a network connection. What I want to know is there anyway
of creating a certificate instead of buying one from a "trusted authorithy"
even if its just for testing. and does anyone know if its difficult/time
consumeing to sign applets?
Thanking you niall
- 13
- Apache Axis, XML document, errors aboundI just wrote a simple java program that uses a web service call from
the internet, and attempts to save it to a file.
I have run a very similar program (actually used the same code) from a
different machine, and it worked fine, though for somereason running it
now is giving me errors. I have never seen this type of message
before, so I am a bit confused.
Here is the error:<error>
Exception in thread "main" AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: Content is not allowed in
prolog.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:
org.xml.sax.SAXParseException:
Content is not allowed in prolog.
</error>
I use this almost exact same code in another program that is running on
a web server that is running fine right now, so am not sure what to do.
I have all the axis libraries and the xerces libraries in my jre ext's
folder. Below I will include the pertinent code:
I assume this is an error from axis and not from the code that I am
running, but am lost.
**Assume this is the only code used. I use other code, but it is
provided in the packages. Any suggestions?
<code>
String xmlFile;
// Needed for the web service with NOAA
WeatherParametersType typeArray;
typeArray = new WeatherParametersType();
typeArray.setMaxt(true); //works
typeArray.setMint(true); //works
typeArray.setPop12(true);
typeArray.setWspd(true);
typeArray.setWx(true); //works
typeArray.setIcons(true);
String[] argst={"here","there"};
//I assume this constructor has no bearing on anything
Options opts=new Options(argst);
NdfdXML ndfd = new NdfdXMLLocator();
opts.setDefaultURL(ndfd.getndfdXMLPortAddress());
URL serviceURL = new URL(opts.getURL());
NdfdXMLPortType info = null;
if(serviceURL!=null)
{
info = ndfd.getndfdXMLPort(serviceURL);
}
Calendar now = new GregorianCalendar();
now.add(Calendar.DAY_OF_YEAR,0);
Calendar next = new GregorianCalendar();
next.add(Calendar.DAY_OF_YEAR,+7);
//<latitude>38.84N</latitude>
//<longitude>077.03W</longitude> is for zip 20001
BigDecimal lat = new BigDecimal(38.84);
BigDecimal lon = new BigDecimal(77.03);
info.NDFDgen(lat,lon,(ProductType.value1),(now),(next),(typeArray));
</code>
I know this probably seems vague, so I will add any other code or help
needed. Thanks for the help.
J
- 14
- J2ME Server on a PCI have a question about J2ME using bluetooth. I am trying to implement
a client server applicatin between my phone (Nokia 6630) and my PC. I
can send data over bluetooth to the PC on a virtual serial port but I
need a way to "catch" the data I sent on the PC end and turn it back
into an image. Are there any applications out there that do this
already? Can I run a J2ME server on my PC? Thanks
Mike
- 15
- Programming ForumHello,
I wanted to let you guys know that I've created a new forum for
developers and shareware authors to discuss programming, piracy tatics
(preventing), promotion, and more. The url is
http://forum.codecall.net Please take a moment to have a look.
Thanks,
Jordan
|
|
|