Sheetal Tiwari

Greenhorn
+ Follow
since May 12, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sheetal Tiwari

Hello Marcus/ Joachim,

Welcome to the ranch!
Congratulations on the book. I am gathering resources for creating a Kanban at work. I am very keen on reading this book and learning from it

Best regards,
Sheetal
Hello,

I have two entities/tables that have one to one relationship and I have created java classes for both of them and annotated with @Entity.
Now for a particular case, I want to join both these tables and fetch the data.

For Example
SELECT * from A,B
where A.id = B.id
order by B.sortOrder

Can tables be joined in @NamedQuery ?
Is yes , could you provide a sample.

If it cannot be done using @namedQuery then is it advisable to use @NamedNativeQuery in this scenario.

Thanks for the help.
For example can I write a NamedQuery for the following SQL?

"Select * from A, B
Where A.id = B.id
order by B.sortOrder"
Hello,

I have two tables that have one to one relationship and I have created java classes for both of them and annotated with @Entity.
Now for a particular case, I want to join both these tables and fetch the data.
Can tables be joined in @NamedQuery ?
Is yes , could you provide a sample.

If it cannot be done using @namedQuery then is it advisable to use @NamedNativeQuery in this scenario.

Thanks for the help.
Hello,

I have two tables that have one to one relationship and I have created java classes for both of them and annotated with @Entity.
Now for a particular case, I want to join both these tables and fetch the data.
Can tables be joined in @NamedQuery ?
Is yes , could you provide a sample.

If it cannot be done using @namedQuery then is it advisable to use @NamedNativeQuery in this scenario.

Thanks for the help.
Yes I understand that it is not required to build a bean at login and I am aware that this could be done in the way you specified
But this is just an example where I am trying to set bean in the jsp and pass it on to servlet.

Could you explain how to pass bean from jsp to servlet.
15 years ago
JSP
Yes there is a limitiation on use of stand alone applications on production.
Also there is a requirement to prevent direct access to load functionality.That is why thought of shielding it with stateless session beans.
Hi,

I am trying to pass values from a JSP form to an action servlet using a Java Bean.
JSP Code:

<form action="LoginServlet">
<jsp:useBean id="user" class=" model.User"
scope="session">
<jsp:setProperty name="user" property="*" />
</jsp:useBean>
<tr>
<td>Username:</td>
<td><input type="text"name="userId"/>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password"/></td>
</tr>


( I have also tried setting the scope to 'request' )
Then in the servlet, I try to pick it up using: -

Servlet code:

HttpSession session = request.getSession(true);
userBean = (User)session.getAttribute("user");


But the userBean always comes up as a null, I never get the Java bean making it through the request or session.

Please, point out what is wrong with the above code.

Thanks.
15 years ago
JSP
The files will be put onto the server through FTP.
The purpose is to automate the loading part of the files. This would be a daemon that would conntinuously look for files and send them for upload.
Hi,

I wanted to code for a daemon that would check the directory for files with particular naming continuously.
Once it finds those files it should upload those into DB.

One of the approaches that I thought of is to create a servlet that would start a thread which would start polling for the files.
Once the file is found it would invoke a stateless session Bean that would handle the upload logic.

Please suggest/ comment about the approach.Also if you have some references regarding this functionality, kindly share it across.

Thank you.
Thanks Kavita!
15 years ago
JSF
Hello,

Can anybody list down the differences between Richfaces and Icefaces?

Thanks,
15 years ago
JSF
Hello,

I am preparing for the SCWCD certification.
Could you let me know the mock exam links.

Thanks,
Sheetal