Andrey Dmitriev

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

Recent posts by Andrey Dmitriev

Paul Clapham wrote:Are those forms submitted when the user presses the button labelled "Сохранить", or is there some JavaScript code elsewhere which submits them?



   Yes, forms are submitted when the user presses the button labelled "Сохранить"

   Sorry for delay with reply -
5 days ago

Paul Clapham wrote:Are those forms submitted when the user presses the button labelled "Сохранить", or is there some JavaScript code elsewhere which submits them?



   Yes, forms are submitted when the user presses the button labelled "Сохранить"
5 days ago
  Oh, I did not attached importance on one thing. Modal windows must be different.
  Further I m going to add in second modal 3-d filed - for inputting graphical data aims.

  Modals have an identical structure now, as I no time to modify them.
 
5 days ago

Bear Bibeault wrote:You never really adequately explained why you are using two forms in the first place.

That is highly irregular. And when something is highly irregular, its a good bet that it's not the best approach.

So why the two forms?



  I use two forms, because its a structure of web-page. Page consists of 2 parts. Each part is used for sending different kinds of data to different tables in DB.
  For example, one part - for news, other - for push-messages.
  Or any other way to realise this structure is possible?
5 days ago
  I'm sorry, but not all problems have been solved.
  When I try to send data, been inputed in one of forms, to servlet,   values inserted to table successfully - but.. the are duplicated.
 
  When I use only one form in jsp for this purpose the problem is absent.





5 days ago

Paul Clapham wrote:But you don't have two forms in that HTML code. The second half is a form; the first half would be a form except that its opening tag is



Perhaps if that were a "form" opening tag your code would work the way you liked?

(You realize that you can only submit from one form at a time, right?)



Paul Clapham, thank you, it was really stupid mistake from my side!
 Of course "form" - not "input" in this tag!
After I corrected it, the code worked properly.
6 days ago

Daniel Demesmaecker wrote:Have a look at this stackoverflow post, it might help you



  Thanks. And in this post the ENTITY FRAMEWORK is considered?
1 week ago
   Excuse, a mistace in previos post:
1 week ago

Daniel Demesmaecker wrote:How have you mapped the forms? Are you using two entities?



   On the level of Servlet-Hibernate interaction:
   Two models:




   Save







  Mapping in hibernate.cfg.xml

 
  Also code, which creates SessionFactory exemplar
1 week ago
One JSP, which contains two forms.

   

 The goal is  to send data from this forms to one servlet, which inserts its to database.  
From one form data values must be inserted to one table-database,  from second form - to second table-database, accordingly.




   But when I try to send data from one of this forms (for example "newsModalDialog"), joint table is created. This table contains fields from two tables. And this new table is empty.

  Thus, values are not inserted to database, through servlet.

  I hope, I created my topic in a proper branch of forum.
1 week ago
One JSP, which contains two forms.

   

 The goal is  to send data from this forms to one servlet, which inserts its to database.  
From one form data values must be inserted to one table-database,  from second form - to second table-database, accordingly.




   But when I try to send data from one of this forms (for example "newsModalDialog"), joint table is created. This table contains fields from two tables. And this new table is empty.

  Thus, values are not inserted to database, through servlet.

  I hope, I created my topic in a proper branch of forum.
1 week ago
   sendRedirection is proved successful!  

   And its works properly not only in relation of test-class, but in relation of "/newsPage"  too.
   getRequestDispatcher does not work similar way.

    I feel partial satisfaction: from one side, the problem is solved, but from other side I until end don't understand what way it was solved.

    Further is a working code







     
 
1 week ago
  The only mention of JMX in my project I found here
1 week ago
  Yes, I cleaned maven and rebuilt. But with the same result.

   Thank you for trying to help
1 week ago
  Thank you, I corrected dependencies. And deleted glassfish-dependency: its mistake, of course.

   


what jdlk are you using



You mean jdk?  JDK version is 1.8.0_131
1 week ago