Java servlet development
Hallo,
I would like to develop a java servlet for a adynamic web-site, I should use the following:
1.Java Servlet
2.xml-Linksfile
3.html-Template
The servlet mu� read the xml-File and transforms it in html-file and give it in output.
I use therefore a jakarta-tomcat4.0 servlet, I work under Windows Me.
Please who has an Idea about this subject?
If you know books or other sources, about development of a dynamic web-site with servlet, xml and html, please write to me and thank you.
Aziz
[email protected]
The servlet mu� read the xml-File and transforms it in html-file and give it in output.You want XSLT for this. Books: for example Michael Kay's XSLT Programmer's Guide.
Similar Messages
-
Will weblogic 4.5 work with the Sun Java Servlet Development Kit Version 2.1?
Will weblogic 4.5 work with the Sun Java Servlet Development Kit Version 2.1
(JSDK 2.1). The reason I want this is we want our application servlets to
use the new 2.1 redirection mechanism to redirect to JSP files.
WL 4.5 supports JSP 1.0 (and, therefore Servlet 2.1).
What I want to know is when will it support JSP 1.1 (and, therefore Servlet
2.2)!
Regards,
Murali Krishna Devarakonda
Cox News <[email protected]> wrote in message
news:7rk40p$s00$[email protected]..
>
> Will weblogic 4.5 work with the Sun Java Servlet Development Kit Version
2.1
> (JSDK 2.1). The reason I want this is we want our application servlets to
> use the new 2.1 redirection mechanism to redirect to JSP files.
>
>
>
>
-
Source URL for Java Servlet Development Kit 2.0?
Hi,
Can anyone help me with the link for downloading Java Servlet Development Kit 2.0 ?
thanks
ShaileshThis link (http://java.sun.com/products/servlet/download.html#specs) allows you to download version 2.2. If you really want version 2.0, see the note at the end of the page.
-
Is java servlet a good way for developing a website
Hi,
i am developing a website that has to download huge data and upload huge data .also money transactions through credit cards need to be involved.is java servlet a good way to do this or should i use an ejb or any other technology.
Any help is appreciated.Thanks for the reply.But di i need to use threading of some sort or can i directly write private methods to fulfill the purpose.Also is there any way my servlet can recognise when a device is connected to a usb port of local machine
any help is appreciated -
Problem with JSP and Java Servlet Web Application....
Hi every body....
I av developed a web based application with java (jsp and Java Servlets)....
that was working fine on Lane and Local Host....
But when i upload on internet with unix package my servlets and Java Beans are not working .....
also not access database which i developed on My Sql....
M using cpanel support on web server
Plz gave me solution...
Thanx looking forward AdnanYou need to elaborate "not working" in developer's perspective instead of in user's perspective.
-
Location of java servlet (not jsp) deployed on Java Stack
Hello,
Why this forum? this post is related to the way of calling a java servlet deployed on the java stack, so it's related to the structure of the stack than to real java programming.
Usually, I develop JSP servlets which are easily called either with a mapping or not. I have deployed now a java servlet and added a mapping to it by modifying the xml source itselft in its descriptor, but after deployement I am not able to reach the resource.
In the windows explorer of the java stack I find in j2ee>cluster>server>apps my application as follows:
app_ear>servlet_jsp>app>root>WEB-INF>classes>my class files
app_ear>servlet_jsp>app>root>app.jsp
This time it's not a jsp that I want to call: app/app.jsp but my java servlet which lies in the classes subdir.
Could someone help my to achieve this or is it the wrong way, we can only request jsp applications?
Kind regards,
Tanguy MezzanoHi Vladimir,
here's my web.xml code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>WEB APP</display-name>
<description>WEB APP description</description>
<servlet>
<servlet-name>SSORedirect3.jsp</servlet-name>
<jsp-file>/SSORedirect3.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>AuthenticatorServlet</servlet-name>
<url-pattern>/SSOredirect3</url-pattern>
</servlet-mapping>
<security-constraint>
<display-name>SecurityConstraint</display-name>
<web-resource-collection>
<web-resource-name>WebResource</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>DefaultSecurityRole</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>DefaultSecurityRole</role-name>
</security-role>
</web-app>
And in my jsp file, I have a form with this kind of code:
<form name="xyz" method="GET" action="http://j2eeserver:50000/SSOredirect3/SSOredirect3">
I get this error in my logs:
com.sap.engine.services.servlets_jsp.server.exceptions.ServletNotFoundException: Requested resource [SSOredirect3/servlet/AuthenticatorServlet] not found.
Exception id: [000C299F469E00650001D8E900000CCC000458E27823275B]#
Best regards,
Tanguy Mezzano -
Questions about Java Servlets and JSP
Hi,
I'm a confident Java Programmer (and really enjoy using this language) but am very new to Java servlets and Java Server Pages.
I have previously worked with Perl on my web projects (simple 'league' style voting pages). I read in my 'Core Java' book that I should no longer use perl or even cgi.
I need to know more about Java servlets and Java Server Pages so I can make the switch to a 'real' programming language.
I have a few questions:
How should I start to learn JS and JSP?
How applicable will the java knowlegdge I have already be?
Are JSP common on the world wide web?
What tools do I need to start? (I currently develop in JBuilder and have Java 1.4.1 Standard Edition)
Is it likey my web host (and others) will support JSP?
Thank-you very much for helping a novice get started,
Regards,
PaulHi, Steve ...has to be frustrating! But do not despair.
Let's suppose the servlet it's named MyServlet on package org.servlets
WEB-INF should look:
WEB-INF
classes
org
servlets
MyServlet.class
web.xml
web.xml file should have this two declarations:
<web-app>
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>org.servlets.MyServlet</servlet-class>
</servlet>
<!-- other servlets -->
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/MyServlet</url-pattern>
</servlet-mapping>
<!-- other servlets mappings -->
</web-app>Now, once the container starts (Tomcat?), you should be able to see that servlet in:
http://localhost:8080/[my-context/]MyServletAnd what my-context is? The web application context. This string should be empty if your're deploying to the root context, otherwise should the context name. In Tomcat, deploying to root context defaults to using webapps/ROOT.
Sorry for my English, but I felt the need to answer your request. I hope it helps despite my writing. -
Java servlets and Tomcat server
Hi friends
i am using Sun One forte Community edition . i am trying to make a hello world servlet .
there are 2 Files one is Index.html , HelloWorld.java (Servlet)
I call this servlet from the index.html file.
evertime i call it it gives me and error of Apache tomcat file not found .The tomcat server is inbuilt with the Sun One studio.
the directory structure is
-----HOME
-------WEB_FOLDER
----------Index.html
----------WEB-INF
-------------CLASSES
-----------------myServlet (package)
---------------------HelloWorld.java
-------------LIB
The problem is I am not getting how to write the path of servlet in index.html to call the helloWorld servlet.Make this entry in your server.xml file located in tomcat_dir\conf.
<Context path="/abc"
docBase="webapps/abc"
crossContext="true"
debug="0"
reloadable="true"
trusted="false">
</Context>
Suppose i want to develop my servlets in another folder Let it be "XYZ".Then your package statement must be, 'package xyz;'. Place all your servlets in webapps/abc/WEB_INF/classes/xyz dir.
Place all your Jsp(s) and Htmls in webapps/abc/pqrs dir.
Now they all come under one context 'abc'.
Sudha -
Best IDE to develop EJB/Servlet development with WebLogic
Hi,
I am prepearing a recommendation for our company's standard Java development
environment. I would appriciate any comment you guys might have on the best
IDE that supports J2EE and EJB and Servlet development that integrates with
WebLogic. I guess the best are Visual Age or Visual Cafe, anybody have any
experince/comment on any of those ?
Thanks
FarhangI would recommend the products coming from Webgain. They offer the product
suite surrounding visual cafe.
Thanks,
Michael
Michael Girdley
Product Manager, WebLogic Server & Express
BEA Systems Inc
Farhang Kassaei <[email protected]> wrote in message
news:8fs706$643$[email protected]..
Hi,
I am prepearing a recommendation for our company's standard Javadevelopment
environment. I would appriciate any comment you guys might have on thebest
IDE that supports J2EE and EJB and Servlet development that integrateswith
WebLogic. I guess the best are Visual Age or Visual Cafe, anybody have any
experince/comment on any of those ?
Thanks
Farhang -
Application Server 4.0 caching the Java Servlet Program
Hi all,
I am working with Oracle8i databse and Oracle Application Server 4.0. Now I need to develop some Java Servlet's Program. I successful configure the server and my Servlet program can connect to the Oracle database.
However, when I make some modification to the program and recompile it. The browser cannot refresh to the modified program. This mean that the content is't update. I think the reason may be the previous program is cached in server.
Later, I discover using the 'owsctl' utility to reload the application server can solve this problem. However, it is quite inconvenience and not favour to reloasd the server very frequently. And I guess there may have some configuration parameters in the 'OAS Manager' can help me to solve my problem.
So, anyone can tell me how to solve this problem? Thank you very much.
RegardsOAS 4.0.8.1 supports servlets. You need a patch if you implement extra path info feature of servlets. In addition, you have to bounce OAS everytime you upload new servlets. This behavior does not follow the Servlet spec and I don't know when Oracle will fix it. It is a big problem for sites trying to run 24x7.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by dlnoida:
Dear All,
I have an application built in applets, i wants to host them on OAS 4.0.7.
How can i do it if possible? Do i reqire any third party tool for it ?
Is OAS 4.0.8 supports servlets?<HR></BLOCKQUOTE>
null -
Hi All,
I have a application which is developed in Java servlets using JDeveloper tool.
I have a OAS (version 10.2) installed in sun solaris platform.
My question is, How can I deploy my application (developed in java servlets) in Oracle application server ?
Thanks in advance.Greetings,
Could you please provide more details about the servlets (type, function etc.) and your environment per:
http://forums.oracle.com/forums/ann.jspa?annID=818THX
-Mike -
Does Oracle8i support Java Servlet
Hi,
We are looking at using Oracle8i and Java's server side technologies to develop our web site. OAS proves to be disappointing on Windows 2000 just to get loaded on startup. From Sun's Java Servlet web site it said that Oracle8i alone supports Servlet 2.2 and JSP 1.1, but we can not find the information anywhere in 8i's documentations. Can anyone help? We would like to establish whether Oracle8i's JServer support the deployment of Servlet without any additional software.
Thank you very much for helping.
Patrick.Hi,
This thread may help you
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=60852
MJ -
Hi all,
I am new to this forum. Just joined several mins ago.
I am going to start a job involving some java web development with web sphere. Could you point out some great tuturial? I did oracle jdbc database programing before but not on the web at all.
Thanks,Could you point out some great tuturial?Web Development is a wide term.
At first there is the plain JSP / Servlet Programming
You can use the J2EE Tutorial as starting point it also covers JSF (JavaServerFaces)and JSTL (JavaStandardTagLibrary)
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
You can download a free pdf version of the Book "Servlets and JavaServer Pages) from
http://www.theserverside.com/books/addisonwesley/ServletsJSP/index.tss
If you are interested in Struts you can download "Jakarta Struts Live" from
http://www.theserverside.com/books/sourcebeat/JakartaStrutsLive/index.tss
And a list of nice tutorials can be found here
http://www.laliluna.de/tutorials.html
andi -
Confused what exactly Java Servlets are?
Hi,
I(JSP Biginner) have gone through some tutorials about JSP, Servlet and Java bean.
I'm really confused by the term SERVLET.
There are a lot of the definitions:
1.) Is a Java Class that provides special Server Side Specification.
2.) A servlet is a dynamically loaded module that services requests from a Web server.
From above mentioned definition, my understanding is, SerVlet is like an engine which is provided server service. Is the SERVLET that I mentioned same as the JSP Servlet Engine which parse the JSP file, generate and compile the servlet source code and then send it to the browser?????
3.)What about the SERVLET that created by developer and use in the JSP page? what are the differents between the servlet 1,2 and 3.
Please advice!thanks so much...
guess I have better understand of what java servlet is when I read the article from
http://www.novocode.com/doc/servlet-essentials/
from my understanding:
1.) we said that SerVlet Provides Request and Response services is because the purpose of we creating our servlet is used to Read (Request) the data from Client and Send back (Response) the data to the Client. Of course all this can be done by code in the JSP page, but because of SerVlet technology, instead of we write the long code in the JSP page, we can modularise our code by creating servlet, why?? as servlets are web components, they can be reused easily. Moreover, java servlet is platform independent. After that at our JSP page, we just call the servlet we have created.
2.)As we can see from all the example, a SerVlet sure has
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
Are all of them only available when we installed our Web Server (i.e tomcat)???
3.)Can I say that we create servlets by Inherit all the routines and structure in those classes (q.2), as well as use their Built-In functions to create our servlets???
4.) Can I say that we create servlet by create an instance of a BIG SERVLET which served as a base (Which has all the classes we needes for creating our own servlets)
I don't know how much you can understand what I'm writting. Anyway, hope u can help.
Thanks so much. -
I am interested in integrating an independent java-based tool into my CF app. The developer, who aeems very reputable and established, advertises their product as being hostable in any standard java-servlet environment, such as Tomcat, Weblogic, etc. Although they offer a Windows version, they don't list CF. I am hoping that this is just an oversight. Does anyone have familarity with loading a java module into a CF servlet environment?
-keyman.If it meets the requirements (JVM version, servlet spec version etc.), you should be able to integrate it into a CF server running the multiserver install (Enterprise only). Java is sufficiently standardized that all the instructions on where to place the libraries and how to update web.xml should just work.
Try it and let us know how it works.
Maybe you are looking for
-
My notes won't open on my iPod touch 5 g it lags and closes everything else is fine I need my notes all my passwords are written there in my notes.
-
After effects color corrected clip not showing correctly in Premiere
Hello all, I have recently made a short film with a few effects in Premiere and After effects CS4. I have used the Dynamic Link to accomplish this. I have added color correction with Color Finesse in After effects. The problem is I some of the col
-
What docking stations are compatible with the probook p640
I have looked on the hp website, but cannot find the probook 640 listed as being compatible with any of the available docking stations. Can someone tell me which docking stations will work? Thanks
-
Garbage collector does not work any way
when you unload some loaded swf file (Loaded with Loader class) it's Event Listeners continue their jobs is there anyway to solve this problem for example please made three files l1.fla , l2.fla , main.fla in l1 creat a MovieClip with instance name "
-
I am using the two bayer vi's to set up a continuous white balance vi, and it is working functionally. However, I am trying to fine tune the LUT so that it corrects the color better. In the help for the bayer LUT vi says to use the white balance ut