Setting paths for JSPs and Servlets
I have some java servlets and JSPs lying under a directory structure. I want to deploy them on OC4J. Is there any other way of doing this other than copying my directory structure to the /default-web-app directry etc.. etc..? I mean is it possible to configure OC4J to use any directory as the root directory for a deployed web application or an application. TomCat server can be configured like this but I am unble to configure OC4J. Is there anybody who knows how to do this?
Yes.
In server.xml (under the config dir of the oc4j installation) there is an application tag for each web application installed. One parameter for the tag is path, which can be set to anywhere on the filesystem.
Jonny
null
Similar Messages
-
How to set default encoding and charsets for jsp and servlets.
Hi,
Is there any possibility to set default encoding or charset for jsps and servlest (for both request and response)?
For example in Weblogic such parameters can be set in weblogic specific configuration files (weblogic.xml).
Thanks in advance.Hi,
I created one request with logo in the header an page in the footer etc. and called StyleSheet. After you can import this formats by each request.
You can do this in compound layout.
Regards,
Stefan -
Load balancing for JSPs and servlets
Hi:
I am using IIS as the proxy server, with the WLS plug-in, to a WLS
cluster. This provides round robin load balancing just fine. Will it
provide weight based load balancing if I set 'weblogic.system.weight'
differently on each server, or is that not relevant for clustering JSPs
and servlets?
Sincerely,
Ashish
Currently the plugins ( for NES, IIS and Apache) just use the round robin
algorithm. the property
weblogic.system.weight is used only be weblogic's replica aware clusterable
RMI/EJB stubs.
To use this property for your JSP/Servlet load balancing you have to use
weblogic server as proxy fron-ending your weblogic cluster.
--Viresh Garg
Ashish Vimal wrote:
> Hi:
> I am using IIS as the proxy server, with the WLS plug-in, to a WLS
> cluster. This provides round robin load balancing just fine. Will it
> provide weight based load balancing if I set 'weblogic.system.weight'
> differently on each server, or is that not relevant for clustering JSPs
> and servlets?
> Sincerely,
> Ashish
-
LDAP protection for JSP and Servlets
Environment: WL 5.1 sp 8 on Solaris 7
Question: I want to use LDAP Security on my site. Does Weblogic only utilze LDAP
for servlets. What about my JSP files? And no, I can't protect just a directory
with iPlanet Web Server because my JSP files are all over my directories and my
servlets are in my /servlets directory. I need security on some of the jsp files.
how would I accomplish this?Hello
What do I install in order to create and use .jsp's
and servlets and jdbc connectivity as well? Is it
J2SE or J2EE. The answer is "Yes."
In order to use J2EE, you need J2SE. If you do not feel comfortable with J2SE and programming Java in general (as is suggested by not being able to differentiate between J2SE and J2EE and how to download one/both), J2EE may be a bit complex to get started with.
My suggestion:
1) Start Here: http://java.sun.com/learning/new2java/index.html
2) Download J2SE: http://java.sun.com/j2se/1.5.0/download.jsp choose the JDK 5.0 Update 3
3) Do a beginners Java Tutorial: http://java.sun.com/docs/books/tutorial/index.html
4) Read a book, try a lot, get comfortable doing it.
Then Choose the JDBC:
http://java.sun.com/docs/books/tutorial/jdbc/index.html
Then, only after being compfortable in how Java and JDBC work, move to J2EE
1) Download a Server (examples):
Full J2EE implementation: J2EE Software Development Kits (SDK)
Servlet/JSP Engine (Tomcat): http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
There are others, Tomcat is fairly popular.
2) Read the server's documentation thoroughly
3) Read a J2EE tutorial: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
Note: depending on your server, the above tutorial may only be partially relevant.
The download section is overwhelming
and confusing to me :(
Thanks for any guidance. -
What server to install on win XP for learning jsp and servlets
Hi !
If any one knows what server/servlet I have to install if I want to test
JSP and SERVLETS ?
How I'm installing it if I'm using JBuilder and windows XP
Tank'sIf I will download the Tomcat 4.1.24, I will must to use jsp 1.2 and servlet 2.3 version ?
I have jsdk2.1 now declared in Jbuilder, is it also ok for using tomcat ?
If i"m using jbuilder, what the next step after i will download it ?
The tomcat has some shared folder with jsdk/servlet ?
Tank's !
I have so many question, because I just started with jsp/servlets. -
Deploying a WAR file containing .jsp and servlets (also uses JNI)
Deploying a WAR file containing .jsp and servlets (also uses JNI) on Windows 2000
We had problems making it initially work on Sun ONE Web Server 6.0 Service Pack 1 because of lack of good iPlanet Web
Server documentation on deploying such files.
This is how we went about it:
1) Make one of the servlet and JSP (must call another Java Class) web application (.war) examples work with iPlanet Web
Server.
C:\iPlanet\Servers\plugins\servlets\examples\web-apps\HelloWorld\HelloWorld.war
and
C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
a) Go to your Web Server Administration to deploy the application using GUI Web Application Deploy.
(We usually use command line, we experienced some issues with the GUI version, but maybe it is fixed in the new Web Server
service packs)
From browser, open http://yourserver:8888/
Click on Select a Server:Manage
Click on Virtual Server Class
Click on https-yourserver
Click on the Web Applications Tab
Then, click on Deploy Web Application
Enter the following -
WAR File On: Local
WAR File Path: C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
Application URI: /jakarta
Installation Directory: c:\iPlanet\examples\jakarta-examples
By clicking on OK it deployed the application.
I can verify that it is deployed by selecting "Edit Web Applications" and I see the following entry:
Edit /jakarta c:/iPlanet/examples/jakarta-examples
Also, c:/iPlanet/examples/jakarta-examples should have the similar following directory structure ..
- [images]
- [jsp]
- index.html
- [servlets]
- [META-INF]
- [WEB-INF]
- [classes]
- [tlds]
- web.xml
- index.html
I restarted the server and accessed it using the following URL from my IE browser:
http://yourserver/jakarta/index.html
Then I clicked on the JSP Examples and tried some JSP examples.
b) Alternatively, you can also deploy the same example from the command-line.
Make sure C:\iPlanet\Servers\bin\https\httpadmin\bin\ is in your path
wdeploy deploy -u /jakarta
-i yourserver
-v https-yourserver
-d c:\iplanet\examples\jakarta-examples
C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
Restart the web server (I don't think you have to restart, but .. might as well).
2)Deploy your web-application
My Foo.war has the following structure.
You can use jar tf Foo.war to look at the file contents from command line (assuming you have JDK installed and the bin is
in your PATH)
Foo.war
- [META-INF]
- [WEB-INF]
- web.xml
- [classes]
- Bar.class
- MoServlet.class
- [lib]
- ThirdParty.jar
- [natlib]
- extlib.dll
- foo.jsp
Here is our application scenario:
foo.jsp uses a class call Bar (it is not in any package). The Bar java class uses classes from ThirdParty.jar. The
ThirdParty.jar in turn uses JNI to load library extlib.dll. foo.jsp also calls /servlet/Mo as well.
Now to deploy it, do the following:
(a) Make sure that within foo.jsp, you import the Bar class ( I don't know why you have to do it, but if you don't you get
JSP compile error).
<%@page language="java" import="Bar" contentType="text/html"%>
(b) Check web.xml (for Servlets)
Within web.xml, make sure you have the following mappings:
<servlet>
<servlet-name> MoLink </servlet-name>
<servlet-class> MoServlet </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> MoLink </servlet-name>
<url-pattern> /servlet/Mo </url-pattern>
</servlet-mapping>
(c) Deploy the application
Using command line:
wdeploy deploy -u /foo
-i yourserver
-v https-yourserver
-d c:\iplanet\examples\foo-dir
Foo.war
(d) Change web-apps.xml file (for picking up ThirdParty.jar)
It is located in
C:\iPlanet\Servers\https-yourserver\config
You should see something similar to following after successful deployment.
<web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true"/>
Change it to look like following to pick up the ThirdParty.jar
<web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true">
<class-loader reload-interval="300"
classpath="C:/iPlanet/examples/foo-dir/WEB-INF/lib/ThirdParty.jar"
delegate="false"/>
</web-app>
(e) Change jvm12.conf file (for JNI)
It is located in
C:\iPlanet\Servers\https-yourserver\config
Add or uncomment the following lines:
#optional - just helps with instrumenting the jsp and servlet code
jvm.include.CLASSPATH=1
jvm.enableDebug=1
nes.jsp.enabledebug=1
jvm.trace=7
jvm.verboseMode=1
#required for JNI
java.compiler=NONE
jvm.classpath=.;C:\JDK1.3.1\lib\tools.jar;C:/iPlanet/Servers/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar;
jvm.option=-Xrs
jvm.option=-Xnoagent
# not sure if this is needed for iPlanet web server
jvm.option=-Djava.library.path=C:/iPlanet/examples/foo-dir/natlib/ -Djava.compiler=NONE
(f) Change magnus.conf file (for JNI)
We HAD to change this file in order for ThirdParty.jar file to pick up the native C++ code using JNI. Apparently, the
iPlanet Web Server doesn't pick the Environment Variable Path. Because when we had the directory containing the DLL just
in Path, it didn't work.
Change Extrapath directive:
ExtraPath C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
to
ExtraPath c:/iPlanet/examples/foo-dir/natlib;C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
(g) Apply changes from the Web Server Administration Console and Restart the web server.
You should be able to see the behaviour that you want from your application.
http://yourserver/foo/foo.jsp
Hope this was helpful!!!
SonuDeploying a WAR file containing .jsp and servlets (also uses JNI) on Windows 2000
We had problems making it initially work on Sun ONE Web Server 6.0 Service Pack 1 because of lack of good iPlanet Web
Server documentation on deploying such files.
This is how we went about it:
1) Make one of the servlet and JSP (must call another Java Class) web application (.war) examples work with iPlanet Web
Server.
C:\iPlanet\Servers\plugins\servlets\examples\web-apps\HelloWorld\HelloWorld.war
and
C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
a) Go to your Web Server Administration to deploy the application using GUI Web Application Deploy.
(We usually use command line, we experienced some issues with the GUI version, but maybe it is fixed in the new Web Server
service packs)
From browser, open http://yourserver:8888/
Click on Select a Server:Manage
Click on Virtual Server Class
Click on https-yourserver
Click on the Web Applications Tab
Then, click on Deploy Web Application
Enter the following -
WAR File On: Local
WAR File Path: C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
Application URI: /jakarta
Installation Directory: c:\iPlanet\examples\jakarta-examples
By clicking on OK it deployed the application.
I can verify that it is deployed by selecting "Edit Web Applications" and I see the following entry:
Edit /jakarta c:/iPlanet/examples/jakarta-examples
Also, c:/iPlanet/examples/jakarta-examples should have the similar following directory structure ..
- [images]
- [jsp]
- index.html
- [servlets]
- [META-INF]
- [WEB-INF]
- [classes]
- [tlds]
- web.xml
- index.html
I restarted the server and accessed it using the following URL from my IE browser:
http://yourserver/jakarta/index.html
Then I clicked on the JSP Examples and tried some JSP examples.
b) Alternatively, you can also deploy the same example from the command-line.
Make sure C:\iPlanet\Servers\bin\https\httpadmin\bin\ is in your path
wdeploy deploy -u /jakarta
-i yourserver
-v https-yourserver
-d c:\iplanet\examples\jakarta-examples
C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
Restart the web server (I don't think you have to restart, but .. might as well).
2)Deploy your web-application
My Foo.war has the following structure.
You can use jar tf Foo.war to look at the file contents from command line (assuming you have JDK installed and the bin is
in your PATH)
Foo.war
- [META-INF]
- [WEB-INF]
- web.xml
- [classes]
- Bar.class
- MoServlet.class
- [lib]
- ThirdParty.jar
- [natlib]
- extlib.dll
- foo.jsp
Here is our application scenario:
foo.jsp uses a class call Bar (it is not in any package). The Bar java class uses classes from ThirdParty.jar. The
ThirdParty.jar in turn uses JNI to load library extlib.dll. foo.jsp also calls /servlet/Mo as well.
Now to deploy it, do the following:
(a) Make sure that within foo.jsp, you import the Bar class ( I don't know why you have to do it, but if you don't you get
JSP compile error).
<%@page language="java" import="Bar" contentType="text/html"%>
(b) Check web.xml (for Servlets)
Within web.xml, make sure you have the following mappings:
<servlet>
<servlet-name> MoLink </servlet-name>
<servlet-class> MoServlet </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> MoLink </servlet-name>
<url-pattern> /servlet/Mo </url-pattern>
</servlet-mapping>
(c) Deploy the application
Using command line:
wdeploy deploy -u /foo
-i yourserver
-v https-yourserver
-d c:\iplanet\examples\foo-dir
Foo.war
(d) Change web-apps.xml file (for picking up ThirdParty.jar)
It is located in
C:\iPlanet\Servers\https-yourserver\config
You should see something similar to following after successful deployment.
<web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true"/>
Change it to look like following to pick up the ThirdParty.jar
<web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true">
<class-loader reload-interval="300"
classpath="C:/iPlanet/examples/foo-dir/WEB-INF/lib/ThirdParty.jar"
delegate="false"/>
</web-app>
(e) Change jvm12.conf file (for JNI)
It is located in
C:\iPlanet\Servers\https-yourserver\config
Add or uncomment the following lines:
#optional - just helps with instrumenting the jsp and servlet code
jvm.include.CLASSPATH=1
jvm.enableDebug=1
nes.jsp.enabledebug=1
jvm.trace=7
jvm.verboseMode=1
#required for JNI
java.compiler=NONE
jvm.classpath=.;C:\JDK1.3.1\lib\tools.jar;C:/iPlanet/Servers/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar;
jvm.option=-Xrs
jvm.option=-Xnoagent
# not sure if this is needed for iPlanet web server
jvm.option=-Djava.library.path=C:/iPlanet/examples/foo-dir/natlib/ -Djava.compiler=NONE
(f) Change magnus.conf file (for JNI)
We HAD to change this file in order for ThirdParty.jar file to pick up the native C++ code using JNI. Apparently, the
iPlanet Web Server doesn't pick the Environment Variable Path. Because when we had the directory containing the DLL just
in Path, it didn't work.
Change Extrapath directive:
ExtraPath C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
to
ExtraPath c:/iPlanet/examples/foo-dir/natlib;C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
(g) Apply changes from the Web Server Administration Console and Restart the web server.
You should be able to see the behaviour that you want from your application.
http://yourserver/foo/foo.jsp
Hope this was helpful!!!
Sonu -
Hi,
we are trying to set define ACL for weblogic security for JSP
and could't manage to do it. In the online documentation there
are examples for servlets but not for html or jsp files.
How have to be defined the ACLs for jsp and html files ?
Thanks in advance.
GRIDSYSTEMS Bartolome Real Planells
See http://www.weblogic.com/docs51/admindocs/properties.html#urlacl for
details on setting ACLs on URLs...
Bartolome Real Planells wrote:
> Hi,
>
> we are trying to set define ACL for weblogic security for JSP
> and could't manage to do it. In the online documentation there
> are examples for servlets but not for html or jsp files.
>
> How have to be defined the ACLs for jsp and html files ?
>
> Thanks in advance.
>
> -------------------------------------------------------------------
> GRIDSYSTEMS Bartolome Real Planells
-
How to upload a file into server using j2ee jsp and servlet with bean?
How to upload a file into server using j2ee jsp and servlet with bean? Please give me the reference or url about how to do that. If related to struts is more suitable.
Anyone help me please!u don't need j2ee and struts to do file uploading. An example is as such
in JSP. u use the <input> file tag like
<input type="file"....>You need a bean to capture the file contents like
class FileUploadObj {
private FormFile srcFile;
private byte[] fileContent;
// all the getter and setter methods
}Then in the servlet, you process the file for uploading
* The following loads the uploaded binary data into a byte Array.
FileUploadObj form = new FileUploadObj();
byte[] byteArr = null;
if (form.signFile != null) {
int filesize = form.srcFile.getFileSize();
byteArr = new byte[filesize];
ByteArrayInputStream bytein = new ByteArrayInputStream (form.srcFile.getFileData());
bytein.read(byteArr);
bytein.close();
form.setFileContent(byteArr);
// Write file content using Writer class into the destination file in the server.
... -
Basic jsp and servlet question (JSP Model 2)
Hi
I want to make an website where i use JSP Model 2 architecture. However I got a basic question
1. I need to separate business logic from presentation with the use of jsp and servlets. Meaning I want no html code in the servlet. Can you give a simple example of how this can be done? If I map my implementation of httpServlet to a jsp page in web.xml and override doPost() and doGet(). The calls to the jsp page comes to the servlet as it should. I want to process some methods (calling sessionbeans or similar which in turn calls entitybeans) and then show the jsp page.
How do I show the jsp page without mixing html in the servlet as I've done below:
doGet(HttpServletRequest req, HttpServletResponse res)
PrintWriter p = response.getWriter();
p.print("<html><body>Hello world</body></html>"); //I dont want to do //this, I want to display the JSP site
doPost(HttpServletRequest req, HttpServletResponse res)
//doSomething
}Message was edited by:
CbbLeYou should treat your servlet class much like a controller, where you can then use JSP as the view. The way you achieve this is to use the forward() method in RequestDispatcher.
Say you've got a servlet class org.yoursite.controller.YourController:
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
//Set some value for use in the JSP file associated wth me
req.setAttribute("greeting", "Hello world!");
//Done with our business logic, off we go to the JSP file
ServletContext app = getServletContext();
RequestDispatcher disp;
disp = app.getRequestDispatcher("/some/jsp/file.jsp);
disp.forward(req, resp);
}Now in your JSP file:
<h1>Example</h1>
<div>
I just want to say <%= request.getAttribute("greeting") %>
</div>Going to that servlet now executes business logic and then points to the JSP file for the view. You can forward from servlet to servlet too if needs be. The string you pass to forward() is whatever would be in the URI of the request so any <servlet-mapping> configurations in web.xml are used ;)
There is some pretty in-depth documentation on the J2EE blueprints website, namely service-to-worker and front-controller patterns. I dare say if you're looking for this sort of code you'll want to look at the composite view pattern too (also on blueprints). -
How to track the same session using both jsp and servlets
Hello, guys:
"how to use jsp and servlet to track the same session",
it seems to me my logoff.jsp never realize the session I established in my servlets.
Here is how I set my session in my servlets:
" HttpSession session = req.getSession(true);
session.setAttribute("userid",suserid);"
Here is how I invalidate my session in my logoff.jsp
" <%@ page language= "java" %>
<%@ page import="javax.servlet.http.HttpSession" %>
<%@ page session="false"%>
Our Session id is : <%= session.getId() %>
<% session.removeAttribute("userid");
session.invalidate();
%>
Our Session id is : <%= session.getId() %>"
but when I try to logoff using the logoff.jsp
I always get following error message.
"/home/jiao/jsp_webserver/tomcat/work/Standalone/localhost/syllabus/htmls/logoff_jsp.java:50: cannot resolve symbol
symbol : variable session
location: class org.apache.jsp.logoff_jsp
out.print( session.getId() );"
T.I.A.
[Edited by: jiveadmin on Jun 18, 2003 10:32 AM]
[Edited by: jiveadmin on Jun 18, 2003 10:33 AM]So,
<%@ page session="false"%>
That means the jsp never instantiates the build in session object.
<%@ page session="true"%>
means jsp will instantiates a session object if there are no existing ones
how about I just delete the line,
does that mean the jsp will find the existing session object for me?
So I can do something like
Our Session id is : <%= session.getId() %>
<% session.removeAttribute("userid");
session.invalidate();
%>
directly.
T.I.A. -
Urgent: problem with sharing HttpSession object between Jsp and servlets.
Hi,
We are using weblogic 6.0 sp2.
I m setting a particular object in session in a servlet using
session.setAttribute() but when i try to retrieve that object using
session.getAttribute() in a jsp page the value of that object is null. Is
there any way to configure HttpSession in weblogic so that jsps and servlet
can share the same session? Or any workaround for this problem.
Any help in this regard is appreciated.
Thanks
-Shree
Just a guess, but it sounds like you have cookies turned off and are not
using encodeURL. Try enabling cookies and see if that solves the problem.
Also, it is generally good practice to use encodeURL to protect yourself
from users who disable session cookies.
Here's how we use encodeURL in our Servlets:
gotoPage("/jsp/someJSP.jsp");
private void gotoPage( String address,
HttpServletRequest request,
HttpServletResponse response )
throws ServletException, IOException
RequestDispatcher dispatcher =
etServletContext().getRequestDispatcher( response.encodeURL( address ));
dispatcher.forward( request, response );
"Shree Unde" <[email protected]> wrote in message
news:[email protected]..
> Hi,
> We are using weblogic 6.0 sp2.
> I m setting a particular object in session in a servlet using
> session.setAttribute() but when i try to retrieve that object using
> session.getAttribute() in a jsp page the value of that object is null. Is
> there any way to configure HttpSession in weblogic so that jsps and
servlet
> can share the same session? Or any workaround for this problem.
> Any help in this regard is appreciated.
> Thanks
> -Shree
>
>
-
Hi friends,
[please forgive me if i am posting this in the wrong forum, all seems same to a fresher]
Now, to my problem..i need a suggestion, a way or a method to implement the following!
I am supposed to create a servlet that reads data from oracle database. Once i retrive the data (for example: 6 rows of a table having 4 attributes), i am supposed to pass this data to a JSP page where the data has to be formatted and displayed properly. If i call the same servlet from a different JSP, i should be able to access the data in that JSP and format it in a different way. How do i pass the data to JSP? what method i can use to achieve this task?
Note: I already know about PrintWriter pw = response.getWriter(); and then printing the formated HTML page..but i want to keep the formatting to JSP part and send only the data part that i can access in JSP
Thanks in adavancearun_ramachandran wrote:
[please forgive me if i am posting this in the wrong forum, all seems same to a fresher]Then you should learn to be more observant - after all, we have JSP and Servlet fora, further down the list. :)
I am supposed to create a servlet that reads data from oracle database. Once i retrive the data (for example: 6 rows of a table having 4 attributes), i am supposed to pass this data to a JSP page where the data has to be formatted and displayed properly. If i call the same servlet from a different JSP, i should be able to access the data in that JSP and format it in a different way. How do i pass the data to JSP? what method i can use to achieve this task? You can store the data in your session object. You can even use JavaBeans and the jsp:usebean tag.
[http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html]
Note: I already know about PrintWriter pw = response.getWriter(); and then printing the formated HTML page..but i want to keep the formatting to JSP part and send only the data part that i can access in JSPA wise approach - I wish more prople woiuld be as thoughtful. -
Implement SSL in JSP and servlets
hi there,
i needed some help in implementing ssl in JSPs and servlets. My idea was to have a login page and also use it where sensitive data is being sent. I have used the basic socket programming (socket.class and serverSocket.class) in GUI applications using threads to listen and send simultaniously and understand how it works but how do I implement it in JSP and servlets and where do i store the certificate?
i do know that using SSL sockets is very much the same as using the normal sockets.
can anyone tell me any useful links or give me a step by step guide how to implement it and which classes to use
your help would be very much appreciated.
manihi,
soory for late reply.
i think you need to use keytool program in your JDK to generate a certificate signature file and you need to configure the server.xml to open and use the HTTPS port. I have not had any additional info on this but i would assume that you simply enter https:// on the file you wish to load in your form and it should use the HTTPS port provided it can find the certificate which must be stored somewhere in your tomcat web server. i would recommend you see tomcat website or search on google for "ssl support in tomcat".i hav not had time to look into this but i will as soon as i am free from my work load.
mani -
How to setup my computer to run JSP and Servlets
I want to setup my computer to run JSP and Servlets.
What kind of Servers and other tool i need to install to run JSP and Servlets.
Plz, Help me to start my work on JSP.
Regards,
Usman Alihello
JSP and servlet is web programming, may be little bit different to development local application.
1st, you should have two computers: one is server and the other is local workstation. This server should have a static IP address, that other people can go into your server. Workstation is any computer normal you use it.
2nd, you need to setup your server in: OS(linux or windows 2000), web server (jrun, apach or Tomcat etc. ), as well as install JDK, servlet.
3rd, your local workstation just use as programming editor and open a browser to testing, anytime you write your code, then ftp to server to test.
Reality, you have many technical thing to solve, eg setup web server etc. However, you can write your source code and test it, then open to outside people.
hope to helpness, if anything don't uderstand, you can post again or send email to me [email protected] Since I just have setup this configuration in my university for my project. -
Am I correct in assuming that JSP is an extention of servlets and that to learn JSP in effect means learning about servlets? My point is, is JSP the superior technology a bit like learning JDK1.4 is now a pointless excercise as it has been superceded by 1.5 ?
thanksAm I correct in assuming that JSP is an extention of
servletsYes.
and that to learn JSP in effect means
learning about servlets? No. This isn't necessary, as a matter of fact, it is one of the reasons why JSP exists - so people with little or no Java knowledge can build dynamic web sites using Servlet containers, assuming they have Java programmers behind them to build the tags / glue to the web app.
Still, I say having basic understanding of Servlets (at least) will help you out.
My point is, is JSP the
superior technology No. JSP has a different role. It makes display easier to code for non-Java programmers (looks more like HTML/XML), and easier to support and understand later on.
JSP does horribly bad at complex application control, data selection and manipulation, or as an interface to external resources. Java and Servlets are better at these tasks (but conversly, are horrible to work with for display purposes).
They are different, JSPs and Servlets, in what task they do. J2EE is far superior when you use them both appropriately.
a bit like learning JDK1.4 is now
a pointless excercise as it has been superceded by
1.5 ?No.
JSP is a newer technology, but should not be used to replace Servlets, but used along side Servlets to provide a better designed and manageable application.
Let the servlets control what pages the user sees when, to gather data, to talk with external resources. Then forward to a JSP which simply displays what the Servlet did all the work in getting.
>
thanks
Maybe you are looking for
-
i've uninstalled and reinstalled itunes numerous times but it still begins an update whenever i open it, the update then causes the macbook to crash halfway through. I've also tried opening it with all my internet switched off. Any ideas on how to st
-
I Want to buy an external solar battery charger for my iPad 2. Does anyone know the right specifications for it. Is this one good for me ? 12000mAh Portable Solar Power Battery Pack. You can find it on this link. http://dx.com/p/12000mah-portable-so
-
Valuation Grouping Code same- Valuation Class different for each plant
Hi All, We have 5 plants assigned to the company code. We have same Chart of Accounts (1000) and all the plants are grouped together to one valuation grouping code(001). Now if i extend the material codes to different plants, i am able to give each v
-
Can't interact with iCloud preferences in system preferences!
Since installing Maverick on my Imac 2 weeks ago I have had issues with the Icloud preferences in system preferences. I click on the icon, nothing happens, same with the internet account button. I have been through the process of deleting the icloud
-
Récupérer une sauvegarde Photoshop Album V1 dans Photoshop Elements V13
Bonjour, Comment faut-il faire pour restaurer dans Photoshop Elements V13 une base de photos créée sous Photoshop Album V1 (action : fichier > sauvegarde option totalité)? Cette sauvegarde est constituée de - plus de 6000 fichiers JPG - 1 fichier Bac