rahul khanna

Ranch Hand
+ Follow
since Sep 14, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by rahul khanna

Instead of doing RegForm.employeeList.. put the list in session and then retrieve the list from the session on the page.

something like items=sessionScope.YourListName

once iternated, you can also remove the list from the session using jstl.

Hope it helps.
14 years ago
try looking here...

http://www.google.com

Post back again .. if you can't find it .
14 years ago
JSP
I guess, you can do it.
But that would be with in your application context.

When you save it . it should gert saved somewhere with in your WEB-INF folder.

Hope it helps.
14 years ago
Please modify to NOT pass primary keys in urls.

As for reading the request/session parameters on jsp you can use JSTL.
14 years ago
I tried creating a model inside the "onSubmit" method and then do


I then get the following exception :




Many Thanks
14 years ago
Can somebody please post a small example on how to implement in spring mvc a simple search page ..

search page -> users enters criteria -> search results on the same page.

I do not want the whole code.

Here is what I am trying and is not working ( ontroller class)


I now need to add this to the model and return to the same page, I came from.. How do I do this? Model object is not available to onSubmitMethod.

Here is an extract from from my view resolver.


I need to go back to "searchService" and with the model updated.
Also, I tried getFormView() but that does not seem to work.. plus the model still needs to go to jsp..

Many Thanks
14 years ago
Resolved it for the time being .. my replacing some jars notibly spring-web-mvc.jar.

Working on a tight schedule .. so will see later what and why the error

Thanks for help.
14 years ago
Hi All,

I am trying to use spring MVC and get the following error:


I have a simple jsp page with a drop down that IS POPULATED AS MAP IN THE CONTROLLER.

Here is my jsp page :



"subProcesses" is a Map that is set in the controller's reference data method.

Many Thanks.
14 years ago
Thanks Brett.

I cannot use annotations as I amusing JDK 1.4

Here is the modified version of the code I have. I am trying to use ProxyFactoryBean.
This seems to work atleast for the read operations. I need to test for write though.
I do NOT want to use AOP as I am not using any features of AOP.
There must be another way of doing this.. configuring spring and hibernate for jdk 1.4







Thanks in advance.
14 years ago
Hi,
I am tryint to integrate Spring 2.5.6 with Hibernate 3.2.x.
I am using jdk 1.4

I am not able to configure it .. and most like the transaction manager.

The error I get is..


Here is my applicationContext.xml



I am trying to get an instance of PortalService and get select all from a table.

Thanks in advance.

14 years ago
The simplest way to do is to have a hidden field, textbox, on the page and assign the text value of it in jscript.
You can then use tht value in jsp or even in a servlet on form submission.

Hope this helps.
15 years ago
JSP
When you display the results for the first time . .what are you using? A bean I guess.. Keep the bean in the session and it would then dispaly the results in the same order once again ..

Remember to clear the bean from the session .. once it is no longer required.
15 years ago
forgot to add..
get the list from the criteria then
try this
change properties/object names as you need
If you are using 'Post' it should not happen .. can you paste your code here. it would help to narrow it down
15 years ago