Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

sarada bokka

Ranch Hand
+ Follow
since Jan 13, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sarada bokka

Hi All,

I have created a popup. When ever i submit on popup page it still should be open until i manually closes it.
But after submit a new page with submit url action is displayed.

my configurations below

<action name="ChatConnector" method="openSession" class="struts.chat.ChatConnectorAction">
<interceptor-ref name="secureStack"></interceptor-ref>
<result name="success" type="taipanVelocity">/svelocity/chat/chatconnector.vm</result> <!-- a pop-up -->
</action>
<action name="SendChat" method="send" class="struts.chat.ChatConnectorAction">
<interceptor-ref name="secureStack"></interceptor-ref>
</action>

create a popup using dojo and make a ajax call for content /ChatConnector.action Popup comes up fine. Now After submit of SendChat it is comming up as hhtp:localhost:8080//<MyCode>/SendChat

Need help.

Regards,
sarada,
5 years ago
Hi All,

I have Action with method add,edit and save. Where add,edit refer to same modeldriven and page.
Now when saving if Actionerror fails if should result to add/edit actionrather than the page. Can some one help me how to achieve this.

When Input type is <result name="input">/Test.jsp</result> the validation works fine.
But if Input is action the validation doesn't work.


Regards,
sarada.
5 years ago
oops one more catch

The method name must be testHomepage or annotation @Test
5 years ago
The best way is to put a break point and debug what the value is coming up there.

It might be of two reasons

1)title value must be null
2)check in eclipse console and server console as well.
5 years ago
Hi All,

I have Junit test suite which runs successfully using ANT and eclipse. The sample I tried is from (http://www.yolinux.com/TUTORIALS/Java-JUnit.html)

But if my assertion is failed ANT still shows as success(ex: assertEquals(20,21)) where eclipse JUnit works fine as throws error.

Why my ant is not showing test case as failed? below is my ant script



Thanks in advance.
Regards,
Sarada.
5 years ago
Thanks Bear,

I Just discussed your suggestion with team and decided to disable refresh , ctr-r,crtl-f5.
5 years ago
JSP
Hi Bear,

That was the requirement.
5 years ago
JSP
Hi All,

I am having a page with textbox and select with options so when user selects any option and then refresh I need to display what they have selected.

I was thinking onclick on any event i should add to url paramter but this is not a good idea :-(

Could some one provide me any other inputs.

Thanks,
Shasha
5 years ago
JSP
Hi All,

I have followed the example of demo http://directwebremoting.org/dwr-demo/simple/text.html and I am able to see it is working fine when hitting the url localhost:8080/DWRTest/dwr but when i tried from my jsp page localhost:8080/DWRTest/index.jsp the <script type='text/javascript' src='/DWRTest/dwr/interface/Demo.js'></script> is not including. Could some let me know how to resolve this.

This is my jsp file and Demo.js file is directly under DWRTest



Please help
write a filter and check whether it contains the query string.

As per I knew url pattern it to restrict a path not to restrict query string.
6 years ago
This is a DB issue.
It say's the no of columns doesn't match with what you are trying to add. PERSONS table might be containing more or less columns.
Hi All,

I am having URL with special characters ₤€ñ₧™Ω۞

code :
encodeUrl = URLEncoder.encode(mystrg, "UTF-8");
response.sendRedirect(encodeUrl );

After response.sendRedirect(encodeUrl ); the special characters are getting changed.
if I add the parameter URIEncoding="UTF-8" for the Connector tag in server.xml(tomcat) it is working fine!

But the requirement is not to change the server.xml. Could some let me know whether it is possible without changing server.xml file and getting the same outcome?


Regards,
Sarada.
6 years ago
Hi All,

I am having two tables 1) classification ,2)classificationtemplate where classificationtemplate is an array list.
I am able to add successfully deleting is causing issues

Now I am trying to update the arraylist by
1) deleting the classification (this is to remove the old data)
2) add the updated data (add the new data)

It is failing at step 1 :

I have defined my entity as


Please help me where things are going wrong?

error: detached cannot be removed.
It's resolved :-)!

added the jar's

1) cucumber java
2)cucumber junit
3)cucumber core
4)gherkin
5)junit
6)xstream
7)cucumber piocontainer
8)piocontainer
6 years ago