Handling of multiple view in spring framework

Hi,
I just wanted to know that how can i handle control on view in spring framework as we handle in struts.
For e.g.
In struts when action servlet needs to find next view it looks for <forward> in struts-config.xml , how can i achieve same thing in Spring..

So you want the knowledge. But are you willing to make the effort to gain the knowledge?
http://static.springsource.org/spring/docs/3.1.0.M1/spring-framework-reference/html/mvc.html

Similar Messages

  • MVC �Best Practice� (handling multiple views per action/event)

    Looking for the best approach for handling multiple views for one action/event class? Background: I have a small application using a basic MVC model, one controller servlet, multiple event classes, and multiple JSP views. For performance reasons, the controller Servlet is loaded once, and each event class is an instance within it. Each event has an �eventProcess()� and an �eventForward()� method called by the controller, standard stuff.
    However, because event classes should not use instance variables, how should I communicate which view to forward to should based upon eventProcess() logic (e.g. if error, error.jsp, if success, success.sjp)? Currently, there is only one view mapped per event, and I'm having to put error handling logic in the JSP, which goes against the JSP being for just view only.
    My though was 1) A session object/variable that the eventProcess() sets, and the eventForward() reads, or 2) Have eventProcess() return a mapping key and have the conroller lookup a view page based upon that key, as opposed to 1-1 event/view mapping.
    Would like your thoughts!
    Thanks
    bRi

    Your solution seems ok to me, but maybe the Struts framework from Apache
    that implements MVC for JSP is a better solution for you:
    http://jakarta.apache.org/struts/index.html
    You should take a look at it. It has in addition some useful taglibs that makes life much easier.
    We have successfully used it in a project with about 50 pages.

  • WebCenter Sites and Model–view–controller (MVC) framework

    A customer of our started developing their sites using Webcenter Sites, they want to support additional functionality such as transaction management, exception handling, custom logging and so on. I was wondering if anyone has experience with the Model–view–controller (MVC) framework, they consider it an ideal candidate for these features. Has anyone here used the MVC framework in conjunction with WebCenter Sites to write additional java classes, facade layers and utilize the Spring controller to wire the same ? Are you aware of any other options available for this purpose ?
    regards,
    Pietro

    Hi Pietro -
    Using Sites IN a MVC framework is very difficult, because the entire context of WebCenter Sites is burned into the COM.FutureTense.Servlet.SContentServer servlet.  You can't really work around that with any degree of reliability.  Unfortunately, that means that dropping Sites into a pre-existing third party MVC framework doesn't really work. 
    There are a lot of good reasons for that, not the least of which is the two-tiered pagelet-level caching system that makes Sites so very fast at delivery... not that it's any consolation.
    To deal with this some former colleagues of mine and I built the GST Site Foundation ("GSF") framework, which provides a Spring-like MVC container WITHIN sites, instead of the other way around.  If you're familiar with Spring, you'll see patterns similar with the GSF.  My current team and I have blogged about this extensively:
    What is this whole GST Site Foundation thing? | Function1
    Create a Simple "Contact Us" Form with GSF | Function1
    How to Add Your Own DAO to the GSF Actions | Function1
    The full stream is here:  GSF | Function1
    But ultimately, the special sauce is the following: in Sites, create an XML element that contains nothing but a <FTCS> tag, a <CALLJAVA> tag, and a closing </FTCS> tag.  Your CALLJAVA will then call a class that implements the Seed or Seed2 interface, and from in there you have access to the (properly managed) ICS object where you can do all of your magic.  You can then build a lightweight controller here to handle any action you can dream up:
    https://github.com/dolfdijkstra/gst-foundation/blob/master/gsf-wra/src/main/java/com/fatwire/gst/foundation/controller/A…
    Let me know if I can help!
    Regards,
    Tony

  • Weblogic 10.3.0 managed server + Spring Framework slow startup

    Hello
    Iam running weblogic 10.3.0 plus an application using spring framework on this:
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.6.0_20-b02
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Sun Microsystems Inc.
    java.specification.version = 1.6
    java.vendor = Oracle Corporation
    java.version = 1.6.0_20
    java.vm.info = compiled mode
    java.vm.name = Oracle JRockit(R)
    os.arch = amd64
    os.name = Windows 2003
    os.version = 5.2
    sun.arch.data.model = 64
    sun.io.unicode.encoding = UnicodeLittle
    sun.jnu.encoding = Cp1252
    sun.management.compiler = Oracle JRockit(R) Optimizing Compiler
    sun.os.patch.level = Service Pack 2
    Problem Description: A weblogic managed server is taking more than an hour to start, the delay is due to the deployments during startup, passing from STATE_PREPARED to STATE_ADMIN and to the initialization of the Spring root WebApplicationContex, which takes an avg of 7 mins per module deployed.
    I have a development server with the same application which starts in a few minutes, the only difference between the environments are tha the development server runs in 32bits.
    Any help will be appreciated
    -luis
    Server log file:
    ####<Feb 17, 2011 5:09:06 PM VET> <Info> <ServletContext-/Micropago/ServiciosOperacionTransferencia> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1297978746371> <BEA-000000> <Initializing Spring root WebApplicationContext>
    ####<Feb 17, 2011 5:19:16 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297979356364> <BEA-149059> <Module operaciondispatcher-ws-1.0-SNAPSHOT.war of application operaciondispatcher-ws-1 is transitioning from STATE_PREPARED to STATE_ADMIN on server micropago_server.>
    ####<Feb 17, 2011 5:19:16 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297979356411> <BEA-149060> <Module operaciondispatcher-ws-1.0-SNAPSHOT.war of application operaciondispatcher-ws-1 successfully transitioned from STATE_PREPARED to STATE_ADMIN on server micropago_server.>
    ####<Feb 17, 2011 5:19:24 PM VET> <Info> <ServletContext-/Micropago/ServiciosOperacionD> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1297979364083> <BEA-000000> <Initializing Spring root WebApplicationContext>
    ####<Feb 17, 2011 5:23:35 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297979615333> <BEA-149059> <Module operacionutil-ws-1.0-SNAPSHOT.war of application operacionutil-ws-1 is transitioning from STATE_PREPARED to STATE_ADMIN on server micropago_server.>
    ####<Feb 17, 2011 5:23:35 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297979615333> <BEA-149060> <Module operacionutil-ws-1.0-SNAPSHOT.war of application operacionutil-ws-1 successfully transitioned from STATE_PREPARED to STATE_ADMIN on server micropago_server.>
    ####<Feb 17, 2011 5:23:40 PM VET> <Info> <ServletContext-/Micropago/ServiciosUtilidad> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1297979620318> <BEA-000000> <Initializing Spring root WebApplicationContext>
    ####<Feb 17, 2011 5:30:10 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297980010468> <BEA-149059> <Module securitymanager-ws-1.0-SNAPSHOT.war of application securitymanager-ws-1 is transitioning from STATE_PREPARED to STATE_ADMIN on server micropago_server.>
    ####<Feb 17, 2011 5:30:10 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297980010515> <BEA-149060> <Module securitymanager-ws-1.0-SNAPSHOT.war of application securitymanager-ws-1 successfully transitioned from STATE_PREPARED to STATE_ADMIN on server micropago_server.>

    Hi, thanks for your answer.
    How can I do a Thread Dump snapshot in a windows server starting as a service (no console)?
    Admin_server Thread Stack Trace
    Dump 1/3
    "Main Thread" waiting for lock weblogic.t3.srvr.T3Srvr@f14693 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:811)
         weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:459)
         weblogic.Server.main(Server.java:67)
    "(Signal Handler)" RUNNABLE
    null
    "(OC Main Thread)" RUNNABLE
    null
    "(Code Generation Thread 1)" RUNNABLE
    null
    "(Code Optimization Thread 1)" RUNNABLE
    null
    "(VM Periodic Task)" RUNNABLE
    null
    "(Attach Listener)" RUNNABLE
    null
    "Finalizer" RUNNABLE
         jrockit.memory.Finalizer.waitForFinalizees(Native Method)
         jrockit.memory.Finalizer.access$700(Finalizer.java:12)
         jrockit.memory.Finalizer$4.run(Finalizer.java:189)
         java.lang.Thread.run(Thread.java:619)
    "Reference Handler" RUNNABLE
         java.lang.ref.Reference.waitForActivatedQueue(Native Method)
         java.lang.ref.Reference.access$100(Reference.java:11)
         java.lang.ref.Reference$ReferenceHandler.run(Reference.java:82)
    "(Sensor Event Thread)" RUNNABLE
    null
    "VM JFR Buffer Thread" RUNNABLE native
    null
    "Timer-0" waiting for lock java.util.TaskQueue@e259a7 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         java.util.TimerThread.mainLoop(Timer.java:483)
         java.util.TimerThread.run(Timer.java:462)
    "Timer-1" waiting for lock java.util.TaskQueue@10ad080 TIMED_WAITING
         java.lang.Object.wait(Native Method)
         java.util.TimerThread.mainLoop(Timer.java:509)
         java.util.TimerThread.run(Timer.java:462)
    "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE
    DUMP 2/3
    "Main Thread" waiting for lock weblogic.t3.srvr.T3Srvr@f14693 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:811)
         weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:459)
         weblogic.Server.main(Server.java:67)
    "(Signal Handler)" RUNNABLE
    null
    "(OC Main Thread)" RUNNABLE
    null
    "(Code Generation Thread 1)" RUNNABLE
    null
    "(Code Optimization Thread 1)" RUNNABLE
    null
    "(VM Periodic Task)" RUNNABLE
    null
    "(Attach Listener)" RUNNABLE
    null
    "Finalizer" RUNNABLE
         jrockit.memory.Finalizer.waitForFinalizees(Native Method)
         jrockit.memory.Finalizer.access$700(Finalizer.java:12)
         jrockit.memory.Finalizer$4.run(Finalizer.java:189)
         java.lang.Thread.run(Thread.java:619)
    "Reference Handler" RUNNABLE
         java.lang.ref.Reference.waitForActivatedQueue(Native Method)
         java.lang.ref.Reference.access$100(Reference.java:11)
         java.lang.ref.Reference$ReferenceHandler.run(Reference.java:82)
    "(Sensor Event Thread)" RUNNABLE
    null
    "VM JFR Buffer Thread" RUNNABLE native
    null
    "Timer-0" waiting for lock java.util.TaskQueue@e259a7 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         java.util.TimerThread.mainLoop(Timer.java:483)
         java.util.TimerThread.run(Timer.java:462)
    "Timer-1" waiting for lock java.util.TaskQueue@10ad080 TIMED_WAITING
         java.lang.Object.wait(Native Method)
         java.util.TimerThread.mainLoop(Timer.java:509)
         java.util.TimerThread.run(Timer.java:462)
    "[STANDBY] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@10ad1bd WAITING
         java.lang.Object.wait(Object.java:485)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:157)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    "weblogic.time.TimeEventGenerator" waiting for lock weblogic.time.common.internal.TimeTable@10aff60 TIMED_WAITING
         weblogic.time.common.internal.TimeTable.snooze(TimeTable.java:286)
         weblogic.time.common.internal.TimeEventGenerator.run(TimeEventGenerator.java:117)
         java.lang.Thread.run(Thread.java:619)
    "weblogic.timers.TimerThread" waiting for lock weblogic.timers.internal.TimerThread@11216cb TIMED_WAITING
         java.lang.Object.wait(Native Method)
         weblogic.timers.internal.TimerThread$Thread.run(TimerThread.java:267)
    "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@10ad3e0 WAITING
         java.lang.Object.wait(Object.java:485)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:157)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    "Thread-7" waiting for lock java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@10ad595 WAITING
         sun.misc.Unsafe.park(Native Method)
         java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
         java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
         java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)
         weblogic.utils.concurrent.JDK15ConcurrentBlockingQueue.take(JDK15ConcurrentBlockingQueue.java:89)
         weblogic.store.internal.PersistentStoreImpl.getOutstandingWork(PersistentStoreImpl.java:567)
         weblogic.store.internal.PersistentStoreImpl.run(PersistentStoreImpl.java:615)
         weblogic.store.internal.PersistentStoreImpl$2.run(PersistentStoreImpl.java:383)
    "ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "VDE Transaction Processor Thread" waiting for lock [email protected] WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         com.octetstring.vde.backend.standard.TransactionProcessor.waitChange(TransactionProcessor.java:367)
         com.octetstring.vde.backend.standard.TransactionProcessor.run(TransactionProcessor.java:212)
    "VDE Replication Thread" waiting for lock com.octetstring.vde.replication.Replication@10ad426 TIMED_WAITING
         com.octetstring.vde.replication.Replication.wait30sec(Replication.java:384)
         com.octetstring.vde.replication.Replication.run(Replication.java:350)
    "DoSManager" TIMED_WAITING
         java.lang.Thread.sleep(Native Method)
         com.octetstring.vde.DoSManager.run(DoSManager.java:433)
    "Thread-11" waiting for lock java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@4f576f WAITING
         sun.misc.Unsafe.park(Native Method)
    DUMP 3/3
    "Main Thread" waiting for lock weblogic.t3.srvr.T3Srvr@f14693 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:811)
         weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:459)
         weblogic.Server.main(Server.java:67)
    "(Signal Handler)" RUNNABLE
    null
    "(OC Main Thread)" RUNNABLE
    null
    "(Code Generation Thread 1)" RUNNABLE
    null
    "(Code Optimization Thread 1)" RUNNABLE
    null
    "(VM Periodic Task)" RUNNABLE
    null
    "(Attach Listener)" RUNNABLE
    null
    "Finalizer" RUNNABLE
         jrockit.memory.Finalizer.waitForFinalizees(Native Method)
         jrockit.memory.Finalizer.access$700(Finalizer.java:12)
         jrockit.memory.Finalizer$4.run(Finalizer.java:189)
         java.lang.Thread.run(Thread.java:619)
    "Reference Handler" RUNNABLE
         java.lang.ref.Reference.waitForActivatedQueue(Native Method)
         java.lang.ref.Reference.access$100(Reference.java:11)
         java.lang.ref.Reference$ReferenceHandler.run(Reference.java:82)
    "(Sensor Event Thread)" RUNNABLE
    null
    "VM JFR Buffer Thread" RUNNABLE native
    null
    "Timer-0" waiting for lock java.util.TaskQueue@e259a7 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         java.util.TimerThread.mainLoop(Timer.java:483)
         java.util.TimerThread.run(Timer.java:462)
    "Timer-1" waiting for lock java.util.TaskQueue@10ad080 TIMED_WAITING
         java.lang.Object.wait(Native Method)
         java.util.TimerThread.mainLoop(Timer.java:509)
         java.util.TimerThread.run(Timer.java:462)
    "[STANDBY] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@10ad1bd WAITING
         java.lang.Object.wait(Object.java:485)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:157)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    "weblogic.time.TimeEventGenerator" waiting for lock weblogic.time.common.internal.TimeTable@10aff60 TIMED_WAITING
         weblogic.time.common.internal.TimeTable.snooze(TimeTable.java:286)
         weblogic.time.common.internal.TimeEventGenerator.run(TimeEventGenerator.java:117)
         java.lang.Thread.run(Thread.java:619)
    "weblogic.timers.TimerThread" waiting for lock weblogic.timers.internal.TimerThread@11216cb TIMED_WAITING
         java.lang.Object.wait(Native Method)
         weblogic.timers.internal.TimerThread$Thread.run(TimerThread.java:267)
    "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@10ad3e0 WAITING
         java.lang.Object.wait(Object.java:485)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:157)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    "Thread-7" waiting for lock java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@10ad595 WAITING
         sun.misc.Unsafe.park(Native Method)
         java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
         java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
         java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)
         weblogic.utils.concurrent.JDK15ConcurrentBlockingQueue.take(JDK15ConcurrentBlockingQueue.java:89)
         weblogic.store.internal.PersistentStoreImpl.getOutstandingWork(PersistentStoreImpl.java:567)
         weblogic.store.internal.PersistentStoreImpl.run(PersistentStoreImpl.java:615)
         weblogic.store.internal.PersistentStoreImpl$2.run(PersistentStoreImpl.java:383)
    "ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "VDE Transaction Processor Thread" waiting for lock [email protected] WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         com.octetstring.vde.backend.standard.TransactionProcessor.waitChange(TransactionProcessor.java:367)
         com.octetstring.vde.backend.standard.TransactionProcessor.run(TransactionProcessor.java:212)
    "VDE Replication Thread" waiting for lock com.octetstring.vde.replication.Replication@10ad426 TIMED_WAITING
         com.octetstring.vde.replication.Replication.wait30sec(Replication.java:384)
         com.octetstring.vde.replication.Replication.run(Replication.java:350)
    "DoSManager" TIMED_WAITING
         java.lang.Thread.sleep(Native Method)
         com.octetstring.vde.DoSManager.run(DoSManager.java:433)
    "Thread-11" waiting for lock java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@4f576f WAITING
         sun.misc.Unsafe.park(Native Method)

  • Basic question on multiple views

    Just getting started in the world of cocoa, objective-c, etc. and have basically started by building a very basic app and slowly adding things to that app (however arbitrary and seemingly useless) to teach myself new things.
    I initially started with a simple app that loaded a single view that had a couple of buttons (one plus, one minus) and a "total" label. All that happened was the total incremented/decremented by 1 based on the button you selected.
    I want to try and hit on the idea of multiple views, so I've modified the code to only allow the user to modify the total within a range of 1-5 and have added a "Go To Page" button.
    What I'd like to do now is set it up so that the user generates a number (1-5) and then selects Go To Page at which point I load a page (probably just with a label to confirm which page it is, i.e. "First Page", "Fourth Page", etc.).
    I guess where I'm running into a mental block is how I go about changing views from within a view controller (where my response to my "Go To Page" button is).
    I understand I could build all of my views (basically just my navigation view controller and one other "page controller" that I will create multiple instances of and set different label values on) in the App Delegate, but how would I go from my response method inside one of the controllers to my top level Delgate.
    Again, I know this is basic stuff, but I'm learning and have had some difficulty finding answers to some specific things.
    Thanks.

    Hi jd & welcome to the forums
    You may want to visit iTunes/iTunes U and download some of the iPhone developer videos...good stuff that will help you get a handle on using the touch screen and smaller space, etc.
    Also, check the Apple iPhone Human Interface Guidelines...
    The point I'm trying to suggest is that your 'block' about how to design and proceed may actually be your inner geek trying to tell you this is a new environment and you perhaps need a bit more time to come to grips with what is actually a new way of presenting data, etc.
    'pages' are so.... yesterday

  • Spring framework with JDeveloper

    Hi,
    I'm developing to an application using JDeveloper. I need to use Spring framework, somebody has used it, integrating it with JDeveloper ?
    Thanks

    Hello,
    How do you use ADF with Spring in a JSF application? I am trying and it seems like my ADF filter and JSf-Spring integration filter conflict with each other. Here the stanzas from my web.xml file. Ther ADF Internal listener fails with a null ptr or a java.lang.ArrayIndexOutOfBoundsException when I attempt to access my JSF page (no ADF tags are in this page but it does use Spring/JSF managed beans). If I remove the ADF filter and retry everything works???
    <!-- Runtime exception -->
    java.lang.ArrayIndexOutOfBoundsException: 3
         javax.faces.component.UICommand.restoreState(UICommand.java:268)
         javax.faces.component.html.HtmlCommandButton.restoreState(HtmlCommandButton.java:826)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:999)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1011)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1011)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1011)
         oracle.adfinternal.view.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:249)
         com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:246)
         oracle.adfinternal.view.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:192)
         com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:264)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:151)
         oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:123)
         de.mindmatters.faces.spring.RequestHandledFilter.doFilter(RequestHandledFilter.java:117)
    <!-- Faces Filter -->
    <filter>
    <filter-name>faces</filter-name>
    <filter-class>oracle.adfinternal.view.faces.webapp.FacesFilter</filter-class>
    <init-param>
    <param-name>faces-servlet-url-pattern</param-name>
    <param-value>/faces/*</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter>
    <filter-name>RequestHandled</filter-name>
    <filter-class>de.mindmatters.faces.spring.RequestHandledFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>RequestHandled</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <!-- Faces Filter Mappings -->
    <filter-mapping>
    <filter-name>faces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>faces</servlet-name>
    </filter-mapping>
    <listener>
         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

  • How can I have multiple views for my question

    When I posed a question on a forum, it indicates that I have one (1) view. How can I have multiple views on the same question?

    I believe the number you are looking at is the number of times a particular thread has been looked at (viewed) by different users. When someone else opens your question, the view count should increase.
    Justin

  • Passing one parameter to multiple views

    Is this possible?  I would like to pass one parameter, a date field, to multiple views.  I cannot use it in the record selection, because my views do a mathematical computation which returns a single value, but I only want to select the data for a single day. 
    The problem is that there are several views and I do not want to have to enter the date parameter a dozen times.

    Try to use add command and write the query like this
    select * from view where datefield={?date}
    also create another add command for the other view
    select * from view2 where datefield2={?date}
    for all the queries create the same parameter with the name {?date}
    Regards,
    Raghavendra

  • Can Numbers Display Multiple Views of the Same Table

    Hi,
    Excel and Appleworks both have a pull down tab on the vertical bar allowing multiple views into the same spreadsheet (table). Can Numbers do this?
    I have a set of calculations at the top of a spreadsheet that are based on years and years worth of data under the calculations (same column). I add data for each new event (the rows) and watch the calculations at the top of the data. Easy to do in Excel or Appleworks, but, I can't figure out how to do this in Numbers.
    Example:
    Spot1 Spot2
    Total 15 36
    Avg 5 12
    Jan 09 5 10
    Feb 09 6 20
    Mar 09 4 6
    Apr 09
    So... does Numbers allow the view "split" or multiple views that Excel and Appleworks allow?
    Thanks!
    Tom

    Question asked and responded several times:
    feature unavailable.
    For multiple views of a table there is an easy workaround as we may build a table whose every cells grab their contents from the 'master' one.
    _Go to "Provide Numbers Feedback" in the "Numbers" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'10
    Yvan KOENIG (VALLAURIS, France) mardi 1 septembre 2009 21:56:42

  • I have been working on a book and have 418 photos already in my book.  All of a sudden I cannot access the book format to see the multiple view, spread view, or single view.  I can no longer see my book although I still see the collection with 418 photos

    I have been working on a book and have 418 photos already in my book.  All of a sudden I cannot access the book module and clicking on the multiple view, spread view, or single view does not take me back to the book I have been working on.  I can no longer see my book although I still see the collection with 418 photos under collections.  What I do see is a blank template for a new book and I can't find the unfinished book I started with 418 photos.  It is like the new empty template is somehow covering it up.  How do I get back to the book I have been working on?

    Is it possible you mistakenly clicked on a [Clear Layout] button?
    But a great hint is- Always click on the [Create a Saved Book] button, early in your new book design.
    Then you have a permanent link to the book in the Collections panel. (In addition to the standard collection of your selected images)
    Note: a Book Collection shows an icon that looks like a book.
    Every time you come back to edit the book, open the Book Module by clicking on the white arrow that appears on the end of your Book Collection title. (The title as saved)
    Re-opening a book without using the "Saved Book" option can have unpredictable results.
    A "Book" Collection is like a "Smart Collection" because anything you do to the book design, change pages, change images, etc,  is automatically updated in the Saved Book collection.

  • How to handle the multiple line items in the Inbound idoc FM

    Hi ,
    Can any body give me how to handle the multiple line item in the idoc when we reprocessing it from workitem....
    Thanks in Advance,,,,
    Regards,
    Bharani

    Hi ,
    Can any body give me how to handle the multiple line item in the idoc when we reprocessing it from workitem....
    Thanks in Advance,,,,
    Regards,
    Bharani

  • Use of DISTINCT for CLOB through Java(Spring framework)

    Hello everyBody,
    How to use DISTINCT for a select query containing a column of type CLOB. I use to_char(column name) for that column name. It works fine on oracle command prompt , but not working thr my JAVA API(jdk 1.3) . It throws an exception saying InvalidFormat. I am using spring framework in Java. Is anyBody have solution to this? I am using oracle 9i. Please reply soon. Thankx in advance.

    I do realise the fact that you are using Spring probably indicates that you lack heavy duty SQL skills. But you really should try to learn to tune your queries properly.
    Cheers, APC

  • Table based on multiple views

    Hello all,
    Is it possible to populate a table with data from multiple view objects that are linked with a view link?
    The reason i want to do this is because if you update the reference ID in the master the detail automatically follows.
    Now, I know i can create a view object and then include the detail info using expert mode, but this way the detail info doesn't change if i change the reference ID.
    To conclude, a brief explanation of what i'm trying to achieve.
    I have a table with adresses. Having a reference ID to the ZIP table.
    Because the user doesn't know all the ID's by heart i show the name of the city and the user can change them by clicking on a lov button. This all works fine, BUT, when the city is changed the old one stays visible for the user. Although committing, changes the city to the new one.
    Regard
    Johan

    Keeping in mind what Dave just said, you would be better off creating your GTT once. Then reusing it over and over again. Using GTTs is advantagous in that its contents are visible only at the session level, and depending on how the GTT was created it will either automatically truncate the table on commit (the default if not otherwise specfied) or truncate the table at the end of your session regardless of commits.

  • Controlling Post Order of Multiple View Objects

    Hi ,
    Here is the scenario:
    I have a use case of "Creating an Abstract"
    Steps:
    step1 ) (Page 1) Author presents the details of the abstract (Details goes to 2 tables ABSTRACT & ABSTRACT_CONTENT tables). For the 2 tables i have 2 entities. I use a view here called CreateAbstractView from both the tables( here i control the post order of the entities ....code from jdeveloper 11g guide)
    Step 2)(Page 2) Author presents details of Additional Authors. I use the view (*AdditionalAuthorDetailsView*) (Details goes to 2 tables AUTHOR & ABSTRACT). Here in the abstract table i have a parent key(parent abstract id) So all the additional authors has a record in Abstract table with parent_abstract_id from step1. ABSTRACT table also has a foreign key (author_id) .Here also i control the post order of the 2 entity object using the code from jdeveloper 11g guide.
    I also have a link from CreateAbstractView to AdditionalAuthorDetailsView (abstract_id in Abstract table from CreateAbstractView to parent_abstract_id in Abstract table from AdditionalAuthorDetailsView )
    If i have a commit on both the pages , i don't see a problem.
    But i want to have a commit process at the end so that the user can review the information. So when i try to add a commit process at the end , i get a exception (Parent Key not found exception) which i came to understand that commit from AdditionalAuthorDetailsView is happening first which is trying to insert a record into ABSTRACT table and cannot find the parent_abstract_id.
    How do i control the post order for multiple view objects in such scenarios?

    Hi!
    Please take a look at the dev guide. It comes down to controlling the posting order on entity level.
    http://download-uk.oracle.com/docs/html/B25947_01/bcadveo007.htm#CEGJAFCF
    Sascha

  • External Table which can handle appending multiple csv files dynamic

    I need an external table which can handle appending multiple csv files' values.
    But the problem I am having is : the number of csv files are not fixed.
    I can have between 2 to 6-7 files with the suffix as current_date. Lets say it will be like my_file1_aug_08_1.csv, my_file1_aug_08_2.csv, my_file1_aug_08_3.csv etc. and so on.
    I can do it by following as hardcoding if I know the number of files, but unfortunately the number is not fixed and need to something dynamically to inject with a wildcard search of file pattern.
    CREATE TABLE my_et_tbl
      my_field1 varchar2(4000),
      my_field2 varchar2(4000)
    ORGANIZATION EXTERNAL
      (  TYPE ORACLE_LOADER
         DEFAULT DIRECTORY my_et_dir
         ACCESS PARAMETERS
           ( RECORDS DELIMITED BY NEWLINE
            FIELDS TERMINATED BY ','
            MISSING FIELD VALUES ARE NULL  )
         LOCATION (UTL_DIR:'my_file2_5_aug_08.csv','my_file2_5_aug_08.csv')
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    NOMONITORING;Please advice me with your ideas. thanks.
    Joshua..

    Well, you could do it dynamically by constructing location value:
    SQL> CREATE TABLE emp_load
      2      (
      3       employee_number      CHAR(5),
      4       employee_dob         CHAR(20),
      5       employee_last_name   CHAR(20),
      6       employee_first_name  CHAR(15),
      7       employee_middle_name CHAR(15),
      8       employee_hire_date   DATE
      9      )
    10    ORGANIZATION EXTERNAL
    11      (
    12       TYPE ORACLE_LOADER
    13       DEFAULT DIRECTORY tmp
    14       ACCESS PARAMETERS
    15         (
    16          RECORDS DELIMITED BY NEWLINE
    17          FIELDS (
    18                  employee_number      CHAR(2),
    19                  employee_dob         CHAR(20),
    20                  employee_last_name   CHAR(18),
    21                  employee_first_name  CHAR(11),
    22                  employee_middle_name CHAR(11),
    23                  employee_hire_date   CHAR(10) date_format DATE mask "mm/dd/yyyy"
    24                 )
    25         )
    26       LOCATION ('info*.dat')
    27      )
    28  /
    Table created.
    SQL> select * from emp_load;
    select * from emp_load
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    SQL> set serveroutput on
    SQL> declare
      2      v_exists      boolean;
      3      v_file_length number;
      4      v_blocksize   number;
      5      v_stmt        varchar2(1000) := 'alter table emp_load location(';
      6      i             number := 1;
      7  begin
      8      loop
      9        utl_file.fgetattr(
    10                          'TMP',
    11                          'info' || i || '.dat',
    12                          v_exists,
    13                          v_file_length,
    14                          v_blocksize
    15                         );
    16        exit when not v_exists;
    17        v_stmt := v_stmt || '''info' || i || '.dat'',';
    18        i := i + 1;
    19      end loop;
    20      v_stmt := rtrim(v_stmt,',') || ')';
    21      dbms_output.put_line(v_stmt);
    22      execute immediate v_stmt;
    23  end;
    24  /
    alter table emp_load location('info1.dat','info2.dat')
    PL/SQL procedure successfully completed.
    SQL> select * from emp_load;
    EMPLO EMPLOYEE_DOB         EMPLOYEE_LAST_NAME   EMPLOYEE_FIRST_ EMPLOYEE_MIDDLE
    EMPLOYEE_
    56    november, 15, 1980   baker                mary            alice     0
    01-SEP-04
    87    december, 20, 1970   roper                lisa            marie     0
    01-JAN-99
    SQL> SY.
    P.S. Keep in mind that changing location will affect all sessions referencing external table.

Maybe you are looking for

  • How to restore iTunes library after operating system changed?

    How to restore iTune library after operating system changed on the laptop? The syn is not working because it doesn't recognize the computer.

  • My install disc doesn't work

    I just got the Quad G5 and the install discs to install bundled software doesn't work. I put it in and it says that the packaged is broken and can't install. I bought the computer from Macmall should they give me a new install disc or should i contac

  • How to import an assignment block into a word document

    hi all,           how to import an assignment block into a word document ,actually we an option called import to Excel,         but i don't know make it for Word document..... Regards Sunil Kumar SA

  • How's enlightenment 17 on Arch?

    Ok, I've reinstalled Arch about 5 times in the past month for numerous reasons, and i'm getting pretty sick of it. I now have a clean Arch install with X set up, but no DE/WM yet. I've tried KDEmod, but didn't really like the Windowsy-feel of it, Xfc

  • Func variable

    Anyone nows what the Func variable does ? Thanks in advance