Anthony Mag

Greenhorn
+ Follow
since Nov 27, 2008
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 Anthony Mag

Right you are Bear. Here is what I did.
Open a window using open(). Submit form for processing using Ajax.
Populate a div with the output data in parent window.
Extract the div in child popup and display on child screen.
Blank out the div in parent window as ouput may contain hundreds of records.
Resolved from my side .. thanks all
Hi, After from submission from page a.jsp, I want to open b.jsp as a pop up, having No Address Bar, Menu Bar etc, such that it contains the output of the backend processing. I cant do that using window.open as that will not submit the form. Moreover b.jsp needs to load certain values which is the output of the request processed.
All help appreciated.
Hi, I have to set up Opensso on an oc4j server with an oracle db for authentication.
I have set up the OpenSSO on my oc4j server and can view the administration screen.
Can anyone please show the implementation and configuration steps involved?
I have checked the net and guides, but have not found any straighforward implementation examples.
Thanks in advance.
Hi, since I didn't get any replies, decided 2 do some R&D and find out the solution. Here is how it works out :-
The problem was with the CATALINA_OPTS properties. Seems like OpenAM needs at least 1G heap size.
If you dont have access to tomcat6w gui, create a setenv.bat file in /bin for the server and enter :-

set CATALINA_OPTS=-Xms512m -Xmx1024m


That should suffice. Also set the same for JAVA_HOME through control panel properties.
Regards.
Hi all, 2 days no pointers, im still stuck with this. Need some inputs.
Regards,
Anthony.
Hi, I deployed OpenAM on tomcat 6, and got the initial configuration screen. But when I try to complete the installation i get the following error output on console :-



I'm not sure what the next step should be towards its resolution, the OpenAM install log, does not show any error details.

Thomas Andersona wrote:It would be good if you can share the tutorial from where you have gone through to learn the basics , It will be easier to answer them...


Hi refer to the following site for OpenLDAP.
http://www.openldap.org/doc/admin24/index.html
13 years ago
Hi,
Im pretty new to LDAP and AD. I have to port our present authorization/authentication structure from AD to OpenLDAP.
Is it possible to run the entire setup in windows? What are the steps for migration of the policies and adjustments req.?
I'v read up a few tutorials, so should be able to follow the inputs.
Regars, Anthony G.
13 years ago
Found the answer... using iText setFooter method.
Code egs. in page http://faq.javaranch.com/java/ItextExample
I have to write out a pdf report using PdfPTable.
Is there any way to include the page numbers in it, more importantly how do i know
when the page has ended and the page number has to be inserted?
Thanks in advance.
Hi. I am using servlet to create an excel sheet that will be streamed to a user, for viewing, through a link. The Issue :-
I need to autosize the column width to the maximum cell size in that column(AutoFit). CellView autoresize is not showing up
on Jdeveloper(gives method not found), guess I am using an older version of jxl jar.
What I did find out is that we can get the fontmetrics and calculate the max size accordingly. Problem is even with
the right jar import, I dont know how to tie up FontMetrics with WritableSheet , WritableCellFormat.
The examples are all for swing components.
Any help appreciated.
import java.io.File;
import java.util.StringTokenizer;

/*Change the extension name of the file recursively
for multiple directories
*/
public class renFile {
static String reName ="";
static StringTokenizer str =null;
static File files[] =null;
static final String ext = ".doc";//Extension to Change to
public void Innundo(String path){
String t;
try {
File file = new File(path);
files = file.listFiles();
for(File fl : files){
if(fl.isDirectory()){
System.out.println("Directory name:"+fl.toString());
Innundo(fl.toString());

}else {
System.out.println("File name:"+fl.toString());
if(fl.isFile()){
t = fl.getName();
str = new StringTokenizer(t,".");
if(str.hasMoreTokens()){
t= str.nextToken();
t= fl.getParent()+"\\"+t+ext;
System.out.println("Changed Name "+t);
fl.renameTo(new File(t));
}
}
else {System.out.println(fl.getName()+" Not A File! ");}
}
}
}catch(Exception e){
e.printStackTrace();

}
}
public static void main(String[] args) {
String path="C:/Path_To_Directory";
renFile re = new renFile();
re.Innundo(path);
}
}
//Internet Resources
14 years ago
Thanks for the reply sagar.
All class files are created during build.
I even deleted all the existing ones in tomcat/work folder.
So the classes are up to date.
Any other pointers?
Furthermore do I need to change the jsp header
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
to
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
and so forth?
[ November 27, 2008: Message edited by: Anthony Gomes ]
15 years ago
Hi, my current configuration is tomcat 6.0.18 and jdk 1.5. Here are the steps I followed for the migration.
1. Replaced struts.jar with struts-core-1.3.8.jar
2. Updated taglib .tld files which were under /WEB-INF and also kept the corresponding struts-taglib-1.3.8.jar files in lib directory.
3. Kept the external mappings in web.xml for the tld files though.
4. Updated struts-config.xml with
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
5. As not using any cancel buttons hence did not use the cancellable attribute.
6. Updated validation.xml with specified doctype in strutsupgrade docs.
7. Replaced older jar files with newer versions.

After compiling the files and deploying in Tomcat I get the following error while trying to run.

exception

javax.servlet.ServletException: Wrapper cannot find servlet class jsp.login_jsp or a class it depends onorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)

root cause

java.lang.ClassNotFoundException: jsp.login_jsp
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)

What am I missing out on?
Thankx in advance.
[ November 27, 2008: Message edited by: Anthony Gomes ]
15 years ago