File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes will struts 1.1 supports java 6? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "will struts 1.1 supports java 6?" Watch "will struts 1.1 supports java 6?" New topic
Author

will struts 1.1 supports java 6?

shunmuga sundar
Greenhorn

Joined: May 01, 2011
Posts: 9
Hello Friends & Pals,

Currently i am working on a Struts 1.1 project which uses Java 1.4.
I am going to migrate it to java 6.
Will Struts 1.1 supports java 6?
Is there any compatibility problems for struts 1.1 and java 6, if so what are they...
Send me some more details about this....

Thanks,
Shunmuga
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41040
    
  43
Java is fundamentally backwards-compatible, which means that code written for Java version X generally runs fine on Java version X+1, X+2 etc. It's unlikely that you'll encounter significant (if any) problems.


Ping & DNS - my free Android networking tools app
shunmuga sundar
Greenhorn

Joined: May 01, 2011
Posts: 9
I have changed the few code, so as it should support java 6.
but from the struts perspective can you give me some thoughts on what i have to change so as it will support java 6?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41040
    
  43
The point of my post was that no changes should be necessary due to Java's backwards compatibility. Have you encountered problems that you think are due to backwards incompatibility?
shunmuga sundar
Greenhorn

Joined: May 01, 2011
Posts: 9
Yes, i faced problem in java.
Some of the methods are found in the java 6, like comparing using the obj is not found in java 6.
i have updated the code for java 6.
However i have not started the Struts Part, yet.
I will update you, once i start the Struts Part.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9913
    
158

Like Ulf said, you don't have to change anything to be able to run your code in a Java 6 runtime environment, if was developed in some previous version of Java. Which exact version of Java were you using earlier?

shunmuga sundar wrote:Yes, i faced problem in java.
Some of the methods are found in the java 6, like comparing using the obj is not found in java 6.

I am not sure what that means. Can you please explain?


[My Blog] [JavaRanch Journal]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: will struts 1.1 supports java 6?
 
Similar Threads
Migrating java1.4 to java 6 in WSAD 7 for a Struts Application 1.1?
tiles in struts
What are the new jar files, i have to add to my Struts 1.1 application to support java 6?
struts validation example
Tomcat 6 with Struts 1.1 Application - Help Needed.