Raymond Chiu Wing Hing

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

Recent posts by Raymond Chiu Wing Hing

Dear all,

I am programmer and now writing some java code to write the content to the web server folder.
I have the enquires about the possibility of writing contents to a file to web server if hacker is using jsp with ajax by firefox.
As you know that firefox allows to change the html content or javascripts or ajax of the web page and do post.
7 years ago
JSP
Dear all,

I am extracted one checkbox code as below:


First screen show the first time how I checked the checkbox.
Second screen show when I press next page after first screen and then press previous page and changed some checkbox checked status.
Third screen show when I press next page after second screen and then press previous page to see the checkbox checked status.

You will find that different when in screen third, why this happen??
7 years ago
Dear all,

I have below code with dropdown list in which there is a value. I find that the value cannot update in struts2 action class variables. It causes the html cannot be updated even after select another value in drop down list.


............
//---------------------------------------------
7 years ago
Dear all,

I upgrade the web project from JDK 1.5 to JDK 1.7.
It show some compile errors as below:
Old 1.x 'singleton' attribute in use - upgrade to 'scope' declaration



I searched in the web and find https://stackoverflow.com/questions/28262225/configuration-issue-during-spring-upgrade.
But it said scope="singleton". But in my case, it is false.
what should be scope="xxxxx"?
or ignore it??

Please help

7 years ago
Dear all,

I am developer. I have the question on JMeter operation.
I know it when I was working with others in the enterprise project one year before.
During the project, they used JMeter to perform Load Test.
I was also as a sample QA to perform the operation during Load Test.
They said they make 1200 threads to the web application in which it is working to perform some screen flow after login.
During these, I have the question.
If my sampler operation on login and doing some approval or reject process, one operation was OK. As you know that one record has been approved and it cannot be approved again. Then in JMeter 1200 threads, would it create many same login and same approvals? Is there something I have wrong? as i do not know what my colleagues did in JMeter in which I also not know much.
Now I tried to download the JMeter and tried to learn. I see the screen of below. But I still do not understand of the question that I ask now.
Is there any one understand and can let me know??



I have one more question.
If I have created the JMeter Test Plan to go to some public website and try to simulated 9999 threads, would it make the public website crash?
I believe something in JMeter and Network that can handle this problem. Please let me know. Many thanks.
7 years ago
Dear all,

I have below code written by previous colleagues about 7 years ago. Now I have used axis2 1.6.2 version and it prompt compile error.
This code is custom made. Is it possible to solve it??

7 years ago
Dear all,

I have below code that having compile error. But I do not know and cannot find in some web site. Is there any way to solve this??

Multiple annotations found at this line:
- Expected end of statement or
expression.

7 years ago
Dear all,

I have below code that prompt compile errors. Am I have any missing? Is there anyway to solve?

It said: Multiple annotations found at this line:
- Expected end of statement or
expression.
- Unexpected token: </>

7 years ago
Dear all,

I have below code that has compile errors. I do not know and cannot find in the web. Is there any way to solve it??
I have attached the screenshot to show which line has problem.



Multiple annotations found at this line:
- Missing end tag for "logic:equal"
- Start tag (<option>) not closed properly,
expected '>'.

7 years ago
Dear all,

I have the question on the difference between struts1 and struts2.
In struts1, the action can have unspecified method or other methods as passing parameter, e..g logon.do?method=displayLogonPage
But in struts2, it seems no unspecified feature method and no methods name as passing parameter to trigger whioch method to run in the action class. Is it true?? or this features in struts2 have been absent??
It seems one action must map with method in the struts.xml, e.g. www.strutsCompang.com/logon
If I want to do so, I need to have one all-in-one method which will get the passing variables and go to which functions. Like below

public String doLogon(){
  String method=request.getparameters("method");
  if("displayLogonPage".equals(method){
           return displayLogonPage();
   }else if ("doLogon".equals(method){
           return doLogon();
   }

}
7 years ago

Campbell Ritchie wrote:Please explain what this code is supposed to do. Giving a good explanation may make the answer become obvious to you.



It mainly display the string message text according to which language and which key id.
Like message bundle but in this time withdraw from db
7 years ago
Some typo error, sorry:

// where to call  messagePool

//The object that use messagePool --> GenericDac


//The object that use messagePool --> Dac
7 years ago
Dear all,

Previously I used the other company class that are not open source. Now I want to escape from this. I have the class that need to implement to match other codes.
I think it is not so complicated and it is mainly java programming design. But I am not having so much knowledge on this. Do you have any ideas??
This is the class "MessagePool" and need to implement getMessage function with the some newly created variables in it if needed that I think.

// How to implement this function??


// where to call  messagePool

//The object that use messagePool


// Assign values to messagePool
7 years ago
Dear all,

I search in the google about struts2 json restful web service. But it seems only struts2 restful.
I have the project about web services and planning to use struts2 +json+restful.
And I need to integrate with the vendor who will pass me encrypted input and send output to them. They are json string.
Is it possible in my case?
Please let me know if you have example.

Thanks for your time and help
7 years ago