Sean K. Smith

Greenhorn
+ Follow
since Jan 24, 2012
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sean K. Smith

Hello,



I am part of a team that is migrating an application from Weblogic 11g to JBoss Enterprise Platform 5.0.1.CR2. I know that part of this is to change the existing weblogic.xml file over to a jboss.xml file. I have seen some things online about using XLST stylesheets to do this, I believe, at runtime but this really isn't an option for me. I'm looking to see if there is either a methodoligy that I need to use when converting it over from JBoss to Weblogic or if there is some kind of tool that I can use that I give some information and it does the conversion or if I need to use something like the XLST but I only need to use it once and it converts my code. Below is my weblogic.xml file. Any help would be appreciated.







I also have a web.xml file that was told needed to be changed.

12 years ago
Hello, I have some data that is being output from a bufferedreader reading a URL to grab the HTML code. Right now my program just prints out the code but I want to put this into an HTML file. Any suggestions? Below is my code:
12 years ago
Thank you so much after like 3 days it looks like it's working. Any tips on how I can get this to save the HTML file to a location?
12 years ago
Hello, I have a class the purpose of which is to grab the HTML from a given URL or set of URLs that I hardcode in it. I have a JSP that I was given that already does this. I was told that I need to put it in a normal Java file so I can run it and test it and my code can be put where it belongs by another developer. So far I've worked a lot of the kinks out but I'm a little confused by what I got on another forum. Below is my code:


It is giving me some errors on pageContext, session, Globals, Constants, and out saying they cannot be resolved or cannot be resolved to a variable and I was told by extracting a delegate class to do the work you avoid pageContext and session and for the most part you avoid Globals and Constants. They said I would need to create some new methods for this but didn't give much more information to which I asked:

I know I'll need multiple methods. I guess the thing that confuses me are things like:

pageContext.setAttribute("enBean","en");

Should pageContext be a method and therefore this would be an object of that method?

Also:

For this what should session, Globals and Constants be? Should they also be separate methods and therefore I'm calling objects?

Any help here would be greatly appreciated. Also as a note I have cross posted this on:
http://www.java-forums.org/advanced-java/54448-turning-jsp-into-java-file.html
http://www.javaprogrammingforums.com/whats-wrong-my-code/13596-turning-jsp-into-java-file.html#post55883
12 years ago