How would i do the following in struts
If the user is not logged in I want to forward him to the logon page and once he is logged in to send him back to the page that he was on. How would I do this in some sort of action?
Thank you all for your time
anyone
Similar Messages
-
How would you solve the following Synch Async scenario?
Hi,
I have the following use case and would like to know thoughts from the community on how to solve it -
There is a web based portal sending a create order request to ESB and the ESB does some message processing and passes it to a CRM to complete the order processing and generate a order id to be sent back to the portal user.
Non Functional Requirements -
1) Reliability
2) Performance in terms of response time to the user.
Issues -
1) The web service exposed by CRM takes a long time to process the request and it is not acceptable that the Portal end user waits for that long to get the Order ID back..
2) If we make a SOAP/HTTP call from Portal --> ESB and then another SOAP/HTTP call from ESB ---> CRM then the reliability is compromised.
Solution -
The solution that we are proposing is as follows -
1) Make a SOAP/HTTP call from Portal to ESB and then put the message in a JMS Queue which will persist it. This will provide reliability and QOS.
2) Generate a random unique number (which will act as the order id for the user) inside the ESB and send it back to the user immediately after persisting the message in the queue. Also persist this interim order id in a database.
3) Pick the message from the queue using MDB or Proxy service (specific to Oracle Service Bus because that is what we have as an ESB) and send the message to CRM.
4) CRM takes its own time to process the request from MDB and sends the response (actual OrderID in CRM) which is then persisted corresponding to the row in step#2. Thus for future search by the user we can use this mapping to get the actual order details from CRM.
I do not see this as a scenario which is unique or unusual, where an Asynch request needs to made to look as synch to the user. But the solution we are proposing seems to be crude to me and with loopholes (like how to handle scenarios where CRM returns an error etc.) which would require lot of effort to be fixed.
Questions -
1) What is your opinion about the solution and suggestions about a better/cleaner way to implement it?
2) Is there any standard approach to solve such kind of issue without creating so much of complexity (where we have to write code to keep the mapping and take care of all other issues)?
3) Is there any pattern that can help solve this problem?
4) Have you ever faced this issue and how did you solve it?
Regards
AnanyaHi Ananya,
If its not required to give Order ID to Portal user immediately, you can update Portal with Order ID in async manner.
What I propose is,
1. Let Portal call in Async manner, thread is released. (JMS can be used as well to improve reliability.)
2. CRM takes the request and responds with order id or an error, calls webservice of AIA.
3. AIA's WS then update Portal with Order ID or error in proper format.
Thanks,
Manish -
How would I remove the following mouse listener..
Say on the response to a button click how would this be removed. I've tried various methods removeMouseListener(), but its not working correctly.
addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent event) {
int x = event.getX();
int y = event.getY();
int z = event.getClickCount();
if (x > 940 && x < 1040 && y < 40 && y > 10 && z < 2) {
System.out.println(" (" + event.getX() + "," + event.getY()
+ ")");
validate();
repaint();
});Edited by: Calibre2007 on Mar 6, 2008 12:07 AMI see you don't store a reference to your listener, how are you trying to remove it?
I think all you need to know was already said in your previous thread
http://forum.java.sun.com/thread.jspa?threadID=5270819 -
How would I do the following transformation to text
Im transforming an .xml to text to be inserted into the body of an email. The text is made up of numbered lines. Im trying to align the information but its coming out looking like this
1.John abcd 1234
2.Joe dcd 1
3.James a 5222
I have attempted to make the information all the same length. I read John for example obtain the length and add the appropriate white spaces to make it all the same length. However this doesnt work since letters and other characters are of different length. Can anyone suggest a better way to approach this. Thank you for your timeYou mean that "w" is wider than "l" in the e-mail? The usual recommendation to fix that is to specify a fixed-width font (such as Courier), but there's no way for you to control the font that the reader's e-mail program will use. Unless you send the e-mail in HTML format and put your data in a table or something like that.
-
How would I get the date of last Monday?
How would I get the date of last Monday?
I've done the following, does it seem right?
public static const millisecondsPerDay:int = 1000 * 60 * 60 *
24;
* This function sets the mimimum and maximum range
private function sliceChartWeek():void{
var max:Date = new Date();//current date is our max from
which we will calculate the min
var day:uint = max.day;
var min:Date = new Date(max.getTime() - (millisecondsPerDay
* (max.day - 1)));
dateTimeAxis.minimum = min;
} -
How would I find the firefox specific styling information?
I recently ran across the following (archived) help article: https://support.mozilla.org/en-US/questions/814083
How would I find the information posted inside here? Is there a wiki page or something I could consult?
ThanksHave a look at
* http://kb.mozillazine.org/Chrome_folder
* https://developer.mozilla.org/en-US/docs/Chrome_Registration
It is of course easier to use addons, but it depends on your intentions
* https://support.mozilla.org/products/firefox/customize
*https://addons.mozilla.org/firefox/addon/classicthemerestorer/
* https://addons.mozilla.org/en-US/firefox/addon/stylish/
* Or for web content https://addons.mozilla.org//firefox/addon/greasemonkey/ -
How can we remove the following zeros from quantity field ?
Hi All.
how can we remove the following zeros from quantity field while populating ALV by using FM REUSE_ALV_GRID_DISPLAY ?
eg:getting output zqty = 2.000
but i need zqty = 2.
help me to reslove this issue.
Regards.
jayHi,
While populating the field catlog do the following thing to avoid zeros.
wa_fieldcat-tabname = 'I_OUTPUT'. " Curr
wa_fieldcat-fieldname = 'FWAER'.
wa_fieldcat-seltext_l = text-023.
wa_fieldcat-no_zero = 'X'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Thanks,
Khushbu. -
== Issue
==
I have another kind of problem with Firefox
== Description
==
how do I fix the following error, it comes up every time I open a Firefox page; "type error: Components.classes[cid] is undefined" (JavaScript Application)
== This happened
==
Every time Firefox opened
== a few months ago
==
== Troubleshooting information
==
Application Basics
Name Firefox
Version 3.6.3
Profile Directory
Open Containing Folder
Installed Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
Adblock Plus 1.2 true
Adobe DLM (powered by getPlus(R)) 1,6,2,49 true
AVG Safe Search 9.0.0.825 true {3f963a5b-e555-4543-90e2-c3908898db71}
AVG Security Toolbar 4.504.019.002 true avg@igeared
Fasterfox 2.0.0 false
Forecastfox 0.9.10.2 true {0538E3E3-7E9B-4d49-8831-A227C80A7AD3}
Java Console 6.0.05 true
Java Console 6.0.03 true
Java Console 6.0.07 true
Java Console 6.0.11 true
Java Console 6.0.13 true
Java Console 6.0.15 true
Java Console 6.0.17 true
Java Quick Starter 1.0 true [email protected]
Microsoft .NET Framework Assistant 1.2.1 true {20a82645-c095-46ed-80e3-08825760534b}
NoScript 1.9.9.77 true {73a6fe31-595d-460b-a920-fcc0f8843232}
Java Console 6.0.19 true
Java Console 6.0.20 true
Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar 0
browser.history_expire_days 0
browser.history_expire_days.mirror 180
browser.places.importBookmarksHTML false
browser.places.importDefaults false
browser.places.leftPaneFolderId -1
browser.places.migratePostDataAnnotations false
browser.places.smartBookmarksVersion 2
browser.places.updateRecentTagsUri false
browser.startup.homepage_override.mstone rv:1.9.2.3
extensions.lastAppVersion 3.6.3
general.useragent.extra.microsoftdotnet ( .NET CLR 3.5.30729)
keyword.URL http://au.yhs.search.yahoo.com/avg/search?fr=yhs-avg&type=yahoo_avg_hs2-tb-web_au&p=
network.cookie.prefsMigrated true
places.last_vacuum 1272511429
print.print_bgcolor false
print.print_bgimages false
print.print_command
print.print_downloadfonts true
print.print_evenpages true
print.print_in_color true
print.print_margin_bottom 0.5
print.print_margin_left 0.5
print.print_margin_right 0.5
print.print_margin_top 0.5
print.print_oddpages true
print.print_orientation 0
print.print_pagedelay 500
print.print_paper_data 0
print.print_paper_height 11.00
print.print_paper_size -134744073
print.print_paper_size_type 1
print.print_paper_size_unit 0
print.print_paper_width 8.50
print.print_printer Lexmark 4200 Series
print.print_reversed false
print.print_scaling 1.00
print.print_shrink_to_fit true
print.print_to_file false
print.printer_Lexmark_4200_Series.print_bgcolor false
print.printer_Lexmark_4200_Series.print_bgimages false
print.printer_Lexmark_4200_Series.print_command
print.printer_Lexmark_4200_Series.print_downloadfonts true
print.printer_Lexmark_4200_Series.print_edge_bottom 0
print.printer_Lexmark_4200_Series.print_edge_left 0
print.printer_Lexmark_4200_Series.print_edge_right 0
print.printer_Lexmark_4200_Series.print_edge_top 0
print.printer_Lexmark_4200_Series.print_evenpages true
print.printer_Lexmark_4200_Series.print_footercenter
print.printer_Lexmark_4200_Series.print_footerleft &PT
print.printer_Lexmark_4200_Series.print_footerright &D
print.printer_Lexmark_4200_Series.print_headercenter
print.printer_Lexmark_4200_Series.print_headerleft &T
print.printer_Lexmark_4200_Series.print_headerright &U
print.printer_Lexmark_4200_Series.print_in_color true
print.printer_Lexmark_4200_Series.print_margin_bottom 0.5
print.printer_Lexmark_4200_Series.print_margin_left 0.5
print.printer_Lexmark_4200_Series.print_margin_right 0.5
print.printer_Lexmark_4200_Series.print_margin_top 0.5
print.printer_Lexmark_4200_Series.print_oddpages true
print.printer_Lexmark_4200_Series.print_orientation 0
print.printer_Lexmark_4200_Series.print_pagedelay 500
print.printer_Lexmark_4200_Series.print_paper_data 1
print.printer_Lexmark_4200_Series.print_paper_height 11.00
print.printer_Lexmark_4200_Series.print_paper_size -134744073
print.printer_Lexmark_4200_Series.print_paper_size_type 0
print.printer_Lexmark_4200_Series.print_paper_size_unit 1
print.printer_Lexmark_4200_Series.print_paper_width 8.50
print.printer_Lexmark_4200_Series.print_reversed false
print.printer_Lexmark_4200_Series.print_scaling 1.00
print.printer_Lexmark_4200_Series.print_shrink_to_fit true
print.printer_Lexmark_4200_Series.print_to_file false
print.printer_Lexmark_4200_Series.print_unwriteable_margin_bottom 0
print.printer_Lexmark_4200_Series.print_unwriteable_margin_left 0
print.printer_Lexmark_4200_Series.print_unwriteable_margin_right 0
print.printer_Lexmark_4200_Series.print_unwriteable_margin_top 0
privacy.clearOnShutdown.cookies false
privacy.clearOnShutdown.offlineApps true
privacy.cpd.cookies false
privacy.item.offlineApps true
privacy.sanitize.migrateFx3Prefs true
privacy.sanitize.timeSpan 3
security.warn_viewing_mixed false
security.warn_viewing_mixed.show_once false
== Firefox version
==
3.6.3
== Operating system
==
Windows XP
== User Agent
==
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
== Plugins installed
==
*-getplusplusadobe16249
*Office Plugin for Netscape Navigator
*Adobe PDF Plug-In For Firefox and Netscape
*Default Plug-in
*NPRuntime Script Plug-in Library for Java(TM) Deploy
*The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
*Shockwave Flash 10.0 r45
*iTunes Detector Plug-in
*Garmin Communicator Plug-In 2.8.1.0
*Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
*Java(TM) Platform SE binary
*Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
*Npdsplay dll
*DRM Store Netscape Plugin
*DRM Netscape Network ObjectHow do I fix this problem ...javascript (cid) applications.
-
I HAVE AN IPHONE 5S AND WANT TO USE SOFTWARE 7.0.2 BECAUSE IT IS COMPATIBLE WITH MY VEHICLE FOR UCONNECT. I CURRENTLY HAVE SOFTWARE 7.0.3 ON MY DEVICE. HOW WOULD I GET THE PREVIOUS SOFTWARE BACK ON MY PHONE
Forum Tip: It is generally considered inappropriate to type all in uppercase letters in Internet discussions, as text that is typed all in uppercase is by convention considered to be shouting. Uppercase is also more difficult to read, so please use all uppercase sparingly and only when you really mean to shout, which we hope you won’t need to do here .
Regards. -
Can I set up a new Mac Pro late 2013 using a Wacom Cintique 13HD tablet as the default monitor? How would I install the driver software for the tablet?
The wacom site will have the drivers for you.
http://us.wacom.com/en/support/drivers -
How do I fix the following error? itunes counld not back up the iphone because the back up could not be saved on the computer?
I updated to iOS 5.0.1 days ago and didn't receive that notification until just now...
This time I synced new photos I took yesterday, and it gave me the:
"iTunes Sync: 54 items could not be synced. See iTunes for more information"
Perhaps it kicks off when new items get synced.
I've decided to rent a movie yesterday. Once it gets deleted, I'm curious to see if it jumps to 55 items. -
how do I get the following to the left of my search bar: <> one page, X, reload page?
The reload page button is no longer an option in Safari—it's been integrated into the URL bar itself. For the other buttons, you can right-click (Control-click) on the toolbar, select "Customize Toolbar", and drag the buttons on to any part of the bar.
-
How would you capture the stdout of Runtime.getRuntime().exec())?
Say you wanted to execute PKZIP25.exe from java using Runtime.getRuntime().exec(). How would you capture the output of PKZIP25 (the console IO) in a file so you could check the results?
Thanks
Bill BlalockThanks.
Could you explain a little more?
The program I am calling seems to be executing, as far as Java is concerned, but nothing happens. I imagine I have made mistakes in calling it but can't see the output to the console.
Should I use Runtime.getRuntime().exec() or Runtime.exec() for something like this?
I appreciate the help!
Bill B. -
How would I get the Body element background to open at the scale of the browser window
How would I get the Body element background to open at the scale of the browser window? I hear that by using an HTML tag or CSS rule I could scale a background that is placed in the body element without using javascript is this true?
The most reliable solution is to use small image slices or tiles and repeat them down and across the page or container division.
CSS EXAMPLE:
body {
background: url(your_image.jpg) repeat;
More on background images:
http://alt-web.com/Backgrounds.shtml
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb -
How can i do the following in the oracle forms developer :
How can i do the following in the oracle forms developer :
1- delete or add new item to block and canvus at the RUNTIME ????
2- change the following property at the RUNTIME :
- item type
- datatype
- database item
- column nameHow can i do the following in the oracle forms
developer :
1- delete or add new item to block and canvus at the
RUNTIME ????It's not possible, you can do enabled/not enabled, or visible/not visible
2- change the following property at the RUNTIME :
- item typeno
- datatypeno
- database itemno
- column nameno
You are not lucky :-)
Maybe you are looking for
-
Transfer of cenvat credit to other plant
Hi, I have a plant AAAA.I have recieved raw materials and availed cenvat credit. Now I'm transferring the material to other plant BBBB. Is it possible to transfer the cenvat credit availed in plant AAAA to plant BBBB. Regards, Venkatesh
-
J2EE RI vs. J2EE SDK?
The tutorial I'm working with has an exercise for downloading and setting up the J2EE Reference Implementation, but I can't find a download for that on the Java site. Is the J2EE RI the same as the J2EE SDK? If not, where can I get the J2EE RI? What
-
Buttons hiding buttons on indesign
Hi hope you can help. I'm using indesign CS5 and have a problem with pop up buttons being hidden by other buttons. The page design is a 7 column grid with around 10 buttons underneath each column that act as hyperlinks and trigger other show/hide but
-
Discussion -- Call for answers : Class and Component
Dear all, 1. Component has a clear seperation between the specification and implementation? I can't understand here.The interface define some operations,but eventually we need coding to realize it. Where is the speration? A class also has methods and
-
Any tips on a development methodology for creating a rules engine? That is, a system to execute a couple of hundred triggers & functions on tables & views that produce a table or materialized view containing the records that meet all the rules?