Win a copy of Java Challengers this week in the Java in General forum!

Ram Balasubramaniam

Greenhorn
+ Follow
since Oct 19, 2001
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 Ram Balasubramaniam

Hello Mr Neal ,
Thanks for being here. I am usung Struts for the last 2 projects. Does your book compare JSF and Struts . Are there any significant advantages of JSF over struts. What do you think will become a standard in future.
17 years ago
Hi
I am using Database realms for defining roles and maintaining users . I would want to move this to LDAP and maintain the roles in the groups.
The queries in the view screens change based on the user logged on and his priveleges.
Can I get some info or examples how to start designing the LDAP and start using the security features of LDAP.
By the way I am using JSP and STRUTS for our application with the DB being Oracle.
Thanks
Ram
18 years ago
Is this the thread for the book give away.
I have just started working on LDAP . Using security and realms for our application .Have some questions for Clayton.
Am i posting to the right thread.

Ram
18 years ago
Hi
I am trying to have a custom error page for the HTTP 500 error code . I am using Tomcat 3.2.3
In my application
/tomcat/webapps/myapp/WEB-INF/web.xml I have added the following code.

When I restart the server , I am able to see error page for 404 but 500 does not seem to work. I am really confused.Am i Doing any mistakes in web.xml.
My error page is in the /tomcat/webapps/myapp/errorpage.html.
I even tried using errorpage.jsp as suggested by some one in the forum , but it dint work .
Can some one point out the mistake.
Thanks
Ram
18 years ago
I have always been a big fan of WROX publications.
Good to see that they have come out with a book on SCWCD .
Do you have any sample chapter where I can get a look .
Hi Dave,
I am using the cookie the regular way to store the information of the user who logs in and his department.
Since this an application with different users having restricted access, we are using
ACL ( Access control lists ) to grant the access. Based on the dept the user is , we grant the permission. We are storing this user information in the cookie.We are not storing any passwords.
My question is , if a user logs in ( a cookie is created on his machine for the application).Once he logs out can some one break into the machine copy the contents of the cookie and use it in his cookie.
When the user logs out of the system will the cookie also gets destroyed ( if I have not used the setMaxAge() method in my code?
Where does Tomcat write the the cookie info on the client browser?
18 years ago
JSP
I am working on a application , in which we are storing the user information like the user name , the dept and the roles in a cookie. We are using the HTTPSessionCookie.
Now I have a serious doubt, abt how safe is it. Once I log in to my application , the information is stored on my browser cookie. Can any one hack into my m/c and take the info and use it in his machine .
I see all the cookies getting stored in a particlular location in the user profiles in WIN2K machines. All these are text files. So I was wondering if any one can hack and edit this text file or take this info.

Can some one explain about cookies in detail ...
18 years ago
JSP
Hi Ted,

Originally posted by See El:
Where do you see the place (how it can works together) for Struts in regarding with the coming Java Server Faces standard ?


Does this mean Struts is going to integrate with Java Server Faces or is it going to be a framework similar to struts. Just like the Java Logging API in 1.4 to Log4J.
18 years ago
Thanks Reid,
Thanks for your inputs. I guess it saved me some time in finding out about Velocity. I do see a lot of posts on the struts forum abt the TILES and VELOCITY. So was interested.
18 years ago
I have also started working on Struts Frame work recently.I am still in the process of getting to understand Struts fully.
I wanted to know , what TILES and VELOCITY does . Are they also used along with Struts ?
18 years ago
Thanks Axel,
I dont find the O'Reilly book Jakarta Struts yet on the O'Reilly Safari. Probably it will out there in a couple of weeks. It is a valuable to get to read 5 books for 10$.
I will also pick up Struts is Action in the mean time.
Thanks
Ram
18 years ago
Hi
I am posting this message again since the books Struts in Action by Ted Husted ( Manning Publications) and also Jakarta Struts by O'Reilly are both now released.
Can some one tell me which book should I go for.
Has there been any reviews that I can look out for.
Thanks
18 years ago
Hi
This is my server.xml
<!-- Tomcat Root Context -->

<Context path="" docBase="oss" debug="0"
reloadable="true" />

<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_DBOSS_log." suffix=".txt"
verbosity="4" timestamp="true"/>
<Resource name="jdbc/myoracle" auth="Container"
scope="Shareable" type="javax.sql.DataSource"/>

<ResourceParams name="jdbc/myoracle">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter> <name>validationQuery</name>
<value>Select sysdate from Dual</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc racle:thin:@andromeda.worlddata.com:1521:wdiora</value>
</parameter>
<parameter>
<name>username</name>
<value>w_provision</value>
</parameter>
<parameter>
<name>password</name>
<value>w_provision</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
</ResourceParams>

The looging is done to the file I have mentioned in the server.xml but it does not show the class and method responsible for the error.
I am not using any LOG API for the logging since this application is already in production and we were making some changes for it.
Thanks
Ram
18 years ago
Hi
I am having a major problem debugging my JSP's in Tomcat 4.1.12. We are making
some changes to an application already working on Model 1 architecture.
We are using JSP's , JavaBeans and an SQL Server D/B.It was deployed on Tomcat 3.2.3
and was working fine. I just wanted to make the changes and test it on Tomcat 4.1.12.
IN Tomcat 3.2.3 if an error was encountered by the java bean , while making a JDBC call
or executing a query the name of the bean and the line number would be displayed on the error console . It was easy to look into the bean and make changes.
I dont see the name of the class file or the method name in Tomcat 4.I also tried changing the logging verbosity levels in server.xml.The console shows a lot of connectors and adapters but does not ever give clue where the problem is.
Can some one tell me , is this feature disabled or am I missing something.

Thanks in Advance.
18 years ago
Thanks for the reply .If i use
<jsp:forward page="test.jsp" >
it works fine now. But I had problems with this in Tomcat 3.2.3 , It worked only if i use it as
<jsp:forward page="test.jsp" />.
Any way It works fine now in 4.1.12.
Thanks for the response.
18 years ago