Hi could any one tell me if the proxy configuration is a must for file to

hi could any one tell me if the proxy configuration is a must for file to  mail scenario

Not needed at all.
Proxy are used when integrating with a SAP system and in the case of a file to mail scenario all you need is a sendr file adapter and receivr mail adapter and a mail server in the same netwrok as you XI server.
Regards
Bhavesh

Similar Messages

  • Could any one tell me that How can i create the service User ie j2ee SID

    hi all,
    In the implementation of SPNego Authentication schem in my portal system.
    i want to create the service user ie .j2ee-<SID>.
    <b>could any one tell me that How can i create the service User ie j2ee-<SID> in my visual administrator??</b>.
    any help will be highly Appretiated .
    thanks and regards.
    vinit soni.

    Vineet,
    the user management tab opens in Read Only mode - thats why the button is coming as disabled. There is a button for switching into Edit mode - it looks like a pen / pencil on the top bar. Click on that - your "Create User" button would be enabled.
    Also regarding creation of Service User via code level you can see <a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=1057074">THIS</a> thread. And <a href="http://HERE">http://help.sap.com/saphelp_nw04/helpdata/en/f9/e3162ec55f4df6922d161f3785012a/frameset.htm</a>HERE[/url] is the SAP Help documentation on required permission settings.
    Regards,
    Shubhadip
    Message was edited by:
            Shubhadip Ghosh
    Message was edited by:
            Shubhadip Ghosh

  • Could any one tell me what is the difference between swfloader and module loader?

    Hi  All,
                          Could any one tell me what is the difference between SWFLoader and Module Loader in Flex3 in detail?

    Hi,
    ModuleLoader is a kind of strange API that is really just intended to look like SwfLoader for modules that contain a single visual component, and hides most of the module loading infrastructure, which is all about class factories.
    What I mean by "only loaded once" is that if you have several places in the code that call the ModuleManager.getModule("url").load() call, it will only ever get loaded over the wire and interpreted once, subsequent "loads" will just re-dispatch pseudo-load events to the new client.  In other words, the class factory is a singleton for a given url. Unloading is a totally different story.  As you note, not everything is truly unloadable, because there may be lots of references to stuff in
    the module that will keep it alive and un-GC'ed.
    I suggest playing with the low-level API so that you understand the backing implementation, and this should help you understand the limits of ModuleLoader.
    The main difference between modules and applications is that modules have lower overhead, and they only ever get loaded once, no matter how many times you load them. If you're using the ModuleLoader API, keep in mind that you're losing about half the functionality of the module system.  I will assume that you are, because otherwise it would be obvious where to expose methods.  You might want to play around with the lower level ModuleManager API just to get a hang of what's going on - ModuleLoader is a pretty thin veneer over the lower API.                
                    Basically, what you want to do is to have your module implement an interface, say IModuleWhatever.
    Also try and refer to this link which was previously discussed in this forum..
    http://forums.adobe.com/message/74404
    Thanks,
    Bhasker

  • Could any one tell me how to do the left outer join or right outer join?

    Could any one  tell me how to do the left outer join or right outer join in Webi Rich Client? thanks.

    we can do it in two ways
    1.  In  web intelligence level  on the query panel click the sql query and write the statement what ever u want there by modifying the existing statement.
    2.  In universe level select the fields in the two tables that you want to make join and create the join between two tables directly by joining field in table 1 to the field in the table 2 by drawing a line and double click on the line to view the join properties,then on join properties if we check the table 1 outer then it is left outer join if we check on table 2 outer then it will be the right outer join.after exporting the universe to the central sever we are now ready to use in web intelligence with out being changed anything in the sql query.
    endorse me if it is useful.
    thanks & regards
    Sreekanth.

  • Hi , Could any one tell me how to set icloud on iphone simulator (is it possible ?)

    Hi Developers, Could any one tell me how to set icloud on iphone simulator (is it possible ?).

    This is the iPhone user-to-user tech support forum.  You shoudl post this question in the iPhone developers forums.

  • I just did update of software and i lost all of my picture and songs from itune which is un usual .could any one tell me how could i get iphoto working again?

    i just did update of software and i lost all of my picture and songs from itune which is un usual .could any one tell me how could i get iphoto working again?

    What did you update with what?  Are we talking a computer?  A device like an iPhone?  You updated iTunes?  You updated the operating system?
    If you updated the iOS on a device, I believe it warns you it will erase the device and you should make a backup first.  Restore from the backup.
    iPhoto is an application pretty much separate from iTunes.  There is an iPhoto forum if you are having problems with that application.

  • Could any one provide me with the links of file to file scenario using BPM

    Could any one provide me with the links of file to file scenario using BPM

    Hi,
    omit RFC part
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Hi could any one Help me !!! I have No SOund .MTS file in CC Premiere 2014

    Hi could any one Help me !!! I have No SOund .MTS file in CC Premiere 2014

    Rename the top folder your footage is in and import again.

  • Can any one tell me step by step guide of Guided procedure for adobe forms.

    Hi,
    Can any one tell me step by step guide of Guided procedure for adobe forms.Can any one give me docs of that if possible.
    My personal id is..
    [email protected]
    Regards,
    Gurprit Bhatia
    Message was edited by:
            GURPRIT BHATIA
    Message was edited by:
            GURPRIT BHATIA

    hi
    Refer these docs
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm">Configuration of GP for Adobe Forms</a>
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e99cff7a-0601-0010-dea3-e8166c7a7f20">SAP CAF Application</a>
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9ea34c2-0701-0010-e2a2-d8e9cd6d85dc">Configuration for GP</a>
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_gp/~form/handler">Limitations and known issues for Adobe forms in GP</a>
    \<a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee8a84ea-0c01-0010-5691-accfb0a172ed">Creating a Form-based Process(Adobe)</a>
    Thanks & Regards
    Harsimran Kaur

  • Can any one tell what is the problem in this code?

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.geom.*;
    import java.util.*;
    public class AppletTest2 extends JApplet implements ActionListener,MouseMotionListener,WindowListener{
    JFrame fr = new JFrame("Visual Tool -- Work Flow Editor");
         JPanel panel1 = new JPanel();
         JPanel panel2 = new JPanel();
         JButton sButton = new JButton("Source");
         JButton rButton = new JButton("Redirection");
         JButton dButton = new JButton("Destination");
         JButton connect = new JButton("Connect");
         BasicStroke stroke = new BasicStroke(2.0f);
         int flag = 1 ;
         Vector lines = new Vector();
         JButton sBut,rBut,dBut;
    int x1 = 0 ;
         int y1 = 0 ;
         int x2 = 0 ;
         int y2 = 0;
         int x3 = 0;
         int y3 = 0;
         int i=0;
         int j=0;
         int k=0;
         int l = 100;
    int b = 50;
    public void init(){
              /*********Frame ******************/
    fr.getContentPane().setLayout(new BorderLayout());
         fr.setSize(700,500);
              fr.getContentPane().add(panel1,BorderLayout.CENTER);
              fr.getContentPane().add(panel2,BorderLayout.SOUTH);
              fr.addWindowListener(this);
              /*****************PANEL 1*********************/
              panel1.setLayout(null);
    panel1.setBounds(new Rectangle(0,0,400,400));
              panel1.setBackground(new Color(105,105,205));
    /************************PANEL 2 *************/
              panel2.setLayout(new FlowLayout());
              panel2.setBackground(new Color(105,205,159));
              panel2.add(sButton);
              panel2.add(rButton);
              panel2.add(dButton);
              panel2.add(connect);
              connect.setToolTipText("Use this button after selecting From and To position to connect");
              /***************************LISTENER********************/
    sButton.addActionListener(this);
              rButton.addActionListener(this);
              dButton.addActionListener(this);
              connect.addActionListener(this);
              fr.setVisible(true);     
              fr.setResizable(false);
         } // init clse
    /************************** START METHOD **********************************************/
              public void start(){                                 
                   System.out.println("inside start");
                   paint(panel1.getGraphics());
    /*******************************APPLET METHODS **************************************************/
              public void stop(){}
              public void destroy(){}
    /******************************MOUSE MOTION LISTENERS METHOD*************************************/
              public void mouseMoved(MouseEvent e){System.out.println("moved");}
              public void mouseDragged(MouseEvent e){System.out.println("dragged");}
    /***************************************ACTION EVENT IMPLEMENTAION *******************************/
         public void actionPerformed(ActionEvent e){
              if (e.getSource().equals(sButton)){          
              sourceObject("Source Object");          
              else if (e.getSource().equals(rButton)){          
              redirectionObject("Redirection");
              i = i+1;
              else if (e.getSource().equals(dButton)){
              destinationObject("Destination");
                   j= j+1;
              else if (e.getSource().equals(connect)){
                   System.out.println("am inside connect");                
                   paint(panel1.getGraphics());               
    else if(e.getSource().equals(sBut)){
                   System.out.println("am s button");                
                   x1 = sBut.getX() + l;
                   y1 = sBut.getY() + (b/2);
              else if(e.getSource().equals(rBut)){
                   System.out.println("am r button");               
                   x2 = rBut.getX() ;
                   y2 = rBut.getY()+ b/2;
                   System.out.println("x2 : " + x2 + "y2 :" +y2 );
              else if(e.getSource().equals(dBut)){
                   System.out.println("am d button");                
                   x3 = dBut.getX();
    y3 = dBut.getY()+ b/2;
    } // action close
    /**********************Main **********************************/     
         public static void main(String args[]){
         JApplet at = new AppletTest2();
              at.init();
              at.start();
    /********************my methods starts here *******************/
         public void sourceObject(String name){     
    sBut = new JButton(name);
         panel1.add(sBut);
         sBut.setBounds(new Rectangle(20,208,l,b));     
         sBut.addActionListener(this);
    System.out.println("am inside the source object") ;
         public void redirectionObject(String name){     
         rBut = new JButton(name);
         panel1.add(rBut);
         rBut.setBounds(new Rectangle(290,208,l,b));     
    rBut.addActionListener(this);
    System.out.println("am inside the redirection :" + j) ;
    public void destinationObject(String name){     
         dBut = new JButton(name);
         panel1.add(dBut);     
    System.out.println("am inside the destination object") ;
    if (j == 0)
                   dBut.setBounds(new Rectangle(566,60,l,b));                    
                   System.out.println("am inside the destination:" + j) ;
                   } else if (j == 2)
                        dBut.setBounds(new Rectangle(566,208,l,b));     
                        System.out.println("am inside the destination :" + j) ;
                   } else if (j == 1)
    dBut.setBounds(new Rectangle(566,350,l,b));     
                        System.out.println("am inside the destination :" + j) ;
    dBut.addActionListener(this);
    /* public void connectObject(Object obj1,Object obj2){
    System.out.println("nothing");
    /************************************* PAINT **************************/
    public void paint(Graphics g){
         System.out.println("inside paint");
         Graphics2D g2 = (Graphics2D) g;
         g2.setStroke(stroke);
    if(flag == 1){
    System.out.println("inside flag");
    int np = lines.size();
                        System.out.println(np);
                             for (int I=0; I < np; I++) {                       
         Rectangle p = (Rectangle)lines.elementAt(I);
                             System.out.println("width" + p.width);
                             g2.setColor(Color.red);
                             g2.drawLine(p.x,p.y,p.width,p.height);
                             System.out.println(p.x +"" +""+ p.y + ""+ ""+ p.width+ "" + ""+ p.height);
    flag = -1;
    }else if(flag == -1){
         if(x1 != 0 && y1 != 0 && x2 != 0 && y2 != 0 ){
    // Graphics2D g2 = (Graphics2D) g;
         // g2.setStroke(stroke);
    g2.setColor(Color.red);
         g2.drawLine(x1,y1,x2,y2);
         lines.addElement(new Rectangle(x1,y1,x2,y2));     
         x1 = 0 ;y1 = 0 ;
         x2 = 0 ;y2 = 0 ;
    //     g2.drawLine(100,100,200,200);
    else if (x2 != 0 && y2 != 0 && x3 != 0 && y3 != 0 )
              // Graphics2D g2 = (Graphics2D) g;
                   // g2.setStroke(stroke);
              g2.setColor(Color.green);
                        g2.drawLine(x2,y2,x3,y3);
                        lines.addElement(new Rectangle(x2,y2,x3,y3));
                        x2 = 0; y2 = 0 ;
                        x3 = 0 ; y3 = 0 ;                    
    else if (x1 != 0 && y1 != 0 && x3 != 0 && y3 != 0)
                   //     Graphics2D g2 = (Graphics2D) g;
                   // g2.setStroke(stroke);
                   g2.setColor(Color.red);
                   g2.drawLine(x1,y1,x3,y3);
                        lines.addElement(new Rectangle(x1,y1,x3,y3));                              
                        x1 = 0; y1 = 0 ;
                        x3 = 0 ; y3 = 0 ;                    
    // repaint();
    /********************************WINDOW LISTENER IMPLEMENTATION *****************************/
    public void windowActivated(WindowEvent we) { 
              flag = 1;
              paint(panel1.getGraphics());
    System.out.println("windowActivated -- event 1");
         //start();               
         public void windowClosed(WindowEvent we) {
                                                                System.out.println("windowClosed -- 2");
         public void windowClosing(WindowEvent we){
                                                                System.out.println("windowClosing -- 3");
    public void windowDeactivated(WindowEvent we) {
                                                                     System.out.println("windowDeactivated -- 4");
    public void windowDeiconified(WindowEvent we) {
                                                                     flag = 1;
                                                                     System.out.println("windowDeiconified -- 5");          
                                                                     paint(panel1.getGraphics());           
    public void windowIconified(WindowEvent we) {           
                                                           System.out.println("windowIconified -- 6");
                                                           //paint(panel1.getGraphics());
    public void windowOpened(WindowEvent we) {             
                                                      //     flag = 1;
                                                      //     paint(panel1.getGraphics());
                                                           System.out.println("windowopened -- 7");     
    The problem am facing here is that when i minimize the frame and maximize , my old lines are getting disappared.
    For avoiding that i am storing the old coordinates and
    try to redraw , when maximize.
    but the lines are coming for flash of second and disappearing once again ?
    can any one help?
    thanks all

    Very interestingly the same code is repainting in
    Linux SUSE,jdk1.3.
    but not in WINNT , jdk 1.3
    Any reason ?
    Is the swing 100 % platform independenet ?????
    Does swing also uses native thread ???

  • Could any one tell me nano sim can be cut from Normal sim like micro sim. I heard new iPhone uses nano sim

    Hi All,
             My friend told me he will get unlocked new iPhone on first week of launch .He is in Canada and i am in India. I heard new iPhone features nano sim. It is possible to cut nano sim from normal sim like we do for micro sim. iPhone releases in India only in November so if we cant get nano sim  from normal sim , then i have to postponed my new iPhone purchase

    No one here knows Apple's plans regarding any new iPhone & what type of sim that phone may or may not use. As to whether a Mico sim can be cut down to Nano size, the answer is yes. I suspect cutters will appear on the market shortly after such is released.
    The real question you should be asking is why, if you live India, are you looking to purchase an iPhone anywhere else other than India. iPhone warranty & support is country specific, only valid in country of original purchase. You purchase an iPhone in Canada, you prepared to physically bring the phone back to Canada for ALL warranty & support issues? You can't mail it back to Apple. Makes no sense to me.

  • Can any one tell me whats the problem with controller

    package com.uk.nhs.training.controller;
    import java.beans.PropertyEditorSupport;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.List;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.swing.text.html.HTMLDocument;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.springframework.util.StringUtils;
    import org.springframework.validation.BindException;
    import org.springframework.validation.Errors;
    import org.springframework.validation.ValidationUtils;
    import org.springframework.web.bind.ServletRequestDataBinder;
    import org.springframework.web.servlet.ModelAndView;
    import org.springframework.web.servlet.mvc.AbstractWizardFormController;
    import org.springframework.web.servlet.view.RedirectView;
    import com.uk.nhs.training.contractUtility.ContractHtmlReader;
    import com.uk.nhs.training.data.Booking;
    import com.uk.nhs.training.data.BookingDetails;
    import com.uk.nhs.training.data.Client;
    import com.uk.nhs.training.data.Course;
    import com.uk.nhs.training.data.Trainer;
    import com.uk.nhs.training.data.Venue;
    import com.uk.nhs.training.service.BookingService;
    import com.uk.nhs.training.service.ClientService;
    import com.uk.nhs.training.service.CourseService;
    import com.uk.nhs.training.service.TrainersService;
    import com.uk.nhs.training.service.VenueService;
    public class BookingController extends AbstractWizardFormController {
         protected final Log logger = LogFactory.getLog(getClass());
         private BookingService bookingFacade;
         private CourseService courseFacade;
         private VenueService venueFacade;
         private ClientService clientFacade;
         private TrainersService trainersFacade;
         public static final String STAFF = "Staff";
         public static final String CLIENT_BASED = "Client-Based";
         private SimpleDateFormat dateFormat = new SimpleDateFormat("dd MMMMMMMM yyyy");
         public BookingController() {
              setPages(new String[] { "booking", "book1", "book2", "book3", "book4",
                        "book5", "book6", "book7" });
              setCommandName("booking");
              setAllowDirtyForward(true);
         protected Object formBackingObject(HttpServletRequest request)
                   throws Exception {
              Booking booking = new Booking();
              return booking;
         protected ModelAndView processFinish(HttpServletRequest request,
                   HttpServletResponse response, Object command, BindException errors) {
              try {
                   Booking booking = (Booking) command;
                   setBookingFinalDetails(booking);
                   logger.info("Boooking Form data sent successfully");
              } catch (Exception e) {
                   e.getClass();
                   e.printStackTrace();
              return new ModelAndView("bookSuccess");
         @Override
         protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception {
              dateFormat.setLenient(false);
              binder.registerCustomEditor(java.sql.Date.class, null, new SqlDateEditor(true));
         private void setBookingFinalDetails(Booking booking) throws Exception {
              booking.setCreateDate(new java.sql.Date(System.currentTimeMillis()));
              booking.setStatus("In Progress");
              bookingFacade.saveBooking(booking);
         protected ModelAndView handleInvalidSubmit(HttpServletRequest request,
                   HttpServletResponse response) throws Exception {
              return new ModelAndView("bookInvalidSubmit");
         @Override
         protected ModelAndView processCancel(HttpServletRequest request,
                   HttpServletResponse response, Object command, BindException errors)
                   throws Exception {
              return new ModelAndView(new RedirectView("welcome.htm"));
         @Override
         protected void onBindAndValidate(HttpServletRequest request,
                   Object command, BindException errors, int page) throws Exception {
              Booking booking = (Booking) command;
              System.out.println(" PAGE : " + page);
              try {
                   switch (page) {
                   case 0:
                        if (request.getParameter("_target1") != null) {
                             ValidationUtils.rejectIfEmptyOrWhitespace(errors,
                                       "bookingType", "required.bookingType",
                                       "Booking type is required");
                             String bookingType = request.getParameter("bookingType");
                             booking.setBookingType(bookingType);
                             setInitialBookingDetails(booking, errors);
                        break;
                   case 1:
                        if (request.getParameter("_target2") != null) {
                             if (booking.getBookingType().equals(STAFF)) {
                                  booking.setClient(null);
                             if (booking.getBookingType().equals(CLIENT_BASED)) {
                                  validateClient(booking, errors);
                                  if (errors.getErrorCount() == 0) {
                                       Client c = (Client) clientFacade
                                                 .loadClientById(booking.getClient()
                                                           .getClientId());
                                       booking.setClient(c);
                             int theBookingDetailsLength = Integer.parseInt(request
                                       .getParameter("qtyBox"));
                             String courseId = request.getParameter("bookingDetails");
                             if (courseId != null && courseId.trim().length() > 0) {
                                  List<BookingDetails> bookDetails = new ArrayList<BookingDetails>();
                                  for (int i = 0; i < theBookingDetailsLength; i++) {
                                       BookingDetails bk = new BookingDetails();
                                       bk.getCourse().setCourseId(courseId);
                                       Course c = (Course) courseFacade
                                                 .getCourseById(courseId);
                                       bk.setCourse(c);
                                       // Add empty trainer..
                                       bk.setTrainer(new Trainer());
                                       bookDetails.add(bk);
                                       booking.setBookingDetails(bookDetails);
                             } else {
                                  validateCourse(booking, errors);
                        break;
                   case 2:
                        if (request.getParameter("_target1") != null) {
                             setInitialBookingDetails(booking, errors);
                        if (request.getParameter("_target3") != null) {
                             int i=0;
                             for (BookingDetails bd : booking.getBookingDetails()) {
                                  if (bd != null && bd.getTrainer() != null) {
                                       String trainerId = bd.getTrainer().getTrainerId();
                                       Trainer trainer = trainersFacade
                                                 .loadTrainersById(trainerId);
                                       if (trainer != null ) {
                                            bd.setTrainer(trainer);
                                            // add empty venue;
                                            bd.setVenue(new Venue());
                                       } else {
                                            validateTrainer(booking, errors);
                                  i++;
                        break;
                   case 3:
                        if (request.getParameter("_target4") != null) {
                             for (BookingDetails bd : booking.getBookingDetails()) {
                                  if (bd != null && bd.getVenue() != null) {
                                       ValidationUtils.rejectIfEmptyOrWhitespace(errors,
                                                 "bookingDetails[0].venue.venueId",
                                                 "required.venue.venueId",
                                                 "Venue Details required.");
                                       String venueId = bd.getVenue().getVenueId();
                                       List<Venue> vList = venueFacade
                                                 .loadVenuesByKeyword(venueId);
                                       if (vList != null && vList.size() > 0) {
                                            bd.setVenue(vList.get(0));
                                  } else {
                                       errors.rejectValue(
                                                 "bookingDetails[0].venue.venueName",
                                                 "required.venue.venueName",
                                                 "Valid Venue Details required.");
                        break;
                   case 4:
                        break;
                   case 5:
                        if (request.getParameter("_target7") != null) {
                             setBookingFinalDetails(booking);
                             ContractHtmlReader reader = new ContractHtmlReader(booking);
                             HTMLDocument doc = reader.getHTMLDoc();
                             reader.writeHTMLCode(doc);
                        break;
                   default:
              } catch (Exception e) {
                   System.err.println("Exception :" + e.getMessage());
              super.onBindAndValidate(request, command, errors, page);
         * Create an empty Booking details for client and course...
         * @param booking
         private void setInitialBookingDetails(Booking booking, BindException errors) {
              if (booking.getBookingType().equals("Client-Based")) {
                   if (booking.getClient() == null
                             || booking.getClient().getClientId() == null) {
                        booking.setClient(new Client());
              } else if (booking.getBookingType().equals("Staff")) {
                   booking.setClient(null);
              if (booking.getBookingDetails() == null) {
                   List<BookingDetails> bkDetailsList = new ArrayList<BookingDetails>();
                   BookingDetails bkDetails = new BookingDetails();
                   bkDetails.setCourse(new Course());
                   bkDetailsList.add(bkDetails);
                   booking.setBookingDetails(bkDetailsList);
              } else {
                   List bkDetList = booking.getBookingDetails();
                   if (bkDetList.size() < 1
                             || (bkDetList.size() > 0 && !((bkDetList.get(0)) instanceof BookingDetails))) {
                        BookingDetails bkDetails = new BookingDetails();
                        bkDetails.setCourse(new Course());
                        bkDetList.add(0, bkDetails);
                        booking.setBookingDetails(bkDetList);
                   } else if (((BookingDetails) bkDetList.get(0)).getCourse() == null
                             || ((BookingDetails) bkDetList.get(0)).getCourse()
                                       .getCourseId() == null) {
                        ((BookingDetails) bkDetList.get(0)).setCourse(new Course());
         @Override
         protected void validatePage(Object command, Errors errors, int page,
                   boolean finish) {
              Booking booking = (Booking) command;
              if (finish) {
                   for (BookingDetails bd : booking.getBookingDetails()) {
                        if (bd != null && bd.getRate() != null) {
                             try {
                                  float rate = bd.getRate();
                             } catch (NumberFormatException e) {
                                  errors.reject("invalid.bookingDetails.rate",
                                            "(try \"250.00\")!");
                             } catch (Exception e) {
                                  errors.rejectValue("bookingDetails.rate",
                                            "error.bookingDetails.rate",
                                            "Enter valid Rate.");
                   booking
                             .setCreateDate(new java.sql.Date(System.currentTimeMillis()));
              super.validatePage(command, errors, page);
         * Validate client
         * @param booking
         * @param err
         private void validateClient(final Booking booking, Errors err) {
              ValidationUtils.rejectIfEmptyOrWhitespace(err, "client.clientId",
                        "required.client.clientId", "Valid client details required.");
         * Validate Course
         * @param booking
         * @param err
         private void validateCourse(final Booking booking, Errors err) {
              if (booking.getBookingDetails() == null
                        || booking.getBookingDetails().size() < 1) {
                   err.rejectValue("bookingDetails", "error.bookingDetails",
                             "Course Booking Details required.");
              } else {
                   List bdList = booking.getBookingDetails();
                   for (int i = 0; i < bdList.size(); i++) {
                        if (!(bdList.get(i) instanceof BookingDetails)) {
                             err.rejectValue("bookingDetails", "error.bookingDetails",
                                       "Valid Course Booking Details required.");
                        } else {
                             BookingDetails bd = (BookingDetails) (bdList.get(i));
                             if (bd.getCourse() == null
                                       || bd.getCourse().getCourseId() == null)
                                  err.rejectValue("bookingDetails",
                                            "error.bookingDetails.course.courseId",
                                            "Valid Course Details required.");
         * Validate Trainer
         * @param booking
         * @param e
         private void validateTrainer(final Booking booking, Errors e) {
              ValidationUtils.rejectIfEmptyOrWhitespace(e,
                        "bookingDetails[0].startDate",
                        "required.bookingDetails[0].startDate",
                        "Valid Booking Details startDate required.");
              ValidationUtils.rejectIfEmptyOrWhitespace(e,
                        "bookingDetails[0].trainer.trainerId",
                        "required.bookingDetails[0].trainer.trainerId",
                        "Valid Booking Details Trainer required.");
              if (e.getErrorCount() < 1)
                   for (BookingDetails bd : booking.getBookingDetails()) {
                        if (bd.getStartDate() == null) {
                             e.rejectValue("startDate", "required.bbb0",
                                       "Valid Booking details Start Date is required");
                        try {
                             if (bd.getStartDate() != null && bd.getEndDate() != null
                                       && (bd.getEndDate().before(bd.getStartDate())))
                                  e.rejectValue("endDate", "required.bbb0",
                                            "End Date Should be after starting date.");
                        } catch (Exception ex) {
                             e.rejectValue("bookingDetails[0].startDate",
                                       "before.bookingDetails[0].startDate",
                                       "Improper dates, please provide valid dates.");
                        if (bd.getTrainer() != null) {
                             e.rejectValue("trianerId", "required.trianerId",
                                       "Valid Trainer details required.");
         public BookingService getBookingFacade() {
              return bookingFacade;
         public void setBookingFacade(BookingService bookingFacade) {
              this.bookingFacade = bookingFacade;
         public CourseService getCourseFacade() {
              return courseFacade;
         public void setCourseFacade(CourseService courseFacade) {
              this.courseFacade = courseFacade;
         public VenueService getVenueFacade() {
              return venueFacade;
         public void setVenueFacade(VenueService venueFacade) {
              this.venueFacade = venueFacade;
         public ClientService getClientFacade() {
              return clientFacade;
         public void setClientFacade(ClientService clientFacade) {
              this.clientFacade = clientFacade;
         public TrainersService getTrainersFacade() {
              return trainersFacade;
         public void setTrainersFacade(TrainersService trainersFacade) {
              this.trainersFacade = trainersFacade;
         class SqlDateEditor extends PropertyEditorSupport
              private boolean isRequired = false;
              SqlDateEditor(boolean isRequired) {
                   this.isRequired = isRequired;
              public void setAsText(String text) throws IllegalArgumentException {
                   java.util.Date d = null;
                   if (!this.isRequired && !StringUtils.hasText(text)) {
                        setValue(null);
                   else
                        try {
                             d = dateFormat.parse(text);
                             setValue(new java.sql.Date(d.getTime()));
                        } catch (ParseException ex) {
                             throw new IllegalArgumentException("Could not parse date: " + ex.getMessage());
              public String getAsText() {
                   Date value = (java.sql.Date)getValue();
                   if (value != null) {
                        java.util.Date d = new java.util.Date(value.getTime());
                        return dateFormat.format(d);
                   else {
                        return "";
    }

    <!-- Content -->
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
    <%@ page isELIgnored="false"%>
    <SCRIPT language="JavaScript" type="text/javascript">
         function checkClientKeycode(kCode){
              if (kCode==27){
                   hideSelectClient();
              else if (kCode==13){
                   setClient();
         function changeClientFocus(){
              if (document.getElementById("clientSelect").style.visibility=="visible"){
                   document.getElementById("clientSelect").style.height=100;
                   document.getElementById("clientSelect").focus();
         function hideSelectClient(){ 
              var clSelect = document.getElementById("clientSelect");
              clSelect.options.length=0;
         clSelect.style.visibility="hidden";
         clSelect.style.height=10;
    function setClient(){
              var clSelect = document.getElementById("clientSelect");
         document.getElementById("clientId").value=clSelect.value;
         document.getElementById("clientname").value=clSelect.options[clSelect.selectedIndex].text;
              clSelect.options.length=0;
         clSelect.style.visibility="hidden";
         clSelect.style.height=10;
    function checkCourseKeycode(kCode){
              if (kCode==27){
                   hideSelectCourse();
              else if (kCode==13){
                   setCourse();
         function changeCourseFocus(){
              if (document.getElementById("courseSelect").style.visibility=="visible"){     
                   document.getElementById("courseSelect").style.height=100;
                   document.getElementById("courseSelect").focus();
         function hideSelectCourse(){ 
              var coSelect=document.getElementById("courseSelect")
              coSelect.options.length=0;
         coSelect.style.visibility="hidden";
         coSelect.style.height=10;
    function setCourse(){
         var coSelect=document.getElementById("courseSelect")
         document.getElementById("bookingDetails").value=coSelect.value;
         document.getElementById("coursename").value=coSelect.options[coSelect.selectedIndex].text;
         coSelect.options.length=0;
         coSelect.style.visibility="hidden";
              coSelect.style.height=10;
         function addClient()
              window.open("<%=request.getContextPath()%>/secure/clientpopup.htm","clientwindow","location=0,status=1,scrollbars=1,resizable=1 left=200 width=700,height=600");
         function addCourse()
              window.open("<%=request.getContextPath()%>/secure/coursepopup.htm","coursewindow","location=0,status=1,scrollbars=1,resizable=1 left=200 width=450,height=400");
         function addTrainer()
              window.open("<%=request.getContextPath()%>/secure/trainerpopup.htm","trainerwindow","location=0,status=1,scrollbars=1,resizable=1 left=400 width=600,height=400");
         //------------------------------------------Course AJAX List Start-----------------------------------------------------//
         function getCourses()
              flag="wait";
         var theKeyword=document.getElementById("coursename").value;
         url="ajaxList.htm?actionType=courses&keyword="+theKeyword;
         what = "setCourses(req.responseXML)";
         //row_id=rowid;
         doCallback(null);
         function setCourses(theXmlResponse)
              //start filling the Venues Select boxes now
              if(theXmlResponse != null)
                   var coursesBox=document.getElementById("courseSelect");
                   coursesBox.options.length=0;
                   var coursesElementsLength=theXmlResponse.getElementsByTagName('course').length;
                   var y;
                   if (coursesElementsLength<20) {
                        y=coursesElementsLength;
                   else {
                        y=20;
                   coursesBox.size=y;
                   if (y==1) {
                        coursesBox.size=2;
                   var coursesElementsArray=theXmlResponse.getElementsByTagName('course');
                   for(x = 0; x < y; x++) {
                        coursesBox.options[coursesBox.options.length] = new Option(coursesElementsArray[x].firstChild.text, coursesElementsArray[x].lastChild.text);
                   if (y>0) {
                        coursesBox.style.visibility="visible";
                        coursesBox.style.height=100;
              flag="release";
    //------------------------------------------ Course AJAX List End-----------------------------------------------------//
    //------------------------------------------ Client AJAX List Start-----------------------------------------------------//
         function getClients()
              flag="wait";
              var theKeyword=document.getElementById("clientname").value;
         url="ajaxList.htm?actionType=clients&keyword="+theKeyword;
         what = "setClients(req.responseXML)";
         //row_id=rowid;
         doCallback(null);
         function setClients(theXmlResponse)
              if(theXmlResponse != null) {
                   var clientsBox=document.getElementById("clientSelect");
                   clientsBox.options.length=0;
                   var clientsElementsLength=theXmlResponse.getElementsByTagName('client').length;
                   var y;
                   if (clientsElementsLength<20) {
                        y=clientsElementsLength;
                   else {
                        y=20;
                   clientsBox.size=y;
                   if (y==1) {
                        clientsBox.size=2;
                   var clientsElementsArray=theXmlResponse.getElementsByTagName('client');
                   for(x = 0; x < y; x++) {
                        clientsBox.options[clientsBox.options.length] = new Option();
                   if (y>0) {
                        clientsBox.style.visibility="visible";
                        clientsBox.style.height=100;                    
              flag="release";
    //------------------------------------------Client AJAX List End-----------------------------------------------------//
    </script>
    <div id="content"><!-- Top story -->
    <div id="topstory" class="box">
    <div id="topstory-img"></div>
    <!-- /topstory-img -->
    <div id="topstory-desc">
    <div id="topstory-title"><strong>BOOK COURSE (CONT.)</strong></div>
    <!-- /topstory-title -->
    <div id="topstory-desc-in"></div>
    <!-- /topstory-desc-in --></div>
    <!-- /topstory-desc --></div>
    <!-- /topstory -->
    <div id="bodycontent"><c:choose>
         <c:when test='${booking.bookingType eq "Staff"}'>
              <table align="left" width="50%" border=0>
                   <tr>
                        <td colspan="4" align="center"><strong>Choose Course</strong>
                        <form name="BookType1"
                             action="<c:url value="/secure/bookCourse.htm"/>" method="post">
                        </td>
                   </tr>
                   </c:when>
                   <c:when test='${booking.bookingType eq "Client-Based"}'>
                        <table align="left" width="50%" border=0>
                             <tr>
                                  <td colspan="4" align="center"><strong>Choose Client and Course</strong>
                                  </p>
                                  </td>
                             </tr>
                             <form name="BookType1"
                                  action="<c:url value="/secure/bookCourse.htm"/>" method="post">
                             <tr>
                                  <td colspan="4" align="left">Please pick client from the list:</td>
                             </tr>
                             <tr>
                                  <td colspan="4" align="left">
                                  <c:if test='${empty booking.client || empty booking.client.clientId}'>
                                  <spring:bind path="booking.client.clientId">
                                       <input name="<c:out value='${status.expression}'/>" type="hidden" id="clientId" value=""/>
                                  </spring:bind>
                                  <input size="20" type="text" id="clientname" value=""
                                  onkeyup="javascript:getClients();changeClientFocus();"
                                  ondblclick="javascript:getClients();changeClientFocus();" />
                                  </c:if>
                                  <c:if test='${not empty booking.client.clientId}'>
                                  <spring:bind path="booking.client.clientId">
                                       <input name="<c:out value='${status.expression}'/>" type="hidden" id="clientId" value="<c:out value='${status.value}'/>"/>
                                  </spring:bind>
                                  <input size="20" type="text" id="clientname" name="clientname"
                                  value="<c:out value='${booking.client.orgName}'/> - <c:out value='${booking.client.type}'/>"
                                  onkeyup="javascript:getClients();changeClientFocus();"
                                  ondblclick="javascript:getClients();changeClientFocus();" />
                                  </c:if>
                                  <div><select id="clientSelect"
                                       style="width:266px;visibility:hidden"
                                       onclick="javascript:setClient();"
                                       onkeyup="javascript:checkClientKeycode(event.keyCode);">
                                  </select></div>
                                  </td>
                             </tr>
                             </c:when>
                             <c:otherwise>
                                  <table align="left" width="50%" border=0>
                                       <tr>
                                            <td colspan="4" align="center"><strong>Choose Course</strong>
                                            <form name="BookType1"
                                                 action="<c:url value="/secure/bookCourse.htm"/>" method="post">
                                            </td>
                                       </tr>
                                       </c:otherwise>
                                       </c:choose>
                                       <tr>
                                            <td colspan="4" align="left">Pick Course from list:</td>
                                       </tr>
                                       <tr>
                                            <td colspan="4" align="left">
                                            <input type="hidden" name="clientAndCourse" value="yes" />
                                            <input name="bookingDetails" type="hidden"
                                                 <c:if test="${(not empty booking.bookingDetails[0])}"> value="<c:out
                                                 value="${booking.bookingDetails[0].course.courseId}"/>"</c:if> />
                                            <spring:bind path="booking.bookingDetails[0].course.courseId">
                                            <input size="20" type="text" id="coursename" name="coursename"
                                            <c:if test="${(not empty booking.bookingDetails[0])}"> value="<c:out
                                                 value="${booking.bookingDetails[0].course.courseTitle}"/>"</c:if>
                                                 onkeyup="javascript:getCourses();changeCourseFocus();"
                                                 ondblclick="javascript:getCourses();changeCourseFocus();" />
                                            </spring:bind>
                                            <div><select id="courseSelect"
                                                 style="width:266px;visibility:hidden"
                                                 onclick="javascript:setCourse();"
                                                 onkeyup="javascript:checkCourseKeycode(event.keyCode);"></select></div>
                                            </td>
                                       </tr>
                                       <tr>
                                            <td colspan="4" align="left">Quantity:   <select
                                                 name="qtyBox" size="1">
                                                 <c:forEach var="x" begin="1" end="10">
                                                      <option value='<c:out value="${x}"/>'><c:out value="${x}" /></option>
                                                 </c:forEach>
                                            </select></td>
                                       </tr>
                                       <tr>
                                            <td colspan="4" align="left"></td>
                                       </tr>
                                       <tr>
                                            <td>
                                            <p><!-- input type="submit" name="_finish" value="Save"/ -->  
                                            <input type="submit" name="_target0" value="Previous" />  
                                            <input type="submit" name="_target2" value="Next" />  
                                            <input type="submit" name="_cancel" value="Cancel" />
                                            </td>
                                            <td><input type="button" value="Add Client"
                                                 onclick="javascript:addClient();" /></td>
                                            <td><input type="button" value="Add Course"
                                                 onclick="javascript:addCourse();" /></td>
                                            <td><input type="button" value="Add Trainer"
                                                 onclick="javascript:addTrainer();" /></td>
                                       </tr>
                                  </table>
                                  </form>
                                  </div>
                                  <hr class="noscreen" />
                                  <div class="content-padding"></div>
                                  <!-- /content-padding -->
                                  </div>
                                  <!-- /content -->

  • Could any one tell me how to divide a BMP image into pixel blocks

    I am new in Java, Could anyone please show me how to block an BMP image into segmented blocks. Please help.

    could you be a bit more specific? What segmented blocks are you talking about? Is the width and the height of these segmented blocks givenby the user or does it have to be equal blocks of the whole image?

  • Any one tell me the web site where i can get only ABAP HR FAQ

    I am searching in net and i am getting only ABAP faq's and i am not getting specific ABAP HR faq's.Could any one tell me where i can get only ABAP HR faq's
    Thanks
    Prasanth

    Hello Prasanth,
    Try this link for ABAP HR FAQ :
    [SAP ERP Human Capital Management (SAP ERP HCM);
    Good Luck,
    Boaz

  • My iPhone 5c require I cloud ID and paswerd. Any one tell me to resolve the operation without id and paswerd or tell me how I could know about previous user

    My iPhone 5c require i cloud ID and password of the first previous user. Any one tell me to resolve this problem or how know about previous id or contact number

    Enter the correct Apple ID and password that was used to setup "Find My iPhone" on the device.  Without those credentials the iPhone is a paperweight.

Maybe you are looking for

  • R/3 to XI manually IDOC sending and problem:

    <u><b>R/3 to XI manually IDOC sending and problem:</b></u> I sent IDOC using we19 transaction from R/3 system. After sending it asks me userid and password for XI system. I give necessary UID and PASS. R/3 system says me sucessfully sent. I check XI

  • How Can I create a dictionary file (dicionary.dat) in MIDP

    Hi All, I need your help. Let me explain clearly my problem so u can advise me what to do. In fact, I have a text file of words called (words.txt) and I would like to create a dictionary file (dict.dat)of those words and be able to load that dictiona

  • Patch Applied Not Reflecting

    Hi, We applied patch 3218526 :Web Applications Desktop Integrator, But when we give the below it showing as below: But SQL> select t.application_name , i.patch_level,i.LAST_UPDATE_DATE,i.PRODUCT_VERSION from fnd_product_installations i, fnd_applicati

  • How to make a one time payment

    My paypal account is low temporarily, how can I make a one time payment with a card?

  • Browse folders

    Hi again, great! Now that I've discovered this wonderful forum, I can ask all the questions I've always wanted to ask about XML DB but never dared to ;-) I frequent use case with XML DB is that you want to find out about folders and subfolders from y