Urgent: Portletizing an struts JSP application
Hello all,
I have a struts JSP application. I want to portletize this whole
application, so that navigation is always within the portal
framework.
Using URL Services all I can see is that the first page will be a
portlet.
Can anyone suggest the best way to portletize the application?
This is quite urgent and your help will be greatly appreciated.
Thanks in advance.
Faisal.
Hi all,
Concerning the message below, does the struts framework affect how normal JSP applications are added to Portal? Or is it as simple as just importing the portal classes and referencing them in the JSP's?
We would like to use struts for our next web application using JSPs, but need to display them within Portal. I've done this before by just changing the way our hrefs work, but am wondering if using struts will affect any of this.
Thanks in advance,
Gillian
Hello all,
I have a struts JSP application. I want to portletize this whole
application, so that navigation is always within the portal
framework.
Using URL Services all I can see is that the first page will be a
portlet.
Can anyone suggest the best way to portletize the application?
This is quite urgent and your help will be greatly appreciated.
Thanks in advance.
Faisal.
Similar Messages
-
Working with large number of search results in struts/jsp application
I'm developing a struts/jsp web application that returns upwards of
30000 results obtained from a very complex schema and multiple queries
to the database.
We want the user to be able to paginate through the results, sort by
several fields, add/drop columns and download in several formats. We
don't expect heavy traffic but we do want it to be scalable.
Up to now, I have been storing the results in a session ArrayList
which can eat up a lot of memory. The queries take long to perform so
I do not want to repeat them with every request.
I would like to store in a single mysql temp table but I have read
that when the connection ends, the table is dropped. I understand that
creating a database Connection as a session variable is not a good
practice.
This is not a unique problem - I was hoping someone else has some
insight into the best way to proceed.
Thanksglwinsor wrote:
I'm developing a struts/jsp web application that returns upwards of
30000 results obtained from a very complex schema and multiple queries
to the database.Who will want to deal with 30,000 rows? Not me. When Google returns a result to me, I get it in chunks of 10 at a time.
We want the user to be able to paginate through the results, sort by
several fields, add/drop columns and download in several formats. We
don't expect heavy traffic but we do want it to be scalable.That's a separate, complex issue.
Up to now, I have been storing the results in a session ArrayList
which can eat up a lot of memory. The queries take long to perform so
I do not want to repeat them with every request.Maybe your schema has issues. Do you have appropriate indexes? Has your DBA checked EXPLAIN PLAN to be sure that the queries are optimal?
I would like to store in a single mysql temp table but I have read
that when the connection ends, the table is dropped. I understand that
creating a database Connection as a session variable is not a good
practice.Not scalable.
This is not a unique problem - I was hoping someone else has some
insight into the best way to proceed.The paging part has been dealt with by Hibernate and other frameworks. Something like the Flex grid UI component might help. Caching and such can help you out. It's not easy, as you already know, and there isn't a canned solution that is one size fits all.
% -
Accessing ApplicationModule in Struts/JSP application using JDev 11g TP3
Hello All,
I am using Oracle JDeveloper 11g Technical Preview 3
I got one "AppModule" created under my (Struts/jsp) project "MODEL" structure.
Now, how can I access that ApplicationModule in my Action Class
BC4JContext bc4jContext = BC4JContext.getContext(request) is not working, returns null everytime,
Can anyone please let me know, how can I achieve this?
Thanks
user625610Hi don't know your name,
if you get null from BC4JContext.getContext(request) you should check you configuration. Check your web.xml file where you should see something like... <servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>mapping</param-name>
<param-value>oracle.jbo.html.struts11.BC4JActionMapping</param-value>
</init-param>
<init-param>
<param-name>BC4JDefinition</param-name>
<param-value>your_model_project_name</param-value>
</init-param>
...The init parameter BC4JDefinition is used to set up the context in the BC4JRequestProcessor class. My guess is that you don't have this parameter in your web.xml (or are pointing to a wrong name). the value should be the name of the cpx file without the .cpx you have in your viewcontroller project.
If you have migrated your project from JDev 10.1.2 you should check the 10.1.2 web.xml against the 11TP3 web.xml after the migration. The servlet part should be identical.
Timo -
How to use VPD in Java/Struts JSP portlet with SSO
DB = 10.1.0 (Standard Edition)
Portal = 9.0.4.1
10gAS = 9.4.0.1 (EE)
I am in the beginning stages of developing some portlets that will be Java/Struts JSP based. We use SSO and have implemented some VPD security in our DB by creating some views that use SYS_CONTEXT('USERENV','CURRENT_USERID').
These Java portlets connect to the DB using a defined JDBC connection for the OC4J container they are deployed in. The problem I'm having is that the call to SYS_CONTEXT is returning the user of the JDBC connection and not the SSO user. So far I have been unable to find any documentation that will point me in the right direction to get this configured properly.
Deployment and configuration are as follows. Deploy war file to custom container on app server. In the configuration of the OC4J contain the app used the containers default JDBC connection using the oracle.jdbc.pool.OracleDataSource class. Max and Min open connections are blank.
In the portal configuration under Navigator - Providers tab we defined a new Registered Provider. In the Connections tab for the provider we Specify the URL Http://hpsrv02.simsol.com:7777/discovery-portlets/providers. Under "Specify how the user's identity will be set by the Portal..." the "The user has the same identity in the Web providers application as in the Single Sign-On identity" is selected. Under "User/Session Information" User is selected and Login Frequency is set to "Once per user session". Then we created a new portal page and created a new portlet with the new provider.
Just an FYI I do have Discoverer working with VPD and any report portlet, dynamic page portlet and any other type of portlet I created all work correctly with VPD it is just the java/struts one that is not working.
So does any one have any insight into what configuration steps I have missed?
Any help is much appreciated,
Ed KlingerEd,
Your java code must get the SSO username (it's just a HTTP header variable) :
ie: code sample...
Enumeration e = request.getHeaderNames();
while (e.hasMoreElements()) {
String name = (String)e.nextElement();
String value = request.getHeader(name);
out.println("<br> "+name + " = " + value);
if (name.toUpperCase().trim().equals("OSSO-USER-DN")){
dn_user=value;
out.println("<br>******** USER DN = "+dn_user);
Then, the SSO username can be used in the VPD policy.
Note that there is a difference between the sso username and the database username . SSO username is not known by database (CURRENT_USERID will return a database username)
Discoverer worked OK in your case with the SYS_CONTEXT (.. CURRENT_USERID) because authentication is made by database user, probably. -
Make Current JSP Application in to a Portlet
Hi,
Is it possible to make a current JSP application into a portlet using the Portlet Wizard? If so, how?
The application consist of 8 JSP pages and 4 java pages.
Thanks!The easiest way of achieving what you want to do is to iframe your application.
Pros: Quick and dirty, but you will need to keep the web server that hosts that app uptime.
Cons: dirty
Proper way of doing it: Create a new java portlet using PDK tools, and essentially copy and paste code from your application. You might have to modify certain bits and pieces of your jsp pages, but if the app was made with good design in mind you wont have to re write much of a java code, jsp modifications only.
You might also find that it is also possible to upload your *.war file into portal and it might be able to publish your app as a portlet but we have not had much experience with that. -
Upgradion of jsp application into struts application
how can i upgrade my jsp application into a struts application?
Read some struts tutorials.
Example is this. -
Hi there !
I'm running Oracle enterprise edition on NT with oracle http server under apache.
I created a JSP application using jdeveloper
and deployed it to the web server.
Now I'm still getting getting nullPointer exceptions after I have modified the jserv.properties file according to the documentation
Can someone give me a file that is working for her/him under the above described circumstances ?
Many Thanaks in advance
Tony
nulllaredotornado wrote:
Hi,
This might not be a JSF question, but I thought I'd start here as I'm building a JSF application. Upon startup of my Weblogic 9.2.2 server, I see these error messages
log4j:WARN No appenders could be found for logger (org.apache.myfaces.webapp.StartupServletContextListener).
log4j:WARN Please initialize the log4j system properly.
One complication, my log4j.properties file is actually called "my.properties" (bizarre company reason). Is there somewhere in my faces-config.xml file or an equivalent where I can indicate what log4j properties file I'd like to use?Your company policy is to use non-standard names so that things must be configured manually? Interesting.
In the past people created a servlet those sole purpose was to configure log4j in the initialization sequence and then do nothing. -
Urgent ! Problem when test Application Moudule with a customer JSP FIle!!
I got these two errors:
oracle.jbo.common.ampool.ApplicationPoolException: JBO-30003: The application pool, ETicket_UserSystem_UserSystemAppModule, failed to checkout an application module instance.
JBO-25002: Definition of ETicket_UserSystem_UserSystemAppModule of type......
Here is my JSP file code:
<%@ page language = "java" errorPage="errorpage.jsp" import = "java.util.*, oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*, oracle.jbo.html.databeans.*" contentType="text/html;charset=ISO-8859-1" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<title>Business Components JSP Application</title>
</HEAD>
<%oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session, "UserSystemJSP_ETicket_UserSystem_UserSystemAppModule");
%>
<BODY>
<jsp:useBean id="viewer" class="oracle.jbo.html.databeans.ViewCurrentRecord" scope="request">
<%
viewer.initialize(application, session, request, response, out, "UserSystemJSP_ETicket_UserSystem_UserSystemAppModule.UserRecordView");
RowSet rs = viewer.getRowSet ();
Row r = null;
rs.setCurrentRow (rs.first ());
r = rs.getCurrentRow ();
while (rs.hasNext ()) {
out.println (r.getAttribute ("loginname"));
r = rs.next ();
viewer.setReleaseApplicationResources(true);
%>
</jsp:useBean>
</BODY>
</HTML>
Here is the properties file UserSystemJSP_ETicket_UserSystem_UserSystemAppModule.properties
ApplicationModuleName=ETicket.UserSystem.UserSystemAppModule
#ConfigName=ETicket.UserSystem.UserSystemAppModule.UserSystemAppModuleEJB
#in 8i mode this is an IIOP connection name to travel user.
#in LOCAL mode this is a JDBC COnnection Name to travel user.
ConnectionName=etdbcon
# used only if password not provided by connection definition in the config
Password=etpg1
#CSS File Name
CSSURL=/webapp/cabo/images/cabo_styles.css
#Root Image Directory
ImageBase=/webapp/jsimages
#only used in 8i mode
JndiPath=test/etpg1/ejb/ETicket.UserSystem.UserSystemAppModule
#Defines if application is stateless or not
IsStateLessRuntime=false
Here is the bc4j.xcfg file:
<BC4JConfig>
<AppModuleConfigBag>
<AppModuleConfig name="UserSystemAppModuleLocal">
<ApplicationName>ETicket.UserSystem.UserSystemAppModule</ApplicationName>
<DeployPlatform>LOCAL</DeployPlatform>
<JDBCName>etdbcon</JDBCName>
<jbo.project>UserSystem</jbo.project>
</AppModuleConfig>
<AppModuleConfig name="UserSystemAppModuleEJB">
<DeployPlatform>LOCAL</DeployPlatform>
<JDBCName>etdbcon</JDBCName>
<IIOPName>iiopcon</IIOPName>
<jbo.project>UserSystem</jbo.project>
<ApplicationName>ETicket.UserSystem.UserSystemAppModule</ApplicationName>
</AppModuleConfig>
</AppModuleConfigBag>
</BC4JConfig>
Any error in above files or other place??
I only run it in JDeveloper, no deploy and test in Application Server.Akira,
Here's what I would recommend:
1. Generate a BC4J JSP web application based on one of your view objects. This will give you the 'factory' code that we use to connect to the app module and iterate through a rowset. If this JSP works, you can compare the code generated by our wizards with the one you have included.
2. Your properties file looks like a hybrid of 3.1 and 3.2. In 3.2, the properties file contains just an entry for the ConfigName, and the password. The JSP then looks at the BC4J.xcfg at runtime for all the other connection information.
The error you are reporting sounds connection related, so I would recommend cleaning up your properties file to be more 3.2-like. If this is an app you have upgraded from 3.1, then see the online help topic 'About Upgrading a JSP Project in 3.2'. This topic can be found under the Creating JSP Pages folder, and then under About JSP Applications.
null -
How to use javascript functions in struts jsp page
hi
iam using struts jsp pages. here iam calling one javascript function. but iam not able to access the form in javascript.
wat i have to give as form name to get the elements of the form.
please reply me soon
it is urgent
vamsiyour form has no name liek this one:
<html:form action="/userRegistration.do" >so you cannot access the elements inside your form?
accessing the elements inside the form will be like this:
document.forms[0].propertyName.value; -
COMMIT problem in TopLink, Struts, JSP and ADF Databinding sample
In the sample Developing a J2EE Application using TopLink, Struts, JSP and ADF Databinding,
I followed all the steps to build a department browse page and a edit page.
But when I get to Step number 23 in "Create a JSP to Edit Departments" I have a problem with the commit.
Only after I make a change in the form and click the sumbit button, the commit and rollback buttons become active. And After I click the commit button the data gets commited to the database but the page inofmation changes to the very first department record, not the current one.
How do I make those buttons active with out the extra click on the submit?
After I click the commit button, how do I keep the current data on the screen?
Thanks for you help.Shay,
Thanks for the reply.
For #1, I was able to do the following and get away with not having to press submit first. I just removed the bindings for disable. I hope that does not cause any problems?
<input type="submit" name="event_Commit" value="Commit" />
<input type="submit" name="event_Rollback" value="Rollback" />
For #2, How I add an action on an HTML button? My UIModel.xml for the edit department page currently has two actions on it. Commit and RollBack. Is it linked through the "name" attribute of the input tag? -
Deploying a STRUTS Web Application
X-Posted to weblogic.developer.interest.jsp
weblogic.developer.interest.servlet
Hi,
for those of you who are familiar with STRUTS JSP/Servlet
framework: I'm desparately trying to deploy a web application
that uses STRUTS on our BEA WebLogic6.1 SP1 server.
My WAR looks like
index.jsp
WEB-INF/web.xml
WEB-INF/struts-config.xml
WEB-INF/classes/mypackage/MyForm.java
WEB-INF/lib/struts.jar
(and several other files). On server startup, STRUTS loads its
configuration from struts-config.xml. This indicates that struts.jar
is in the classpath. A HTTP request to index.jsp which uses
a form bean define in mypackage/MyForm.java (which subclasses
org.apache.struts.action.ActionForm) fails with a ClassNotFoundException
for mypackage/MyForm.java:
java.lang.ClassNotFoundException: de.adesso.premioss.process.WorklistForm
at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.
java:178)
at
weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClas
sLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClas
sLoader.java:43)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.apache.struts.action.ActionServlet.processActionForm(ActionServlet.java:
1700)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1562)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
So it looks like WEB-INF/classes is not a part of the classpath,
at last it is not visible from org.apache.struts.action.ActionServlet.
Has anybody encountered the same problem and found a solution?
No f'up set. Please adjust.
TIA
Tobias Trelle
adesso AG
www.adesso.de
Hi Tobias,
are you aware of the classloading mechanisms for WebLogic and
WebApplications? This looks like a typical classloader / wrong packaging
issue to me, you will find lots on this on groups.google.com. If that
does not help let me know.
Daniel
> -----Original Message-----
> From: Tobias Trelle [mailto:[email protected]]
> Posted At: Friday, January 25, 2002 9:11 AM
> Posted To: servlet
> Conversation: Deploying a STRUTS Web Application
> Subject: Deploying a STRUTS Web Application
>
>
> X-Posted to weblogic.developer.interest.jsp
> weblogic.developer.interest.servlet
> Hi,
>
> for those of you who are familiar with STRUTS JSP/Servlet
> framework: I'm desparately trying to deploy a web application
> that uses STRUTS on our BEA WebLogic6.1 SP1 server.
>
> My WAR looks like
>
> index.jsp
> WEB-INF/web.xml
> WEB-INF/struts-config.xml
> WEB-INF/classes/mypackage/MyForm.java
> WEB-INF/lib/struts.jar
>
> (and several other files). On server startup, STRUTS loads its
> configuration from struts-config.xml. This indicates that struts.jar
> is in the classpath. A HTTP request to index.jsp which uses
> a form bean define in mypackage/MyForm.java (which subclasses
> org.apache.struts.action.ActionForm) fails with a
> ClassNotFoundException
> for mypackage/MyForm.java:
>
> java.lang.ClassNotFoundException:
> de.adesso.premioss.process.WorklistForm
> at
> weblogic.utils.classloaders.GenericClassLoader.findClass(Gener
> icClassLoader.
> java:178)
> at
> weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(C
> hangeAwareClas
> sLoader.java:65)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at
> weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(C
> hangeAwareClas
> sLoader.java:43)
> at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at
> org.apache.struts.action.ActionServlet.processActionForm(Actio
> nServlet.java:
> 1700)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1562)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
>
> So it looks like WEB-INF/classes is not a part of the classpath,
> at last it is not visible from org.apache.struts.action.ActionServlet.
>
> Has anybody encountered the same problem and found a solution?
>
> No f'up set. Please adjust.
>
> TIA
> --
> Tobias Trelle
> adesso AG
> www.adesso.de
>
>
-
Alternative to HTML Frame in struts/jsp
I am using Struts/JSP for my application..
I have 3 panels(3 jsp's) each with a table of information.. each jsp has a summary part to it.. the data & information in the summary is the same across all panels.. Currently I've copy pasted the code for the summary in all 3 jsp's & Actions & ActionForms... I would like to change this to using a 4th panel sort of for the summary information... not sure what would be the best way to do this.. html frames or anything better maybe.. ?
Thanksdid u consider using struts tiles?
http://struts.apache.org/userGuide/dev_tiles.html -
Urgent: mwrchading workbench and jsp ref in not up: says connection reset
Hi all,
Urgent advise for the same, application is down as merchanding and jsp ref is no wroking.. here is log i found from /app/endeca/Workbench/workspace/logs..
i have tried to restart the tools and endeca http serverics however no go, please advise, urgent:
[endeca@ukrlpend004 logs]$ vi catalina.2012-11-19.log
19-Nov-2012 07:46:04 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server} Setting property 'debug' to '0' did not find a matching property.
19-Nov-2012 07:46:04 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine} Setting property 'debug' to '0' did not find a matching property.
19-Nov-2012 07:46:04 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.
19-Nov-2012 07:46:04 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use<null>:8006
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:509)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:535)
at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
19-Nov-2012 07:46:04 org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use<null>:8006
at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:535)
at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
19-Nov-2012 07:46:04 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 171 ms
19-Nov-2012 07:46:04 org.apache.catalina.core.StandardService start
INFO: Starting service Standalone
Regards,
DiwakerActually, tools services are not getting started even after running the command for toold services.
Below are i the commanf i have ran..
$ENDECA_ROOT/tools/server/bin/shutdown.sh
$ENDECA_ROOT/tools/server/bin/startup.sh
[endeca@server bin]$ ps -ef | grep Endeca
endeca 16776 21961 0 11:54 pts/2 00:00:00 grep Endeca
Please advise, there are no process for the endeca ending with bootstarp start. -
Hi all,
I've to add a JSP application to Portal; in order to do so I've read the help and in the
section "Adding a JSP application" there is:
"To add a JSP application to Oracle Portal:
From the Oracle Portal home page, access the JSP Application portlet on the Administer tab.
Click Add a JSP Application.
Enter a unique name for the JSP application. It must start with an alpha character and contain only alpha, numeric, or underscore characters and not exceed 200 characters...."
Where is the "JSP Application portlet"? The help is the on-line help installed with portal...
why does it refer to a "JSP Application portlet" if there isn't one?
thanks for the help
Alessiohi John
There does seem to be a problem on line 44 of your image.jsp page:
java.lang.NullPointerException
at _image._jspService(_image.java:90)
SRC:/image.jsp:44
...Would you mind posting a part of your image.jsp page that includes line 44 (or the complete page if it is not too big)?
You wrote "... I probably have to change something in the web.xml, ...", why do you think that is the case?
regards
Jan Vervecken -
Read Server name in JSPDynpage to call a JSP Application
Hi Experts,
I am new Portal Content Development.
I have a JSP application deployed on SAP NW portal server as ear file using Eclipse.
Now to integrate this application in portal i have to create an Iview.
To Create Iview i have to create JSPDynpage.( Since URL Iview will not be useful in my case)
I am trying to follow Approach #2 as mentioned by Detlev in this thread [iViews based on J2EE;
Now in this JspDynPage I have to call my JSP application.
In this application i want to read SAP NW server name and port name to create URL of JSP Application.
after which URL would be :
http://<Server host name >:<port>/JSPapplication.jsp
Now how do i read Server Host name and Server Port name from JSPDynpage?
Thanks in advance for the answer.
Regards,
Ashish ShahHi Michael,
Thanks for your suggestion , i tried it.
However it seems to be struts application and url for the application is http://<server>:<port>/MyStruts/MyStrutsHome.do.
I tried following relative paths: and these are the errors
MyStrut/MyStrutHome.do --> Unable to fetch site http://MyStrut/MyStrutHome.do.Error # 502
/MyStrut/MyStrutHome.do --> Unable to fetch site http:///MyStrut/MyStrutHome.do.Error # 400
MyStrut/ --> Unable to fetch site http://MyStrut/.Error # 502
/MyStrut/ --> Unable to fetch site http:///MyStrut/.Error # 400
MyStrutHome.do -->Unable to fetch site http://MyStrutHome.do.Error # 502
Not sure weather i can create a URL Iview for Struts based applications.
Can you share your thoughts on this?
meanwhile i am trying to fetch server name and port in my JSPDynpage as suggested by you.
Thanks for your help till now.
Regards,
Ashish Shah
Maybe you are looking for
-
Php_oci8.dll won't load
hi all i have problem for loading the oci8.dll extension for php 5.2.2 in my computer: i use wamp5 version 1.6.6 (apache 2.2, php 5.2, mysql 5) on win xp sp2 i want to connect my oracle server on different computer to my webserver using instant clien
-
Hi, I am working on a program in which i retrieve date fields from an Oracle 8 DB & need to execute other db statements.The extracted date field's format is however different from that of Oracle format.Is there some way of obtaining the date fileld i
-
I have the latest MacBook Pro, 17 inch. After putting the MacBook to sleep, I lose the sound to applications like iChat and Mail. I don't know how to get it back other than restarting the computer. Suggestions anyone?
-
Ipod Classic 160 Restore Failure
About a week ago my Ipod stopped working and when I reset it the screen showed a flashing circle with a line through. I plugged it in to my computer (Windows 7) and received a message to Restore my Ipod. I updated ITunes to latest version I started
-
Photoshop CS 3 camera raw update
Using CS6. But after devativating my old CS3 and reinstall it on another computor, cannot get any update. I understand there will be no updates for older versions of Photoshop, but how can I get back the last version of Camera Raw that was availabl