InfoObjects Inc :: Q1A http://www.q1a.com/q1a/Questions/Search/ InfoObjects Inc Q1A Discussion. en-US ?2011 Q1A. A Product of InfoObjects Inc. All Rights Reserved. java <p>what is difference between encapsulation and abstraction in java</p> http://www.q1a.com/q1a/Questions/Search/145/java Tue, 31 Jan 2012 13:35:52 GMT http://www.q1a.com/q1a/Questions/Search/145/java How do we find recursion level from a method <p>How do we find the level of recursion from a recursive method.</p> <p>ie. How do we know the invocation level for a rwcursive method.</p> <p>if it is invoked first, the level is one, when it is invoked recursively for second time</p> <p>from within itself, the recursion level is 2 and so on.</p> <p>&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/144/How-do-we-find-recursion-level-from-a-method Thu, 26 Jan 2012 05:21:22 GMT http://www.q1a.com/q1a/Questions/Search/144/How-do-we-find-recursion-level-from-a-method sorting numbers in java <p>take a list of numbers from command line, sort them ascending and print</p> http://www.q1a.com/q1a/Questions/Search/143/sorting-numbers-in-java Tue, 01 Nov 2011 16:53:01 GMT http://www.q1a.com/q1a/Questions/Search/143/sorting-numbers-in-java How to reverse a sentence in Java <p>How to reverse a sentence in Java without losing meaningof words.&nbsp;</p> <p>i.e.&nbsp;</p> <p>I live in Santa Clara</p> <p>to</p> <p>Clara Santa in live I</p> <p>&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/142/How-to-reverse-a-sentence-in-Java Tue, 01 Nov 2011 16:29:13 GMT http://www.q1a.com/q1a/Questions/Search/142/How-to-reverse-a-sentence-in-Java How many different collections a HashMap has. <p>How many different types of collections are hidden inside a HashMap, also set specific subclasses of collections if possible.&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/141/How-many-different-collections-a-HashMap-has- Tue, 25 Oct 2011 18:01:55 GMT http://www.q1a.com/q1a/Questions/Search/141/How-many-different-collections-a-HashMap-has- What is the difference between Comparable and Comparator interface <p>What is the difference between Comparator and Comparator interface.</p> http://www.q1a.com/q1a/Questions/Search/140/What-is-the-difference-between-Comparable-and-Comparator-interface Tue, 25 Oct 2011 18:00:04 GMT http://www.q1a.com/q1a/Questions/Search/140/What-is-the-difference-between-Comparable-and-Comparator-interface What is the way to sort a Set in Java? <p>How to sort a java.util.Set in Java?</p> http://www.q1a.com/q1a/Questions/Search/139/What-is-the-way-to-sort-a-Set-in-Java- Tue, 25 Oct 2011 17:58:57 GMT http://www.q1a.com/q1a/Questions/Search/139/What-is-the-way-to-sort-a-Set-in-Java- What is the difference between Collection and List in Java. <p>What is the difference between java.util.Collection and java.util.List in Java.</p> http://www.q1a.com/q1a/Questions/Search/138/What-is-the-difference-between-Collection-and-List-in-Java- Tue, 25 Oct 2011 17:58:01 GMT http://www.q1a.com/q1a/Questions/Search/138/What-is-the-difference-between-Collection-and-List-in-Java- JSF <p>Hi All,</p> <p>I want to put my all jsp files in /WEB-INF/jsf/ directory. But page is not navigated in faces-context.xml. And 404 error is shown.</p> http://www.q1a.com/q1a/Questions/Search/137/JSF Tue, 18 Oct 2011 05:37:41 GMT http://www.q1a.com/q1a/Questions/Search/137/JSF Swing v/s AWT <p>What is difference betwen swing and awt package. And how swing is different from SWT.</p> http://www.q1a.com/q1a/Questions/Search/135/Swing-v-s-AWT Fri, 07 Oct 2011 01:07:22 GMT http://www.q1a.com/q1a/Questions/Search/135/Swing-v-s-AWT Liferay Portal - Pop up Window <p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; font-size: small;">How to add&nbsp; a JSP Page as a Pop up window (within the same portlet) in Liferay ?and also pls tel me how to come back to the Normal state of window from Pop up state? </span></p> http://www.q1a.com/q1a/Questions/Search/134/Liferay-Portal-Pop-up-Window Sat, 01 Oct 2011 07:19:03 GMT http://www.q1a.com/q1a/Questions/Search/134/Liferay-Portal-Pop-up-Window access xml files as databse <p>how to acess xml file as database means &nbsp;working with xml files and &nbsp;handeling xml as database tool for storing updating data&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/133/access-xml-files-as-databse Sat, 01 Oct 2011 04:43:13 GMT http://www.q1a.com/q1a/Questions/Search/133/access-xml-files-as-databse Json to Java <p>is there a direct way to convert JSON object to java and reverse directly in jQuery without using third party libraries.</p> http://www.q1a.com/q1a/Questions/Search/132/Json-to-Java Mon, 26 Sep 2011 17:33:41 GMT http://www.q1a.com/q1a/Questions/Search/132/Json-to-Java passing Objects using jQuery <p>is there a way to pass objects using jQuery, purely on client side. that is from one control to another.&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/131/passing-Objects-using-jQuery Mon, 26 Sep 2011 17:32:52 GMT http://www.q1a.com/q1a/Questions/Search/131/passing-Objects-using-jQuery Struts 2 vs Spring mvc <p>which one to use. Interested in knowing pros and cons.</p> http://www.q1a.com/q1a/Questions/Search/130/Struts-2-vs-Spring-mvc Mon, 26 Sep 2011 17:31:07 GMT http://www.q1a.com/q1a/Questions/Search/130/Struts-2-vs-Spring-mvc difference between state, transition and flow <p>what is the difference between state transition and flow in spring webflow</p> http://www.q1a.com/q1a/Questions/Search/129/difference-between-state-transition-and-flow Fri, 23 Sep 2011 12:59:28 GMT http://www.q1a.com/q1a/Questions/Search/129/difference-between-state-transition-and-flow Modal form using spring <p>what is the best way to load a modal screen using spring.&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/128/Modal-form-using-spring Fri, 23 Sep 2011 12:58:27 GMT http://www.q1a.com/q1a/Questions/Search/128/Modal-form-using-spring What are scope levels in SWF <p>What are different scope levels in spring webflow.</p> http://www.q1a.com/q1a/Questions/Search/127/What-are-scope-levels-in-SWF Fri, 23 Sep 2011 12:56:52 GMT http://www.q1a.com/q1a/Questions/Search/127/What-are-scope-levels-in-SWF Agile methodology and daily standups <p>I have mixed opinion about the daily standup part of Agile methodology and would like to get other people's experiences, opinions.&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/126/Agile-methodology-and-daily-standups Fri, 23 Sep 2011 12:55:44 GMT http://www.q1a.com/q1a/Questions/Search/126/Agile-methodology-and-daily-standups What is CDC and how it's implement in DB. <p>What is CDC and how it's implement in DB.</p> http://www.q1a.com/q1a/Questions/Search/123/What-is-CDC-and-how-it-s-implement-in-DB- Thu, 22 Sep 2011 20:23:46 GMT http://www.q1a.com/q1a/Questions/Search/123/What-is-CDC-and-how-it-s-implement-in-DB- How can add Compute column in create table? e.g. i have a table with two columns product_Qty & Product_Price, i need TotalPrice column. <p>How can add Compute column in create table?</p> http://www.q1a.com/q1a/Questions/Search/122/How-can-add-Compute-column-in-create-table-e-g-i-have-a-table-with-two-columns-product-Qty-Product-Price-i-need-TotalPrice-column- Thu, 22 Sep 2011 20:23:03 GMT http://www.q1a.com/q1a/Questions/Search/122/How-can-add-Compute-column-in-create-table-e-g-i-have-a-table-with-two-columns-product-Qty-Product-Price-i-need-TotalPrice-column- How to use native method's in java <p style="text-align: justify;">I want use of native method.</p> <p style="text-align: justify;">How can we define the native method's.</p> http://www.q1a.com/q1a/Questions/Search/119/How-to-use-native-method-s-in-java Wed, 14 Sep 2011 04:25:18 GMT http://www.q1a.com/q1a/Questions/Search/119/How-to-use-native-method-s-in-java Company have a Employee that what is relationship between company and employee ? <p>When I gave the java paper of Q1A site Then this question came.</p> <p>I don't know that what is actual answer of this question.</p> <p>This question may have answer's.</p> <p>1. Inheritance</p> <p>2. Interface</p> <p>3. &nbsp;Composition</p> <p>4. &nbsp;Aggregration</p> <p>&nbsp;</p> <p>What is Composition in java ?</p> http://www.q1a.com/q1a/Questions/Search/118/Company-have-a-Employee-that-what-is-relationship-between-company-and-employee- Wed, 14 Sep 2011 04:16:15 GMT http://www.q1a.com/q1a/Questions/Search/118/Company-have-a-Employee-that-what-is-relationship-between-company-and-employee- how to skip tests while running maven <p>how to skip junit tests while running maven</p> http://www.q1a.com/q1a/Questions/Search/117/how-to-skip-tests-while-running-maven Tue, 13 Sep 2011 20:33:35 GMT http://www.q1a.com/q1a/Questions/Search/117/how-to-skip-tests-while-running-maven Clustered vs Non Clustered Index <p>what is the difference between clustered and non- clustered index.</p> http://www.q1a.com/q1a/Questions/Search/116/Clustered-vs-Non-Clustered-Index Tue, 13 Sep 2011 19:34:13 GMT http://www.q1a.com/q1a/Questions/Search/116/Clustered-vs-Non-Clustered-Index Moodle WSDL implementation <p>I am trying to consume webservice provided by Moodle but WSDL is not generated, Any alternate way to do it ?</p> http://www.q1a.com/q1a/Questions/Search/115/Moodle-WSDL-implementation Tue, 13 Sep 2011 00:30:40 GMT http://www.q1a.com/q1a/Questions/Search/115/Moodle-WSDL-implementation Moodle Integration With .NET <p>Whta is the best way to integrate Moodle(PHP Virtual E-learning) with .NET ?</p> <p>&nbsp;</p> <p>&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/114/Moodle-Integration-With-NET Tue, 13 Sep 2011 00:29:16 GMT http://www.q1a.com/q1a/Questions/Search/114/Moodle-Integration-With-NET What is weaving in AOP <p>what are different ways to weave an aspect.</p> http://www.q1a.com/q1a/Questions/Search/113/What-is-weaving-in-AOP Sun, 11 Sep 2011 10:26:09 GMT http://www.q1a.com/q1a/Questions/Search/113/What-is-weaving-in-AOP What is Target Object in AOP <p>What is Target Object in AOP.</p> http://www.q1a.com/q1a/Questions/Search/112/What-is-Target-Object-in-AOP Sun, 11 Sep 2011 10:23:56 GMT http://www.q1a.com/q1a/Questions/Search/112/What-is-Target-Object-in-AOP What is an "Advice" in AOP and what are different types <p>What is an "Advice" in AOP and what are different types</p> http://www.q1a.com/q1a/Questions/Search/110/What-is-an-Advice-in-AOP-and-what-are-different-types Sun, 11 Sep 2011 10:06:58 GMT http://www.q1a.com/q1a/Questions/Search/110/What-is-an-Advice-in-AOP-and-what-are-different-types Join Point <p>What is Join Point in AOP.</p> http://www.q1a.com/q1a/Questions/Search/109/Join-Point Sun, 11 Sep 2011 10:06:05 GMT http://www.q1a.com/q1a/Questions/Search/109/Join-Point What is an Aspect <p>What is an Aspect in AOP.</p> http://www.q1a.com/q1a/Questions/Search/108/What-is-an-Aspect Sun, 11 Sep 2011 10:05:40 GMT http://www.q1a.com/q1a/Questions/Search/108/What-is-an-Aspect @Embeddable and @Embedded <p>what is the difference between the two&nbsp;@Embeddable and @Embedded</p> http://www.q1a.com/q1a/Questions/Search/107/-Embeddable-and-Embedded Sun, 11 Sep 2011 09:11:23 GMT http://www.q1a.com/q1a/Questions/Search/107/-Embeddable-and-Embedded @Id in hibernate <p>What does @Id do in Hibernate.</p> http://www.q1a.com/q1a/Questions/Search/106/-Id-in-hibernate Sat, 10 Sep 2011 20:17:51 GMT http://www.q1a.com/q1a/Questions/Search/106/-Id-in-hibernate validation at @Column <p>what different kind of validations we can do for @Column in Hibernate.</p> http://www.q1a.com/q1a/Questions/Search/105/validation-at-Column Sat, 10 Sep 2011 20:15:17 GMT http://www.q1a.com/q1a/Questions/Search/105/validation-at-Column why insertable, updatable in hibernate? <p>Why do we have insertable, updatable column attributes in Hibernate.</p> <p>I understand every column in table is insertable and updatable.</p> http://www.q1a.com/q1a/Questions/Search/104/why-insertable-updatable-in-hibernate- Sat, 10 Sep 2011 20:11:20 GMT http://www.q1a.com/q1a/Questions/Search/104/why-insertable-updatable-in-hibernate- custom annotation <p>how do you create custom annotation in java?</p> http://www.q1a.com/q1a/Questions/Search/103/custom-annotation Sat, 10 Sep 2011 20:05:01 GMT http://www.q1a.com/q1a/Questions/Search/103/custom-annotation RollingFileAppender <p>what does RollingFileAppender do. How do I put it in xml.</p> http://www.q1a.com/q1a/Questions/Search/102/RollingFileAppender Sat, 10 Sep 2011 19:34:56 GMT http://www.q1a.com/q1a/Questions/Search/102/RollingFileAppender what do appenders mean in Log4j <p>why do we have appenders in Log4j and other logging frameworks.</p> http://www.q1a.com/q1a/Questions/Search/101/what-do-appenders-mean-in-Log4j Sat, 10 Sep 2011 19:32:40 GMT http://www.q1a.com/q1a/Questions/Search/101/what-do-appenders-mean-in-Log4j how do you change priority of process in unix <p>how do you change priority of a process in Unix/Linux.</p> http://www.q1a.com/q1a/Questions/Search/100/how-do-you-change-priority-of-process-in-unix Sat, 10 Sep 2011 19:31:59 GMT http://www.q1a.com/q1a/Questions/Search/100/how-do-you-change-priority-of-process-in-unix What is equivalent of ResultSet in Database <p>What is equivalent of Sql Resulset in DB.</p> http://www.q1a.com/q1a/Questions/Search/99/What-is-equivalent-of-ResultSet-in-Database Sat, 10 Sep 2011 19:26:38 GMT http://www.q1a.com/q1a/Questions/Search/99/What-is-equivalent-of-ResultSet-in-Database Java Inheritance vs Composition <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Monaco;">Explain"is a" and "has a " relationship between classes. Can you explain with a use case. Which one do you prefer and why?</p> http://www.q1a.com/q1a/Questions/Search/98/Java-Inheritance-vs-Composition Fri, 09 Sep 2011 23:13:03 GMT http://www.q1a.com/q1a/Questions/Search/98/Java-Inheritance-vs-Composition SOAP and Rest <p>What is REST. What is the diff between SOAP and REST.</p> http://www.q1a.com/q1a/Questions/Search/97/SOAP-and-Rest Fri, 09 Sep 2011 18:41:49 GMT http://www.q1a.com/q1a/Questions/Search/97/SOAP-and-Rest PageObject Pattern <p>What is page object pattern.Have you used it in your application. Can you</p> <p>explain with example.</p> http://www.q1a.com/q1a/Questions/Search/96/PageObject-Pattern Fri, 09 Sep 2011 18:39:43 GMT http://www.q1a.com/q1a/Questions/Search/96/PageObject-Pattern find all links in a web page. <p>Come up with an Algorithm to find all links in a web page and check if it works.</p> <p>This algo has to recursively find all links in the Home page and then as you</p> <p>click on a link and traverse to another page it needs to check all links in the</p> <p>landing page too.</p> <p>&nbsp;</p> <p>What would be complexity of this Algo.</p> http://www.q1a.com/q1a/Questions/Search/95/find-all-links-in-a-web-page- Fri, 09 Sep 2011 18:38:20 GMT http://www.q1a.com/q1a/Questions/Search/95/find-all-links-in-a-web-page- Testing Google Maps <p>give some UI test cases for Google Maps.</p> http://www.q1a.com/q1a/Questions/Search/94/Testing-Google-Maps Fri, 09 Sep 2011 18:37:11 GMT http://www.q1a.com/q1a/Questions/Search/94/Testing-Google-Maps Call functionality in Skpe <p>Give me top test cases for the &lsquo;call&rsquo; functionality in Skype.</p> http://www.q1a.com/q1a/Questions/Search/93/Call-functionality-in-Skpe Fri, 09 Sep 2011 18:31:48 GMT http://www.q1a.com/q1a/Questions/Search/93/Call-functionality-in-Skpe Read a Newspaper <p>Write a program that would read a Newspaper page and identify words</p> <p>that are repeated and would return the word with the highest number of</p> <p>repetition. The program should return the word along with its repetition</p> <p>count. For eg : If word the is repeated the highest number of times say 20</p> <p>times. The program should return &lsquo;the 20&rsquo;.</p> http://www.q1a.com/q1a/Questions/Search/92/Read-a-Newspaper Fri, 09 Sep 2011 18:30:42 GMT http://www.q1a.com/q1a/Questions/Search/92/Read-a-Newspaper How to run tests parallel in testing. <p>How to run tests parallel in testing.</p> http://www.q1a.com/q1a/Questions/Search/91/How-to-run-tests-parallel-in-testing- Fri, 09 Sep 2011 18:28:46 GMT http://www.q1a.com/q1a/Questions/Search/91/How-to-run-tests-parallel-in-testing- What are different Log Levels <p>What are different Log Levels and why are they important.&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/90/What-are-different-Log-Levels Fri, 09 Sep 2011 18:27:49 GMT http://www.q1a.com/q1a/Questions/Search/90/What-are-different-Log-Levels Extending Thread better than implementing Runnable. When? <p>When would it be more advisable to extend a Thread than to implement Runnable</p> http://www.q1a.com/q1a/Questions/Search/89/Extending-Thread-better-than-implementing-Runnable-When- Fri, 09 Sep 2011 18:22:32 GMT http://www.q1a.com/q1a/Questions/Search/89/Extending-Thread-better-than-implementing-Runnable-When- RuntimeExceptions good or bad <p>is it a good idea or a bad idea to have a lot of Runtime/Unchecked exceptions as opposed to Checked Exceptions.</p> http://www.q1a.com/q1a/Questions/Search/88/RuntimeExceptions-good-or-bad Fri, 09 Sep 2011 18:18:38 GMT http://www.q1a.com/q1a/Questions/Search/88/RuntimeExceptions-good-or-bad Correlated SubQuery <p>what is corelated subquery and how different it is from regular subquery.</p> http://www.q1a.com/q1a/Questions/Search/83/Correlated-SubQuery Wed, 07 Sep 2011 10:26:42 GMT http://www.q1a.com/q1a/Questions/Search/83/Correlated-SubQuery Load a spring container <p>What is the best way to loan a spring container if I am not using a WebApp.</p> http://www.q1a.com/q1a/Questions/Search/81/Load-a-spring-container Wed, 07 Sep 2011 10:15:14 GMT http://www.q1a.com/q1a/Questions/Search/81/Load-a-spring-container ClassNotFoundException and NoClassDefFoundError <p>what is the difference between the two. To me both looks same.</p> http://www.q1a.com/q1a/Questions/Search/87/ClassNotFoundException-and-NoClassDefFoundError Thu, 08 Sep 2011 09:14:31 GMT http://www.q1a.com/q1a/Questions/Search/87/ClassNotFoundException-and-NoClassDefFoundError Outer Join, Inner Join, Full Join? <p>I am always confused between them, hope someone can explain me these concepts in layman terms.</p> http://www.q1a.com/q1a/Questions/Search/86/Outer-Join-Inner-Join-Full-Join- Thu, 08 Sep 2011 09:12:14 GMT http://www.q1a.com/q1a/Questions/Search/86/Outer-Join-Inner-Join-Full-Join- Hiberate vs Spring DAO <p>I am confused between using Hibernate and Spring DAO. What are the factors I should keep in mind while making a decision.</p> http://www.q1a.com/q1a/Questions/Search/85/Hiberate-vs-Spring-DAO Wed, 07 Sep 2011 10:28:14 GMT http://www.q1a.com/q1a/Questions/Search/85/Hiberate-vs-Spring-DAO JdbcTemplate <p>can someone explain me what JdbcTemplate does in Spring.</p> http://www.q1a.com/q1a/Questions/Search/84/JdbcTemplate Wed, 07 Sep 2011 10:27:29 GMT http://www.q1a.com/q1a/Questions/Search/84/JdbcTemplate Front Controller Design Pattern <p>what is Front Controller Design Pattern.</p> http://www.q1a.com/q1a/Questions/Search/82/Front-Controller-Design-Pattern Wed, 07 Sep 2011 10:24:38 GMT http://www.q1a.com/q1a/Questions/Search/82/Front-Controller-Design-Pattern How to know if a port is open <p>I want to know that a specific port is open in a server or not, say 3306 which is sqlserver.</p> <p>Earlier days it was easy to do using telnet but now as most of the servers dont have telnet open what should be done?</p> http://www.q1a.com/q1a/Questions/Search/80/How-to-know-if-a-port-is-open Wed, 07 Sep 2011 10:13:41 GMT http://www.q1a.com/q1a/Questions/Search/80/How-to-know-if-a-port-is-open can we use child class methods in a parent class?is this possible...? <p>we can inherit the super class &nbsp;methods in a child class but is it possible that we can do it reverse of this process....</p> http://www.q1a.com/q1a/Questions/Search/79/can-we-use-child-class-methods-in-a-parent-class-is-this-possible- Sat, 03 Sep 2011 11:39:52 GMT http://www.q1a.com/q1a/Questions/Search/79/can-we-use-child-class-methods-in-a-parent-class-is-this-possible- disabling ipv6 on centos <p>Any idea how to disable ipv6 on centos. It's already been set to ignore still I am getting localhost6.localdomain6 as a host.</p> http://www.q1a.com/q1a/Questions/Search/78/disabling-ipv6-on-centos Fri, 02 Sep 2011 18:29:36 GMT http://www.q1a.com/q1a/Questions/Search/78/disabling-ipv6-on-centos How to add a node using cloudera scm <p>While setting up my cluster using cloudera scm I forgot to add one node. Now I find no way to add it, any tips?</p> http://www.q1a.com/q1a/Questions/Search/77/How-to-add-a-node-using-cloudera-scm Fri, 02 Sep 2011 17:53:13 GMT http://www.q1a.com/q1a/Questions/Search/77/How-to-add-a-node-using-cloudera-scm Object <p>How to restrict a class to have only one object in java??</p> http://www.q1a.com/q1a/Questions/Search/76/Object Fri, 02 Sep 2011 08:39:06 GMT http://www.q1a.com/q1a/Questions/Search/76/Object %pre(hadoop-0.20-0.20.2+923.97-1.noarch) scriptlet failed <p>I am having this error while trying to install haddop using cloudera express service pack</p> <p>&nbsp;</p> <p>Running Transaction <br /> Error in PREIN scriptlet in rpm package hadoop-0.20-0.20.2+923.97-1.noarch <br /> usermod: user hadoop is currently logged in <br /> error: %pre(hadoop-0.20-0.20.2+923.97-1.noarch) scriptlet failed, exit status 8 <br /> error: install: %pre scriptlet failed (2), skipping hadoop-0.20-0.20.2+923.97-1 <br /> <br /> Failed: <br /> hadoop-0.20.noarch 0:0.20.2+923.97-1 </p> http://www.q1a.com/q1a/Questions/Search/75/-pre-hadoop-0-20-0-20-2-923-97-1-noarch-scriptlet-failed Thu, 01 Sep 2011 20:01:58 GMT http://www.q1a.com/q1a/Questions/Search/75/-pre-hadoop-0-20-0-20-2-923-97-1-noarch-scriptlet-failed Data Fetching Problem <p>I am using Struts2,Hibernte 3.3,Display 1.2 in our application.</p> <p>When we fetching data thorugh hibernate and display data in jsp page using display tag then he retreive data randomly.</p> <p>Randomly means sometime give old data and sometime give new data. It's not fix what will come result.</p> <p><strong>Actually Problem is , when we display &nbsp;data in jsp page and user update the record through jsp page and user must show updated record but it's not come properly sometime show old record and new record</strong></p> <p>&nbsp;</p> <p>&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/74/Data-Fetching-Problem Wed, 31 Aug 2011 21:46:40 GMT http://www.q1a.com/q1a/Questions/Search/74/Data-Fetching-Problem try-catch-finally <p>In Java, does the finally block gets executed if we insert a return statement inside the try block of a try-catch-finally?</p> http://www.q1a.com/q1a/Questions/Search/73/try-catch-finally Sun, 28 Aug 2011 15:25:51 GMT http://www.q1a.com/q1a/Questions/Search/73/try-catch-finally Hadoop on OSX 10.7 "Unable to load realm info from SCDynamicStore" <p>Unable to load realm info from SCDynamicStore,&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/72/Hadoop-on-OSX-10-7-Unable-to-load-realm-info-from-SCDynamicStore- Tue, 23 Aug 2011 08:20:26 GMT http://www.q1a.com/q1a/Questions/Search/72/Hadoop-on-OSX-10-7-Unable-to-load-realm-info-from-SCDynamicStore- Sting's objects <p>how maney objects are created ?</p> <p>String str = new String("hello");</p> <p>and another one</p> <p>also</p> <p>String st="a"+"a"+"aa"+"aaaa";</p> <p>and</p> <p>String st1="a"+"b"+"c"+"d";</p> http://www.q1a.com/q1a/Questions/Search/66/Sting-s-objects Sun, 21 Aug 2011 05:34:53 GMT http://www.q1a.com/q1a/Questions/Search/66/Sting-s-objects Does Java support Multiple Inheritance. <p>Does Java really support Multiple Inheritance?</p> http://www.q1a.com/q1a/Questions/Search/65/Does-Java-support-Multiple-Inheritance- Sat, 20 Aug 2011 13:10:59 GMT http://www.q1a.com/q1a/Questions/Search/65/Does-Java-support-Multiple-Inheritance- Which is Legal????? <p>class A{ }<br />class B extends A{ }<br />class C extends A{ }<br />class Test{<br /> public static void main(String[] args){<br /> A a = new A();<br /> B b = new B();<br /> C c = new C();<br /> // assignment here<br /> }<br />}</p> <p>Given the above sample code, which one of the following assignments is legal?</p> http://www.q1a.com/q1a/Questions/Search/64/Which-is-Legal- Sat, 20 Aug 2011 04:47:06 GMT http://www.q1a.com/q1a/Questions/Search/64/Which-is-Legal- Whats wrong....... <p>public abstract class A extends B, C implements D, E {<br />}</p> <p>What is WRONG with the above class declaration?</p> http://www.q1a.com/q1a/Questions/Search/63/Whats-wrong- Sat, 20 Aug 2011 04:37:12 GMT http://www.q1a.com/q1a/Questions/Search/63/Whats-wrong- Anagram in Java <p>How do you find two strings are anagrams of each other.&nbsp;</p> <p>Also how do you find a String is in dictionary or not.</p> http://www.q1a.com/q1a/Questions/Search/62/Anagram-in-Java Fri, 19 Aug 2011 12:27:03 GMT http://www.q1a.com/q1a/Questions/Search/62/Anagram-in-Java FlyWeight design pattern in JDK <p>is there any example of FlyWeight design pattern in JDK</p> http://www.q1a.com/q1a/Questions/Search/61/FlyWeight-design-pattern-in-JDK Sat, 13 Aug 2011 19:34:13 GMT http://www.q1a.com/q1a/Questions/Search/61/FlyWeight-design-pattern-in-JDK What's wrong .... <p>what's wrong with following code...</p> <p>Class A{</p> <p>A(){</p> <p>}</p> <p>int A(){</p> <p>//some code....</p> <p>}</p> <p>}</p> http://www.q1a.com/q1a/Questions/Search/60/What-s-wrong- Fri, 12 Aug 2011 10:59:13 GMT http://www.q1a.com/q1a/Questions/Search/60/What-s-wrong- calling destroy() method of servlet... <p>i am calling destroy() method in the overriden init() &nbsp;method of my servlet .</p> <p>my servlet is extending GenericServlet abstract class.</p> <p>will it hit the service(..) method of my servlet or not???</p> http://www.q1a.com/q1a/Questions/Search/59/calling-destroy-method-of-servlet- Fri, 12 Aug 2011 10:52:23 GMT http://www.q1a.com/q1a/Questions/Search/59/calling-destroy-method-of-servlet- What's wrong with storing money using double What's wrong with storing money using float or double in java. http://www.q1a.com/q1a/Questions/Search/58/What-s-wrong-with-storing-money-using-double Thu, 11 Aug 2011 09:43:15 GMT http://www.q1a.com/q1a/Questions/Search/58/What-s-wrong-with-storing-money-using-double volatile in java <p>If I declare shared state volatile in Java, do I really need to care about Thread Safety?</p> http://www.q1a.com/q1a/Questions/Search/57/volatile-in-java Wed, 10 Aug 2011 22:47:54 GMT http://www.q1a.com/q1a/Questions/Search/57/volatile-in-java What is the way to see native method <p>is there anyway to see implementation of a method which has "native" keyword?</p> http://www.q1a.com/q1a/Questions/Search/56/What-is-the-way-to-see-native-method Wed, 10 Aug 2011 22:46:39 GMT http://www.q1a.com/q1a/Questions/Search/56/What-is-the-way-to-see-native-method Static Imports <p>What are static imports in Java.</p> http://www.q1a.com/q1a/Questions/Search/55/Static-Imports Wed, 10 Aug 2011 22:41:08 GMT http://www.q1a.com/q1a/Questions/Search/55/Static-Imports What's wrong with this piece of code <p>public class Test {</p> <p>private static final String testString = null;</p> <p>public static void main(String[] args) {</p> <p>testString = "test123";</p> <p>}</p> <p>}</p> http://www.q1a.com/q1a/Questions/Search/54/What-s-wrong-with-this-piece-of-code Wed, 10 Aug 2011 22:30:37 GMT http://www.q1a.com/q1a/Questions/Search/54/What-s-wrong-with-this-piece-of-code How to cache images in iOS using GCD <p>To use in UITableImageCell</p> http://www.q1a.com/q1a/Questions/Search/53/How-to-cache-images-in-iOS-using-GCD Wed, 10 Aug 2011 07:35:58 GMT http://www.q1a.com/q1a/Questions/Search/53/How-to-cache-images-in-iOS-using-GCD Hibernate One to many mapping with join table <p>Hi all</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I have created three tables. Like :</p> <p>Employee</p> <p>&nbsp; &nbsp; &nbsp; &nbsp;--id (PK)</p> <p>Project</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; --id (PK)</p> <p>Employee_projects</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; --id (PK)</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; --employee_id (FK)</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; --project_id (FK)</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>I want to use one-to-many mapping on Employee table. how to do it without Annotation....&nbsp;</p> <p>In database additional column idx should not be created. Here I am using spring mvc framework.</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>Thanx in Advance</p> <p>Reply as soon as possible</p> http://www.q1a.com/q1a/Questions/Search/48/Hibernate-One-to-many-mapping-with-join-table Tue, 09 Aug 2011 07:35:05 GMT http://www.q1a.com/q1a/Questions/Search/48/Hibernate-One-to-many-mapping-with-join-table Arguments passed to method... <p>by reference or value, or copy of value (primitive), copy of reference (Object) ?</p> http://www.q1a.com/q1a/Questions/Search/52/Arguments-passed-to-method- Tue, 09 Aug 2011 13:47:33 GMT http://www.q1a.com/q1a/Questions/Search/52/Arguments-passed-to-method- How can I post answer to any question? <p class="Normal"><span style="font-size: x-small;"><span class="Apple-style-span" style="line-height: 18px;">How can I post answer to any question?</span></span></p> http://www.q1a.com/q1a/Questions/Search/51/How-can-I-post-answer-to-any-question- Tue, 09 Aug 2011 12:11:17 GMT http://www.q1a.com/q1a/Questions/Search/51/How-can-I-post-answer-to-any-question- Why can't a class be both final and abstract? <p>Why can't a java class be both final and abstract.&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/50/Why-can-t-a-class-be-both-final-and-abstract- Tue, 09 Aug 2011 11:28:20 GMT http://www.q1a.com/q1a/Questions/Search/50/Why-can-t-a-class-be-both-final-and-abstract- Is there any reason to use finalize() method ever? <p>any good example to use finalize()?</p> http://www.q1a.com/q1a/Questions/Search/46/Is-there-any-reason-to-use-finalize-method-ever- Sun, 07 Aug 2011 22:52:05 GMT http://www.q1a.com/q1a/Questions/Search/46/Is-there-any-reason-to-use-finalize-method-ever- Interfaces in Java <p>DO interfaces inherit the Object class in Java?why?</p> http://www.q1a.com/q1a/Questions/Search/45/Interfaces-in-Java Sun, 07 Aug 2011 17:30:59 GMT http://www.q1a.com/q1a/Questions/Search/45/Interfaces-in-Java 'Return' statement in void method <p>Can a void method &nbsp;contain 'return'?</p> http://www.q1a.com/q1a/Questions/Search/44/-Return-statement-in-void-method Sun, 07 Aug 2011 17:17:37 GMT http://www.q1a.com/q1a/Questions/Search/44/-Return-statement-in-void-method Difference between Collection and List? <p>What is the difference between Collection and a List.</p> http://www.q1a.com/q1a/Questions/Search/43/Difference-between-Collection-and-List- Sat, 06 Aug 2011 21:40:52 GMT http://www.q1a.com/q1a/Questions/Search/43/Difference-between-Collection-and-List- AutoCloseable Interface <p>What is AutoCloseable Interface in Java 1.7</p> http://www.q1a.com/q1a/Questions/Search/42/AutoCloseable-Interface Sat, 06 Aug 2011 19:41:53 GMT http://www.q1a.com/q1a/Questions/Search/42/AutoCloseable-Interface Multi-catch <p>What is Multi-Catch feature in Java 1.7</p> http://www.q1a.com/q1a/Questions/Search/41/Multi-catch Sat, 06 Aug 2011 19:40:30 GMT http://www.q1a.com/q1a/Questions/Search/41/Multi-catch stack unwinding <p>What is Stack Unwinding in Java?</p> http://www.q1a.com/q1a/Questions/Search/40/stack-unwinding Sat, 06 Aug 2011 19:21:32 GMT http://www.q1a.com/q1a/Questions/Search/40/stack-unwinding System.exit in Java and status codes <p>In What cases, its useful to use System.exit in Java.</p> <p>What different status codes does it have.</p> http://www.q1a.com/q1a/Questions/Search/39/System-exit-in-Java-and-status-codes Sat, 06 Aug 2011 19:15:33 GMT http://www.q1a.com/q1a/Questions/Search/39/System-exit-in-Java-and-status-codes Memory Leak in Java. <p>In what situations Memory Leak can occur in Java. What are the best practices to avoid Memory Leak?</p> http://www.q1a.com/q1a/Questions/Search/38/Memory-Leak-in-Java- Sat, 06 Aug 2011 19:09:00 GMT http://www.q1a.com/q1a/Questions/Search/38/Memory-Leak-in-Java- final, finally and finalize <p>what is the difference between final, finally and finalize.</p> http://www.q1a.com/q1a/Questions/Search/34/final-finally-and-finalize Fri, 05 Aug 2011 20:50:39 GMT http://www.q1a.com/q1a/Questions/Search/34/final-finally-and-finalize equals and ? <p>in a java class if you are overriding equals method which is the other method you should override and why</p> http://www.q1a.com/q1a/Questions/Search/35/equals-and- Fri, 05 Aug 2011 20:53:04 GMT http://www.q1a.com/q1a/Questions/Search/35/equals-and- Different ways to navigate a HashMap <p>what are the different ways to traverse a HashMap.</p> http://www.q1a.com/q1a/Questions/Search/36/Different-ways-to-navigate-a-HashMap Fri, 05 Aug 2011 20:56:22 GMT http://www.q1a.com/q1a/Questions/Search/36/Different-ways-to-navigate-a-HashMap Marker Interface or tagged interface <p>What are Marker or tagged interfaces in Java. Give some examples.</p> http://www.q1a.com/q1a/Questions/Search/37/Marker-Interface-or-tagged-interface Fri, 05 Aug 2011 21:01:35 GMT http://www.q1a.com/q1a/Questions/Search/37/Marker-Interface-or-tagged-interface Throw, Throws and Throwable what is the difference between throw, throws and throwable. http://www.q1a.com/q1a/Questions/Search/33/Throw-Throws-and-Throwable Fri, 05 Aug 2011 20:48:53 GMT http://www.q1a.com/q1a/Questions/Search/33/Throw-Throws-and-Throwable Difference between Abstract Classes and Interfaces <p>Age old question, still answered incorrectly mostly.</p> http://www.q1a.com/q1a/Questions/Search/32/Difference-between-Abstract-Classes-and-Interfaces Fri, 05 Aug 2011 19:51:00 GMT http://www.q1a.com/q1a/Questions/Search/32/Difference-between-Abstract-Classes-and-Interfaces Asp.Net MVC Finding the previous page <div> <div class="post-text"> <p>I have GenericPagecontroller in my project which renders GenericPage.aspx. There are links in the homepage and in two other pages for this GenericPageconroller.Now based on from where it is invoked, i have diiferent data to pass in to the GenericPage.aspx. ie If the Controller is requested from HomePage i have different set of data to show in the view and if it from other page i need to display diiferent set of data in the view. As of now i have kept an optional parameter in the Index method (the default method in GenericController) and added a querystring in the URL which holds the current page's name. Thus from the paramter i find from which link the request comes and load the appropriate data into the view.</p> <p>Is there any way to achieve this instead having a querystring which carries the related information...? some way to dynamically to find this ?</p> </div> </div> <p>&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/2/Asp-Net-MVC-Finding-the-previous-page Fri, 08 Jul 2011 03:58:02 GMT http://www.q1a.com/q1a/Questions/Search/2/Asp-Net-MVC-Finding-the-previous-page Cross Domain Issues with Firefox 5 <p>Hi,</p> <p>We have a local html file which uses jFeed to get some rss feeds from the web. We are giving UniversalXPConnect privileges to this html file via prefs.js. This code was working absolutely fine upto Firefox 4.0.1, however as I upgraded to Firefox 5 the code stopped working. It is now returning empty feed object in the success call back of jFeed's getFeed method. I am unable to find any changes related to this issue in Firefox 5's change logs and here.</p> <p>My guess is that Mozilla has removed support for cross domain access from non privileged code in any case i.e. even with any kind of permission given to the local html file, you can not access data from cross domain. If we want to access the cross domain data then, I think, we need to use XUL based components or applications.</p> <p>Any idea/solution/workaround guys?</p> http://www.q1a.com/q1a/Questions/Search/19/Cross-Domain-Issues-with-Firefox-5 Fri, 15 Jul 2011 04:52:52 GMT http://www.q1a.com/q1a/Questions/Search/19/Cross-Domain-Issues-with-Firefox-5 Magento Php Software <p><span style="font-family: Georgia, 'Times New Roman Times', serif; font-size: x-small;"><span class="Apple-style-span" style="line-height: 20px;">i am new in magento(cms) ,never worked on any other cms as before,can any one help me in providing basic tutorial of magento &nbsp;so that i can learn it.</span></span></p> <p><span style="font-family: Georgia, 'Times New Roman Times', serif; font-size: x-small;"><span class="Apple-style-span" style="line-height: 20px;">Thanks in Advance!!!!.....</span></span></p> http://www.q1a.com/q1a/Questions/Search/18/Magento-Php-Software Fri, 15 Jul 2011 01:27:52 GMT http://www.q1a.com/q1a/Questions/Search/18/Magento-Php-Software SOAP Request namespace problem <p>Hi,</p> <p>I am trying to access a web service in another web service(hosted in Axis 2). I am using Spring-WS in Axis2 to access the external web service. The XML bindings are generated via JAXB. Now when I am trying to send a request to the external web service it is forming a request in the following form</p> <p>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;</p> <p>&nbsp; &nbsp; &lt;soapenv:Body&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;testExternalService xmlns:ns3="external.webservice.namespace"&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;arg0&gt;some_value&lt;/arg0&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;arg1&gt;some_value&lt;/arg1&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;arg2&gt;some_value&lt;/arg2&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;arg3&gt;some_value&lt;/arg3&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;argn&gt;some_value&lt;/argn&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/testExternalService&gt;</p> <p>&nbsp; &nbsp; &lt;/soapenv:Body&gt;</p> <p>&lt;/soapenv:Envelope&gt;</p> <p>&nbsp;</p> <p>For the above request the external service is throwing NPE. However, If modify the request(I used SOAPUI for this) in following way, it works fine.</p> <p>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;</p> <p>&nbsp; &nbsp; &lt;soapenv:Body&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;testExternalService xmlns="external.webservice.namespace"&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;arg0 xmlns=""&gt;some_value&lt;/arg0&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;arg1 xmlns=""&gt;some_value&lt;/arg1&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;arg2 xmlns=""&gt;some_value&lt;/arg2&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;arg3 xmlns=""&gt;some_value&lt;/arg3&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;argn xmlns=""&gt;some_value&lt;/argn&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/testExternalService&gt;</p> <p>&nbsp; &nbsp; &lt;/soapenv:Body&gt;</p> <p>&lt;/soapenv:Envelope&gt;</p> <p>&nbsp;</p> <p>Please note in this new form, namespace prefix is removed from the operation(testExternalService) tag and empty namespace declaration is made for all the arguments for that operation.</p> <p>&nbsp;</p> <p>Now these are my questions:</p> <p>&nbsp;</p> <p>1. What is the reason for failure of first request and success of second request?</p> <p>2. Do we have some method in Spring-WS such that the request is formed in this way?</p> <p>3. Can this problem be due to Axis2 because same code accessing that external service works fine in my another Spring MVC applicaiton?</p> http://www.q1a.com/q1a/Questions/Search/21/SOAP-Request-namespace-problem Sun, 10 Jul 2011 06:43:40 GMT http://www.q1a.com/q1a/Questions/Search/21/SOAP-Request-namespace-problem ldap connection timing out. <div class="vote">I have an asp.net version 4 application which is using windows authentication for security this works fine on a machine running iis 6 windows server 2003, but when migrating to iis 7 windows server 2008 r2 standard I get the following error:</div> <div> <div class="post-text"> <blockquote> <p>System.DirectoryServices.Protocols.LdapConnection.ConstructResponse(Int32 messageId, LdapOperation operation, ResultAll resultType, TimeSpan requestTimeOut, Boolean exceptionOnTimeOut)</p> </blockquote> <p>iis authentication is enabled for both windows and asp.net impersonation, with the others being disabled (I have tried various combinations with no success). This is running in its own .net 4 app pool and I have tried both integrated and classic managed pipeline modes. From the event log I can see this code is causing the time out problem:</p> <p><code>var searchResponse = (SearchResponse)connection.SendRequest(searchRequest);</code>.<br />Am I missing a trick here?</p> </div> </div> <p>&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/16/ldap-connection-timing-out- Fri, 08 Jul 2011 06:37:14 GMT http://www.q1a.com/q1a/Questions/Search/16/ldap-connection-timing-out- Status code of the method <div class="vote">I am executing following sample program of httpclient of "GET" method.</div> <div> <div class="post-text"> <pre><code> import org.apache.commons.httpclient.HttpClient; <br />import org.apache.commons.httpclient.methods.GetMethod; <br />import org.apache.commons.httpclient.params.HttpMethodParams; <br /><br />public class TestMethodStatuscode <br />{ <br /> public static void main(String[] args) throws Exception <br /> { <br /> HttpClient client = new HttpClient(); <br /> client.getParams().setParameter(<br /> HttpMethodParams.USER_AGENT, "Mozilla/5.0 <br /> (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 <br /> (.NET CLR 3.5.30729)");<br /> //client.getParams().setCookiePolicy(<br /> org.apache.http.client.params.CookiePolicy.BROWSER_COMPATIBILITY<br /> ); <br /> GetMethod get = new GetMethod("http://de.mg40.mail.yahoo.com/neo/launch?.rand=80g4u84m26ifl");<br /> //get_siteurl.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY); <br /> client.executeMethod(get); <br />System.out.println("Status code: "+get.getStatusCode()); <br />//System.out.println(get.getResponseBodyAsString()); get.releaseConnection(); <br />} <br />}</code></pre> <p>output:- Status code: 200</p> <p>The url I am trying to fetch is some url which I get during process of login to yahoo.de email account.(login to yahoo.de did not work for me so was trying this code). If I enable wireshark(filter-http or (http.request.method == POST or http.request.method == GET) and then type this url in browser , press enter and finally I notice in wireshark that the return code of the above url is 302 which means it is redirected. Also when I run my program and check in wireshark, I see that method returns the code 302. So my queston is why it is giving me 200 as a statuscode as output and not 302 ?</p> <p>I am kind of stuck here and dont know what to do..Any help would be highly appreciated.</p> </div> </div> <p>&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/15/Status-code-of-the-method Fri, 08 Jul 2011 05:34:50 GMT http://www.q1a.com/q1a/Questions/Search/15/Status-code-of-the-method PHP and MySQL on Mac OS 10.6 (Snow Leopard) <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; clear: both; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px;">What is the easiest way to activate PHP and MySQL on Mac OS 10.6 (Snow Leopard)?</p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; clear: both; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px;">I'd prefer to use any bundled versions before resorting to downloading from the PHP or MySQL websites.</p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; clear: both; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px;">I'm comfortable at the command line in Terminal</p> http://www.q1a.com/q1a/Questions/Search/14/PHP-and-MySQL-on-Mac-OS-10-6-Snow-Leopard- Fri, 08 Jul 2011 04:42:05 GMT http://www.q1a.com/q1a/Questions/Search/14/PHP-and-MySQL-on-Mac-OS-10-6-Snow-Leopard- Hibernate <p>SQL queries are not working properly on the hibernate application. How can i use them?</p> http://www.q1a.com/q1a/Questions/Search/13/Hibernate Fri, 08 Jul 2011 04:41:36 GMT http://www.q1a.com/q1a/Questions/Search/13/Hibernate Hibernate Query <p>Hi</p> <p>How can i delete an record from hibernate methods?</p> http://www.q1a.com/q1a/Questions/Search/12/Hibernate-Query Fri, 08 Jul 2011 04:40:30 GMT http://www.q1a.com/q1a/Questions/Search/12/Hibernate-Query RAD <p>Can I create setup of my desktop application usin RAD(Rational Application Doveloper).</p> http://www.q1a.com/q1a/Questions/Search/11/RAD Fri, 08 Jul 2011 04:39:45 GMT http://www.q1a.com/q1a/Questions/Search/11/RAD php include() Function <p style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; clear: both; word-wrap: break-word; border-width: 0px; padding: 0px;">Hello guys I have one question ...</p> <ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 30px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; list-style-type: decimal; list-style-position: initial; list-style-image: initial; border-width: 0px; padding: 0px;"> <li style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; word-wrap: break-word; border-width: 0px; padding: 0px; margin: 0px;">Is it possible to run PHP with the include()&nbsp;Function if disabled?</li> <li style="border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; word-wrap: break-word; border-width: 0px; padding: 0px; margin: 0px;"><span style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;">Is possible that the include()&nbsp;</span><span style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;">function&nbsp;</span><span style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;">&nbsp;you can not find a file that really exists?</span></li> </ol> http://www.q1a.com/q1a/Questions/Search/10/php-include-Function Fri, 08 Jul 2011 04:39:37 GMT http://www.q1a.com/q1a/Questions/Search/10/php-include-Function Eclipse <p>Hi i am using eclipse. When i open it it autometically crashed.</p> <p>How can i debug it.</p> <p>&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/9/Eclipse Fri, 08 Jul 2011 04:38:57 GMT http://www.q1a.com/q1a/Questions/Search/9/Eclipse class not found exception <p>I am running a servlet from server. I have configure it with web.xml.</p> <p>I am using apache tomca server. I have plassed .class file in classes folder.</p> <p>but it is throwing 404 error.</p> http://www.q1a.com/q1a/Questions/Search/8/class-not-found-exception Fri, 08 Jul 2011 04:27:16 GMT http://www.q1a.com/q1a/Questions/Search/8/class-not-found-exception payment Gateway <p>&nbsp;</p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; border-style: initial; border-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; clear: both; word-wrap: break-word; border-width: 0px; padding: 0px;"><span class="Apple-style-span" style="font-size: 14px;">i am new in php,<span class="Apple-style-span" style="color: #333333; font-family: arial, helvetica, clean, sans-serif; font-size: 13px; line-height: 16px;">I want to add visa/debit/credit card payments in a website. how will I do that?</span></span></p> <p>&nbsp;</p> http://www.q1a.com/q1a/Questions/Search/7/payment-Gateway Fri, 08 Jul 2011 04:26:46 GMT http://www.q1a.com/q1a/Questions/Search/7/payment-Gateway Java application <p>Hi all</p> <p>Once again i have a new problem.</p> <p>I want to compile a java file(program) and also want to run it through java code. Which classes are used for this?</p> <p>I am unable to do it.</p> <p>Thanks in advance.</p> http://www.q1a.com/q1a/Questions/Search/6/Java-application Fri, 08 Jul 2011 04:23:10 GMT http://www.q1a.com/q1a/Questions/Search/6/Java-application Web Services <p>Hi all</p> <p>I am studying web services. I have read SOAP,UDDI and WSDL but what about SOAP Engine. How it will work?</p> http://www.q1a.com/q1a/Questions/Search/5/Web-Services Fri, 08 Jul 2011 04:20:35 GMT http://www.q1a.com/q1a/Questions/Search/5/Web-Services Redirect to the previous action in ASP.NET MVC <div class="post-text"> <p>Lets suppose that I have some pages</p> <p>some.web/articles/details/5</p> <p>some.web/users/info/bob</p> <p>some.web/foo/bar/7</p> <p>that can call a common utility controller like</p> <p>locale/change/es</p> <p>or</p> <p>authorization/login</p> <p>How do I get these methods (change, login) to redirect to the previous actions (details, info, bar) while passing the previous parameters to them (5, bob, 7)?</p> <p>In short: How do I redirect to the page that I just visited after performing an action in another controller?</p> </div> http://www.q1a.com/q1a/Questions/Search/4/Redirect-to-the-previous-action-in-ASP-NET-MVC Fri, 08 Jul 2011 04:13:41 GMT http://www.q1a.com/q1a/Questions/Search/4/Redirect-to-the-previous-action-in-ASP-NET-MVC Object Creation <p>I am new to Ajax.</p> <p>I want to know how to create XMLHttpRequestObject for internate explorex.</p> <p>I have created for mozilla and netscape but it is not working in Internet Explorer.</p> http://www.q1a.com/q1a/Questions/Search/3/Object-Creation Fri, 08 Jul 2011 04:08:12 GMT http://www.q1a.com/q1a/Questions/Search/3/Object-Creation Help understanding the basics of AutoMapper <p>So I have this two classes:</p> <pre class="default prettyprint"><code><span class="kwd">public</span><span class="kwd">class</span><span class="typ">PhysicalTest</span><span class="pln"><br /> </span><span class="pun">{</span><span class="pln"><br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="pln"> ID </span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"> <br /> </span><span class="kwd">public</span><span class="typ">DateTime</span><span class="typ">CreationDate</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"><br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="typ">Weight</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"><br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="typ">Height</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"><br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="typ">Systolic</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"> <br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="typ">Diastolic</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"> <br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="typ">Pulse</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"><br /></span><span class="pun">}</span><span class="pln"><br /><br /></span><span class="kwd">public</span><span class="kwd">class</span><span class="typ">PhysicalTestFormViewModel</span><span class="pln"><br /> </span><span class="pun">{</span><span class="pln"><br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="pln"> ID </span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"> <br /> </span><span class="kwd">public</span><span class="typ">DateTime</span><span class="typ">CreationDate</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"><br /> </span><span class="pun">[</span><span class="typ">Required</span><span class="pun">]</span><span class="pln"><br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="typ">Weight</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"><br /> </span><span class="pun">[</span><span class="typ">Required</span><span class="pun">]</span><span class="pln"><br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="typ">Height</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"><br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="typ">Systolic</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"> <br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="typ">Diastolic</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"> <br /> </span><span class="kwd">public</span><span class="kwd">int</span><span class="typ">Pulse</span><span class="pun">{</span><span class="kwd">get</span><span class="pun">;</span><span class="kwd">set</span><span class="pun">;</span><span class="pun">}</span><span class="pln"><br /></span><span class="pun">}</span><span class="pln"><br /></span></code></pre> <p>This is my AutoMapper configuration</p> <pre class="default prettyprint"><code><span class="typ">Mapper</span><span class="pun">.</span><span class="typ">CreateMap</span><span class="pun">&lt;</span><span class="typ">PhysicalTestFormViewModel</span><span class="pun">,</span><span class="typ">PhysicalTest</span><span class="pun">&gt;();</span><span class="pln"><br /></span></code></pre> <p>When I do this it works just fine</p> <pre class="default prettyprint"><code><span class="pun">[</span><span class="typ">HttpPost</span><span class="pun">]</span><span class="pln"><br /> </span><span class="kwd">public</span><span class="typ">ActionResult</span><span class="typ">Create</span><span class="pun">(</span><span class="kwd">int</span><span class="pln"> ehrId</span><span class="pun">,</span><span class="typ">PhysicalTestFormViewModel</span><span class="pln"> physicaltestvm</span><span class="pun">)</span><span class="pln"><br /> </span><span class="pun">{</span><span class="pln"><br /> EHR ehr </span><span class="pun">=</span><span class="pln"> ehrRepository</span><span class="pun">.</span><span class="typ">Find</span><span class="pun">(</span><span class="pln">ehrId</span><span class="pun">);</span><span class="pln"><br /> </span><span class="kwd">if</span><span class="pun">(</span><span class="pln">ehr</span><span class="pun">.</span><span class="typ">UserName</span><span class="pun">!=</span><span class="typ">User</span><span class="pun">.</span><span class="typ">Identity</span><span class="pun">.</span><span class="typ">Name</span><span class="pun">)</span><span class="pln"><br /> </span><span class="kwd">return</span><span class="typ">View</span><span class="pun">(</span><span class="str">"Invalid Owner"</span><span class="pun">);</span><span class="pln"><br /><br /> </span><span class="kwd">if</span><span class="pun">(</span><span class="typ">ModelState</span><span class="pun">.</span><span class="typ">IsValid</span><span class="pun">)</span><span class="pln"><br /> </span><span class="pun">{</span><span class="pln"><br /> </span><span class="typ">PhysicalTest</span><span class="pln"> physicalTest</span><span class="pun">=</span><span class="kwd">new</span><span class="typ">PhysicalTest</span><span class="pun">();</span><span class="pln"><br /> </span><span class="typ">Mapper</span><span class="pun">.</span><span class="typ">Map</span><span class="pun">(</span><span class="pln">physicaltestvm</span><span class="pun">,</span><span class="pln"> physicalTest</span><span class="pun">);</span><span class="pln"><br /> physicalTest</span><span class="pun">.</span><span class="typ">PerformedBy</span><span class="pun">=</span><span class="str">"Yo"</span><span class="pun">;</span><span class="pln"><br /> physicalTest</span><span class="pun">.</span><span class="typ">CreationDate</span><span class="pun">=</span><span class="typ">DateTime</span><span class="pun">.</span><span class="typ">Now</span><span class="pun">;</span><span class="pln"><br /> ehr</span><span class="pun">.</span><span class="typ">PhysicalTests</span><span class="pun">.</span><span class="typ">Add</span><span class="pun">(</span><span class="pln">physicalTest</span><span class="pun">);</span><span class="pln"><br /> ehrRepository</span><span class="pun">.</span><span class="typ">Save</span><span class="pun">();</span><span class="pln"><br /> </span><span class="kwd">return</span><span class="typ">RedirectToAction</span><span class="pun">(</span><span class="str">"Index"</span><span class="pun">);</span><span class="pln"><br /> </span><span class="pun">}</span><span class="pln"><br /> </span><span class="kwd">else</span><span class="pln"><br /> </span><span class="pun">{</span><span class="pln"><br /> </span><span class="kwd">return</span><span class="typ">View</span><span class="pun">(</span><span class="pln">physicaltestvm</span><span class="pun">);</span><span class="pln"><br /> </span><span class="pun">}</span><span class="pln"><br /> </span><span class="pun">}</span><span class="pln"><br /></span></code></pre> <p>But when I do this I get an error</p> <blockquote> <p>Trying to map Summumnet.PhysicalTest to Summumnet.ViewModels.PhysicalTestFormViewModel. Missing type map configuration or unsupported mapping. Exception of type 'AutoMapper.AutoMapperMappingException' was thrown.</p> </blockquote> <pre class="default prettyprint"><code><span class="kwd">public</span><span class="typ">ActionResult</span><span class="typ">Edit</span><span class="pun">(</span><span class="kwd">int</span><span class="pln"> ehrId</span><span class="pun">,</span><span class="kwd">int</span><span class="pln"> id</span><span class="pun">)</span><span class="pln"><br /> </span><span class="pun">{</span><span class="pln"><br /> EHR ehr </span><span class="pun">=</span><span class="pln"> ehrRepository</span><span class="pun">.</span><span class="typ">Find</span><span class="pun">(</span><span class="pln">ehrId</span><span class="pun">);</span><span class="pln"><br /> </span><span class="kwd">if</span><span class="pun">(</span><span class="pln">ehr</span><span class="pun">.</span><span class="typ">UserName</span><span class="pun">!=</span><span class="typ">User</span><span class="pun">.</span><span class="typ">Identity</span><span class="pun">.</span><span class="typ">Name</span><span class="pun">)</span><span class="pln"><br /> </span><span class="kwd">return</span><span class="typ">View</span><span class="pun">(</span><span class="str">"Invalid Owner"</span><span class="pun">);</span><span class="pln"><br /> </span><span class="kwd">var</span><span class="pln"> physicalTest </span><span class="pun">=</span><span class="pln"> ehr</span><span class="pun">.</span><span class="typ">PhysicalTests</span><span class="pun">.</span><span class="typ">Where</span><span class="pun">(</span><span class="pln">test </span><span class="pun">=&gt;</span><span class="pln"> test</span><span class="pun">.</span><span class="pln">ID </span><span class="pun">==</span><span class="pln"> id</span><span class="pun">).</span><span class="typ">Single</span><span class="pun">();</span><span class="pln"><br /> </span><span class="typ">PhysicalTestFormViewModel</span><span class="pln"> physicaltestvm </span><span class="pun">=</span><span class="kwd">new</span><span class="typ">PhysicalTestFormViewModel</span><span class="pun">();</span><span class="pln"> <br /> </span><span class="typ">Mapper</span><span class="pun">.</span><span class="typ">Map</span><span class="pun">(</span><span class="pln">physicalTest</span><span class="pun">,</span><span class="pln"> physicaltestvm</span><span class="pun">);</span><span class="pln"> <br /> </span><span class="kwd">return</span><span class="typ">View</span><span class="pun">(</span><span class="pln">physicaltestvm</span><span class="pun">);</span><span class="pln"><br /> </span><span class="pun">}</span><span class="pln"><br /></span></code></pre> <p>In the scenario where the error is thrown I simply want to construct an ViewModel to display an Edit form.... what is the standard way of doing this?</p> http://www.q1a.com/q1a/Questions/Search/1/Help-understanding-the-basics-of-AutoMapper Fri, 08 Jul 2011 03:54:11 GMT http://www.q1a.com/q1a/Questions/Search/1/Help-understanding-the-basics-of-AutoMapper