I am working on WCS 6.0 which makes use of the struts framework.
The entry for one of the views(CategoryDisplayView) is defined as the following global forward in the struts config xml
<forward className="com.ibm.commerce.struts.ECActionForward" name="CategoryDisplayView/10001" path="/"/>
There is also an action mapping defined for th...
One chapter in Pragmatic Programmer recommends looking at a blackboard/space-based architecture + a rules engine as a more flexible alternative to a traditional workflow system.
The project I'm working on currently uses a workflow engine, but I'd like to evaluate alternatives. I really feel like a SBA would be a better solution to our b...
Hi,
I have a file that contains serialized Java classes. I would like to parse this file in order to get a list of the classes in the file and the serialVersionUID of each class.
Is there a tool anyone can recommend to do this, or perhaps someone could offer some pointers on where I should start to accomplish this myself?
Cheers
Rich...
I have backend code written in Java. The code has about 12 classes. However my partner on this project who is writing the interface (which uses Ajax) is more familiar with C# and .net. What would be quicker to learn Ajax with Java or to rewrite it in C#.
...
The syntax sugar provided by Java's enum facility can sometimes be a little confusing. Consider this example, which does not compile:
public enum TestEnum {
FOO("foo") {
public void foo() {
helper(); // <- compiler error
}
};
String name;
TestEnum(String name) {
this.name = name;
...
Hi,
Can you please tell me what I can use in C# as an equivalent to TreeBidiMap from Commons Collections in Java.
Thanks
...
Is it possible to get the previous and next DST transition timestamp with the Java Calendar/Date/TimeZone API?
With Joda-Time I can write:
DateMidnight today = new DateMidnight(2009, 2, 24);
DateTimeZone zone = today.getZone();
DateTime previousTransition =
new DateTime(zone.previousTransition(today.getMillis()));
// 2008-10-26T02:...
I want to create a simple hello world java web service.
What tools I need to get started?
What do I need to know to get started deploying this in Tomcat?
...
I have a situation where there are 'n' number of users registered on Site A. After the user has utilized the services on Site A, he/she is re-directed to Site B to access the services hosted at Site B. How can the application on Site B ensure/verify that the user is an authenticated user at Site A and not a rogue re-direct request.
Ther...
Hi all,
our product is built on a client-server architecture, with the server implemented in Java (we are using POJO's with Spring framework). We have two API levels on the server:
the external API, which uses REST web services - useful for external clients and integrations with other servers.
the internal API, which uses pure Java cl...
In Java I have a SortedSet that may have 100,000 elements. I would like to efficiently and elegantly get the last 25 elements. I'm a bit puzzled.
To get the first 25 I'd iterate and stop after 25 elements. But I don't know how to iterate in reverse order. Any ideas?
SortedSet<Integer> summaries = getSortedSet();
// what goes here :-(
...
Let say you hav a database with alot of products/customers/orders and the codebase (java/c#) contains all the business logic. During the night several batches are needed to export data to flat-files and then ftp them to properitary systems.
how should we do this "write-database-into-a-flat-file? what are the best-practices?
Some though...
Let say a company are building a brand new application. The application are following the DDD principles.
The old codebase has alot of products (or another "entity" for the company) that they want to convert to the new codebase.
How should this work be done? normally it is faster and easier to import using for examples ssis,-transferrin...
Hey,
I've been wondering what the best (i.e. cleanest/safest/most efficient) way of handling multiple constructors in Java is? Especially when in one or more constructors not all fields are specified:
public class Book
{
private String title;
private String isbn;
public Book()
{
//nothing specified!
}
p...
Hi
We recently had a problem with a Java server application where the application was throwing Errors which were not caught because Error is a separate subclass of Throwable and we were only catching Exceptions.
We solved the immediate problem by catching Throwables rather than Exceptions, but this got me thinking as to why you would e...
I see in my application that xinclude inside my parsed XML file does not work within my Java XSLT conversion.
However, although I do:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setXIncludeAware(true);
I'm not specifically setting the transformer factory as System.getProperty("javax.xml.transform.Tr...
I am just wondering if there is real practical use of JavaSpaces technology out there and how exactly its implemented.
Can someone who has worked with the tech help.
...
I've used Spring and Spring.NET quite a bit, but I would like to see what else is out there. Can anyone recommend a good Java or .NET framework that I could try to learn?
...
Hi all,
I'm working on web application. There is one place where the user can upload files with the HTTP protol. There is a choice between the classic html file upload control and a java applet to upload the files.
The classic html file upload isn't great because you can only select one file at a time, and it's quite hard to get any ...
I have always used the NumberFormat class in Java to do simple number padding ie. turn 1, 2, 3... into 0001, 0002, 0003....
Is there a similar utility in ActionScript to do my padding, or will I have to write a custom function?
...