rutuja patil

Ranch Hand
+ Follow
since Dec 17, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by rutuja patil

I am using output.drl file.
Following code - errorCodes.add(errorCode);-  is saying Unchecked call to 'add(E)' as a member of raw type 'java.util.List'

import com.xpackage..ErrorCode
global java.util.List<ErrorCode> errorCodes;

rule "outputErrorCode"
   when
       errorCode : ErrorCode()
   then      
      errorCodes.add(errorCode);
end

I am not able to fix this in drool file, can you please help.
3 weeks ago
We are using xjb, I migrated class to jaxb 3 and jakarta ee.
The issue is it is not creating java class using element name in xsd. Instead it creates java class using complextype.
Code:

this is .xjb:

and this is.xsd:
earlier it used to create Product.java class but now it creates ProductType.java.
I am not sure what is wrong with xjb. I need it to create Product.java

Thanks.
You are awesome !! Thank you so much for your help. I updated to class as it is class and it worked. I was stuck at this from last 2 days/ googled , tried different options so much but didn't work. I appreciate your help.
I have one more question.
I am getting org.jvnet.jaxb:jaxb-maven-plugin:3.0.1:generate failed: Annotation target [field] cannot be applied to a class error for following code .
Can somebody please help.
Thank you.
<?xml version="1.0" encoding="UTF-8"?>
<jxb:bindings version="3.0" xmlns:jxb="https://jakarta.ee/xml/ns/jaxb" xmlns:xjc="https://jakarta.ee/xml/ns/jaxb/xjc"
             xmlns:xs="http://www.w3.org/2001/XMLSchema"
             xmlns:jaxws="https://jakarta.ee/xml/ns/jaxws" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
             xmlns:annox="urn:jaxb.jvnet.org:annox"
             xmlns:inheritance="urn:jaxb.jvnet.org:plugin:inheritance"
             jxb:extensionBindingPrefixes="annox">
     <jxb:bindings>


       <jxb:bindings schemaLocation="abc.xsd" node="//xs:complexType[@name='ProductOrderr']">
           <annox:annotate target="field">@org.springframework.data.mongodb.core.mapping.Document(collection="ProductOrderr")</annox:annotate>
       </jxb:bindings>
       
   </jxb:bindings>

</jxb:bindings>
I am getting javax.el.ELException: Function 'fn:escapeXml' not found for following code, not sure what is wrong.

Thanks


<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri = "http://java.sun.com/jsp/jstl/functions" prefix = "fn" %>

<!DOCTYPE html>
<html>
<head>
</head>
<body ><c:out value="${state}" />
   <script type="text/javascript">
   require(["jquery", 'a/b/v/ applicationPage '], function($, applicationPage) {
       $(function() {
        console.log("applicationPage jsp start");
           var applicationPage = new applicationPage ({
             applicationId: '${fn:escapeXml(applicationId)}'
           });
           var appid = '${fn:escapeXml(applicationId)}';
           console.log("applicationPage jsp application id "+appid);
           applicationPage.start();
       });
   });
   </script>
</body>
</html>
2 years ago
JSP
I used request.getServletContext().getRequestDispatcher and it worked
2 years ago
Hello Tim, thank you for your reply.
Yes, I am using https, but didn't mention in the post.
I am having same issue with https also.

he URL which  received is https:// www.abc.com/user/domain

I want to forward it to  https://www.abc.com/user/welcome


request.getRequestDispatcher("https://www.abc.com/user/welcome").forward(request, response);

It is throwing error '  No mapping found for HTTP request with URI [ /user/domain/https://www.abc.com/user/welcome] in DispatcherServlet with name 'appServlet'

2 years ago
Hello I need help.

the URL which  received is www.abc.com/user/domain

I want to forward it to  www.abc.com/user/welcome

request.getRequestDispatcher("www.abc.com/user/welcome").forward(request, response);

It is throwing error '  No mapping found for HTTP request with URI [ /user/domain/www.abc.com/user/welcome] in DispatcherServlet with name 'appServlet'

can you please suggest how to resolve this?

Thank you so much.
2 years ago
google search for behavioural questions. prepare for those type of questions.
...don't worry... god is there to take care... best luck....
14 years ago
Jim, what if they don't know the exact weight... then will they need two weighings?
and you said-"Thus, the remaining seven coins must be counterfeit", no, they might be counterfeit, they might contain some genuine coins, you can not say'must' without weighing remaining seven coins...
14 years ago
Congrates Jogi! I am also planning to go for spring certification. did you refer only spring in action2 book? should we use document related to spring 3.0 or spring 2.5? does exam depend on the current release of Spring?


Thanks.
14 years ago