How to create a single login for multiple apps on tomcat server?
Hello,
I am running the most recent versions of apache and tomcat on several dells with XP pro.
When I login to an app I have created, a session variable is set, but when I browse to one of the other apps on the same computer, it does not recognize that the session variable has been set and I have to login again.
Can somebody please suggest how, or where I can find docs, to configure tomcat to pass the session variables to other apps?
Thank you very much.
Or, can anybody suggest the most effective strategy for creating single-logon functionality for multiple apps with tomcat and apache running on one computer? and with tomcat and apache running on multiple computers? (i.e., each computer has tomcat and apache integrated).
The database is Oracle 10g running on each computer.
Thank you again.
A good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
"Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded"
Similar Messages
-
HOW TO CREATE A SINGLE CONTRACT FOR MULTIPLE CUSTOMERS IN CRM
Hi ,
I am working in CRM contract management. my requirement is to create a sigle contract for multiple business partners. can anyone help in providing the steps.
thanks!
chandra.Hi,
I tried this solution earlier by adding multiple BPs in the partner tab of the contract having this partner function.
for ex: the partner function 000001 for sold-to-party in partner tab. i tried to select the same partner function for multiple BPs but system gives an error "too many sold-to-party entered Remove an entry". can you help me here. thanks!
Regards,
chandra. -
How to Park the single invoice for multiple purchase orders
Hi,
How to Park the single invoice for multiple purchase orders?brother this is possible to enter one Invoice fro multiple purchase order.
call transaction MIR7, select " purchase order/Scheduling Agreement" from the PO refernce Tab. then click on arrow. give your purchase orders here.
Thanks -
Single login for multiple domains
Can anyone point out a blog or post of a single login for
multiple domains? For example, let's say I own asite.com and
bsite.com.
I want a user who logins to asite.com to also be logged into
bsite.com if they visit that site. BSite.com is clearly a microsite
of asite.com but we'd like to continue to use that domain if the
visitor is on that site instead of redirecting them to keep login
credentials
ThanksIf you're using cookie based login system, I'd imagine you
could set a cookie to be valid for both of your sites.
<cfcookie name="myAuthcookie" value="myAuthValue"
domain=".asite.com;.bsite.com">
That way both asite.com and bsite.com can read your cookie.
Note the notation; always include the preceeding dot in the domain
values. (two dots for top level domains, etc.)
Strangely CFCOOKIE documentation doesn't mention anything
about using semicolon separating multiple domains. It did in CF5
documentation, but not since. -
How to create one inbound delivery for multiple purchase order?
Hi Experts,
Please let me know how can I create one inbound delivery for multiple purchasing documents(PO or SA)?
Is there a configuration needed for this? If yes, please let me know the configuration to make this happen.
Appreciate your help on this. Right answers will be rewarded.
Thank you.
with regards,
Muthu Ganapathy.Hi,
my situation is:
- a WM managed warehouse, society A;
- a HU managed warehouse (without WM), society B;
- a purchasing process of HU from society A towards society B.
Society B have a scheduling agreement; when a delivery schedule appears, in society A born a sales order and a delivery. After the registration of the delivery good issue, an idoc transfer information for inbound delivery creation.
This process is ok without WM, but with a WM managed warehouse the idoc has the following problem:
"V51VP - item was not found - process cancelled".
Can you help me to transfer these HU? -
How to create a Single Ear for more than 30 applications
Hai, any one please help me out
I created single ear for more than 30 different ejb projects
while deploying WAS giving error as follows;
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot store information about application sap.com/IntigratorEAR in the database during deploy.. Reason: Object value for entry "PROPS_STR_STR:ApplicationProperties" is too large. Limit is at 2,000 bytes.; nested exception is: com.sap.engine.frame.core.configuration.InvalidValueException: Object value for entry "PROPS_STR_STR:ApplicationProperties" is too large. Limit is at 2,000 bytes.
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Please help me out in this
with regards
somarajuHi,
I think this means that there is an object for your application properties with a size that exceeds the maximum size of the database field.
This is probably caused by the concatenation of all your properties of all your apps in the ear.
To solve this problem you can merge some applications to limit the amount of properties saved in the db.
A second solution could be to use different ear-files instead of 1 for all applications.
The third option is to find out how PROPS_STR_STR:ApplicationProperties is build up. Then you can limit the size of these properties.
Hope this explpanation is usefull.
Danny -
i would love to be able to create a single photoshop action for adding a border, plus a signature in the bottom right corner, that works for both portrait and landscape images.
need i say more?!
i already have an action that adds a signature in the centre of the border at the bottom of the image e.g. the image below. what i want though is for that signature to be on the RHS and for the same action to work for portrait images as well.
supplementary info: reason for this is that I want to be able to export 300 wedding images (mix of landscape and portrait images) from lightroom in my pre-selected order (meaning the files are labelled from 001 to 300, ordered according to how the wedding day unfolded) and then use PS to add the border and the signature, in the same place, and for it to work for both orientations.
i need this to work for full sized exported jpeg images, i.e. i want the files that i give on CD to my clients to include my signature in this manner. so I don't want to copy the initial layer and then reduce the second layer size to leave a border around the second layer.
i hope i've been clear and that someone can help me here. I think that this sort of presentation makes such a difference to final printed image, and I DONT want to have to go to all 300 images picking out the landscape from portrait ones (although this may be what I have to do and wouldn't really take that long but surely there's a better way!!!!).
Thanks in advance photoshoppers ...It is actually quite easy to do if you have a good understanding of how Photoshop works. To be able to handle any size Landscape and Portrait you need to scale the document to a known width or height. Once the document is resized to the width or height it easy. When yot resize the document you use Image size with resample NOT checked. Not a single image pixels is changed all the happens is the documents DPI is set to the proper DPI resolution to print that size. This lets you add a border sized for and document. You can use Canvas Size check relative and leatve the anchor point centered and set width and height to 2" this will add 1"on all sides. Use Canvas size a second time move the anchor point to the top center check relative and set height 1" the will add an additional 1" border on the bottom. You then record a text layer with your Name title or what ever to the top left of the image. Select all ant the align the text layer to the selection to move it to the bottom right.
Adding a couple of scripts to the action you can make sure there is a background layer so the added canvas will be filled with pixels. You can restore the document to its original DPI resolution to retain the images print size. Down load my crafting actions package it contains a dozen scripts to be used within actions. There are text file with tips and guidelines additionaly there is one on dealing with document size and includes a sample action set with a watermarking action the can watermark and size image. The Action set is also saved as a text file with additional comments I added my downloads can be found here http://mouseprints.net/Photoshop.html -
One login for multiple apps?
How easy is it under J2EE to implement applications which share a single login?
Specifically, what I'm implementing are a collection of snap-in applications, which will share the user database to some extent (or at least, a common part of it).. So I might have the following applications and web contexts set up..
news.ear (/news/)
forum.ear (/forum/)
games-dice.ear (/games/dice/)
.. and each of the applications running here would ask something central for the user permissions.
I can't just use a single user database, because I want to separate user information specific to one area (per-area admin priveleges, forum settings) from those which are global for the user (email address, web site).
What I'm thinking at the moment, is in the session (there's one of these for the entire server, regardless of which web application the user is in, right?) I'll store the specific user objects for each individual app under different attributes.
If it doesn't exist, and the global user info doesn't exist either, then I ask the user to login, which will associate in the global info. (How do I get to this global info from another app easily?) If the app-specific info doesn't exist in the session, but the global user info does exist, then I'll look up the username in the list for the current application, and use that to decide whether they're permitted to use that specific application.
It all seems very messy. There must be a better way to do it, right?That's a start ..
Actually, my situation is a little simpler than that, because all those peoples' problems dealt with systems where the username/password were different between the different apps. In my case, I was thinking of the case of one username and password for the site, and a separate kind of ForumUser, NewsUser, etc object for each application, backed by a different database, and with no passwords.
So actually, all I really need (I think) is to have each application aware of the global User classes, so they can pull them out of the session and inspect the username, then use that to look up their own *User objects.
It's looking like a bunch of nearly-identical code in each app to do this .. perhaps I'll implement some sort of taglib to take care of it for me. -
How to create a billing request for service order that has serv contract?
Dear Experts,
Can you please help me?
The scenario is, my client has service contracts with their customer but they want to charge customers not periorically but as and when they provide service (ad-hoc).
So how to bill the customer in this case?
In my testing if I have a service contract (order type = SC) then when I create service order, system automatically picks up standard order type SM01. (which is service order with contract.)
And when I perform time confirmation and material consumption (goods issue), actual costs gets booked to the service order. However, using the service order number as referece, if I try to create a billing request in DP90, system create a blank billing request with no line items.
So, could you please advice, how can I create a billing request for a service order, if I have a contract?
Appreciate your help.
Best regards,
Abdul RafeyHi Praveen,
Thank you very much for your reply. I appreciate your time and efforts.
Ok, these are the steps how I have executed the process.
- I have created a service contract for an equipment. In the service contract, I have maintained the service material in the line item, maintained price and assigned equipment in the technical objects.
- I created service notification, which automatically picked up contract.
- When I create service order, from notification screen, system automatically picked up correct order type SM01 (Service order with contract).
- Then I planned operations and spare parts in the service order.
- Checked settlement rule in the service order is SDI.
- released and saved service order.
- Using IW42, in SAP ECC6, you can perform both time confirmation and material consumption using the same screen and also TECO service order. System issues message to say, goods issue have been posted.
- when you check the document flow of service order, you can see operations posted, and also goods issue posted.
- check cost tab to see actual costs. (if I want to settle costs from service order to service contract, I can do so w/o a problem in KO88)
- Use DP90, enter service order number and create billing request. System takes to billing request screen but it is blank. No line items.
- So, since there is a contract, in this case, am I meant to be creating the billing request from Service contract? instead of from Service order?
I hope I have clarified myself better this time.
Best regards,
Abdul Rafey -
How to track session IDs for multiple apps in same server instance?
All:
We have 2 web applications (for example: app1,app2) running in one app
server instance (weblogic 5.1). Both of those applications use the same
cookie name (defined in weblogic.properties ) to keep the HttpSessionID.
The tricky thing is that if a client logs in to app1 and then logs in to
app2 with the same web browser, (for example, IE). The app1's
HttpSessionID kept in the cookie will be overwritten by app2's
HttpSessionID because they use the same cookie name.
My question is this:
Is there a way to specify a cookie name for each application running in
an application server instance?
The only way we know of to work around the problem is that we have to
host the app1 and app2 in 2 different app server instances so we can
config app1 and app2 to use different cookie names for the
HttpSessionID. We are curious if there is a better way to do that.
BTW, We must use Cookie because of the requirement of cluster and load
balancer.
Thanks,
BenHi Ben,
Which version of Weblogic are you using??
In 5.1 sp8 the Cookie names of the Web Apps are different by default.
Prasad Peddada <[email protected]> wrote:
Why can't you add your own cookie?
In 6.0 you can have different cookie names for different
apps.
-- Prasad
"Benjamin D. Engelsma" wrote:
All:
We have 2 web applications (for example: app1,app2)running in one app
server instance (weblogic 5.1). Both of those applicationsuse the same
cookie name (defined in weblogic.properties ) to keepthe HttpSessionID.
The tricky thing is that if a client logs in to app1and then logs in to
app2 with the same web browser, (for example, IE). The app1's
HttpSessionID kept in the cookie will be overwrittenby app2's
HttpSessionID because they use the same cookie name.
My question is this:
Is there a way to specify a cookie name for each applicationrunning in
an application server instance?
The only way we know of to work around the problem isthat we have to
host the app1 and app2 in 2 different app server instancesso we can
config app1 and app2 to use different cookie names forthe
HttpSessionID. We are curious if there is a better wayto do that.
BTW, We must use Cookie because of the requirement ofcluster and load
balancer.
Thanks,
Ben -
How to create a single delivery for two sales orders?
Hi Experts,
I need to create one delivery for two sales orders. But it fails.
The route, shipping point, ship to party are same for both orders but INCOTERMS are different.
Delivery date, Good issue date, loading date,material availability date, transportation planning date for 1st order is 12/07/11 and for second order is 14/07/11.
I have created delivery on 14/07/2011 but the delivery is created for 1st order only, the second order is missing in the delivery.
It not happened because of incoterms.? different dates
Kindly help regarding this.
Thanks
RaghuPrerequisite for Grouped delivery
1. Header data should be same like Inco terms,Payment terms
Go to VL10A
Enter the sales order Numbers and execute
Select the sales order Nos for the group delivery and select "Background" Tab in Tool Menu Bar
If delivery is created coloured line items will get generated
Check the log for delivery docuements
Check and confirm
Senthils -
Hi,
First let me explain my Exch 2013 SP1 Multidomain set up.
1. DA as Forest Root domain, having schema master domain role installed.
DB as Tree Root domain in above forest
DC as Child domain in Tree root domain.
Brought 1 machine in Child domain and in stalled Exch 2013 SP1 on it.
Now i have created 100 users in child domain, but i am not getting a option to enable Exchange mailbox for all 100 users in one go. (Also unable to do same on normal set up having one DC and Exch 2013 SP1 server)
Could you please help me do it.
Thanks & Regards,
SudhirDear Sudhir
Please try this through Exchange management shell and it will help you
Get-User -RecipientTypeDetails User -Filter { UserPrincipalName -ne $Null } | Enable-Mailbox
Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
(MVP) -
How to develop a single form for multiple Layouts in Adobe
Hi experts,
I have Developed an AdobeForm in Letter Layout.
Is there any settings in ADS/Layout in SFP, for giving print in both Letter and A4 Pages without developing new Page Layout?
We are facing allignment issues, if print is given in A4.
Thanks in Advance!
RoopeshHi Roopesh,
We cannot change the Page Layout and Orientation dynamically in Adobe forms.
To achieve this Create two forms with different layouts each. -
How to create a file object for a file on Remote Server? UNIX
Hi all,
I am working on two servers A and B. BOTH ARE UNIX MACHINES. My java class exist on server A and executes on same server. The file that I need to process resides on server B. (Lets call it test.txt in MYTEST directory. So path will be /MYTEST/test.txt on server B) I need to do few things before I can process it:
1) Check if file exist
2) If it does FTP it to Server A. (I already know how to.)
For both of these tasks, I need a File object for that file.
My problem is that I am unable to set it up.
\\B\MYTEST\test.txt will not work on UNIX. I already tried that. (It only works on Windows)
I tried:
/B/MYTEST/test.txt ---- Does not work
B:/MYTEST/test.txt ---- Does not work
:B/MYTEST/test.txt ---- Does not work
B:MYTEST/test.txt ---- Does not work
All of these instances say the same thing: "File does not exist."
Any ideas? Please help!!!
-ChiragI by no means want to sound belittling... so don't take me that way..
You need to understand the basics of files, and networks. You can't check if a file exists on another machine if you don't have a network protocol to communicate with. The reason \\ works under windows is because you are using an invisible (to you) network protocol. You probably know it as windows sharing. If your file were not shared under it's own name, that method wouldn't work (I'm assuming your entire drive is shared without a password... a horrible security flaw...but one thing at a time)
You can use FTP protocol to check if a file exists. You can either send the raw text FTP commands through a socket connection in java, or you can use a freely available FTP java API to make it a bit more simple. You could also write a small java server on the other machine, and have it tell you what you need to know with a socket connection. In this way, you have created your very own network protocol. -
How to create open file dialog for choosing file in application server?
I would like to have the same functionality as
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'NAVIGATION_FILENAME_HELP'
EXPORTING
DEFAULT_PATH = '.'
MODE = 'O'
IMPORTING
RETURNCODE = return_code
SELECTED_FILENAME = p_file.
But the above code, only allow me to choose files from local computer. How to do the same thing with the file location becomes the application server?
Thanks!Try this it will give the full directory structure.
REPORT ZTEST3460 line-count 30(2) .
PARAMETERS: FILE LIKE RLGRAP-FILENAME.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE.
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
DIRECTORY = ' '
FILEMASK = ' '
IMPORTING
SERVERFILE = FILE
EXCEPTIONS
CANCELED_BY_USER = 1
OTHERS = 2
Cheers
Maybe you are looking for
-
Can I add trend line for my charts in Numbers for iPad?
-
I want to make chaptered audiobooks!
I have a bunch of mp3s that I want to make into audiobooks with chapters. I know how to make the m4b's but is there any freeware that anyone knows of for adding chapters? If this is a bad place to ask this then where should I ask? It seems so simple
-
Hi, When i use control breaks and write a output i get astreix(*) in the output. I even tried with a local vriable but the value is not displayed in the output. i need to output the material description in the output. My code is as follows: LOOP AT
-
I update my photoshop touch to 1.6 and the text is not working, whenever i enter for example "hello" i only get "he" and in some cases just pieces of words, help!!! Message was edited by: Ignacio Barrientos Message was edited by: Ignacio Barrientos
-
HT1918 How to reset security question answers?
Please help!