Yati Tan

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

Recent posts by Yati Tan

Hi,

Can we connect multiple sources at one time from jasper Report ? Do we have to drag drop columns or write querries using DBlinks ? Please let me know.

Thanks,
Yati
Hi,

I have to use a web search for my project and I would like to ask you following questions:

1) Does Lucene saves the search of previous keywords somewhere(cache) ? Or it will be a new search everytime for same key words ?

2) If I search on some subset of key words in next search - will Lucene look into some cache results or it will be a new search ?


Thanks,
Yati
Expression user is undefined on line 16, column 51 in userDetails.ftl.
The problematic instruction:
----------
==> ${user.lastName?default('')} [on line 16, column 49 in userDetails.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression user is undefined on line 16, column 51 in userDetails.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.BuiltIn$defaultBI._getAsTemplateModel(BuiltIn.java:833)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:86)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.Environment.process(Environment.java:176)
at freemarker.template.Template.process(Template.java:232)
at org.springframework.web.servlet.view.freemarker.FreeMarkerView.processTemplate(FreeMarkerView.java:344)
at org.springframework.web.servlet.view.freemarker.FreeMarkerView.doRender(FreeMarkerView.java:280)
at org.springframework.web.servlet.view.freemarker.FreeMarkerView.renderMergedTemplateModel(FreeMarkerView.java:225)
at org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:174)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:243)
at ai.sos.securities.SecuritiesSearchServlet.renderView(SecuritiesSearchServlet.java:427)
at ai.sos.securities.SecuritiesSearchServlet.service(SecuritiesSearchServlet.java:453)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:389)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:492)
at com.caucho.util.ThreadPool.run(ThreadPool.java:425)
at java.lang.Thread.run(Thread.java:595)


Please help..
Nisha
Hello All,

I am new to Spring and trying to understand ftl file basics and meaning of

?has_content

?default('')

?string("MM/dd/yyyy")

I could not find these tags anywhere. Can anyone please tell me where should I find these tags. they are included in the .ftl files and we have included

org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver

in our web-inf files.

Please help me in understanding the basics of these tags.

Thanks,
Nisha.
http://tomcat.apache.org/download-55.cgi

Download zip file to your comp.
17 years ago
Hi,

I am facing this problem in my Sevlet code.

Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/hr");
Connection conn = ds.getConnection();


Cannot create PoolableConnectionFactory (No more data to read from socket)
I am using tOmcat 6.

When I write normal,
conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521", "hr", "hr");

Its working, but not the one with JNDI. Pls help..
17 years ago
Hi Saurabh,

I am still h aving problem in compiling my java files which are in one of the packages on Websphere. The problem is that "javac" compiler is not identifying the packages mentioned on the top of class which I have imported. I have included all Jar's files in the classpath - Could you tell me where I went wrong.


My import statement looks like :
import java.io.IOException;
import java.rmi.NoSuchObjectException;
import java.util.Vector;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.ibm.websphere.samples.plantsbywebsphereejb.Catalog;
import com.ibm.websphere.samples.plantsbywebsphereejb.CatalogHome;
import com.ibm.websphere.samples.plantsbywebsphereejb.CustomerInfo;
import com.ibm.websphere.samples.plantsbywebsphereejb.OrderInfo;
import com.ibm.websphere.samples.plantsbywebsphereejb.OrderKey;
import com.ibm.websphere.samples.plantsbywebsphereejb.ShoppingCart;
import com.ibm.websphere.samples.plantsbywebsphereejb.ShoppingCartContents;
import com.ibm.websphere.samples.plantsbywebsphereejb.ShoppingCartHome;
import com.ibm.websphere.samples.plantsbywebsphereejb.StoreItem;
import com.ibm.websphere.samples.plantsbywebsphereejb.Util;

and After I am compiling my Java file, Iam getting problem as -

ShoppingServlet.java:238: cannot find symbol
symbol : variable Util
location: class com.ibm.websphere.samples.plantsbywebspherewar.ShoppingServlet
Util.debug("updatequantity: shopping cart ref must have timed out
, create a new one");

Where as I have imported the file Util through import statements.
17 years ago
Hi Saurabh ,

I am learning Web Sphere on my own and therefore, modifying the existing Java files and JSPs in already installed application. I dont know which IDE should I use with WebSphere. I read somewhere, Eclipse go with WebSphere on IBM website.

Can you still help me in compiling Java files which are in existing application in my Websphere Server folder.
17 years ago
Hi,

I am new to WebSphere and trying to compile simple Servlets and JSP files in my application already installed on WebSphere. Can anybody tell me how can I compile Simple Java file in Websphere Server ??

Pls reply soon.
17 years ago
Try with Reliance Infocomm.

Best Of Luck.
19 years ago
Copngrats. Please share the name of books & material u went through.
19 years ago
congrats. Pls Share ur study material for the exam.
19 years ago
hi, congrats. Hv fun. What next now ?
19 years ago
Congrats. Wat next ?
19 years ago
hi all, thanks for the wishes. Exam was not concerned to ny cpntainer. But, re read every topic of HFSJ. Believe me, every page was important - easpecially those things written ib bold. Iam trying to find a job next !! And yes, preparing for C# parallelly.