3 Replies - 497 Views - Last Post: 30 April 2018 - 10:44 PM

#1 clever_monkey777   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 29-April 18

What does this line do?

Posted 29 April 2018 - 10:24 PM

<form action="<%=context %>/from/user_register"  method="post">


This. I under stand it's trying to send a request to a server running Tomcat hosting a filter with will process this request and will then send it to the right serverlet, but I don't understand:

1. Is the request sent using http?
2. Is the request lightly encrypted or heavily encrypted?
3. What is "<%=context %>/from/user_register"? What kind of path is it? What does it refer to?

Is This A Good Question/Topic? 0
  • +

Replies To: What does this line do?

#2 ndc85430   User is offline

  • I think you'll find it's "Dr"
  • member icon

Reputation: 976
  • View blog
  • Posts: 3,850
  • Joined: 13-June 14

Re: What does this line do?

Posted 29 April 2018 - 10:34 PM

Why don't you start us off by telling us what you think is going on?
Was This Post Helpful? 0
  • +
  • -

#3 clever_monkey777   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 29-April 18

Re: What does this line do?

Posted 29 April 2018 - 10:50 PM

More details:

I'm working on a shopping cart project and stumbled upon this line. Most web apps use post to feed information to the server side this project is no exception, except I need more details on that line.

I couldn't find a java source file named "user_register" per se so I wanna know what is going on.
Was This Post Helpful? 0
  • +
  • -

#4 ndc85430   User is offline

  • I think you'll find it's "Dr"
  • member icon

Reputation: 976
  • View blog
  • Posts: 3,850
  • Joined: 13-June 14

Re: What does this line do?

Posted 30 April 2018 - 10:44 PM

View Postclever_monkey777, on 30 April 2018 - 06:50 AM, said:

Most web apps use post to feed information to the server side this project is no exception


I take it from this that you understand how HTML forms work and HTTP methods like POST and GET.

Quote

I couldn't find a java source file named "user_register"


I'm not sure what you mean by this. Are you expecting there to be a file called user_register.java? If so, why? One would expect that there's a handler somewhere in your application that handles requests to /from/user_register, which will be what's executed when that POST request is sent. I suspect that <%=context %> is some special JSP syntax that puts the right hostname, etc. in the action attribute rather than you having to hard code it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1