User authentication on LDAP with JSP/Servlet
Please help! What I need is a small Java Servlet or JSP that I can run from a web server that will allow users type in their username and password. The JSP will then authenticate the user (by trying to log onto the LDAP server as that user) and if successful will offer them the chance to change their password. If they do it will then communicate with the LDAP server as that user and change their password.
The LDAP server I am using is the Sun(TM) ONE 5.1 directory server.
You can use jsp's and servlets.
Have a .jsp (i.e. login.jsp) that has 2 fields username / password and a submit button i.e.
<form method="post" action="/servlet/LoginServlet">
<input type="text" size="15" name="username" value="">
<input type="password" size="15" name="password" value="">
<input type="submit" name="Submit" value="Authenticate">
</form>In your servlet (i.e. LoginServlet) is where you retrieve the username / password by doing something like:
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String username = request.getParameter("username");
String password = request.getParameter("password");
}You would now do your LDAP authentication. see http://java.sun.com/products/jndi/tutorial/ldap/security/ldap.html
Depending on whether the authentication was successful or not you would redirect the user to an error page or to the next .jsp (i.e changePassword.jsp) where they can change their password.
Similar Messages
-
User authentication against LDAP - Non-AD
Hi,
We are trying to setup LDAP authentication against an LDAP, Oracle Unified Directory and below are the parameters of ldap.properties file:
ldapAuthentication.defaultRole = ROLE_AUTHENTICATED_PRINCIPAL
ldapAuthentication.enabled = true
ldapAuthentication.tryNextProviderIfNoAuthenticated = true
ldapAuthentication.stopIfCommunicationError = true
ldapAuthentication.url=ldap\://localhost:389/
ldapAuthentication.rootContext=DC=test,DC=com
ldapAuthentication.securityPrincipal=CN=Directory Manager
ldapAuthentication.securityCredential.encrypted=password
ldapAuthentication.keepContextPrefix=false
ldapAuthentication.isAD=false
ldapAuthentication.userAccountSearchKey=CN
ldapAuthentication.firstNameSearchKey=givenName
ldapAuthentication.lastNameSearchKey=sn
Still I am getting while I try to login to OIA as an OUD user:
WARN [UserManagerImpl] RbacxUser with username: 'cn=oiaadmin' not found
Please helpHi Jcorker,
According to your description, you need to access the SQL Serve Analysis Services database which is configured as cluster for SQL & SSAS from another domain, right?
In SSAS we can use the solution below achieve the requirement.
1.Create new domain account and impersonate the web site with that.
2.Create local user account on the analysis service with same exact username/password as like domain account created in the previous step.
However, you cannot create a local account with the same name on both servers. I have tested it on my local environemnt, we can create the same local account with the same name on both servers. In your scenario, if DB1 and DB2 on different server, you can
create a local account with the same name on both servers. Please post the detail errors, so that we can make further analysis.
Besides, SSAS only allows users of the same domain or trusted domains and it does not allow users from any domain except from these two. You can configure the trust relationship between the domains.
http://technet.microsoft.com/en-us/library/cc961481.aspx
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support -
Metadata problem with JSP/servlet application
Hi,
I developed a JSP/servlet test application that makes
use of kodo 2.2.3 STANDARD EDITION for its persitence.
I successfully compile and annotate the application.
I am also able to successfully generate the db
schema with schematool.
Unfortunately, when I run the application using
Resin 2.0.2, Kodo is unable to initialize properly.
Initially it was not able to find "system.prefs" file.
I fixed that by putting "system.prefs" in WEB-INF\classes.
Unfortunately, Kodo is still unable to initialize and
gives the following message:
The system could not initialize; the following registered
persistent types are missing metadata
or have not been enhanced:
[class com.dpov.purchaseorder.PurchaseOrder,
class com.dpov.catalog.Product,
class com.dpov.uidgen.counter.Counter,
class com.dpov.catalog.dao.jdo.CategoryHierarchyEntry,
class com.dpov.catalog.dao.jdo.CategoryHierarchyDAO,
class com.dpov.pricelist.PriceInfo,
class com.dpov.pricelist.PriceList,
class com.dpov.catalog.Category,
class com.dpov.lineitem.LineItem,
class com.dpov.dealer.Dealer,
class com.dpov.user.User,
class com.dpov.customer.Customer].
I use "system.jdo" to describe metadata for the enhancer.
I tried to put it both in WEB-INF\lib and WEB-INF\classes but
it still fails.
Please note that:
1) my classpath variable is not set
2) my application's class file are in WEB-INF\classes
3) kodo jars are in WEB-INF\lib
4) mysql jdbc driver is in WEB-INF\lib
5) system.prefs is in WEB-INF\classes
6) system.jdo is in WEB-INF\classes
Thanks in advance,
Andrea
system.prefs
<?xml version="1.0"?>
<prefs>
<kodo-license-key>VALID KEY!</kodo-license-key>
<db>
<username></username>
<password></password>
<url>jdbc:mysql://localhost/kodo</url>
<driver>org.gjt.mm.mysql.Driver</driver>
<dictionary>
com.solarmetric.kodo.impl.jdbc.schema.dict.MySQLDictionary
</dictionary>
<warn-on-persistent-type-failure>true</warn-on-persistent-type-failure>
</db>
<tm-location>java:/TransactionManager</tm-location>
</prefs>
system.jdo
<?xml version="1.0"?>
<jdo>
<package name="com.dpov.uidgen.counter">
<class name="Counter" />
</package>
<package name="com.dpov.customer">
<class name="Customer" />
</package>
<package name="com.dpov.user">
<class name="User" />
</package>
<package name="com.dpov.dealer">
<class name="Dealer" />
</package>
<package name="com.dpov.catalog">
<class name="Product" />
</package>
<package name="com.dpov.catalog">
<class name="Category" />
</package>
<package name="com.dpov.catalog.dao.jdo">
<class name="CategoryHierarchyDAO">
<field name="categories">
<collection element-type="com.dpov.catalog.Category"/>
</field>
</class>
</package>
<package name="com.dpov.catalog.dao.jdo">
<class name="CategoryHierarchyEntry">
<field name="attributeValues">
<map key-type="String" value-type="CategoryHierarchyEntry"/>
</field>
<field name="productIds">
<collection element-type="String"/>
</field>
</class>
</package>
<package name="com.dpov.lineitem">
<class name="LineItem" />
</package>
<package name="com.dpov.purchaseorder">
<class name="PurchaseOrder">
<field name="lineItems">
<collection element-type="com.dpov.lineitem.LineItem"/>
</field>
</class>
</package>
<package name="com.dpov.pricelist">
<class name="PriceInfo" />
</package>
<package name="com.dpov.pricelist">
<class name="PriceList">
<field name="priceInfos">
<map key-type="String" value-type="PriceInfo"/>
</field>
</class>
</package>
</jdo>Hi,
I fixed my problem by setting the system wide variable (WindowsXP)
CLASSPATH to r:\\dealershop\\WEB-INF\\classes.
Thanks,
Andrea
andrea costantinis wrote:
Hi,
I developed a JSP/servlet test application that makes
use of kodo 2.2.3 STANDARD EDITION for its persitence.
I successfully compile and annotate the application.
I am also able to successfully generate the db
schema with schematool.
Unfortunately, when I run the application using
Resin 2.0.2, Kodo is unable to initialize properly.
Initially it was not able to find \"system.prefs\" file.
I fixed that by putting \"system.prefs\" in WEB-INF\\classes.
Unfortunately, Kodo is still unable to initialize and
gives the following message:
The system could not initialize; the following registered
persistent types are missing metadata
or have not been enhanced:
[class com.dpov.purchaseorder.PurchaseOrder,
class com.dpov.catalog.Product,
class com.dpov.uidgen.counter.Counter,
class com.dpov.catalog.dao.jdo.CategoryHierarchyEntry,
class com.dpov.catalog.dao.jdo.CategoryHierarchyDAO,
class com.dpov.pricelist.PriceInfo,
class com.dpov.pricelist.PriceList,
class com.dpov.catalog.Category,
class com.dpov.lineitem.LineItem,
class com.dpov.dealer.Dealer,
class com.dpov.user.User,
class com.dpov.customer.Customer].
I use \"system.jdo\" to describe metadata for the enhancer.
I tried to put it both in WEB-INF\\lib and WEB-INF\\classes but
it still fails.
Please note that:
1) my classpath variable is not set
2) my application\'s class file are in WEB-INF\\classes
3) kodo jars are in WEB-INF\\lib
4) mysql jdbc driver is in WEB-INF\\lib
5) system.prefs is in WEB-INF\\classes
6) system.jdo is in WEB-INF\\classes
Thanks in advance,
Andrea -
Can anyone guide me of using LDAP with JSP?
I am a beginner in java. Plz post your answers in a simple and easy manner and explain it clearly. I am doing a project for which I require to use LDAP in JSP.
I assume he wants to use LDAP to authenticate user logon in a JSP application.
There are a few ways, JNDI being one. But a simpler method might be to see if this library works for you:
http://www.mozilla.org/directory/javasdk.html
HTH. -
Clean URLs with JSP/Servlet
Hello. I've found some information on how to setup clean URLs for php, but none for JSP/servlet. Hopefully some one can help. Here's what I mean by 'clean URL':
http://mydomain/employee.jsp?employeeID=1232
becomes
http://mydomain/employee/1232
And, in that second example, the container would dispatch all requests for /employee* to some JSP/servlet. I don't care if the 'clean URL' has to have an extension or not (e.g. mydomain/employee.jsp/1232) although I would prefer to also remove the JSP extension.
Additionally (if some one has experience with this need): how do I then access the final part of the URL supplied by the client? In other words, how would 1232 be available to the destination JSP/servlet? Does the container convert it into a parameter, i.e.:
1) client sends request for "mydomain/employee/1232"
2) container delegates request to "mydomain/employee.jsp?1232"
Finally (sorry about the length), I don't have access to top-level config files for this site (it's personal use, although I'm pretty familiar with java APIs from my job), so, ideally, I'd like a .htaccess level solution, where the container can just re-route to a JSP.
If any one has some suggestions, I'd GREATLY appreciate it. Thanks for your time. Take care....Just occurred to me- this hosting company is NOT using Tomcat. They use resin.
Thanks. -
Generaating new doc file with jsp servlet.
Hi friends,
I developed an application with JSP
In that i need a data to be fetched nd write in .doc file.
I mean I want to create new word file nd get my data in that
like reports generation.
How can i make this.
help me pls.doc file: I don't think there is any reporting tool that creates .doc. You can create .rtf files with Oracle Reports and many other tools.
-
Using jFreeCharts with JSP-Servlet Web App
Can someone please help me to get started on using the jFreeCharts in mt JSP Servlet we app? So far I have this in my servlet but I do not know what to do from here.
protected void doPost(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {
// create a dataset...
double[][] data = new double[][] {
{ 1.0, 4.0, 3.0, 5.0, 5.0, 7.0, 7.0, 8.0 },
{ 5.0, 7.0, 6.0, 8.0, 4.0, 4.0, 2.0, 1.0 },
{ 4.0, 3.0, 2.0, 3.0, 6.0, 3.0, 4.0, 3.0 }
//DefaultCategoryDataset dataset = new DefaultCategoryDataset(data);
//return DatasetUtilities.createCategoryDataset("Series ", "Factor ", data);
CategoryDataset dataset = DatasetUtilities.createCategoryDataset("Series ", "Factor ", data);
JFreeChart chart = ChartFactory.createBarChart(
"Bar Chart Demo 2", // chart title
"Category", // domain axis label
"Score (%)", // range axis label
dataset, // data
PlotOrientation.HORIZONTAL, // orientation
true, // include legend
true,
false
}the JFreeChart documentation has examples doing just that.
And if you don't know how to get a browser to call some resource from some html you should get a beginner's tutorial to html. -
Simple authentication and authorization with a servlet and a filter
Could somebody point me to code example that do simple authentication/authorization using one servlet and one filter? (without Spring, Struts, JSF or any framework)
I’m having a lot of problems with that, apparently, easy task.
These are the rules:
- A simple login page
- Two roles (admin, registered).
- If the user loged is an admin, redirect to his entry page (private/admin/index.jsp).
- If the user loged is of role registered, redirect him to his entry page (private/registered/index.jsp).
- If it’s not a valid user, redirect again to login page.
- Admin’s users cannot go to private/registered/ area.
- Registered users cannot go to private/admin/ area.
- Non authenticated user cannot go to private/ area
Thanks a lot in advance!
Edited by: JLuis on 25-ago-2010 15:27AccessControl.java:
package com.tlsformacion.security;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.tlsformacion.utils.Log;
public final class AccessControl extends HttpServlet {
private static final long serialVersionUID = 5741058615983779764L;
private static final String USERNAME_ATTR = "username";
private static final String PWD_ATTR = "password";
private static final String LOGIN_PAGE_ATTR = "login_page";
private static final String ROL_ATTR = "role";
private boolean isAuthentic = false;
private String role = null;
private String loginPage = null;
public AccessControl() {
super();
public void init(ServletConfig config) throws ServletException {
loginPage = config.getInitParameter(LOGIN_PAGE_ATTR);
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
debug("Inside doGet");
doAccessControl(request, response);
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
debug("Inside doPost");
doAccessControl(request, response);
private void doAccessControl (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
debug("Inside doAccessControl");
doAuthentication(request, response);
if (isAuthentic) { //Authentic user
doAuthorization(request, response);
} else { //User NOT authentic
doRejection(request, response);
private void doAuthentication(HttpServletRequest request, HttpServletResponse response) {
debug("Inside doAuthentication");
String requestedURI = request.getRequestURI();
if (requestedURI.contains("/AccessControl")) { //Comes from login page
debug("Comes from login page");
String username = request.getParameter(USERNAME_ATTR);
String pwd = request.getParameter(PWD_ATTR);
role = getRole(username, pwd);
if (role != null) {
isAuthentic = true;
request.getSession().setAttribute(ROL_ATTR, role);
} else { //Doesn't comes from login page
debug("Doesn't comes from login page");
if (isInSession(request)) {
debug("Rol is in session");
isAuthentic = true;
} else {
debug("Rol is NOT in session");
private void doAuthorization(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
debug("Inside doAuthorization");
String requestedURI = request.getRequestURI();
debug("requestedURI: " + requestedURI);
if (requestedURI.contains("/AccessControl")) { //Comes from login page
goHomePage(request, response);
} else if (requestedURI.contains("/private/" + role)) { //Trying to access his private area
goRequestedPage(request, response);
} else { //Trying to access other roles private area
goLoginPage(request, response);
private void doRejection(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
debug("Inside goRejection");
role = null;
goLoginPage(request, response);
private void goHomePage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
debug("Inside goHomePage");
String homePage = "private/" + role + "/index.jsp";
goPage(request, response, homePage);
private void goLoginPage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
debug("Inside goLoginPage");
goPage(request, response, loginPage);
private void goRequestedPage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
debug("Inside goRequestedPage");
String contextPath = request.getContextPath();
debug("contextPath: " + contextPath);
String requestedPage = request.getRequestURI().replace(contextPath + "/", "");
goPage(request, response, requestedPage);
private void goPage(HttpServletRequest request, HttpServletResponse response, String page) throws IOException, ServletException {
debug("Inside goPage ...trying to go to: " + page);
//Option A
response.sendRedirect(page);
//Option B
//RequestDispatcher requestDispatcher = request.getRequestDispatcher(page);
//requestDispatcher.forward(request, response);
private boolean isInSession(HttpServletRequest httpRequest) {
boolean inSession = false;
role = (String)httpRequest.getSession().getAttribute(ROL_ATTR);
if (role != null && !role.equals("")) {
inSession = true;
return inSession;
//PENDIENTE: mock method!
private String getRole(String username, String pwd) {
String role = null;
if (username.equals("admin") && pwd.equals("admin")) {
role = "administrator";
} else if (username.equals("regis") && pwd.equals("regis")) {
role = "registered";
return role;
private void debug(String msg) {
Log.debug(msg);
}Proyect Folder Structure:
WebContent
login.html
private
administrator
index.jsp
registered
index.jspBasically, the problem is that if you try to log as admin/admin (for example) the servlet AccessControl executes infinitely
Edited by: JLuis on 26-ago-2010 8:04 -
How do i track clicks with jsp/servlets?
I would like to know how to imitate the click of link in JSP or serlvet, in order to track clicks.
I have pages with links containing tel protocol URIs like this:
Click here to listen!
I want to replace the above with something like this:
Click here to listen!
And have call_tracking.jsp do its tracking stuff and then spawn a phone call, just like the first example does. I do not want to bother the user with another page, hence the need to accomplish the click action programmatically. I presume this feat is achievable via Response header magic, I just don't know the right incantation ;-)
ThanksYou should create a servlet to track the links, let´s say LinkTracker. Here I have an example for you. Each link calls a servlet and pass the url as a parameter.
<html>
<head>
<title>Some Links Tracked by the LinkTracker Servlet</title>
</head>
<body>
Some good links for you. Each link is directed
through the LinkTracker Servlet. Click on a few and visit
the <a href="LinkTracker">LinkTracker Servlet</a>.
<ul>
<li><a href="LinkTracker?link=http://www.google.com">
Google Site</a></li>
<li><a href="LinkTracker?link=http://www.yahoo.com">
Yahoo site</a></li>
<li><a href="LinkTracker?link=http://java.sun.com">
Sun Microsystems</a></li>
</ul>
</body>
</html>And here the code to LinkTracker servlet
public class LinkTracker extends HttpServlet {
static private Hashtable links = new Hashtable();
String tstamp;
public LinkTracker() {
tstamp = new Date().toString();
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
String link = request.getParameter("link");
if (link != null && !link.equals("")) {
synchronized (links){
Integer count = (Integer) links.get(link);
if (count == null) {
links.put(link, new Integer(1));
else {
links.put(link, new Integer(1+count.intValue()));
//here the servlet redirect the client to the link he clicked
response.sendRedirect(link);
else {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
request.getSession();
out.println("<html>");
out.println("<head>");
out.println("<title>Links Tracker Servlet</title>");
out.println("</head>");
out.println("<body>");
out.println("<p>Links Tracked Since");
out.println(tstamp+":</p>");
if (links.size() != 0) {
Enumeration enum = links.keys();
while (enum.hasMoreElements()) {
String key = (String)enum.nextElement();
int count = ((Integer)links.get(key)).intValue();
out.println(key+" : "+count+" visits<br>");
else {
out.println("No links have been tracked!<br>");
out.println("</body>");
out.println("</html>");
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
doGet(request, response);
} -
How to create a pie chart with jsp/servlet?
I want to create a servlet which can be used like below:
<img src="pieservlet?param1=<%=x%>¶m2=<%=y%>&..." width="100" height="100" >
can you give me some guide?Hai ,
I have implemented a trial working pie chart , dynamically created from jsp using ServletOutputStream , BufferedImage & JPEGImageEncoder (found in com.sun.image.codec.jpeg.* package & bundled along with jdk ) .
<%
ServletOutputStream sout = response.getOutputStream();
response.setContentType("image/jpeg");
BufferedImage img = new BufferedImage(400,400,BufferedImage.TYPE_INT_RGB);
Graphics2D gr = img.createGraphics();
/* Actually this will be got as values of request.getParameter */
Vector values = new Vector();
values.addElement(new String("45") );
values.addElement(new String("125") );
values.addElement(new String("75") );
values.addElement(new String("25") );
values.addElement(new String("90") );
// my demo class
temp.pieChart fr = new temp.pieChart(400,400,values);
/* This pieChart is class extends JFrame , in paint method of it all Drawing of pie chart using graphics2D fillArc done */
fr.paint(gr);
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sout);
encoder.encode(img);
sout.flush();
%>
Hope this helps to build your own custom pie chart .
Let me know if details needed on pieChart class
rakesh
-
Best websites with JSP and Servlets
I would like to see some examples of the best well-known websites realised with jsp & servlets.(if it's possible some awarded ones)
thxThis forum is using JSPs. I can see post.jsp in the URL as I type this. Famous enough?
I believe eBay is 100% J2EE:
http://www.theserverside.com/home/thread.jsp?thread_id=8906
MOD -
Deploy JSP/Servlet along with EJB
how could deploy EJB with JSP/Servlet?.
First i have
package project.account
1.HomeInterface class
2.RemoteInterface class
3.Bean class
4.Client class
I deployed the above bean in J2EE using Deploytool GUI.
run the client like this
java -classpath %CLASSPATH%;personDepClientClient.jar project.account.Client
it displays result at prompt
what i am asking is
now i wrote JSP file which is kept also this project.account package
i used the JSP file as client for the that bean.
it is Show.jsp file(client file)
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="javax.naming.Context" %>
<%@ page import="javax.naming.InitialContext" %>
<%@ page import="javax.rmi.PortableRemoteObject" %>
<%
double balance;
try
Context initi = new InitialContext();
Object ref = initi.lookup("AccountHome");
AccountHome home = (AccountHome)javax.rmi.PortableRemoteObject.narrow(ref,AccountHome.class);
AccountRemote vijay = home.create("200","vijay",0.00);
vijay.credit(2000.0);
vijay.debit(600);
balance = vijay.getBalance();
%>
<tr>
<td width="38%" height="31">
</td>
<td width="62%" height="31">
<div align="center"><%= balance %></div>
</td>
</tr>
<%
AccountRemote kumar = home.create("199", "kumar", 0.00);
kumar.credit(14000);
AccountRemote xyz = home.findByPrimaryKey("199");
xyz.debit(200.00);
balance = xyz.getBalance();
%>
<tr>
<td width="38%" height="31">
</td>
<td width="62%" height="31">
<div align="center"><%= balance %></div>
</td>
</tr>
<%}
catch(Exception ex)
System.err.println("Caught an exception." );
ex.printStackTrace();
%>
after deployed this JSP file and executed as
http://localhost:8000/project/person/Show.jsp
it displays error as follows
unable to find AccountRemote,AccountHome,findByPrimaryKey
How could deploy JSP along with EJB?.
pls any one tells steps to be followed while Deploying EJB/JSP.
with thanks
vijayHmmmm...
ssniazi does nothing but ask for contact information or recommend Oracle products.
Based on this I consider it likely that this person is some sort of sales representative either directly or indirectly associated with Oracle.
I personally wouldn't provide any contact information to this person. Nor would I accept any advice until this person starts to actually provide some solutions or at least correctly reveals any financial interests that they might have. -
hi i need to restrict the acces to a website with basic auth with jsp,servlet etc., i would appreciate if anyone help me thanx
If you're using Tomcat you simply need to add some tags to your web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>
Member Area
</web-resource-name>
<url-pattern>/members/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>member</role-name>
<role-name>administrator</role-name>
</auth-constraint>
</security-constraint>This identifies any file under the members directory of your application context to require a "member" or "administrator" to view.
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>My Club Member Area</realm-name>
</login-config>This identifies that Basic Authentication be used.
After that, you need to make sure the "member" role (or whatever you call it) exists and any relevant users exist in your tomcat-users.xml file. If you've configured a database under the UserDatabase section then make sure the required roles and users are there.
That's about it for Tomcat. If you're using a different Servlet Container/Application Server, please specify. -
Running other server-side applications with JSP
Hi,
I'd like to know, if is possible run with JSP (Servlet, or JavaBean) other application, which support COM. I used something like this in JavaScript:
application=new ActiveXObject("excel.application");
and I had all possibilities of its API. I'd like to use excel as data source for user-friendly data input.
Thanks for all suggestionsHi,
I don't realy understand your question.
If your javascript work using activeX, this code is executed on the client side (like the excel application and the excel file).
You can, with a JSP, generate the html page that contain the script.
Where is the problem ? -
Can any one suggest a correct way for simple user authentication
Hello,
I want to know how to do simple user authentication in LDAP(
iPlanet Directory Server ) thru Weblogic. A web application configured
in Weblogic and I want to authorize a user.
I found there are number of ways thru which authentication is taken
place. please suggest a simple/basic way.
with regards,
Gokul.Hello Gokula,
I think that Sunnynani has provided a complete information in one of your
other post.
Ludovic.
Developer Relations Engineer
BEA Support
"Gokula Krishnan" <[email protected]> a écrit dans le message news:
[email protected]..
Hello,
I want to know how to do simple user authentication in LDAP(
iPlanet Directory Server ) thru Weblogic. A web application configured
in Weblogic and I want to authorize a user.
I found there are number of ways thru which authentication is taken
place. please suggest a simple/basic way.
with regards,
Gokul.
Maybe you are looking for
-
Almost all of my service bus has the following issue. The error message I have from the Management Portal was "An error occurred while retrieving the Service Bus namespace configuration information. Please try again later." This happen for almost 2 d
-
I downloaded some extensions and they are placed in the ~/Library/Application Support/Adobe/CEPServiceManager4/extensions: see the figure: but when I go to PS CC2014 and click on Extensions this is what I get: If I go back to the Extension Manager i
-
Change outgoing email address in Quickoffice on ipad 2
How do I change my outgoing email from "Quickoffice" to my "[email protected]" when sending attachments via Quickoffice?
-
How uninstall Javascript and then reinstall the latest version.
<i>Locking duplicate thread.<br>Please continue here: [[/questions/1019198]]</i> yahoo mail will not load in firefox nor aurora ok in explorer and opera how uninstall javascript and then reinstall the latest version?
-
HP Mini 1000 model# 1030nr HELP!!!!
I just got my old laptop out of storage. When I get it turned on, it's on the BIOS screen and is asking me to enter the current password. I entered my windows password, and after 3 failed attempts,it gave me this message---<br>Password check failed<b